
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-100-900-62-125.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Recursive"; src: url("/assets/fonts/recursive-300-1000.woff2") format("woff2"); font-weight: 300 1000; font-display: swap; }

:root {
  --paper: #e5eddb;
  --paper-lift: #edf3e5;
  --plate-paper: #f6f9f1;
  --grid: rgba(51, 93, 57, .11);
  --print: #335d39;
  --print-soft: rgba(51, 93, 57, .42);
  --graphite: #232824;
  --body: #363c37;
  --muted: #4d554e;
  --red: #b8342a;
  --red-deep: #6f1b14;
  --binding: #2c3a2c;
  --binding-edge: #1f2a1f;
  --binding-ink: #e5eddb;
  --binding-soft: #b9c9ad;
  --chip: #a99f8a;
  --chip-edge: #7c7462;
  --chip-ink: #1b1c18;
  --chip-body: #24231d;
  --screen: #1d211e;
  --gutter: clamp(16px, 4vw, 48px);
  --margin-col: 120px;
  --hand: "Recursive", "Archivo", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: auto; scroll-padding-top: 76px; scrollbar-color: var(--print) var(--paper); }
body {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red); color: var(--paper); }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; color: var(--graphite); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--graphite); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }
.skip:hover { color: var(--paper); }

/* Two voices: printed Archivo for headings and forms, hand-lettered Recursive only for annotations */
.hand { font-family: var(--hand); font-variation-settings: "CASL" 1; }
.label { font-family: "Archivo", sans-serif; font-stretch: 72%; font-weight: 650; font-size: 12.5px; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase; color: var(--print); }
.printed { font-family: "Archivo", sans-serif; font-stretch: 84%; font-weight: 800; letter-spacing: -.02em; color: var(--graphite); }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tick path { fill: none; stroke: var(--print); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Binding strip: the glued top of the pad carries navigation */
.binding { position: sticky; top: 0; z-index: 30; background: var(--binding); color: var(--binding-ink); border-bottom: 3px solid var(--binding-edge); }
.binding :focus-visible { outline-color: var(--binding-ink); }
.binding .wrap { display: flex; align-items: center; gap: 28px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--hand); font-variation-settings: "CASL" 1; font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--binding-ink); }
.index { display: flex; gap: 22px; margin-right: auto; }
.index a { font-stretch: 75%; font-weight: 650; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; padding: 12px 0 10px; border-bottom: 1.5px solid transparent; }
.index a:hover, .index a[aria-current="true"] { color: var(--binding-ink); border-bottom-color: var(--binding-ink); }
.counter { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.counter .label { color: var(--binding-soft); }
.counter .hand { font-weight: 650; font-size: 16px; }
.binding .resume { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-stretch: 75%; font-weight: 700; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; border: 1.5px solid var(--binding-ink); padding: 0 12px; }
.binding .resume:hover { background: var(--binding-ink); color: var(--binding); }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--binding-ink); padding: 0 12px; font-stretch: 75%; font-weight: 700; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; min-height: 44px; }

/* Sheets */
.sheet { border-top: 2px dashed var(--print-soft); padding-bottom: 88px; }
.sheet:first-of-type { border-top: 0; }
.sheet-head { display: grid; grid-template-columns: 2.3fr 1.5fr 1.5fr .9fr; border: 1.5px solid var(--print); margin-top: 30px; background: var(--paper-lift); }
.sheet-head > div { padding: 7px 12px 9px; border-left: 1.5px solid var(--print); min-width: 0; }
.sheet-head > div:first-child { border-left: 0; }
.sheet-head .hand { display: block; margin-top: 3px; font-weight: 650; font-size: 17px; line-height: 1.3; color: var(--graphite); overflow-wrap: anywhere; }
.ruled { display: grid; grid-template-columns: var(--margin-col) minmax(0, 1fr); }
.ruled > .margin { border-right: 1.5px solid var(--print); padding: 4px 18px 0 0; text-align: right; }
.ruled > .content { padding-left: clamp(20px, 3vw, 44px); min-width: 0; }
.margin .hand { display: block; font-weight: 750; font-size: 19px; line-height: 1.15; color: var(--print); }
.margin .label { display: block; margin-top: 6px; }
.sheet-title { padding-top: 54px; margin-bottom: 40px; }
.sheet-title h2 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.02; }
.sheet-title p { margin-top: 14px; max-width: 58ch; color: var(--muted); }

