@font-face {
  font-family: "STIX Two Text";
  src: url("/assets/stix-two-text.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f1e7;
  --ink: #252720;
  --muted: #57574c;
  --rule: #c9c2b3;
  --strong-rule: #8d8776;
  --accent: #8d4029;
  --water: #13282e;
  --serif: "STIX Two Text", Georgia, serif;
  --sans: Inter, sans-serif;
  --small: .875rem;
  --body: 1.155rem;
  --heading: clamp(2.125rem, 4.25vw, 4.25rem);
  --gutter: clamp(1.25rem, 4vw, 4.75rem);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; }
a:hover { color: var(--accent); }
:is(a, button, input):focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; max-inline-size: 100%; }
section[id] { scroll-margin-top: 1.5rem; }
.frame { width: min(100% - 2 * var(--gutter), 91rem); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: .5rem; left: .5rem; padding: .75rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.masthead {
  min-height: 4.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--strong-rule);
}
.brand { display: inline-flex; gap: .8rem; align-items: center; width: fit-content; text-decoration: none; }
.brand span { font-weight: 650; font-size: 1.16rem; letter-spacing: .065em; }
.brand img { object-fit: contain; }
.masthead nav { display: flex; gap: clamp(.65rem, 2.6vw, 2.65rem); }
.masthead nav a { font: 520 var(--small)/1.5 var(--sans); padding-block: .55rem; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; text-underline-offset: .3em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 32%) minmax(0, 68%);
  align-items: center;
  min-height: clamp(28rem, 41vw, 38rem);
  gap: 0;
  padding-block: 1rem 1.5rem;
}
.intro { position: relative; z-index: 1; align-self: center; }
h1 {
  font-size: clamp(4.4rem, 8.15vw, 8rem);
  letter-spacing: -.055em;
  line-height: .84;
  font-weight: 470;
  margin: 0 0 1.75rem -.045em;
}
.attribution { font-size: clamp(1.28rem, 1.9vw, 1.8rem); font-weight: 590; line-height: 1.1; }
.subtitle { font: 450 var(--small)/1.6 var(--sans); color: var(--muted); margin-top: .35rem; }
.standfirst {
  display: grid;
  gap: .9rem;
  max-width: 25ch;
  margin-block: 1.18rem 1rem;
  font-size: var(--body);
  line-height: 1.32;
}
.standfirst::before { content: ""; width: 2rem; height: 2px; background: var(--accent); }
.text-link {
  color: var(--accent);
  font: 590 var(--small)/1.5 var(--sans);
  text-underline-offset: .3em;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}
.text-link:hover { text-decoration-color: currentColor; }

