:root {
  color-scheme: dark;
  --page: #121614;
  --surface: #1a201c;
  --deep: #101411;
  --cream: #f0eadb;
  --muted: #bcb9a7;
  --gold: #dfbd7e;
  --ink: #231d15;
  --line: #41473b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body {
  margin: 0;
  color: var(--cream);
  background: radial-gradient(ellipse at 82% 4%, #263129 0, var(--page) 42rem);
  font: 1rem/1.58 var(--sans);
}
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
img { display: block; max-width: 100%; }
figure, blockquote { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.06; }
.shell { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip-link {
  position: fixed; inset: .5rem auto auto .5rem; z-index: 3;
  padding: .6rem 1rem; background: var(--gold); color: var(--ink); transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: #121614b8; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 74px; }
.wordmark {
  display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0;
  font: 700 1.3rem/1 var(--serif); text-decoration: none;
}
.mark {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border: 1px solid #8c7651; color: var(--gold); font: 800 .77rem/1 var(--sans);
  letter-spacing: .09em;
}
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3rem); }
nav a { color: var(--muted); font-size: .88rem; text-decoration: none; }
nav a:hover, .quiet-link:hover, footer a:hover { color: var(--cream); }
.button {
  min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: .65rem 1.1rem; border: 1px solid #847555; color: var(--gold);
  font-size: .88rem; font-weight: 750; white-space: nowrap; text-decoration: none;
}
.button:hover { background: #2f3428; }
.button-small { min-height: 39px; }
.button-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.button-primary:hover { background: #f3d79e; border-color: #f3d79e; }
.hero {
  display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: center;
  gap: clamp(30px, 5vw, 84px); padding-block: clamp(50px, 8vw, 108px) clamp(46px, 6vw, 80px);
}
.eyebrow, .feature-number, .frame-label, .frame-caption, .letter-heading {
  color: var(--gold); font-size: .73rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.25rem; }
.signal { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #cf8f6e; box-shadow: 0 0 12px #cf8f6e88; }
h1 { font-size: clamp(4.1rem, 8.2vw, 8.3rem); letter-spacing: -.075em; }
h1 em { color: var(--gold); font-weight: inherit; }
.hero-intro { margin-top: 1.55rem; color: var(--muted); max-width: 38ch; font-size: clamp(1rem, 1.45vw, 1.13rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .95rem 1.35rem; margin-top: 1.75rem; }
.quiet-link { color: var(--muted); font-weight: 650; font-size: .88rem; }
.quiet-link span { margin-inline-start: .2rem; color: var(--gold); }
.microcopy { color: var(--muted); margin-top: .9rem; font-size: .78rem; }
.hero-frame {
  position: relative; isolation: isolate; aspect-ratio: 1.29; overflow: hidden;
  min-width: 0; border: 1px solid #726248; background: #252b23;
}
.school-art, .hero-shade { position: absolute; width: 100%; height: 100%; inset: 0; }
.school-art { object-fit: cover; object-position: 55% 50%; }
.hero-shade { background: linear-gradient(180deg, #11140da8, transparent 27%, transparent 42%, #101510d9 83%, #101510f5); }
.frame-label {
  position: absolute; top: 1rem; left: 1rem; padding: .35rem .55rem;
  border: 1px solid #b29e72; color: #f2d69f; background: #171a12df;
}
.frame-label span { margin-inline: .25rem; }
.title-art {
  position: absolute; left: 5%; bottom: 9%; width: min(64%, 365px); height: auto;
  object-fit: contain; filter: drop-shadow(0 4px 12px #080a07e6);
}
.frame-caption {
  position: absolute; display: flex; justify-content: space-between; gap: .5rem;
  left: 5%; right: 5%; bottom: 4%; color: #efe0bb; font-size: .57rem;
}
.dossier {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line);
}
.dossier div { display: grid; gap: .35rem; padding: 1rem clamp(.65rem, 2vw, 1.45rem); }
.dossier div + div { border-inline-start: 1px solid var(--line); }
.dossier strong { font: 600 clamp(2rem, 4vw, 3.15rem)/1 var(--serif); color: var(--gold); }
.dossier span { color: var(--muted); font-size: .8rem; }
.section { padding-top: clamp(64px, 9vw, 126px); }
.section h2, .final-section h2 { font-size: clamp(2.45rem, 5vw, 5.4rem); letter-spacing: -.055em; }
.section p:not(.eyebrow) { color: var(--muted); }
.ordinal { color: var(--gold); font-variant-numeric: tabular-nums; padding-inline-end: .65rem; border-inline-end: 1px solid #806c46; }
.story, .controls-section, .faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 6vw, 5rem); align-items: start; }
.story h2 + p, .controls-section h2 + p { margin-top: 1.1rem; max-width: 49ch; }
.letter {
  position: relative; display: grid; align-content: center; gap: .9rem; overflow: hidden;
  background: linear-gradient(155deg, #312c20, #222219); border: 1px solid #776849;
  min-height: 255px; padding: 1.8rem clamp(1.35rem, 5vw, 3rem);
}
.section .letter p { position: relative; z-index: 1; color: var(--cream); font: italic 500 clamp(1.7rem, 3.6vw, 3.15rem)/1.25 var(--serif); }
.letter-mark { position: absolute; bottom: -1.5rem; right: 1.1rem; font: 700 9rem/1 var(--serif); color: #e2bc7415; transform: rotate(-10deg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem 3rem; margin-bottom: 1.9rem; }
.section-heading > p { max-width: 36ch; }
.features, .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.feature { padding: clamp(1rem, 2.4vw, 1.7rem); border: 1px solid var(--line); background: var(--surface); }
.feature-number { display: block; margin-bottom: 1.5rem; font-size: .65rem; }
.feature h3 { font-size: clamp(1.5rem, 2.75vw, 2.2rem); margin-bottom: .55rem; }
.feature p { font-size: .95rem; }
.gallery figure { border: 1px solid var(--line); background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery figcaption { display: flex; gap: .7rem; padding: .75rem 1rem; font-size: .87rem; }
.gallery figcaption span { color: var(--gold); font-variant-numeric: tabular-nums; }
.controls-heading { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.controls-intro { margin-block: .65rem 1rem; font-size: .92rem; }
.controls-list { margin: 0; border-top: 1px solid var(--line); }
.controls-list div { display: grid; grid-template-columns: minmax(8rem, .75fr) minmax(0, 1.25fr); align-items: center; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.controls-list dt { display: flex; flex-wrap: wrap; gap: .25rem; }
.controls-list dd { margin: 0; color: var(--muted); font-size: .92rem; }
kbd { display: inline-block; padding: .1rem .4rem; border: 1px solid #665f4c; border-radius: 3px; color: var(--cream); background: #272a22; font: 650 .76rem/1.45 var(--sans); white-space: nowrap; }
.faq details { border-bottom: 1px solid var(--line); padding-block: .75rem; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; padding-block: .25rem; }
.faq summary::marker { color: var(--gold); }
.faq details p { padding: .45rem 0 .35rem 1rem; font-size: .93rem; }
.final-section {
  margin-top: clamp(65px, 9vw, 128px); margin-bottom: clamp(40px, 6vw, 70px);
  display: flex; align-items: end; justify-content: space-between; gap: 1.4rem;
  padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid #796847; background: #25291f;
}
.final-section h2 { max-width: 16ch; font-size: clamp(2rem, 4.5vw, 4.3rem); }
.site-footer { border-top: 1px solid var(--line); background: var(--deep); }
.footer-inner { padding-block: 1.15rem; color: var(--muted); font-size: .82rem; }
@media (any-pointer: coarse) {
  .button-small { min-height: 44px; }
}
@media (max-width: 920px) {
  .shell { width: calc(100% - 48px); }
  .hero { gap: 28px; }
  h1 { font-size: clamp(3.7rem, 9vw, 6rem); }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 63px; flex-wrap: wrap; padding-block: .7rem; gap: .65rem; }
  .header-inner nav { order: 3; width: 100%; justify-content: start; gap: .9rem 1.55rem; }
  .hero, .story, .controls-section, .faq { grid-template-columns: 1fr; }
  .hero { padding-top: 2.3rem; }
  h1 { font-size: clamp(4.2rem, 14vw, 6.5rem); }
  .hero-frame { aspect-ratio: 1.4; }
  .section-heading { flex-direction: column; align-items: start; }
  .features, .gallery { grid-template-columns: 1fr; }
  .feature-number { margin-bottom: .85rem; }
  .final-section { align-items: start; flex-direction: column; }
}
@media (max-width: 375px) {
  .shell { width: calc(100% - 28px); }
  .dossier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dossier div:nth-child(3) { border-inline-start: 0; }
  .dossier div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .frame-caption { font-size: .52rem; }
}