/* Links drawn in print green; red is kept for measured results */
.pencil-link { display: inline-block; padding: 10px 0 9px; font-weight: 650; text-decoration: none; background: linear-gradient(var(--print), var(--print)) 0 calc(100% - 7px) / 100% 2px no-repeat; color: var(--graphite); }
.pencil-link:hover { color: var(--red); background-image: linear-gradient(var(--red), var(--red)); }

/* Sheet 1 */
.opening { padding-top: 48px; }
.opening-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 4.4vw, 64px); align-items: start; }
.statement h1 { font-size: clamp(52px, 5.8vw, 84px); line-height: 1.02; letter-spacing: -.03em; }
.statement h1 .line { display: block; }
.statement h1 .under { position: relative; display: inline-block; }
.statement h1 .under svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .22em; overflow: visible; }
.statement h1 .under path { fill: none; stroke: var(--print); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lede { margin-top: 26px; max-width: 42ch; font-size: 19.5px; line-height: 1.55; color: var(--body); }
.lede strong { color: var(--graphite); font-weight: 650; }
.current-focus { margin-top: 14px; max-width: 42ch; font-size: 17px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 20px; background: var(--graphite); color: var(--paper); text-decoration: none; font-stretch: 80%; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--graphite); transition: background .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { background: var(--print); border-color: var(--print); color: var(--paper); }
.avail { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 20px; font-size: 15px; }
.avail li { display: flex; align-items: center; gap: 8px; }
.avail .tick { width: 20px; height: 20px; }
.avail a { display: inline-flex; align-items: center; min-height: 44px; color: var(--graphite); }

/* Each piece of hero evidence is filed under one half of the headline */
.ev + .ev { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--print-soft); }
.ev-label { margin-bottom: 10px; }
.ev-label .hand { font-weight: 800; font-size: 21px; color: var(--print); }
.ev-label .label { display: block; margin-top: 4px; font-size: 13.5px; font-stretch: 84%; line-height: 1.5; letter-spacing: .01em; text-transform: none; }
.ev-source { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.ev-source a { font-weight: 650; color: var(--graphite); text-underline-offset: 3px; display: inline-block; padding: 6px 2px; }
.fig-frame { display: block; border: 1.5px solid var(--graphite); background: var(--plate-paper); padding: 8px; }
.fig-frame video { width: 100%; aspect-ratio: 1.54; object-fit: contain; background: var(--screen); color: var(--paper); }
.fig-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-top: 10px; }
.fig-caption p { color: var(--body); font-size: 16px; padding-top: 10px; }
.fig-caption p b { color: var(--graphite); font-weight: 650; }
.fig-caption .pencil-link { flex: none; font-size: 15px; }

