/* Cascade Thunderbirds — site styles
   Palette: fir, slate, river, mist, paper, ember. Type: Newsreader (text), Public Sans (interface). */

:root {
  --fir: #1d3b33;
  --fir-deep: #132a24;
  --slate: #3d5561;
  --river: #6f97ab;
  --mist: #e4ebe9;
  --paper: #f6f8f7;
  --ink: #1a2224;
  --muted: #55636a;
  --ember: #b8862b;
  --line: #cfd9d6;
  --todo-bg: #fff6dc;
  --todo-line: #d9a628;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.1875rem;   /* 19px body, generous for older readers */
  --step-1: 1.45rem;
  --step-2: 1.9rem;
  --step-3: 2.6rem;
  --step-4: clamp(2.6rem, 5vw + 1rem, 4.4rem);

  --measure: 68ch;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fir); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--slate); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--fir-deep); }
h1 { font-size: var(--step-4); font-weight: 400; }
h2 { font-size: var(--step-3); font-weight: 400; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--slate); max-width: 40ch; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow > * { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--fir); color: #fff; padding: 10px 16px; z-index: 100; font-family: var(--sans); }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--fir); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-size: 0.78rem; color: #bcd0cb; letter-spacing: 0.01em; }
.brand:hover { color: #fff; }

.nav { font-family: var(--sans); font-size: 0.98rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { color: #e9f0ee; text-decoration: none; padding: 10px 12px; border-radius: var(--radius); display: block; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,0.1); color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ember); }
.nav .cta { background: var(--ember); color: #1a1406; font-weight: 600; margin-left: 8px; }
.nav .cta:hover { background: #cf9a37; color: #1a1406; }
.menu-btn { display: none; font: 600 0.95rem var(--sans); background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: var(--radius); padding: 9px 14px; cursor: pointer; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--fir-deep); display: none; padding: 8px var(--gutter) 20px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav .cta { margin: 12px 0 0; text-align: center; }
}

/* ---------- Sections ---------- */
main { display: block; padding-bottom: clamp(48px, 8vw, 96px); }
main:has(> .dark:last-child) { padding-bottom: 0; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section + .section { padding-top: 0; }
.band { background: var(--mist); }
.band + .section, .section + .band { padding-top: clamp(48px, 8vw, 96px); }
.dark { background: var(--fir); color: #e7efec; }
.dark h2, .dark h3 { color: #fff; }
.dark a { color: #fff; }

.page-head { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 64px); }
.crumbs { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

.cols { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 860px) { .cols.two { grid-template-columns: 1.2fr 1fr; } .cols.split { grid-template-columns: 1fr 1fr; } }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(44px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .years { display: block; font-size: 0.42em; font-family: var(--sans); font-weight: 500; letter-spacing: 0.02em; color: var(--slate); margin-top: 14px; }
.print { background: #fff; padding: 12px 12px 14px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(19,42,36,0.55); transform: rotate(1.2deg); max-width: 460px; justify-self: center; }
.print img { width: 100%; aspect-ratio: 6 / 4.8; object-fit: cover; background: var(--mist); }
.print figcaption { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); padding-top: 10px; }

.tasks { display: grid; gap: 12px; margin-top: 28px; max-width: 560px; }
@media (min-width: 560px) { .tasks { grid-template-columns: repeat(3, 1fr); } }
.task { font-family: var(--sans); display: block; text-decoration: none; padding: 16px 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); line-height: 1.3; }
.task strong { display: block; font-size: 1.02rem; color: var(--fir-deep); margin-bottom: 4px; }
.task span { font-size: 0.86rem; color: var(--muted); }
.task:hover { border-color: var(--fir); color: var(--ink); }
.task.primary { background: var(--fir); border-color: var(--fir); }
.task.primary strong { color: #fff; }
.task.primary span { color: #bcd0cb; }

/* ---------- The river timeline (signature element) ---------- */
.river { position: relative; list-style: none; margin: 0; padding: 0; }
.river li { position: relative; }
.river .yr { font-family: var(--sans); font-weight: 700; color: var(--slate); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.river h3 { margin: 4px 0 6px; }
.river p { font-size: 1.02rem; color: var(--muted); margin: 0; }
.river .era-cascade .yr { color: var(--fir); }

/* compact horizontal version on the home page */
.river.flow { display: grid; gap: 28px; padding-top: 44px; }
.river.flow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14 C 30 2, 60 2, 90 14 S 150 26, 180 14 S 230 4, 240 14' fill='none' stroke='%236f97ab' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: 240px 28px;
}
.river.flow li::before { content: ""; position: absolute; top: -37px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--fir); }
@media (min-width: 760px) { .river.flow { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .river.flow { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1079px) { .river.flow::before { display: none; } .river.flow { padding-top: 0; } .river.flow li::before { display: none; } .river.flow li { padding-left: 18px; border-left: 3px solid var(--river); } }

/* full vertical version on the story page */
.river.full { padding-left: 46px; }
.river.full::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 240' preserveAspectRatio='none'%3E%3Cpath d='M14 0 C 2 30, 2 60, 14 90 S 26 150, 14 180 S 4 230, 14 240' fill='none' stroke='%236f97ab' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-y;
  background-size: 28px 240px;
}
.river.full li { padding-bottom: 40px; }
.river.full li::before { content: ""; position: absolute; left: -46px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--fir); }
.river.full .era-cascade::before { background: var(--fir); }
.river.full p { max-width: 60ch; }

/* ---------- Lists of links ---------- */
.linklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a { display: grid; gap: 2px; padding: 18px 4px; text-decoration: none; color: var(--ink); }
.linklist a strong { font-family: var(--sans); font-size: 1.05rem; color: var(--fir-deep); font-weight: 600; }
.linklist a span { font-size: 1rem; color: var(--muted); }
.linklist a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ext::after { content: " ↗"; font-family: var(--sans); font-size: 0.85em; color: var(--muted); }

/* "I need to" service rows */
.service { display: grid; gap: 8px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .service { grid-template-columns: 260px 1fr; } }
.service h3 { margin: 0; }
.service p { margin-bottom: 0.6em; }

.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 13px 20px; border-radius: var(--radius); background: var(--fir); color: #fff; border: 2px solid var(--fir); cursor: pointer; }
.btn:hover { background: var(--fir-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--fir); }
.btn.ghost:hover { background: var(--fir); color: #fff; }
.btn.gold { background: var(--ember); border-color: var(--ember); color: #1a1406; }
.dark .btn.ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Facts ---------- */
.facts { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); margin: 0; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { border-top: 3px solid var(--fir); padding-top: 12px; }
.facts dt { font-family: var(--serif); font-size: var(--step-3); line-height: 1; color: var(--fir-deep); }
.facts dd { margin: 8px 0 0; font-family: var(--sans); font-size: 0.92rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.album-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; font-family: var(--sans); }
.album-nav a { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.95rem; background: #fff; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.grid button:focus-visible { outline: 3px solid var(--ember); outline-offset: -3px; }
.grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.grid figcaption { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); padding: 10px 12px 12px; line-height: 1.35; }
.grid figcaption a { font-weight: 600; }

.lightbox { position: fixed; inset: 0; background: rgba(12,20,18,0.92); display: none; place-items: center; z-index: 100; padding: 56px 16px 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox p { color: #dfe8e5; font-family: var(--sans); font-size: 0.95rem; text-align: center; margin: 14px auto 0; }
.lightbox button { position: absolute; font: 600 1rem var(--sans); color: #fff; background: rgba(255,255,255,0.12); border: 0; border-radius: var(--radius); padding: 12px 16px; cursor: pointer; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; }
.lightbox .lb-next { right: 12px; top: 50%; }

/* ---------- Class years ---------- */
.decades { display: grid; gap: 28px; }
.decade h3 { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.years-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.years-list a { display: block; font-family: var(--sans); font-variant-numeric: tabular-nums; text-decoration: none; padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 0.98rem; }
.years-list a:hover { border-color: var(--fir); background: var(--mist); }
.years-list .cascade a { border-color: var(--river); }

/* ---------- Memorial ---------- */
.memorial { border-left: 3px solid var(--ember); padding: 4px 0 4px 24px; margin-bottom: 40px; }
.memorial .dates { font-family: var(--sans); color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }

/* ---------- Forms ---------- */
form.share { display: grid; gap: 20px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, fieldset legend { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--fir-deep); }
.field .hint { font-family: var(--sans); font-size: 0.88rem; color: var(--muted); margin: 0; }
input[type=text], input[type=email], input[type=url], input[type=number], select, textarea {
  font: 1.05rem var(--sans); color: var(--ink); background: #fff; border: 1px solid #a9b8b4; border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
input:focus, select, textarea:focus { border-color: var(--fir); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 18px; margin: 0; }
.choices { display: grid; gap: 10px; margin-top: 8px; font-family: var(--sans); font-size: 1rem; }
.choices label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.choices input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--fir); }
.hp { position: absolute !important; left: -9999px !important; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- Notes and placeholders ---------- */
.note { font-family: var(--sans); font-size: 0.95rem; background: var(--mist); border-radius: var(--radius); padding: 16px 18px; max-width: var(--measure); }
.todo { display: block; background: var(--todo-bg); border: 2px dashed var(--todo-line); border-radius: var(--radius); padding: 12px 14px; font-family: var(--sans); font-size: 0.95rem; color: #5b4300; margin: 0 0 1em; max-width: var(--measure); }
.todo::before { content: "To fill in: "; font-weight: 700; }
span.todo { display: inline; padding: 1px 6px; margin: 0; border-width: 1px; }
span.todo::before { content: ""; }

/* ---------- Footer ---------- */
.site-footer { background: var(--fir-deep); color: #c6d4d0; font-family: var(--sans); font-size: 0.95rem; padding-block: 56px 32px; }
.site-footer .wrap { display: grid; gap: 32px; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: #fff; margin: 0 0 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #e2ebe8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { max-width: 36ch; }
.footer-brand { display: flex; gap: 12px; align-items: center; color: #fff; font-family: var(--serif); font-size: 1.25rem; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.site-footer .colophon { max-width: none; grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.85rem; color: #9fb3ad; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .site-footer, .lightbox { display: none; } body { background: #fff; } }

/* Photos placed inside page text */
.inline-photo { margin: 8px 0 32px; }
.inline-photo img { width: 100%; border-radius: var(--radius); background: var(--mist); }
.inline-photo figcaption { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); padding-top: 8px; }
.album > p { color: var(--muted); }
.grid img { object-position: 50% 22%; }
.album-nav + .album { padding-top: 8px; }

/* Wide items like newspaper spreads: show the whole page instead of cropping */
@media (min-width: 560px) { .grid figure.wide { grid-column: span 2; } }
.grid figure.wide img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.grid { grid-auto-flow: dense; }

/* Memorial portrait beside the name */
.memorial-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.memorial-head img { width: 132px; height: 160px; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius); flex: none; }
.memorial-head h2 { margin-bottom: 0.2em; }
.memorial-head .dates { margin: 0; }
.memorial h3 { margin-top: 1.4em; }
.memorial-drawing { max-width: 320px; }

/* Faculty and staff */
#cascade h3, #columbia h3 { margin-top: 40px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; }
@media (min-width: 860px) { .people { grid-template-columns: 1fr 1fr; } }
.people li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.people img, .people .ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; flex: none; background: var(--mist); }
.people .ph { display: block; }
.people strong { font-family: var(--sans); font-size: 1.02rem; color: var(--fir-deep); }
.people .yrs { font-family: var(--sans); font-size: 0.88rem; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.people p { margin: 2px 0 0; font-size: 1rem; color: var(--muted); line-height: 1.45; }
.roll-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; }
.roll-wrap summary { cursor: pointer; padding: 14px 18px; font-family: var(--sans); font-weight: 600; color: var(--fir-deep); }
.roll { list-style: none; margin: 0; padding: 4px 18px 18px; columns: 4 180px; column-gap: 24px; font-family: var(--sans); font-size: 0.92rem; line-height: 1.7; color: var(--ink); }
.roll li { break-inside: avoid; }
.grid figure.art img { object-fit: contain; background: #fff; padding: 12px; }
