@font-face { font-family: Newsreader; src: url('/p5/fonts/newsreader.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: Newsreader; src: url('/assets/fonts/newsreader-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: Manrope; src: url('/assets/fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --paper: #c1b7a2; --paper-hi: #cbc2ae; --paper-lo: #b3a892;
  --ink: #26221f; --ink-2: #4a423b; --ink-3: #6d6258;
  --slate: #2b2a28; --label: #cdc4b8; --label-2: #9d948a;
  --terra: #c46b45; --terra-d: #9c4f31;
  --serif: Newsreader, 'Iowan Old Style', Georgia, serif; --sans: Manrope, system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper) url('/p5/assets/paper.webp'); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terra-d); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; font-family: var(--sans); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.paper { min-width: 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.paper-head { position: relative; display: flex; justify-content: center; padding: clamp(36px, 6vh, 60px) var(--gutter) 0; padding-top: max(clamp(36px, 6vh, 60px), env(safe-area-inset-top)); }
.burger { position: absolute; left: var(--gutter); top: max(clamp(36px, 6vh, 60px), env(safe-area-inset-top)); width: 48px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px 4px; display: grid; place-items: center; border-radius: 8px; }
.bars { display: grid; gap: 7px; width: 40px; }
.bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.burger:hover .bars i:nth-child(2) { transform: translateX(6px); }
.index-mobile { display: none; }
.index-mobile svg, .search-field svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.brand { text-align: center; text-decoration: none; display: grid; justify-items: center; }
.brand-name { font-size: clamp(40px, 4.25vw, 66px); font-weight: 500; letter-spacing: .015em; line-height: 1; font-variation-settings: 'opsz' 72; }
.brand-line { font-size: clamp(17px, 1.72vw, 26px); margin-top: .35em; color: var(--ink-2); }

main { flex: 1; padding: 0 var(--gutter); outline: none; }
.archive-hero { padding-top: clamp(48px, 10vh, 118px); }
.kicker { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
h1 { font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 5.2vw, 90px); line-height: .94; letter-spacing: -.005em; margin: 0; font-variation-settings: 'opsz' 72; }
#arch-num, #arch-name { display: block; }
.lede { margin: clamp(28px, 5vh, 52px) 0 0 24%; max-width: 22.5em; font-size: clamp(19px, 1.86vw, 28px); line-height: 1.23; color: var(--ink); }
.plate { margin: clamp(30px, 5.5vh, 58px) 0 0 24%; width: min(48vw * .96, 100% - 24%); max-width: 640px; }
.plate-frame { position: relative; aspect-ratio: 1400 / 1225; overflow: hidden; background: #8f857a; box-shadow: 0 1px 0 rgba(255,255,255,.35), 0 18px 40px -22px rgba(30,20,10,.55); }
.plate-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); transform: scale(1.03); }
.plate-frame img.is-shown { opacity: 1; transform: none; }
.plate figcaption { display: flex; justify-content: space-between; gap: 12px; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); padding-top: 10px; text-transform: uppercase; }
.entry { margin: 46px 0 0 24%; padding: 26px 28px 24px; background: rgba(255,250,240,.26); border-top: 1px solid rgba(38,34,31,.25); max-width: 40em; }
.entry h2 { font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; margin: 0 0 6px; }
.entry-line { font-style: italic; color: var(--ink-2); margin: 0 0 14px; font-size: 20px; }
.entry p { margin: 0 0 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.text-link svg, .steps svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.notes, .entries, .steps, .concept-note { margin-left: 24%; }
.notes { margin-top: 62px; }
section h2, .notes h2 { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.entry h2 { font-family: var(--serif); color: var(--ink); letter-spacing: 0; text-transform: none; font-weight: 400; }
dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 22px; border-top: 1px solid rgba(38,34,31,.22); max-width: 40em; }
dl div { padding: 12px 12px 12px 0; border-bottom: 1px solid rgba(38,34,31,.22); }
dt { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
dd { margin: 2px 0 0; font-size: 19px; }
.body { max-width: 34em; font-size: 19px; color: var(--ink-2); }
.entries { margin-top: 54px; }
.entry-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 40em; }
.entry-grid a { display: grid; gap: 4px; text-decoration: none; padding: 8px; margin: -8px; border-radius: 4px; transition: background .2s; }
.entry-grid a:hover, .entry-grid a[aria-current='true'] { background: rgba(255,250,240,.3); }
.entry-grid img { width: 100%; aspect-ratio: 1400 / 1225; object-fit: cover; background: #8f857a; margin-bottom: 6px; }
.e-name { font-size: 22px; line-height: 1.1; }
.e-line { font-size: 15px; color: var(--ink-3); line-height: 1.35; }
.entry-grid a[aria-current='true'] .e-name::after { content: ' ·'; color: var(--terra-d); }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 60px; max-width: 40em; }
.steps a { display: grid; gap: 2px; text-decoration: none; border-top: 1px solid rgba(38,34,31,.35); padding-top: 12px; font-size: 19px; line-height: 1.2; }
.steps a:last-child { text-align: right; justify-items: end; }
.steps small { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.steps svg { justify-self: end; margin-top: 4px; }
.concept-note { margin-top: 60px; max-width: 34em; color: var(--ink-2); font-size: 17px; padding-bottom: 40px; }
.fallback-archives { margin: 40px 0 0 24%; max-width: 40em; }
.js .fallback-archives { display: none; }
html:not(.js) .js-only { display: none !important; }
.fallback-archives h2 { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 30px; color: var(--ink); font-weight: 400; margin-top: 50px; }
.paper-foot { display: flex; justify-content: space-between; gap: 16px; padding: 22px var(--gutter) 28px; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); border-top: 1px solid rgba(38,34,31,.18); margin-top: 20px; }

/* ---------- the strata ---------- */
.strata { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--slate) url('/p5/assets/slate.webp') center / cover; color: var(--label); touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; isolation: isolate; cursor: grab; }
.strata.is-dragging { cursor: grabbing; }
.strata::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 46% 50%, transparent 55%, rgba(0,0,0,.42)); z-index: 3; }
.strata:focus-visible { box-shadow: inset 0 0 0 2px rgba(243,214,195,.7); }
.strata-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; transition: opacity .6s; z-index: 0; }
.strata.is-live .strata-poster { opacity: 0; }
#strata-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.aperture-glass { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(140deg, rgba(240,232,222,.2), rgba(200,190,178,.07)); -webkit-backdrop-filter: blur(7px) saturate(1.12) brightness(1.12); backdrop-filter: blur(7px) saturate(1.12) brightness(1.12); transition: opacity .35s ease; }
.strata-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.aperture { transition: opacity .35s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.is-turning .aperture, .is-turning ~ .aperture-glass { opacity: 0; }
.strata.is-turning .aperture-glass { opacity: 0; }
.aperture.is-entering { transform: rotate(-14deg); opacity: 0; }
.ap-seg { pointer-events: auto; cursor: pointer; }
.ap-seg path { fill: rgba(255,248,240,0); stroke: rgba(255,248,240,.3); stroke-width: 1; transition: fill .25s; }
.ap-seg:hover path, .ap-seg:focus-visible path { fill: rgba(255,248,240,.12); }
.ap-seg[aria-current='true'] path { fill: rgba(214,128,86,.42); stroke: rgba(255,226,206,.9); stroke-width: 1.5; }
.ap-seg[aria-current='true'] .ap-text { font-weight: 600; fill: #fff6ee; }
.ap-seg:focus-visible { outline: none; }
.ap-seg:focus-visible path { stroke: #f6dccb; stroke-width: 2; }
.ap-text { fill: #f4ece2; font-family: var(--serif); font-variation-settings: 'opsz' 24; paint-order: stroke; stroke: rgba(40,30,24,.25); stroke-width: .6px; }
.ap-band path { fill: rgba(120,100,84,.18); stroke: rgba(255,248,240,.22); }
.ap-band-text { fill: #f2e8de; font-family: var(--serif); letter-spacing: .04em; font-variation-settings: 'opsz' 24; }
.orbit { transition: opacity .35s; }
.orbit path, .orbit line { fill: none; stroke: rgba(226,216,204,.7); stroke-width: 1.2; }
.orbit .orbit-handle { fill: #e8ddd0; stroke: rgba(40,30,24,.5); stroke-width: 1; pointer-events: auto; cursor: grab; }
.orbit text, .depth text { fill: rgba(222,212,200,.85); font-family: var(--sans); font-size: 12px; }
.orbit .handle-ring { fill: none; stroke: rgba(232,221,208,.35); stroke-width: 1; }
.gear-hits { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.gear-hit { position: absolute; left: 0; top: 0; border: 0; padding: 0; background: transparent; border-radius: 50%; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gear-hit[data-current='true'] { cursor: grab; }
.gear-hit:focus-visible { outline: 2px dashed rgba(246,220,203,.85); outline-offset: -6%; }
.hint { position: absolute; left: 5%; margin: 0; z-index: 6; display: flex; align-items: center; gap: 18px; font-family: var(--sans); font-size: clamp(11px, 1.05vw, 15px); letter-spacing: .07em; line-height: 1.32; text-transform: uppercase; color: var(--label); pointer-events: none; }
.hint-top { top: max(4.5%, env(safe-area-inset-top)); }
.hint-bottom { bottom: max(4.5%, env(safe-area-inset-bottom)); }
.updown { width: 12px; height: 52px; fill: none; stroke: var(--label); stroke-width: 1.4; }
.aperture-label { position: absolute; margin: 0; z-index: 6; text-align: right; font-family: var(--sans); font-size: clamp(11px, 1vw, 14px); line-height: 1.35; color: var(--label); pointer-events: none; transition: opacity .35s; }
.is-turning .aperture-label { opacity: .35; }
.burger-light { left: auto; right: 4.5%; color: var(--label); z-index: 7; }
.depth { position: absolute; z-index: 6; right: 0; top: 0; width: 90px; height: 100%; cursor: ns-resize; outline: none; }
.depth svg { width: 100%; height: 100%; overflow: visible; }
.depth line { stroke: rgba(222,212,200,.55); stroke-width: 1; }
.depth line.major { stroke: rgba(232,222,210,.9); }
.depth .track { stroke: rgba(222,212,200,.25); stroke-width: 3; stroke-linecap: round; }
.depth .thumb { stroke: rgba(240,230,218,.9); stroke-width: 3; stroke-linecap: round; }
.depth:focus-visible .thumb { stroke: #f6dccb; stroke-width: 5; }
.depth-label { position: absolute; right: 4%; bottom: 7%; margin: 0; z-index: 6; text-align: right; font-family: var(--sans); font-size: clamp(11px, 1.05vw, 15px); line-height: 1.3; color: var(--label); pointer-events: none; }
.strata-steps { position: absolute; z-index: 7; right: calc(4% + 0px); bottom: calc(7% + 54px); display: grid; gap: 6px; }
.strata-steps button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(222,212,200,.4); background: rgba(30,28,26,.45); color: var(--label); display: grid; place-items: center; cursor: pointer; }
.strata-steps svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (hover: hover) and (pointer: fine) {
  .strata-steps { clip-path: inset(50%); }
  .strata-steps:focus-within { clip-path: none; }
}
.nojs-note { position: absolute; left: 5%; bottom: 14%; z-index: 6; max-width: 18em; font-family: var(--sans); font-size: 13px; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: clamp(28px, 5vw, 52px); width: min(620px, 92vw); max-height: 86vh; background: var(--paper) url('/p5/assets/paper.webp'); color: var(--ink); border-radius: 4px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
dialog::backdrop { background: rgba(24,20,17,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog[open] { animation: rise .35s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.dialog-close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.dialog-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; color: var(--ink-3); margin: 0 0 6px; }
dialog h2 { font-weight: 400; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; margin: 0 0 22px; }
.menu-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(38,34,31,.25); }
.menu-list a { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; padding: 13px 0; border-bottom: 1px solid rgba(38,34,31,.25); text-decoration: none; }
.menu-list small { font-family: var(--sans); font-size: 12px; color: var(--ink-3); padding-top: 7px; grid-row: span 2; }
.menu-list span { font-size: 25px; line-height: 1.1; }
.menu-list em { font-size: 15px; color: var(--ink-3); }
.menu-list a:hover span, .menu-list a[aria-current='true'] span { color: var(--terra-d); }
.menu-foot { font-size: 15px; color: var(--ink-3); margin: 18px 0 0; }
.search-field { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); padding: 6px 0 10px; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-field input { flex: 1; -webkit-appearance: none; appearance: none; border: 0; background: none; font: inherit; font-size: 22px; color: var(--ink); outline: none; min-width: 0; }
.search-status { font-family: var(--sans); font-size: 12px; color: var(--ink-3); min-height: 1.2em; }
.index-list h3 { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 6px; font-weight: 600; }
.index-list ul { list-style: none; margin: 0; padding: 0; }
.index-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(38,34,31,.16); text-decoration: none; font-size: 19px; }
.index-list a small { font-family: var(--sans); font-size: 12px; color: var(--ink-3); align-self: center; text-align: right; }
.index-list a:hover { color: var(--terra-d); }

/* ---------- phones and narrow tablets ---------- */
@media (max-width: 899px) {
  .split { display: flex; flex-direction: column; }
  .paper { display: contents; }
  .paper-head { order: 1; padding-bottom: 22px; }
  .strata { order: 2; position: relative; height: min(122vw, 760px); }
  main { order: 3; }
  .paper-foot { order: 4; }
  .index-mobile { display: grid; left: auto; right: var(--gutter); }
  .burger-light { display: none; }
  .archive-hero { padding-top: 34px; }
  .lede, .plate, .entry, .notes, .entries, .steps, .concept-note, .fallback-archives { margin-left: 0; }
  .plate { width: 100%; }
  .entry { padding: 20px 18px; }
  .hint-bottom { display: none; }
  .hint { left: 5%; top: 4%; font-size: 11px; }
  .depth { width: 64px; }
  .depth-label { bottom: 4%; font-size: 11px; }
  .strata-steps { right: 3.5%; bottom: calc(4% + 40px); }
  .aperture-label { display: none; }
  .brand-line { font-size: 15px; }
  .paper-head { padding-left: 58px; padding-right: 58px; }
  .brand-name { font-size: clamp(28px, 7.7vw, 44px); white-space: nowrap; }
  .burger { top: max(26px, env(safe-area-inset-top)); left: 10px; }
  .burger.index-mobile { left: auto; right: 10px; }
  .strata-steps { left: 5%; right: auto; bottom: 4%; grid-auto-flow: column; }
}
@media (max-width: 420px) {
  .entry-grid { gap: 14px; }
  .e-name { font-size: 19px; }
  .steps { grid-template-columns: 1fr; }
  .steps a:last-child { text-align: left; justify-items: start; }
  dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .plate-frame img { transform: none; }
}
@media (forced-colors: active) {
  .ap-seg path { stroke: CanvasText; }
  .gear-hit { border: 1px solid CanvasText; }
}