.model { min-width: 0; margin-left: clamp(-.65rem, -1.7vw, 0rem); }
.model-stage {
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  aspect-ratio: 16 / 9;
}
.mountain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.annotations { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }
.annotations path { fill: none; stroke: #605344; stroke-width: 1; }
.annotations circle { fill: var(--paper); stroke: #483c2f; }
.annotations text { font: 500 15px var(--serif); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
.annotations g:not(:first-child) text { text-anchor: middle; }
.island { position: absolute; top: 0; right: 3%; width: min(16%, 9rem); color: #655e4d; }
.island path { fill: #ded8c7; stroke: currentColor; stroke-width: .75; }
.island .island-massif { fill: #959a7e; }
.island .island-leader { fill: none; }
.island text { fill: currentColor; font: 14px var(--serif); }
.model-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  margin-top: .75rem;
  padding-top: .68rem;
  font: 450 var(--small)/1.45 var(--sans);
  color: var(--muted);
}
.model-caption strong, .plate strong { font-weight: 650; color: var(--ink); }
.caption-dot { padding-inline: .25em; }
.model-canvas { position: absolute; inset: 0; visibility: hidden; }
.model-canvas canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y pinch-zoom; }
.model-canvas canvas:active { cursor: grabbing; }
.model-stage.has-live-model .mountain { visibility: hidden; }
.model-stage.has-live-model :is(.model-canvas, .annotations) { visibility: visible; }
.model-stage.has-live-model .island { z-index: 1; pointer-events: none; }
.model-open, .model-controls button {
  min-height: 2.75rem;
  border: 1px solid var(--strong-rule);
  background: transparent;
  color: var(--ink);
  font: 580 var(--small)/1.2 var(--sans);
  padding: .45rem .75rem;
  cursor: pointer;
}
.model-open { border-color: var(--accent); background: var(--accent); color: var(--paper); }
.model-open:hover { background: #743420; }
.model-open span, .model-spin span { margin-right: .3em; }
.model button:is(:disabled, [aria-disabled="true"]) { opacity: .62; cursor: default; }
.model-controls:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1.2rem;
  margin-top: .65rem;
}
.model-controls button { border-color: transparent; font-family: var(--serif); font-size: 1rem; font-weight: 500; }
.model-views { display: flex; border-bottom: 1px solid var(--rule); }
.model-views button + button { margin-left: -1px; }
.model-controls button:hover:not(:disabled) { background: #e9e2d4; }
.model-controls button[aria-pressed="true"] { box-shadow: inset 0 -2px var(--accent); }
.model-spin[aria-pressed="true"] span { font-size: 0; }
.model-spin[aria-pressed="true"] span::after { content: "Ⅱ"; font-size: 1rem; }
.model-source { color: var(--accent); text-underline-offset: .24em; }
.model-note { margin-top: .35rem; color: var(--muted); font: italic var(--small)/1.4 var(--serif); }
.relief-source { margin-bottom: 1rem; }
.relief-source summary { cursor: pointer; color: var(--accent); }
.relief-source p { margin-block: .75rem; }
.relief-source summary:focus-visible { outline: 2px solid currentColor; }
.model-angle { display: flex; align-items: center; gap: .6rem; flex: 1 1 13rem; font: 530 var(--small)/1.4 var(--sans); }
.model-angle input { width: 100%; min-height: 2.75rem; margin: 0; accent-color: var(--accent); }
.model-status { margin-top: .5rem; color: var(--muted); font: 450 var(--small)/1.4 var(--sans); }
.model-status:empty { margin: 0; }

.works { padding: clamp(1.2rem, 2.5vw, 2.3rem) 0 clamp(2.7rem, 6vw, 5.5rem); border-top: 1px solid var(--strong-rule); }
h2 { font-size: var(--heading); font-weight: 580; line-height: .99; letter-spacing: -.05em; }
.section-heading { display: flex; gap: .6rem 1.5rem; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.work-list, .sources { list-style: none; padding: 0; margin: 0; }
.work-list li {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(0, 3.6fr) minmax(0, 2.1fr) max-content;
  align-items: baseline;
  column-gap: clamp(.6rem, 2vw, 2rem);
  padding-block: .94rem;
  border-top: 1px solid var(--rule);
}
.work-list li:last-child { border-bottom: 1px solid var(--rule); }
.work-discipline, .work-detail { font: 450 var(--small)/1.35 var(--sans); color: var(--muted); }
.work-title { font-size: var(--body); font-weight: 620; text-decoration: none; }
.work-title:hover { text-decoration: underline; text-underline-offset: .21em; }
.work-pdf { justify-self: end; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5.5vw, 6.5rem);
  align-items: center;
  border-top: 1px solid var(--strong-rule);
  padding-block: clamp(2.6rem, 6vw, 6.25rem);
}
.feature-copy h2 { margin-bottom: 1.25rem; }
.feature-copy p, .closing p { color: var(--muted); max-width: 44ch; font-size: var(--body); line-height: 1.55; }
.feature-copy p + p { margin-top: .65rem; }
.feature-copy .text-link, .closing .text-link { display: inline-block; margin-top: 1.3rem; }
.plate img { width: 100%; height: auto; }
.plate figcaption {
  border-top: 1px solid var(--rule);
  padding-top: .6rem;
  margin-top: .7rem;
  padding-inline: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  justify-content: space-between;
  color: var(--muted);
  font: 450 var(--small)/1.4 var(--sans);
}
.specimen { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.specimen-plate img { width: min(100%, 29rem); margin-inline: auto; mix-blend-mode: multiply; }
.deep { --ink: #f7f1e1; --muted: #d3dbd5; --accent: #f4ac80; --rule: #547078; background: var(--water); color: var(--ink); }
.deep .feature { border-top: 0; }
.deep .plate img { max-height: 29rem; object-fit: contain; object-position: center bottom; }
.closing { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 5.5rem); padding-block: clamp(2.6rem, 6vw, 6rem); }
.closing h2 { margin-bottom: 1.3rem; }
.sources li { border-top: 1px solid var(--rule); }
.sources li:last-child { border-bottom: 1px solid var(--rule); }
.sources a { display: flex; padding: .66rem 0; gap: .75rem; justify-content: space-between; font-size: var(--body); text-decoration: none; line-height: 1.25; }
.sources a:hover { text-decoration: underline; text-underline-offset: .25em; }
.sources a span { flex: none; color: var(--accent); font: 560 var(--small)/1.5 var(--sans); }
.footer { border-top: 1px solid var(--strong-rule); }
.footer-brand { display: flex; flex-direction: column; gap: .5rem; padding: 1.65rem 0; margin-inline: auto; }
.footer-line { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; border-top: 1px solid var(--rule); padding: .85rem 0 1.2rem; font: 450 var(--small)/1.5 var(--sans); color: var(--muted); }

@media (min-width: 65rem) {
  .hero { background: radial-gradient(ellipse at 65% 59%, #ece6d77d, transparent 69%); }
}

@media (max-width: 54rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  h1 { max-width: 100%; line-height: .87; width: fit-content; }
  .standfirst { max-width: 36ch; }
  .model { margin-left: 0; }
}

@media (max-width: 42rem) {
  .masthead { align-items: flex-start; flex-direction: column; gap: .35rem; padding-top: .65rem; }
  .masthead nav { width: 100%; column-gap: .7rem; row-gap: 0; justify-content: space-between; flex-wrap: wrap; }
  .masthead nav a { padding-block: .55rem .7rem; }
  .brand img { width: 3.3rem; height: auto; }
  .hero { min-height: 0; gap: .75rem; }
  .intro { display: contents; }
  h1 { font-size: clamp(2.7rem, 12vw, 4.7rem); margin-bottom: 1rem; }
  .intro h1 { margin-bottom: 0; }
  .intro .subtitle { margin-top: -.5rem; }
  .model { order: 1; }
  .intro .standfirst { order: 2; margin-block: .5rem 0; }
  .intro .text-link { order: 3; }
  .model-stage { aspect-ratio: 1.55; }
  .island { width: 18%; right: 0; }
  .model-caption { font-size: var(--small); }
  .model-open { order: -1; }
  .work-list li { grid-template-columns: minmax(0, 1fr) auto; row-gap: .15rem; }
  .work-discipline { grid-column: 1 / -1; }
  .work-detail { display: none; }
  .feature, .closing { grid-template-columns: minmax(0, 1fr); }
  .specimen .feature-copy { grid-row: 1; }
  .footer-brand img { width: 7.5rem; }
}
