/* HistoryShowcase marketing pages. Text pairings meet WCAG 2.2 AA (4.5:1) on their surfaces:
   ink 15.1, ink-soft 8.4, ink-muted 5.8 and brass 6.1 on paper; night-text 13.7,
   night-muted 8.9 and gold 8.9 on night; paper on the green button 12.1. */
@font-face { font-family: "Fraunces"; src: url("/assets/fraunces-semibold-474e5f101535.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/inter-latin-3100e775e861.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f1e8;
  --paper-deep: #ece4d4;
  --surface: #fffdf8;
  --ink: #1f1c17;
  --ink-soft: #4b453b;
  --ink-muted: #665d4f;
  --brass: #7a5214;
  --rule: #d8ccb6;
  --green: #1f3a33;
  --green-hover: #2a4a41;
  --night: #14241f;
  --night-text: #f3ecdf;
  --night-muted: #c9bfac;
  --gold: #e2bb6c;
  --focus: #0b57b0;
  --focus-inverse: #f2c66d;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --radius: 0.375rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* `anywhere` changes nothing while text fits. It only lets a word longer than its column break
   instead of widening the column, so 320 px screens, enlarged text and custom spacing never clip copy. */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; text-rendering: optimizeLegibility; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible, main:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 10; padding: 0.75rem 1rem; background: var(--surface); color: var(--ink); font-weight: 600; border-radius: var(--radius); transform: translateY(-200%); }
.skip-link:focus { transform: none; box-shadow: 0 0.5rem 1.5rem rgb(20 36 31 / 0.2); }
.eyebrow { color: var(--brass); font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; }

/* Buttons and links */
.button { display: inline-flex; max-width: 100%; align-items: center; justify-content: center; text-align: center; gap: 0.5rem; min-height: 3rem; padding: 0.75rem 1.4rem; border: 1px solid var(--green); border-radius: var(--radius); background: var(--green); color: var(--surface); font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.button:hover { background: var(--green-hover); border-color: var(--green-hover); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 2.75rem; padding: 0.55rem 1rem; font-size: 0.9375rem; }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--ink-muted); }
.button-quiet:hover { background: var(--paper-deep); border-color: var(--ink); }
.button-light { background: var(--night-text); color: var(--night); border-color: var(--night-text); }
.button-light:hover { background: var(--surface); border-color: var(--surface); }
.button-outline-light { background: transparent; color: var(--night-text); border-color: var(--night-muted); }
.button-outline-light:hover { background: rgb(243 236 223 / 0.1); border-color: var(--night-text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; background: var(--green); }
.brand-mark svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-name span { color: var(--brass); }
.brand-inverse { color: var(--night-text); }
.brand-inverse .brand-name span { color: var(--gold); }
.brand-inverse .brand-mark { background: var(--night-text); }
.brand-inverse .brand-mark svg { stroke: var(--green); }

/* Header */
.site-header { position: relative; z-index: 5; background: rgb(246 241 232 / 0.94); border-bottom: 1px solid var(--rule); backdrop-filter: blur(10px); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2rem; min-height: 4.5rem; }
.header-nav { margin-left: auto; }
.header-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.header-nav a, .header-signin { display: inline-flex; white-space: nowrap; align-items: center; min-height: 2.75rem; color: var(--ink-soft); font-size: 0.9375rem; font-weight: 550; text-decoration: none; }
.header-nav a:hover, .header-signin:hover { color: var(--ink); text-decoration: underline; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); background:
  radial-gradient(60rem 30rem at 85% 0%, rgb(226 187 108 / 0.22), transparent 70%),
  linear-gradient(180deg, var(--paper) 0%, #f3ecdf 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 6vw, 5rem); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
.lede { max-width: 36rem; color: var(--ink-soft); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.hero-note { color: var(--ink-muted); font-size: 0.9375rem; }

/* Synthetic touchscreen preview */
.hero-figure { margin: 0 1.25rem 0 0; display: grid; gap: 2.75rem; }
.hero-figure figcaption { max-width: 30rem; color: var(--ink-muted); font-size: 0.875rem; }
.device { position: relative; padding: 0.8rem; border-radius: 1.4rem; background: linear-gradient(145deg, #2b2a27, #0f0f0e); box-shadow: 0 2.5rem 4rem -1.5rem rgb(20 36 31 / 0.45), inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.screen { display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; aspect-ratio: 16 / 10.5; padding: 1rem 1.1rem 1.1rem; border-radius: 0.8rem; overflow: hidden; color: var(--night-text); background:
  radial-gradient(28rem 16rem at 20% 10%, rgb(226 187 108 / 0.25), transparent 70%),
  linear-gradient(160deg, #1d3a32 0%, #12201c 70%); }
.screen-bar { display: flex; align-items: center; gap: 0.55rem; font-size: 0.6875rem; }
.screen-crest { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--gold); color: var(--night); font-weight: 700; font-size: 0.625rem; }
.screen-school { font-weight: 600; letter-spacing: 0.02em; }
.screen-nav { display: flex; gap: 0.9rem; margin-left: auto; color: var(--night-muted); }
.screen-nav span:first-child { color: var(--night-text); }
.screen-hero { display: grid; align-content: center; gap: 0.35rem; }
.screen-kicker { color: var(--gold); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.screen-title { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.05; }
.screen-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; }
.tile { display: grid; align-content: end; gap: 0.1rem; min-height: 5.2rem; padding: 0.55rem; border-radius: 0.45rem; font-size: 0.6875rem; line-height: 1.2; box-shadow: inset 0 -3rem 2.5rem -1rem rgb(0 0 0 / 0.55); }
.tile b { font-weight: 650; }
.tile small { color: var(--night-muted); font-size: 0.5625rem; }
.tile-athletics { background: repeating-linear-gradient(115deg, rgb(255 255 255 / 0.05) 0 0.25rem, transparent 0.25rem 0.75rem), linear-gradient(160deg, #6d4b23, #2b2016); }
.tile-alumni { background: radial-gradient(circle at 72% 28%, rgb(243 236 223 / 0.35) 0 0.85rem, transparent 0.9rem), linear-gradient(160deg, #4a5a63, #1d2529); }
.tile-history { background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 0.5rem), linear-gradient(160deg, #7a6a4c, #2f281c); filter: sepia(0.35); }
.tile-donors { background: radial-gradient(circle at 70% 30%, rgb(226 187 108 / 0.55) 0 0.6rem, transparent 0.65rem), linear-gradient(160deg, #3b4f3f, #18221b); }
.profile-card { position: absolute; right: -1.25rem; bottom: -1.75rem; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.8rem; width: min(17rem, 62%); padding: 0.9rem; border-radius: 0.75rem; background: var(--surface); color: var(--ink); box-shadow: 0 1.5rem 3rem -1rem rgb(20 36 31 / 0.45); border: 1px solid var(--rule); }
.profile-portrait { grid-row: span 2; display: grid; place-items: center; width: 3.25rem; height: 4rem; border-radius: 0.35rem; background: linear-gradient(180deg, #b9a888, #6f6047); color: var(--surface); font-family: var(--font-display); font-size: 1.1rem; filter: sepia(0.3); }
.profile-meta { display: grid; line-height: 1.25; }
.profile-meta b { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.profile-meta small { color: var(--ink-muted); font-size: 0.6875rem; }
.profile-lines { display: grid; gap: 0.3rem; align-self: start; }
.profile-lines i { display: block; height: 0.3rem; border-radius: 1rem; background: var(--paper-deep); }
.profile-lines i:nth-child(2) { width: 85%; }
.profile-lines i:nth-child(3) { width: 60%; }

/* Statement band */
.statement { background: var(--night); color: var(--night-text); }
.statement-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
.statement h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
.statement p { color: var(--night-muted); font-size: 1.125rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tinted { background: var(--paper-deep); border-block: 1px solid var(--rule); }
.section-heading { display: grid; gap: 0.9rem; max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-heading h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.section-heading p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.125rem; }
.section h3 { font-size: 1.375rem; }

.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.showcase-grid li { display: grid; align-content: start; gap: 0.6rem; padding: 1.75rem 1.75rem 2rem 0; border-bottom: 1px solid var(--rule); }
.showcase-grid li:not(:nth-child(3n + 1)) { padding-left: 1.75rem; border-left: 1px solid var(--rule); }
.showcase-index { color: var(--brass); font-family: var(--font-display); font-size: 0.9375rem; }
.showcase-grid p, .feature-list p, .steps p, .faq-item p { color: var(--ink-soft); }

.features-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.features-layout .section-heading { position: sticky; top: 6.5rem; }
.feature-list { display: grid; gap: 0; }
.feature-list li { display: grid; gap: 0.5rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.feature-list li:last-child { border-bottom: 1px solid var(--rule); }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { position: relative; display: grid; align-content: start; gap: 0.6rem; padding-top: 3.75rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass); font-family: var(--font-display); font-size: 1.125rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.3rem; left: 3.35rem; right: -0.6rem; border-top: 1px solid var(--rule); }
.steps h3 { font-size: 1.1875rem; }

.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-list { display: grid; }
.faq-item { display: grid; gap: 0.5rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item h3 { font-size: 1.25rem; }
.faq-item a { color: var(--ink); font-weight: 600; }

/* Closing call to action */
.closing { background: var(--night); color: var(--night-text); text-align: center; }
.closing-inner { display: grid; justify-items: center; gap: 1.25rem; padding-block: clamp(3.5rem, 8vw, 6rem); }
.closing h2 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); }
.closing p { max-width: 34rem; color: var(--night-muted); font-size: 1.125rem; }
.closing .cta-row { justify-content: center; margin-top: 0.5rem; }
.closing a:focus-visible { outline-color: var(--focus-inverse); }

/* Not found */
.not-found { padding-block: clamp(4rem, 12vw, 9rem); }
.not-found-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; max-width: 42rem; }
.not-found h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.not-found p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.125rem; }

/* Footer */
.site-footer { background: #101c18; color: var(--night-text); border-top: 1px solid rgb(243 236 223 / 0.08); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: 3.5rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; max-width: 26rem; }
.footer-brand p { color: var(--night-muted); font-size: 0.9375rem; }
.site-footer h2 { margin-bottom: 0.75rem; color: var(--gold); font-family: var(--font-body); font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--night-text); font-size: 0.9375rem; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--focus-inverse); }

@media (max-width: 64rem) {
  .header-nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-grid, .statement-inner, .features-layout, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .features-layout .section-heading { position: static; }
  .hero-figure { max-width: 40rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-grid li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .showcase-grid li:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .header-inner { gap: 0 0.75rem; min-height: 4rem; }
  .brand-name { font-size: 1.125rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .header-actions { gap: 0 0.75rem; }
  .header-actions .button-small { padding-inline: 0.75rem; font-size: 0.875rem; }
  .hero-figure { margin-right: 0.75rem; }
  .screen { aspect-ratio: auto; gap: 0.6rem; padding: 0.7rem 0.7rem 1.6rem; }
  .screen-nav { display: none; }
  .screen-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 3.4rem; }
  .profile-card { right: -0.75rem; bottom: -2.25rem; width: 68%; padding: 0.6rem; gap: 0.2rem 0.6rem; }
  .profile-portrait { width: 2.4rem; height: 3rem; font-size: 0.9rem; }
  .profile-lines { display: none; }
  .steps, .showcase-grid, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .showcase-grid li, .showcase-grid li:nth-child(2n) { padding-left: 0; border-left: 0; padding-right: 0; }
  .cta-row .button { width: 100%; }
}
@media (max-width: 30rem) {
  /* The hero's primary call to action sits directly below on phones. */
  .header-actions .button-small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
@media (forced-colors: active) {
  .button, .brand-mark { border: 1px solid ButtonText; }
}
