/* base */
@font-face { font-display: swap; font-family: "Libre Baskerville"; font-weight: 400 700; src: url("../fonts/libre-baskerville-variable.woff2") format("woff2"); }
:root {
  /* page background: the original #0d0a05, lifted a few percent */
  --near-black: #15110a;
  --black: #000000;
  --surface: #221a0e;
  --bright-gold: #e5ba00;
  --cream: #f5ecd7;
  --muted-cream: #d8cdb8;
  --line: #8d681d;
  /* serif for the big headings only; everything else is the system sans */
  --heading-font: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --frame-width: 62.5rem;
  --gutter: 1.25rem;
  /* 4rem on phones, growing to 6rem at a 1280px-wide window */
  --section-space: clamp(4rem, 2rem + 5vw, 6rem);
  --radius: .5rem;
  --border: 1px solid var(--line);
}

* { box-sizing: border-box; }
/* anchor links stop below the sticky header (about 62px tall, plus air) */
html { scroll-padding-top: 5rem; }
body { background: var(--near-black); color: var(--cream); display: flex; flex-direction: column; font-family: var(--body-font); line-height: 1.6; margin: 0; min-height: 100vh; min-width: 375px; }
main { flex: 1; padding: 3rem 0 var(--section-space); }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--heading-font); font-weight: 400; }
/* Libre Baskerville is wide, so sizes stay modest: "Accomplishments" (the longest word) fits a 375px screen at the 1.875rem minimum */
h1 { font-size: clamp(1.875rem, 1.25rem + 2.6vw, 3rem); letter-spacing: -.015em; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem); letter-spacing: -.01em; line-height: 1.25; }
/* small headings (member names, year cards' sub-lines) are sans, so the serif stays rare */
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
/* event and accomplishment titles are the main heading of their card, so they get the serif; on pages with no section h2 above them they are h2s */
.story-text h2, .story-text h3, .year-card h3 { font-family: var(--heading-font); font-size: 1.375rem; font-weight: 400; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; max-width: 65ch; }
nav ol, nav ul { list-style: none; margin: 0; padding: 0; }
hgroup { display: flex; flex-direction: column; gap: .75rem; }
a { color: var(--bright-gold); }
a:hover, a:focus-visible { color: var(--cream); }
:focus-visible { outline: 3px solid var(--bright-gold); outline-offset: 3px; }
button { font: inherit; }
img { display: block; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
section { align-items: flex-start; display: flex; flex-direction: column; gap: 1.25rem; }
section + section { margin-top: var(--section-space); }
.page-frame { margin-left: auto; margin-right: auto; max-width: var(--frame-width); min-width: 375px; padding-left: var(--gutter); padding-right: var(--gutter); width: 100%; }

/* header/nav */
/* solid and sticky: the same contrast everywhere, and the nav stays in reach. The logo's black letters have a gold outline, so it reads on black with no plate behind it */
.site-header { background: var(--black); border-bottom: var(--border); position: sticky; top: 0; z-index: 5; }
.site-header-inner { align-items: center; display: flex; gap: 2rem; justify-content: space-between; padding-bottom: .5rem; padding-top: .5rem; }
.site-logo { display: block; }
.site-logo img { height: 40px; max-width: 437px; }
.menu-toggle { align-items: center; background: none; border: var(--border); border-radius: var(--radius); color: var(--cream); cursor: pointer; display: flex; height: 2.75rem; justify-content: center; width: 2.75rem; }
.menu-toggle:hover, .menu-toggle:focus-visible, .drawer-close:hover, .drawer-close:focus-visible, .dropdown-toggle:hover, .dropdown-toggle:focus-visible { border-color: var(--bright-gold); color: var(--bright-gold); }
.menu-icon { display: block; height: 1.5rem; stroke-width: 2; width: 1.5rem; }
.site-navigation { background: var(--surface); bottom: 0; display: flex; flex-direction: column; max-width: 22.5rem; overflow-y: auto; padding: 1.25rem 1.25rem 1.5rem; position: fixed; right: 0; top: 0; transform: translateX(105%); visibility: hidden; width: 85%; z-index: 10; }
.drawer-open { overflow: hidden; }
.drawer-open .site-navigation { transform: none; visibility: visible; }
.drawer-overlay { background: rgba(0, 0, 0, .7); border: 0; display: none; inset: 0; position: fixed; z-index: 9; }
.drawer-open .drawer-overlay { display: block; }
.drawer-heading { align-items: center; border-bottom: var(--border); display: flex; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 1rem; }
.drawer-heading p { font-family: var(--heading-font); font-size: 1.125rem; }
.drawer-close { background: none; border: var(--border); border-radius: var(--radius); color: var(--cream); cursor: pointer; font-size: 1.5rem; height: 2.75rem; line-height: 1; width: 2.75rem; }
.nav-menu { display: flex; flex-direction: column; gap: .25rem; }
.nav-link { align-items: center; color: var(--cream); display: flex; font-size: 1.0625rem; font-weight: 500; gap: .75rem; padding: .75rem; position: relative; text-decoration: none; width: 100%; }
.nav-link:hover, .nav-link:focus-visible { color: var(--bright-gold); }
/* the bar under the current page; in the drawer the label starts after padding + icon + gap (.75 + 1.25 + .75 = 2.75rem) */
.nav-link::after { background: var(--bright-gold); bottom: .25rem; content: ""; height: 2px; left: 2.75rem; opacity: 0; position: absolute; transform: scaleX(0); transform-origin: left; width: 1.5rem; }
.nav-link:hover::after, .nav-link:focus-visible::after { opacity: .5; transform: none; }
.nav-link[aria-current]::after { opacity: 1; transform: none; }
.nav-icon { height: 1.25rem; width: 1.25rem; }
/* Events is a link plus a separate toggle button, so the page stays reachable and the menu opens on its own */
.nav-dropdown { align-items: center; display: flex; flex-wrap: wrap; }
.nav-dropdown > .nav-link { flex: 1; width: auto; }
.dropdown-toggle { align-items: center; background: none; border: var(--border); border-radius: var(--radius); color: var(--cream); cursor: pointer; display: flex; height: 2.75rem; justify-content: center; width: 2.75rem; }
.chevron { height: .75rem; width: .75rem; }
.dropdown-open .chevron { transform: rotate(180deg); }
.dropdown-menu { display: none; flex-basis: 100%; padding-left: 2.75rem; }
.dropdown-open > .dropdown-menu { display: block; }
.dropdown-menu a { border-radius: var(--radius); color: var(--muted-cream); display: block; padding: .5rem .75rem; text-decoration: none; }
.dropdown-menu a:hover, .dropdown-menu a:focus-visible, .dropdown-menu a[aria-current] { color: var(--bright-gold); }
.nav-join { margin-top: .75rem; }
.nav-join .button { display: block; text-align: center; }
.drawer-motto { color: var(--muted-cream); font-family: var(--heading-font); font-size: .875rem; margin-top: auto; padding-top: 1.5rem; }

/* hero */
/* main already grows to fill the screen (flex: 1); centering the hero inside it never clips, because main is at least as tall as its content */
.home-main { display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; }
.hero-row { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 2.5rem; }
/* bases 18rem : 22rem and grow 9 : 11 keep a 45% / 55% split; the row wraps when both bases no longer fit */
.hero-text { display: flex; flex: 9 1 18rem; flex-direction: column; gap: 1.5rem; }
/* "To Be Young," is about 6.5em wide in Libre Baskerville, so this size fits the 45% text column */
.hero-text h1 { font-size: clamp(2rem, 4.6vw - .25rem, 3.25rem); letter-spacing: -.02em; line-height: 1.1; }
.motto-line { display: block; }
.hero-lead { color: var(--muted-cream); font-size: 1.125rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.photo-collage { align-items: center; display: flex; flex: 11 1 22rem; gap: 1rem; margin: 0 auto; max-width: 34rem; }
.collage-photo { flex: 1; }
/* each panel shows a different slice of the 1338px-wide photo: left x 0-410, center 508-887, right 882-1292 (stops before the white light) */
.collage-photo img { aspect-ratio: 1 / 2; border: var(--border); border-radius: var(--radius); max-width: 1338px; object-fit: cover; object-position: 0% 50%; width: 100%; }
.collage-center { flex: 1.3; }
.collage-center img { aspect-ratio: 6 / 13; object-position: 53% 50%; }
.collage-right img { object-position: 95% 50%; }

/* page sections */
.page-title { margin-bottom: 2.5rem; }
.breadcrumb ol { align-items: center; border-bottom: var(--border); display: flex; flex-wrap: wrap; font-size: .875rem; gap: .75rem; padding: .75rem 0; }
/* the separator is a rotated border box, so screen readers don't read out a "›" character */
.breadcrumb li + li::before { border-right: 1px solid var(--muted-cream); border-top: 1px solid var(--muted-cream); content: ""; display: inline-block; height: .375rem; margin-right: .75rem; transform: rotate(45deg); width: .375rem; }
.breadcrumb a { color: var(--muted-cream); text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { text-decoration: underline; }
.focus-list { counter-reset: focus; display: flex; flex-wrap: wrap; gap: 2rem 3rem; list-style: none; margin: 0; padding: 0; }
/* with 20rem bases two items fit side by side on wide screens but never three, so the four form a 2 x 2 block */
.focus-list li { counter-increment: focus; flex: 1 1 20rem; }
.focus-list li::before { color: var(--bright-gold); content: "0" counter(focus); display: block; font-size: .875rem; font-weight: 700; letter-spacing: .08em; margin-bottom: .5rem; }
blockquote { border-left: var(--border); font-size: 1.125rem; line-height: 1.7; margin: 0; max-width: 65ch; padding-left: 1.5rem; }
/* text beside a photo placeholder; the row wraps to one column when both bases no longer fit */
.text-photo-row { align-items: center; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; width: 100%; }
.text-photo-row p { flex: 1 1 20rem; }
/* a 1.25rem column gap lets four 14rem cards fit the 960px frame, so the eight cards form two even rows */
.board-list { display: flex; flex-wrap: wrap; gap: 2.5rem 1.25rem; }
.board-card { display: flex; flex: 0 1 14rem; flex-direction: column; gap: .25rem; position: relative; }
.board-card img { aspect-ratio: 4 / 5; border: var(--border); border-radius: var(--radius); margin-bottom: .75rem; max-width: 480px; object-fit: cover; width: 100%; }
.board-role, .story-meta { color: var(--muted-cream); font-size: .875rem; }
.board-bio { font-size: .875rem; }
.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted-cream); max-width: none; padding: 1.5rem; width: 100%; }
.story-list { align-items: flex-start; display: flex; flex-direction: column; gap: 2.5rem; }
.story-card { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; }
.story-image-link { border: var(--border); border-radius: var(--radius); display: block; flex: 0 1 16rem; overflow: hidden; }
/* max-width is each file's real width: event flyers are 1080px, accomplishment graphics 958px */
.story-image-link img { max-width: 1080px; width: 100%; }
.accomplishment-image img { max-width: 958px; }
.story-text { align-items: flex-start; display: flex; flex: 1 1 18rem; flex-direction: column; gap: .75rem; }
/* links to the event-year pages: three across on wide screens, stacking on phones */
.year-list { display: flex; flex-wrap: wrap; gap: 1rem; width: 100%; }
.year-card { background: var(--surface); border: var(--border); border-radius: var(--radius); color: var(--cream); display: flex; flex: 1 1 14rem; flex-direction: column; gap: .5rem; padding: 1.25rem; text-decoration: none; }
.year-card:hover, .year-card:focus-visible { border-color: var(--bright-gold); }
.year-card-link { color: var(--bright-gold); font-size: .875rem; font-weight: 700; margin-top: auto; padding-top: .5rem; }
/* labeled stand-ins for photos that have not been exported yet; 3 : 2 for group and event photos (240px wide at most), 6 : 1 for wide banners; 9.5rem bases keep two across on a 375px screen */
.photo-grid { display: flex; flex-wrap: wrap; gap: 1rem; width: 100%; }
.photo-placeholder { align-items: center; aspect-ratio: 3 / 2; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted-cream); display: flex; flex: 1 1 9.5rem; flex-direction: column; font-size: .875rem; gap: .5rem; justify-content: center; max-width: 15rem; padding: 1rem; text-align: center; }
.photo-placeholder svg { height: 2rem; opacity: .8; width: 2rem; }
.text-photo-row .photo-placeholder { flex: 1 1 16rem; max-width: 20rem; }
/* banners sit alone in a column section, so they must not take a flex-basis there */
.photo-banner { aspect-ratio: 6 / 1; flex: none; max-width: none; min-height: 5.5rem; width: 100%; }