/* Boxed answers: the only red on the page */
.answers { display: grid; gap: 22px; align-content: start; }
.answer { position: relative; display: block; padding: 14px 18px; text-decoration: none; color: var(--graphite); }
.answer .val { display: block; font-family: var(--hand); font-variation-settings: "CASL" 1; font-weight: 900; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; color: var(--graphite); font-variant-numeric: tabular-nums; }
.answer .what { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.answer .src { display: block; margin-top: 6px; }
.answer svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.answer path { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
a.answer:hover .val { color: var(--red); }
.pencil-ready .answer svg { transition: clip-path 1s var(--ease); clip-path: inset(-8px -8px -8px -8px); }
.pencil-ready .answer:not(.drawn) svg { clip-path: inset(-8px 100% -8px -8px); }
.pencil-ready .answer:nth-child(2) svg { transition-delay: .15s; }
.pencil-ready .answer:nth-child(3) svg { transition-delay: .3s; }
.hero-answers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-answers .answer { padding: 12px 14px; }
.hero-answers .val { font-size: clamp(22px, 1.9vw, 28px); white-space: nowrap; }
.hero-answers .what { font-size: 14px; line-height: 1.35; }

/* Sheet 2: entries */
.entry { padding: 8px 0 66px; }
.entry + .entry { border-top: 1px solid var(--print-soft); padding-top: 52px; }
.entry-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.entry h3 { font-size: clamp(30px, 3.1vw, 40px); line-height: 1.04; }
.entry h3 a { text-decoration: none; }
.entry .desc { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--graphite); max-width: 46ch; }
.entry-decision { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--print-soft); }
.entry-decision .label { font-size: 14px; font-stretch: 100%; letter-spacing: .01em; text-transform: none; }
.entry-decision p { margin-top: 6px; max-width: 46ch; font-size: 16px; line-height: 1.6; }
.stack { margin-top: 20px; }
.stack p { margin-top: 5px; font-size: 15px; color: var(--muted); }
.entry-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 12px; }
.entry-links .pencil-link { font-size: 15px; }
.notes { margin-top: 14px; border-top: 1px solid var(--print-soft); padding-top: 8px; }
.notes summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; font-stretch: 75%; font-weight: 700; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--print); }
.notes summary::-webkit-details-marker { display: none; }
.notes summary .icon { transition: transform .3s var(--ease); }
.notes[open] summary .icon { transform: rotate(45deg); }
.notes p { margin-top: 6px; font-size: 15.5px; color: var(--body); max-width: 62ch; }
.plate { border: 1.5px solid var(--graphite); background: var(--plate-paper); padding: 8px; }
.plate video, .plate img { width: 100%; aspect-ratio: 1.54; object-fit: cover; object-position: top center; background: var(--screen); color: var(--paper); }
.plate-cap { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.plate-cap .hand { font-weight: 750; color: var(--print); margin-right: 6px; }

/* Sheet 3: case studies */
.working { padding: 6px 0 64px; scroll-margin-top: 90px; }
.working + .working { border-top: 1px solid var(--print-soft); padding-top: 52px; }
.working-head { margin-bottom: 26px; }
.working-head h3 { font-size: clamp(28px, 2.9vw, 36px); line-height: 1.06; }
.working-head p { margin-top: 8px; }
.working-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: clamp(24px, 4vw, 64px); }
.steps { display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; }
.step .label { padding-top: 5px; }
.step p { max-width: 60ch; }
.properties { align-content: start; }
.properties .label { margin-bottom: 8px; }
.properties li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--print-soft); font-weight: 600; color: var(--graphite); }
.properties li svg { width: 18px; height: 18px; flex: none; }

