/* Classic: as close as possible to the one.com version of ericmead.com.
   Light grey page, white header band, thin name top left, email under it, lowercase bold
   headings over photo tiles. No web fonts: Raleway if it's installed, else Helvetica. */
:root {
  --bg: #f9f9f9; --band: #ffffff; --ink: #4a4a4a; --muted: #777;
  --font: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.site-header {
  background: var(--band); padding: 18px 42px 14px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px;
}
.brand { display: flex; flex-direction: column; }
.brand .name { font-size: 40px; font-weight: 300; line-height: 1.1; text-decoration: none; }
.brand .email { font-size: 12px; margin: 4px 0 0 14px; text-decoration: none; }
.brand .email:hover, .site-header nav a:hover { text-decoration: underline; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-header nav a { text-decoration: none; font-size: 15px; }
.site-header nav a[aria-current] { font-weight: 700; }

main { max-width: 1100px; margin: 0 auto; padding: 20px 24px 60px; }
.page-title { text-align: center; font-size: 20px; font-weight: 700; margin: 18px 0 28px; }

/* Home: three tiles in a row, animation centred below, like the current site. */
.tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; align-items: start;
}
.tiles li:nth-child(4) { grid-column: 2; }
.tiles a {
  display: grid; grid-template-rows: auto 280px; justify-items: center; align-items: center;
  text-decoration: none;
}
.tiles .tile-label { font-size: 20px; font-weight: 700; align-self: start; margin-bottom: 8px; }
.tiles img { max-height: 280px; width: auto; }
.tiles a:hover img { opacity: 0.85; }

.students-link { text-align: center; margin: 70px 0 20px; }
/* Outlined pill button (borrowed from the fresh version); fills in on hover. */
.button {
  display: inline-block; text-decoration: none; font-size: 16px; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px; padding: 10px 22px;
}
.button:hover { background: var(--ink); color: var(--bg); }

/* Galleries: plain grid of photos, each cropped to the same size. */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery a:hover img { opacity: 0.85; }

.reel { margin: 0 auto; max-width: 784px; }
.reel video { width: 100%; height: auto; background: #000; display: block; }
.reel figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

.intro { max-width: 640px; margin: 0 auto 10px; text-align: center; }

/* Students' reels: thumbnails that open each video, with a play button drawn on top. */
.video-grid {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.video-grid a { display: block; position: relative; }
.video-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.video-grid a::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 30px no-repeat;
  transition: background-color 0.2s;
}
.video-grid a:hover::after, .video-grid a:focus-visible::after { background-color: rgba(0, 0, 0, 0.8); }
.video-grid a:hover img { opacity: 0.9; }

/* The hidden Show and Tell link under the students' button on the home page: blank and
   see-through, 130 x 50 px, as on the one.com site. */
.page-index .students-link { margin-bottom: 0; }
.secret-link { margin: 0; text-align: center; }
.secret-link a { display: inline-block; width: 130px; height: 50px; vertical-align: top; }

.site-footer { text-align: center; font-size: 12px; color: var(--muted); padding: 0 24px 30px; }
.site-footer a { text-decoration: none; }

@media (max-width: 760px) {
  .site-header { padding: 14px 18px 12px; justify-content: center; text-align: center; }
  .brand { align-items: center; }
  .brand .name { font-size: 32px; }
  .brand .email { margin-left: 0; }
  .site-header nav ul { justify-content: center; }
  .tiles { grid-template-columns: 1fr; }
  .tiles li:nth-child(4) { grid-column: auto; }
  .tiles a { grid-template-rows: auto auto; }
  .tiles .tile-label { margin-bottom: 14px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