/* buttons */
.button { border: 1px solid transparent; border-radius: var(--radius); display: inline-block; font-weight: 700; padding: .75rem 1.25rem; text-decoration: none; white-space: nowrap; }
.button-gold { background: var(--bright-gold); color: var(--black); }
.button-gold:hover, .button-gold:focus-visible { background: var(--cream); color: var(--black); }
.button-dark { border-color: var(--bright-gold); color: var(--bright-gold); }
.button-dark:hover, .button-dark:focus-visible { background: var(--bright-gold); color: var(--black); }

/* effects: hover and focus states for interactive things (motion is in the reduced-motion query) */
.story-image-link:hover, .story-image-link:focus-visible { border-color: var(--bright-gold); }
.story-image-link:hover img, .story-image-link:focus-visible img { opacity: .85; }

/* footer */
.site-footer { border-top: var(--border); padding: 1.25rem 0; }
.footer-inner { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
.footer-copyright { color: var(--muted-cream); font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-links a { align-items: center; color: var(--muted-cream); display: flex; font-size: .875rem; gap: .375rem; min-height: 1.75rem; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--bright-gold); }
/* all four footer icons are filled shapes, so they skip the global outline-icon stroke */
.footer-links svg { fill: currentColor; height: 1.25rem; stroke: none; width: 1.25rem; }

/* media queries */
/* measured on macOS: nav 597px (five links, a toggle, Join button) + logo 99px + 2rem gap + two 1.25rem gutters = 768px (48em); 50em leaves 32px for wider system fonts on other platforms */
@media (min-width: 50em) {
  .site-logo img { height: 44px; }
  .menu-toggle, .drawer-heading, .nav-icon, .drawer-motto { display: none; }
  .site-navigation { background: none; max-width: none; overflow-y: visible; padding: 0; position: static; transform: none; visibility: visible; width: auto; }
  .nav-menu { align-items: center; flex-direction: row; gap: .125rem; }
  .nav-link { font-size: .9375rem; gap: .5rem; padding: .5rem .75rem; width: auto; }
  .nav-link::after { bottom: 0; left: .75rem; right: .75rem; width: auto; }
  .nav-dropdown { position: relative; }
  /* the toggle sits against the Events label, so the pair reads as one item */
  .dropdown-toggle { border: 0; height: auto; margin-left: -.5rem; padding: .5rem .5rem; width: auto; }
  .dropdown-menu { background: var(--surface); border: var(--border); border-radius: var(--radius); box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .5); left: 0; min-width: 13rem; padding: .5rem; position: absolute; top: calc(100% + .5rem); z-index: 3; }
  .nav-join { margin: 0 0 0 .5rem; }
  .nav-join .button { padding: .5rem 1rem; }
}