/* Sheet 4: experience as a timeline with cross-references */
.timeline { border-top: 1.5px solid var(--print); }
.role-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 190px; gap: 8px 28px; padding: 22px 0 24px; border-bottom: 1px solid var(--print-soft); }
.role-row .when { font-family: var(--hand); font-variation-settings: "CASL" 1; font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--graphite); padding-top: 3px; }
.role-row h3 { font-size: 23px; line-height: 1.2; letter-spacing: -.01em; }
.role-row .org { margin-top: 2px; font-weight: 600; font-size: 15.5px; color: var(--muted); }
.role-row .gist { margin-top: 8px; max-width: 64ch; }
.role-row .ref { padding-top: 2px; text-align: right; }
.role-row .ref a { display: inline-block; padding: 8px 0; font-family: var(--hand); font-variation-settings: "CASL" 1; font-weight: 750; font-size: 16px; color: var(--print); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.role-row .ref a:hover { color: var(--red); }
.timeline-note { margin-top: 18px; color: var(--muted); }

/* Sheet 5: about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.about-copy { display: grid; gap: 18px; max-width: 64ch; font-size: 18px; line-height: 1.7; }
.about-copy b { color: var(--graphite); font-weight: 650; }
.about-intro { display: flow-root; }
.inventory { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.inventory h3 { font-stretch: 75%; font-weight: 700; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--print); padding-bottom: 6px; border-bottom: 1.5px solid var(--print); margin-bottom: 8px; }
.inventory li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 16px; color: var(--graphite); }
.inventory li svg { width: 16px; height: 16px; flex: none; }
.schooling { margin-top: 44px; grid-column: 1 / -1; }
.schooling table { width: 100%; border-collapse: collapse; }
.schooling th { text-align: left; padding: 0 16px 10px 0; border-bottom: 1.5px solid var(--print); }
.schooling td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--print-soft); vertical-align: top; }
.schooling td:first-child { font-weight: 650; color: var(--graphite); }

/* Back cover */
.cover { background-color: var(--chip); color: var(--chip-ink);  border-top: 3px solid var(--chip-edge); }
.cover :focus-visible { outline-color: var(--chip-ink); }
.cover .wrap { padding-top: clamp(64px, 9vw, 120px); padding-bottom: 40px; }
.cover h2 { color: var(--chip-ink); }
.cover h2 .lead { display: block; font-family: "Archivo", sans-serif; font-stretch: 84%; font-weight: 700; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.005em; line-height: 1.2; }
.cover h2 a { display: inline-block; margin-top: 14px; font-family: var(--hand); font-variation-settings: "CASL" 1; font-weight: 850; font-size: clamp(34px, 5.6vw, 76px); line-height: 1; letter-spacing: -.02em; text-decoration: none; background: linear-gradient(var(--chip-ink), var(--chip-ink)) 0 100% / 100% 3px no-repeat; padding-bottom: 8px; overflow-wrap: anywhere; }
.cover h2 a:hover { color: var(--red-deep); background-image: linear-gradient(var(--red-deep), var(--red-deep)); }
.cover .note { margin-top: 26px; max-width: 60ch; font-size: 19px; color: var(--chip-body); }
.cover .note + .note { margin-top: 10px; }
.cover-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cover-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--chip-ink); text-decoration: none; font-stretch: 80%; font-weight: 700; font-size: 14.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--chip-ink); }
.cover-links a:hover { background: var(--chip-ink); color: var(--chip); }
.colophon { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(64px, 8vw, 110px); padding-top: 12px; border-top: 1.5px solid rgba(27, 28, 24, .5); font-size: 14.5px; color: var(--chip-body); }
.colophon a { display: inline-block; padding: 12px 0; color: var(--chip-body); }

@media (max-width: 1080px) {
  .index { gap: 16px; }
  .counter .label { display: none; }
  .role-row { grid-template-columns: 150px minmax(0, 1fr) 150px; }
}
@media (max-width: 1080px) {
  :root { --margin-col: 76px; }
  .opening-grid, .entry-grid, .about-grid { grid-template-columns: 1fr; }
  .working-grid { display: flex; flex-direction: column; }
  .working-grid > .answers, .working-grid > .properties { order: -1; }
  .working-grid > .answers { display: flex; flex-wrap: wrap; gap: 10px; }
  .working-grid > .answers .answer { flex: 1 1 auto; padding: 10px 14px; }
  .working-grid > .answers .val { font-size: 26px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .index { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--binding); padding: 8px var(--gutter) 18px; border-bottom: 3px solid var(--binding-edge); }
  .index.is-open { display: flex; }
  .index a { padding: 12px 0; border-bottom: 1px solid rgba(229, 237, 219, .2); }
  .binding .wrap { gap: 10px; }
  .brand { margin-right: auto; }
  .counter { display: none; }
  .role-row { grid-template-columns: 1fr; gap: 4px; }
  .role-row .ref { text-align: left; }
}
@media (max-width: 680px) {
  :root { --margin-col: 0px; }
  body { font-size: 16px; }
  .ruled { grid-template-columns: 1fr; }
  .ruled > .margin { border-right: 0; text-align: left; padding: 0 0 10px; border-bottom: 1.5px solid var(--print); margin-bottom: 18px; display: flex; gap: 12px; align-items: baseline; }
  .ruled > .margin:empty { display: none; }
  .ruled > .content { padding-left: 0; }
  .margin .label { margin-top: 0; }
  .sheet-head { display: flex; justify-content: space-between; margin-top: 22px; }
  .sheet-head > div:not(:first-child):not(:last-child) { display: none; }
  .sheet-head > div:last-child { flex: none; }
  .sheet-head .hand { font-size: 16px; }
  .opening { padding-top: 28px; }
  .opening > .margin { display: none; }
  .statement .lede { margin-top: 20px; }
  .statement .actions { gap: 10px 18px; margin-top: 24px; }
  .sheet-title { padding-top: 36px; margin-bottom: 30px; }
  .step { grid-template-columns: 1fr; gap: 4px; }
  .hero-answers { grid-template-columns: 1fr 1fr; }
  .hero-answers .val { font-size: 24px; }
  .inventory { grid-template-columns: 1fr 1fr; }
  .lede { font-size: 18px; }
  .schooling thead { display: none; }
  .schooling table, .schooling tbody, .schooling tr, .schooling td { display: block; }
  .schooling tr { padding: 14px 0; border-bottom: 1px solid var(--print-soft); }
  .schooling td { border: 0; padding: 0 0 2px; }
  .binding .resume { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* The selected engineering journal is shared by every public route. */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #20271f;
  --paper-lift: #293227;
  --plate-paper: #dce3d3;
  --grid: rgba(166, 192, 150, .085);
  --print: #b1c9a0;
  --print-soft: rgba(177, 201, 160, .35);
  --graphite: #edf1e6;
  --body: #d0d8c8;
  --muted: #aebaa8;
  --red: #f18b77;
  --binding: #172016;
  --binding-edge: #10180f;
  --binding-ink: #edf1e6;
  --binding-soft: #bdccaf;
  --chip: #a99f8a;
  --screen-ink: #edf1e6;
}
:root { --screen-ink: #edf1e6; --photo-paper: #faf9f3; --photo-ink: #335d39; --photo-shadow: rgba(28, 37, 24, .24); }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea { font: inherit; caret-color: var(--red); }
button:disabled { opacity: .45; cursor: not-allowed; }
[hidden] { display: none !important; }
.anchor-alias { display: block; scroll-margin-top: 82px; }
.skip-link { position: fixed; top: 8px; left: var(--gutter); z-index: 100; padding: 10px 18px; background: var(--graphite); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.skip-link:hover { color: var(--paper); }
.index a[aria-current] { color: var(--binding-ink); border-bottom-color: currentColor; }
.binding .wrap { gap: 22px; }
.index { gap: 18px; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-toggle { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; background: none; color: var(--binding-ink); border: 1.5px solid var(--binding-soft); }
.theme-toggle:hover { background: var(--binding-ink); color: var(--binding); }
.theme-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .theme-icon-moon, html:not([data-theme="dark"]) .theme-icon-sun { display: none; }
.index .mobile-resume { display: none; }
.counter .hand { display: none; }
.sheet-head { grid-template-columns: minmax(0, 1fr) auto; }
.sheet-head > div:last-child { min-width: 110px; }
.sheet-head-opening { grid-template-columns: 1.25fr 1fr auto; }
.sheet-head > div { padding: 10px 16px 12px; }
.opening { grid-template-columns: 184px minmax(0, 1fr); }
.opening > .margin { padding: 8px 24px 0 0; }
.pinned-photo { position: relative; width: 156px; max-width: 100%; padding: 8px 8px 11px; background: var(--photo-paper); box-shadow: 2px 6px 14px var(--photo-shadow); transform: rotate(-4deg); }
.pinned-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pinned-photo figcaption { margin-top: 8px; font-family: var(--hand); font-variation-settings: "CASL" 1; font-size: 12.5px; line-height: 1.35; font-weight: 650; color: var(--photo-ink); text-align: center; }
.photo-pin { position: absolute; z-index: 1; width: 13px; height: 13px; top: -5px; left: calc(52% - 6px); border-radius: 50%; background: #b8342a; box-shadow: 1px 3px 3px rgba(33, 22, 17, .35); }
.photo-pin::before { content: ""; position: absolute; width: 3px; height: 3px; left: 3px; top: 2px; border-radius: 50%; background: #f1a197; }
.photo-pin::after { content: ""; position: absolute; width: 1px; height: 7px; left: 8px; top: 11px; background: #6c675e; transform: rotate(-22deg); transform-origin: top; }
.practice { margin-top: 26px; text-align: center; }
.practice .hand { font-size: 24px; }
.practice .label { font-size: 12.5px; margin-top: 7px; }
.fig-frame video, .plate video { color: var(--screen-ink); }
.plate video { object-fit: contain; }
.btn-ghost { color: var(--graphite); background: transparent; }
.btn-ghost:hover { color: var(--paper); }
.pencil-link { background: none; text-decoration: underline; text-decoration-color: var(--print); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.pencil-link:hover { background: none; text-decoration-color: var(--red); }
.cover h2 a { background: none; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; }
.cover h2 a:hover { background: none; }
.plate, .fig-frame { border-color: var(--print); }

/* The writing index is a table of journal entries, with real media. */
.writing-main { padding: 0 0 44px; }
.writing-sheet { --margin-col: 120px; }
.back-link, .a-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--print); text-decoration: none; }
.back-link:hover, .a-back:hover { color: var(--red); text-decoration: underline; }
.writing-opening { padding-top: 24px; }
.writing-header { margin: 12px 0 44px; }
.writing-header h1 { font-stretch: 84%; font-weight: 800; font-size: clamp(46px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.025em; }
.writing-header p { font-size: 18px; line-height: 1.65; max-width: 58ch; margin-top: 16px; }
.writing-entry ~ .writing-entry { border-top: 1px solid var(--print-soft); padding-top: 52px; }
.writing-entry-link { text-decoration: none; color: inherit; }
.writing-entry-link:hover { color: inherit; }
.post-plate { background: var(--plate-paper); border: 1.5px solid var(--print); padding: 8px; }
.post-plate img { width: 100%; aspect-ratio: 1.54; object-fit: contain; background: var(--screen); }
.pc-body h2 { font-stretch: 84%; font-weight: 800; font-size: clamp(29px, 3vw, 39px); line-height: 1.08; letter-spacing: -.02em; }
.writing-entry-link:hover h2 { color: var(--print); text-decoration: underline; text-underline-offset: 6px; }
.pc-meta { font-family: var(--hand); font-variation-settings: "CASL" 1; font-size: 15px; line-height: 1.5; font-weight: 650; color: var(--print); margin-top: 12px; }
.pc-body p { margin-top: 16px; font-size: 17px; line-height: 1.65; max-width: 60ch; }
.pc-more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 14px; font-size: 15px; font-weight: 650; text-decoration: underline; text-decoration-color: var(--print); text-underline-offset: 6px; }
.pc-more .icon { width: 17px; height: 17px; }

/* Long-form reading: a quiet paper leaf and a navigable margin. */
.reading-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px; align-items: start; }
.reading-index { position: sticky; top: 98px; padding-top: 4px; margin-top: 54px; }
.reading-index .label { margin-bottom: 14px; }
.reading-index li + li { margin-top: 6px; }
.reading-index a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.45; color: var(--print); text-decoration: none; }
.reading-index a:hover { color: var(--red); text-decoration: underline; }
.mobile-toc { display: none; }
.article { min-width: 0; background: var(--paper); border-left: 1px solid var(--print-soft); padding: 38px 0 80px 36px; }
.article .a-back { margin-bottom: 26px; }
.article h1 { font-stretch: 84%; font-weight: 800; font-size: clamp(42px, 4.7vw, 66px); line-height: 1.04; letter-spacing: -.025em; max-width: 19ch; }
.article p { margin-bottom: 22px; font-size: 18px; line-height: 1.82; max-width: 70ch; }
.article .a-sub { margin: 24px 0 0; font-size: 21px; line-height: 1.6; max-width: 60ch; }
.article .a-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 22px 0 0; font-family: var(--hand); font-variation-settings: "CASL" 1; font-size: 13.5px; line-height: 1.6; color: var(--print); }
.a-hero { width: 100%; height: auto; margin: 34px 0 42px; padding: 8px; background: var(--plate-paper); border: 1.5px solid var(--print); color: var(--screen-ink); }
.article .lead { font-size: 20px; line-height: 1.75; color: var(--graphite); }
.article h2 { margin: 54px 0 18px; padding-top: 12px; border-top: 1.5px solid var(--print-soft); font-stretch: 84%; font-weight: 750; font-size: 32px; line-height: 1.15; letter-spacing: -.015em; scroll-margin-top: 90px; }
.article h3 { margin: 0 0 8px; font-stretch: 90%; font-weight: 700; font-size: 21px; line-height: 1.3; }
.article strong { color: var(--graphite); font-weight: 650; }
.article ul { margin: 0 0 26px; padding-left: 20px; list-style: disc; }
.article li { padding-left: 4px; font-size: 17px; line-height: 1.75; }
.article li + li { margin-top: 12px; }
.article li::marker { color: var(--print); }
.article blockquote { margin: 34px 0 40px; padding: 22px 0; border-block: 1.5px solid var(--print); font-family: var(--hand); font-variation-settings: "CASL" 1; font-weight: 600; font-size: 25px; line-height: 1.5; color: var(--print); }
.a-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 28px; margin-top: 38px; border-top: 1px solid var(--print-soft); }
.a-figure { margin: 30px 0; }
.a-figure > img { width: 100%; padding: 8px; background: var(--plate-paper); border: 1.5px solid var(--print); }
.a-figure figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.inline-link { color: var(--print); text-decoration: underline; }
.architecture-frame { overflow: hidden; background: #020617; border: 1.5px solid var(--print); }
.architecture-frame iframe { display: block; width: 100%; height: clamp(270px, calc(51vw + 80px), 460px); border: 0; background: #020617; }
.architecture-frame img { width: 100%; height: auto; background: #020617; }
.callout { margin: 34px 0; padding: 22px 24px; border-block: 1px solid var(--print); background: var(--paper-lift); font-size: 17px; line-height: 1.75; }
.decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 28px 0; }
.decision { padding-top: 16px; border-top: 1px solid var(--print-soft); }
.decision p { font-size: 16px; margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 26px; }
.chip { font-size: 14px; line-height: 1.5; color: var(--print); }
.chip:not(:last-child)::after { content: "/"; margin-left: 16px; color: var(--print-soft); }

/* Existing screenshot gallery and seven-step upload workflow. */
.strobe-gallery { margin: 30px 0; background: var(--paper-lift); border: 1.5px solid var(--print); }
.strobe-gallery-viewport { overflow: hidden; touch-action: pan-y; }
.strobe-gallery-track { display: flex; transition: transform .45s var(--ease); }
.strobe-gallery-slide { flex: 0 0 100%; min-width: 100%; }
.strobe-gallery-slide img { width: 100%; }
.strobe-gallery-slide figcaption { padding: 14px 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.strobe-gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-top: 1px solid var(--print-soft); }
.strobe-gallery-arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; background: transparent; color: var(--print); border: 1.5px solid var(--print); }
.strobe-gallery-arrow:hover { background: var(--print); color: var(--paper); }
.strobe-gallery-dots { display: flex; align-items: center; justify-content: center; }
.strobe-gallery-dot { position: relative; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; }
.strobe-gallery-dot::after { content: ""; position: absolute; top: 20px; left: 11px; width: 6px; height: 6px; background: var(--muted); border-radius: 50%; }
.strobe-gallery-dot[aria-pressed="true"]::after { width: 18px; left: 5px; background: var(--print); border-radius: 0; }
.strobe-gallery-status { font-size: 13px; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.article .upload-flow { list-style: none; padding: 0; margin: 30px 0; }
.article .upload-flow-step { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 18px; position: relative; padding: 0 0 26px; margin: 0; }
.upload-flow-step:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 42px; bottom: 0; width: 1px; background: var(--print-soft); }
.upload-flow-index { position: relative; display: grid; place-items: center; width: 42px; height: 42px; background: var(--paper); color: var(--print); border: 1.5px solid var(--print); font-family: var(--hand); font-variation-settings: "CASL" 1; font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; }
.upload-flow-content p { margin-bottom: 10px; font-size: 16px; line-height: 1.7; }
.upload-flow-service { display: inline-block; font-size: 13px; color: var(--print); }
.site-footer { padding: 26px 0; border-top: 2px dashed var(--print-soft); }
.site-footer .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

@media (max-width: 1200px) {
  .binding .wrap { gap: 16px; }
  .index { gap: 14px; }
  .counter { display: none; }
  .opening { grid-template-columns: 160px minmax(0, 1fr); }
  .opening > .margin { padding-right: 20px; }
  .pinned-photo { width: 136px; }
}
@media (max-width: 1080px) {
  .binding .wrap { gap: 10px; }
  .index a { border-bottom-color: rgba(229, 237, 219, .2); }
  .index .mobile-resume { display: block; }
  .reading-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
  .article { padding-left: 24px; }
}
@media (max-width: 680px) {
  .binding .resume { display: none; }
  .nav-actions { gap: 8px; }
  .binding .wrap { min-height: 64px; }
  .brand { font-size: 22px; }
  .menu-toggle { padding-inline: 12px; }
  .sheet-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .sheet-head > div { padding: 8px 10px 10px; }
  .sheet-head > div:last-child { min-width: 76px; }
  .sheet-head .hand { font-size: 15px; }
  .opening { display: flow-root; padding-top: 28px; }
  .opening > .margin { display: block; float: left; width: 102px; padding: 0; border: 0; margin: 5px 18px 12px 0; }
  .pinned-photo { width: 102px; padding: 6px 6px 8px; }
  .pinned-photo figcaption { font-size: 12px; margin-top: 6px; }
  .practice { display: none; }
  .opening-grid { display: block; }
  .statement h1 { margin-left: 120px; min-height: 134px; padding-top: 12px; font-size: clamp(34px, 8.5vw, 52px); }
  .statement .lede { clear: both; margin-top: 18px; }
  .evidence { margin-top: 34px; }
  .fig-caption { flex-wrap: wrap; gap: 0 18px; }
  .entry, .working { padding-bottom: 42px; }
  .sheet { padding-bottom: 54px; }
  .working-head .label { text-transform: none; font-stretch: 90%; letter-spacing: .01em; line-height: 1.6; }
  .writing-main { padding-block: 0 30px; }
  .writing-opening { padding-top: 18px; }
  .writing-header { margin: 8px 0 30px; }
  .writing-header h1 { font-size: 52px; }
  .writing-header p { font-size: 17px; }
  .writing-entry > .margin { flex-wrap: wrap; gap: 4px 12px; }
  .writing-entry ~ .writing-entry { padding-top: 36px; }
  .pc-body h2 { font-size: 31px; }
  .pc-meta { font-size: 14px; }
  .pc-body p { font-size: 16px; }
  .reading-layout { display: block; }
  .reading-index { display: none; }
  .mobile-toc { display: block; margin-top: 22px; padding-block: 2px; border-block: 1px solid var(--print-soft); }
  .mobile-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 14px; font-weight: 650; color: var(--print); cursor: pointer; list-style: none; }
  .mobile-toc summary::-webkit-details-marker { display: none; }
  .mobile-toc .icon { transition: transform .2s var(--ease); }
  .mobile-toc[open] .icon { transform: rotate(180deg); }
  .article .mobile-toc ol { list-style: none; margin: 0; padding: 0 0 12px; }
  .article .mobile-toc li { padding: 0; margin: 0; }
  .mobile-toc a { display: block; padding: 8px 0; font-size: 14px; line-height: 1.5; color: var(--print); }
  .article { border-left: 0; padding: 26px 0 58px; }
  .article h1 { font-size: 43px; }
  .article .a-back { margin-bottom: 22px; }
  .article .a-sub { font-size: 19px; margin-top: 20px; }
  .article .a-meta { font-size: 13px; gap: 6px; margin-top: 18px; }
  .article p { font-size: 17px; line-height: 1.8; }
  .article .lead { font-size: 19px; }
  .article h2 { font-size: 28px; margin-top: 42px; }
  .article li { font-size: 16px; }
  .article blockquote { font-size: 23px; padding-block: 18px; }
  .a-hero { margin-block: 28px 32px; padding: 6px; }
  .decision-grid { grid-template-columns: 1fr; gap: 24px; }
  .strobe-gallery-controls { flex-wrap: wrap; padding: 10px; }
  .strobe-gallery-status { order: 4; flex: 1 0 100%; text-align: center; }
  .callout { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