/* devices with a mouse: the bio becomes an overlay on the photo, shown on hover or keyboard focus */
@media (hover: hover) {
  /* same size as the 4/5 photo; the scrim is solid from halfway down so the text stays readable on any headshot */
  .board-bio { align-items: flex-end; aspect-ratio: 4 / 5; background: linear-gradient(rgba(21, 17, 10, 0), rgba(21, 17, 10, .92) 50%); border-radius: var(--radius); display: flex; inset: 0 0 auto; opacity: 0; padding: 1rem; position: absolute; }
  .board-card:hover .board-bio, .board-card:focus-within .board-bio { opacity: 1; }
}

/* motion only for people who have not asked the system to reduce it */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @keyframes dropdown-in { from { opacity: 0; transform: translateY(-.25rem); } }
  a, .button, .menu-toggle, .drawer-close, .dropdown-toggle, .year-card { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
  .nav-link::after { transition: opacity .2s ease, transform .2s ease; }
  .dropdown-open > .dropdown-menu { animation: dropdown-in .15s ease; }
  /* hide the drawer only after it has slid out; show it at once so focus can move into it */
  .site-navigation { transition: transform .3s ease, visibility 0s .3s; }
  .drawer-open .site-navigation { transition: transform .3s ease; }
  .chevron { transition: transform .2s ease; }
  .board-bio, .story-image-link img { transition: opacity .2s ease; }
  .js .reveal-on-scroll { opacity: 0; transform: translateY(.625rem); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal-on-scroll.is-visible { opacity: 1; transform: none; }
}
