/* goparsec inner pages: the reading room. Same lamp-lit materials as the library. */
:root {
  --night: #17110E; --wall: #2A1D16; --wall-2: #31221A; --wood: #7A4B2B;
  --lamp: #FFD08A; --paper: #F3E9D6; --paper-2: #F5ECDA; --paper-ink: #2B2118; --muted: #7a6650; --brass: #C9A15A;
  --f-pixel: "Silkscreen", ui-monospace, "Courier New", monospace;
  --f-book: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-ui: "Schibsted Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --cloth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4 .25' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  --woodgrain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='60'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .32' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .06 0 0 0 0 .02 0 0 0 .9 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-ui); color: var(--paper); background:
  radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,200,120,.16), transparent 70%), linear-gradient(var(--wall), var(--night) 90vh); min-height: 100vh; }
a { color: var(--lamp); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--lamp); color: var(--paper-ink); padding: 10px 14px; border-radius: 8px; }

/* top bar (same as the library once you scroll in) */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px));
  background: rgba(23,17,14,.82); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(201,161,90,.28), 0 8px 24px -12px rgba(0,0,0,.6); }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 700 19px var(--f-ui); letter-spacing: -0.02em; text-decoration: none; color: var(--paper); }
.brand .mark { width: 24px; height: auto; fill: var(--lamp); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.txt { color: var(--paper); text-decoration: none; font: 600 15px var(--f-ui); padding: 0 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.nav a.txt:hover { background: rgba(243,233,214,.08); } .nav a.txt[aria-current] { color: var(--lamp); }
.quote-link { font: 700 15px var(--f-ui); color: var(--paper-ink); background: var(--lamp); text-decoration: none; padding: 0 16px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.quote-link:hover { background: #ffe0ad; }
.quote-link { white-space: nowrap; }
@media (max-width: 520px) { .quote-link .long { display: none; } .brand span { display: none; } }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.crumbs { font: 600 14px var(--f-ui); color: rgba(243,233,214,.7); margin: 28px 0 0; }
.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(243,233,214,.3); }
.crumbs a:hover { color: var(--lamp); border-color: var(--lamp); }

/* hero: the book's cloth cover */
.cover { position: relative; margin: 18px 0 0; border-radius: 6px 10px 10px 6px; padding: clamp(28px, 6vw, 64px) clamp(22px, 6vw, 64px) clamp(26px, 5vw, 48px) clamp(34px, 7vw, 80px); color: #f3dea6; overflow: hidden;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.1) 4%, rgba(255,255,255,.08) 7%, transparent 20%, rgba(0,0,0,.25)), var(--cloth), var(--c, #7a2e2a);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(0,0,0,.25); }
.cover::before { content: ""; position: absolute; inset: 14px 14px 14px 26px; border: 2px solid rgba(240,213,143,.5); border-radius: 4px; pointer-events: none; }
.cover > * { position: relative; }
.shelf-pill { display: inline-block; font: 600 13px var(--f-ui); background: rgba(241,223,180,.18); padding: 4px 10px; border-radius: 999px; }
.cover h1 { font: 700 clamp(38px, 7vw, 76px)/1 var(--f-book); margin: 16px 0 12px; letter-spacing: -0.01em; text-wrap: balance; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.cover .dek { font: 400 clamp(18px, 2.3vw, 22px)/1.45 var(--f-book); margin: 0; max-width: 46ch; color: #f6e8c4; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(240,213,143,.3); list-style: none; }
.facts li { display: grid; gap: 2px; } .facts b { font: 600 11px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; opacity: .75; } .facts span { font: 500 16px var(--f-ui); }

/* the pages */
.pages { margin: 28px 0 0; background: var(--paper-2); color: var(--paper-ink); border-radius: 8px; position: relative; padding: clamp(24px, 5vw, 60px); box-shadow: 0 2px 0 #d9c9a8, 0 4px 0 #cdbb98, 0 30px 60px -30px rgba(0,0,0,.9); }
.pages::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .14; mix-blend-mode: multiply; pointer-events: none; border-radius: inherit; }
.pages > * { position: relative; z-index: 1; }
.chapter + .chapter { margin-top: clamp(32px, 5vw, 52px); }
.chapter h2 { display: flex; align-items: baseline; gap: 12px; font: 700 clamp(26px, 3.4vw, 36px)/1.1 var(--f-book); margin: 0 0 14px; }
.chapter h2 small { font: 600 13px var(--f-book); font-style: italic; letter-spacing: .04em; color: var(--c, var(--muted)); min-width: 1.6em; padding-right: 10px; border-right: 1px solid #d3c19c; }
.chapter p { font: 400 19px/1.6 var(--f-book); margin: 0 0 14px; max-width: 64ch; }
.chapter > h2 + p::first-letter { font: 700 58px/0.8 var(--f-book); float: left; margin: 7px 10px 0 0; color: var(--c, #7a2e2a); }
.steps { list-style: none; padding: 0; margin: 6px 0 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 14px; align-items: start; font: 400 18px/1.55 var(--f-book); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c, #7a2e2a); color: #f3dea6; font: 700 15px var(--f-ui); margin-top: 1px; }
.steps b { font-weight: 700; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.tools li { font: 600 14px var(--f-ui); padding: 6px 12px; border-radius: 999px; background: #e9dcc0; color: #4a3a2b; }

/* screen proof: photos mounted in an album with corners */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 26px; margin-top: 8px; }
.shot { margin: 0; background: #fffaf0; padding: 10px 10px 0; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 12px 24px -14px rgba(43,33,24,.6); position: relative; transform: rotate(var(--tilt, -.6deg)); }
.shot:nth-child(2n) { --tilt: .7deg; }
.shot::before, .shot::after { content: ""; position: absolute; width: 26px; height: 26px; background: #3b2a1e; opacity: .85; }
.shot::before { top: -6px; left: -6px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.shot::after { bottom: -6px; right: -6px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.shot .frame { display: block; aspect-ratio: 16 / 10; border-radius: 3px; overflow: hidden; background: #efe5d0; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot a.frame { cursor: zoom-in; }
.shot .empty { width: 100%; height: 100%; display: grid; place-content: center; gap: 6px; text-align: center; padding: 16px; border: 2px dashed #cdb894; border-radius: 3px; color: #8a755d; font: 600 13px var(--f-ui); }
.shot .empty svg { margin: 0 auto; width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.shot figcaption { font: italic 500 16px/1.35 var(--f-book); color: #4a3a2b; padding: 10px 4px 12px; }
.proof-note { font: 500 14px var(--f-ui); color: var(--muted); margin: 14px 0 0; }

/* things you still have to fill in: visible in the draft so nothing ships by accident */
.todo { background: rgba(255,208,138,.35); border-bottom: 2px dashed #c98a2b; padding: 0 3px; border-radius: 2px; }

footer.site { margin-top: 48px; padding-block: 20px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(241,223,180,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 13px; color: rgba(240,227,203,.65); }

/* sealed book (secret project) */
.sealed { text-align: center; padding-block: clamp(40px, 8vw, 80px); }
.seal { width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font: 700 44px var(--f-book); color: #f6d9c9;
  background: radial-gradient(circle at 35% 30%, #c25a6e, #8F3F52 55%, #5e2433); box-shadow: inset 0 -6px 10px rgba(0,0,0,.35), inset 0 4px 8px rgba(255,255,255,.15), 0 10px 24px -8px rgba(0,0,0,.6);
  clip-path: polygon(50% 0, 61% 6%, 74% 3%, 80% 14%, 93% 18%, 93% 31%, 100% 42%, 95% 54%, 99% 67%, 89% 76%, 86% 89%, 73% 92%, 62% 100%, 50% 95%, 38% 100%, 27% 92%, 14% 89%, 11% 76%, 1% 67%, 5% 54%, 0 42%, 7% 31%, 7% 18%, 20% 14%, 26% 3%, 39% 6%); }
.sealed p { margin-inline: auto; }

/* about */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 56px); align-items: center; margin-top: 28px; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; background: #fffaf0; padding: 12px 12px 48px; transform: rotate(-2deg); box-shadow: 0 30px 50px -24px rgba(0,0,0,.9); }
.portrait .ph { width: 100%; height: 100%; border-radius: 3px; display: grid; place-items: center; background: #B9C6A4; overflow: hidden; }
.portrait .ph img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph svg { width: 56%; fill: #2A3627; }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font: italic 500 17px var(--f-book); color: #4a3a2b; }
.about-hero h1 { font: 700 clamp(40px, 6.4vw, 72px)/1 var(--f-book); margin: 0 0 14px; text-wrap: balance; }
.about-hero .dek { font: 400 clamp(18px, 2.2vw, 21px)/1.55 var(--f-book); color: #efe2c8; margin: 0 0 22px; max-width: 46ch; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
/* the numbers, written on a library record card */
.record { position: relative; margin: 44px auto 0; max-width: 860px; background: #F5ECDA; color: var(--paper-ink); border-radius: 3px; padding: 18px clamp(18px, 4vw, 34px) 26px;
  transform: rotate(-.6deg); box-shadow: 0 2px 0 #d9c9a8, 0 26px 44px -24px rgba(0,0,0,.85);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(120,150,190,.22) 31px 32px); background-position: 0 58px; }
.record::before { content: ""; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--night); box-shadow: inset 0 2px 3px rgba(0,0,0,.6); }
.record::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .14; mix-blend-mode: multiply; pointer-events: none; }
.record-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 2px solid #b85a4a; }
.record-head h2 { margin: 0; font: 700 13px var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: #8a4a3a; }
.record-head span { font: 12px var(--f-pixel); color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.stats div { padding: 16px 14px 4px; display: flex; flex-direction: column-reverse; gap: 4px; }
.stats div + div { border-left: 1px solid rgba(184,90,74,.45); }
.stats dd { margin: 0; font: italic 600 clamp(40px, 5vw, 56px)/1 var(--f-book); color: #1f3a5f; font-variant-numeric: tabular-nums; transform: rotate(-2deg); transform-origin: left bottom; }
.stats div:nth-child(2n) dd { transform: rotate(1.5deg); }
.stats sup { font-size: .5em; vertical-align: .7em; margin-left: 2px; }
.stats dt { font: 600 12px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.record-stamp { position: absolute; right: clamp(14px, 4vw, 34px); bottom: -14px; margin: 0; padding: 6px 12px; border: 3px solid #a3322b; border-radius: 4px; color: #a3322b; font: 700 13px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; background: rgba(245,236,218,.9); transform: rotate(-5deg); opacity: .9; z-index: 1; }
.where { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-top: 8px; }
.where a { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 16px; border-radius: 10px; text-decoration: none; color: var(--paper-ink); background: #fffaf0; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 10px 20px -14px rgba(43,33,24,.6); transition: transform .2s; }
.where a:hover { transform: translateY(-2px); }
.where .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font: 700 20px var(--f-ui); color: #fff; }
.where b { display: block; font: 700 17px var(--f-ui); } .where small { display: block; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.where .go { font: 700 18px var(--f-ui); color: var(--muted); }

@media (max-width: 760px) {
  .about-hero { grid-template-columns: 1fr; } .portrait { max-width: 260px; margin: 0 auto; }
  .record-head span { display: none; } .record { margin-bottom: 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid rgba(184,90,74,.45); }
  .chapter p, .steps li { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Where to find me: a game map with a trail between stops ---------- */
.quest { margin: 36px 0 0; }
.map { --ink: #5a3d22; position: relative; overflow: hidden; border-radius: 8px; color: var(--ink); padding: clamp(22px, 4vw, 40px);
  min-height: 560px; display: grid; grid-template-rows: auto 1fr;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 60%, rgba(150,95,35,.28)), radial-gradient(circle at 20% 80%, rgba(200,150,80,.12), transparent 40%), linear-gradient(160deg, #f6e9c9, #eedcb0);
  box-shadow: inset 0 0 0 2px rgba(90,61,34,.35), inset 0 0 0 8px #efe0bd, inset 0 0 0 9px rgba(90,61,34,.4), 0 30px 60px -30px rgba(0,0,0,.9); }
.map::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .12; mix-blend-mode: multiply; pointer-events: none; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.trail .road { fill: none; stroke: #d9bd88; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 1px 0 rgba(90,61,34,.25)); }
.trail .dash { fill: none; stroke: #8a5a2b; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: .5 13; opacity: 1; }
.map:not(.walk) .trail .road { stroke-dashoffset: 1; } .map:not(.walk) .trail .dash { opacity: 0; }
.map.walk .trail .road { transition: stroke-dashoffset 1.8s cubic-bezier(.4,0,.2,1); }
.map.walk .trail .dash { transition: opacity .6s 1.4s; }
.cartouche { position: relative; z-index: 2; justify-self: start; max-width: 340px; padding: 14px 20px 16px; background: rgba(245,236,218,.85); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(90,61,34,.4), 0 0 0 4px rgba(245,236,218,.85), 0 0 0 5px rgba(90,61,34,.3); }
.cartouche small { font: 11px var(--f-pixel); letter-spacing: .08em; color: #8a5a2b; }
.cartouche h2 { font: 700 clamp(26px, 3.4vw, 36px)/1.05 var(--f-book); margin: 4px 0 6px; color: var(--paper-ink); }
.cartouche p { margin: 0; font: italic 500 16px/1.4 var(--f-book); }
.compass { position: absolute; z-index: 1; right: clamp(16px, 3vw, 34px); top: clamp(16px, 3vw, 30px); width: clamp(64px, 8vw, 92px); color: var(--ink); opacity: .7; }

.stops { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.stop:nth-child(1) { margin-top: 170px; } .stop:nth-child(2) { margin-top: 40px; } .stop:nth-child(3) { margin-top: 200px; } .stop:nth-child(4) { margin-top: 60px; } .stop:nth-child(5) { margin-top: 190px; }
.stop { position: relative; display: grid; justify-items: center; text-align: center; }
.stop a { display: grid; justify-items: center; gap: 0; text-decoration: none; color: inherit; border-radius: 12px; }
.pin { position: relative; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: #f6ecd4;
  box-shadow: 0 0 0 4px #c9a15a, 0 0 0 6px #6b4a25, 0 10px 14px -6px rgba(60,35,10,.6); transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.pin::after { content: ""; position: absolute; bottom: -12px; left: 50%; width: 36px; height: 8px; margin-left: -18px; border-radius: 50%; background: rgba(60,35,10,.25); z-index: -1; transition: transform .25s, opacity .25s; }
.pin svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.pin svg.px { width: 36px; fill: #2A3627; stroke: none; }
.stop.here .pin { background: #B9C6A4; }
.stop.goal .pin { background: #f3d7c9; }
.stop:nth-child(2) .pin svg { fill: rgba(122,46,42,.18); } .stop:nth-child(4) .pin svg { fill: rgba(201,161,90,.45); }
.tag { margin-top: 18px; display: grid; gap: 2px; padding: 8px 12px 10px; background: #fbf4e2; border-radius: 4px; box-shadow: 0 0 0 1px rgba(90,61,34,.3), 0 6px 12px -8px rgba(60,35,10,.6); max-width: 190px; }
.tag small { font: 10px var(--f-pixel); letter-spacing: .06em; color: #8a5a2b; }
.tag b { font: 700 18px/1.15 var(--f-book); color: var(--paper-ink); }
.tag > span { font: 500 13px/1.35 var(--f-ui); color: #6b5843; overflow-wrap: anywhere; }
.stop a:hover .pin, .stop a:focus-visible .pin { transform: translateY(-8px); }
.stop a:hover .pin::after { transform: scale(.75); opacity: .6; }
.stop a:hover .tag b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.stop a:focus-visible { outline: 3px solid #8a5a2b; outline-offset: 6px; }
.flag { position: absolute; top: -30px; left: calc(50% + 14px); font: 10px var(--f-pixel); color: #fff3d6; background: #a3322b; padding: 4px 6px 4px 5px; clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%); }
.flag::before { content: ""; position: absolute; }
.stop.here .pin { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
/* stops pop in as the trail reaches them */
.map:not(.walk) .stop { opacity: 0; transform: translateY(10px) scale(.92); }
.map.walk .stop { transition: opacity .4s, transform .5s cubic-bezier(.3,1.5,.5,1); }
.map.walk .stop:nth-child(2) { transition-delay: .35s; } .map.walk .stop:nth-child(3) { transition-delay: .7s; } .map.walk .stop:nth-child(4) { transition-delay: 1.05s; } .map.walk .stop:nth-child(5) { transition-delay: 1.4s; }
.map.still * { transition: none !important; animation: none !important; }

/* scenery */
.map .deco { position: absolute; z-index: 0; pointer-events: none; }
.tree { width: 26px; height: 34px; background: linear-gradient(#6f8a4e, #4e6a37); clip-path: polygon(50% 0, 100% 78%, 58% 78%, 58% 100%, 42% 100%, 42% 78%, 0 78%); opacity: .75; }
.tree.t1 { left: 46%; top: 16%; } .tree.t2 { left: 49%; top: 21%; transform: scale(.8); } .tree.t3 { left: 8%; bottom: 10%; } .tree.t4 { right: 22%; top: 30%; transform: scale(1.15); }
.pond { left: 30%; bottom: 7%; width: 120px; height: 40px; border-radius: 50%; background: radial-gradient(ellipse at 40% 40%, #b8cfc6, #8fb0a6); box-shadow: 0 0 0 3px rgba(143,176,166,.35); opacity: .8; }
.hill { width: 140px; height: 50px; border-radius: 70px 70px 0 0; background: repeating-linear-gradient(90deg, rgba(90,61,34,.18) 0 2px, transparent 2px 9px); opacity: .7; }
.hill.h1 { right: 6%; bottom: 8%; } .hill.h2 { left: 58%; top: 12%; width: 100px; height: 36px; }

@media (max-width: 760px) {
  .map { min-height: 0; padding: 22px 18px 30px; }
  .compass { width: 56px; }
  .cartouche { max-width: calc(100% - 70px); }
  .stops { grid-template-columns: 1fr; gap: 26px; margin-top: 30px; }
  .stop, .stop:nth-child(n) { margin-top: 0; width: 64%; grid-template-columns: auto; }
  .stop:nth-child(odd) { justify-self: start; } .stop:nth-child(even) { justify-self: end; }
  .stop a, .stop { justify-items: center; }
  .tag { max-width: 100%; }
  .tree.t1 { left: 70%; top: 34%; } .tree.t2 { left: 76%; top: 36%; } .tree.t4 { right: auto; left: 10%; top: 56%; } .hill.h2 { left: auto; right: 4%; top: 72%; } .pond { left: auto; right: 8%; bottom: 3%; width: 90px; }
}

/* ---------- more from the shelves: the next and previous books on a plank ---------- */
.turn { position: relative; margin: 44px 0 0; padding: 30px clamp(14px, 3vw, 28px) 0; border-radius: 8px 8px 0 0;
  background: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(255,200,120,.16), transparent 70%), linear-gradient(#2a1d16, #22170f); box-shadow: inset 0 10px 24px -12px rgba(0,0,0,.7); }
.turn-plaque { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 13px var(--f-ui); color: #2a1d0e; padding: 5px 14px; border-radius: 3px;
  background: linear-gradient(180deg, #e9cf8f, #c9a15a 55%, #a88340); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 4px rgba(0,0,0,.5); }
.turn-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 28px); align-items: end; padding-bottom: 2px; }
.tb { position: relative; display: flex; align-items: center; min-height: 110px; padding: 16px 18px 16px 30px; text-decoration: none; border-radius: 4px 8px 8px 4px;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.08) 6%, rgba(255,255,255,.1) 9%, transparent 22%, rgba(0,0,0,.25)), var(--cloth), var(--bc, #7a2e2a);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 6px 0 -2px #efe2c4, 0 7px 0 -2px rgba(0,0,0,.25), 0 14px 18px -10px rgba(0,0,0,.8);
  transform: rotate(-1.2deg); transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.tb.next { transform: rotate(1deg); justify-content: flex-end; text-align: right; }
.tb::before { content: ""; position: absolute; inset: 8px 8px 8px 18px; border: 1.5px solid rgba(240,213,143,.45); border-radius: 3px; pointer-events: none; }
.tb .lbl { position: relative; display: grid; gap: 3px; padding: 8px 12px 10px; background: linear-gradient(90deg, #e2cfa4, #f6ecd2 40%, #eadbb6); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(43,33,24,.28), 0 1px 2px rgba(0,0,0,.45); }
.tb small { font: 10px var(--f-pixel); letter-spacing: .06em; color: #7a6650; }
.tb b { font: 700 clamp(17px, 2vw, 21px)/1.15 var(--f-book); color: var(--paper-ink); }
.tb:hover, .tb:focus-visible { transform: translateY(-8px) rotate(0deg); }
.turn-plank { height: 16px; margin: 6px calc(-1 * clamp(14px, 3vw, 28px)) 0; border-radius: 2px;
  background: var(--woodgrain), linear-gradient(#a06b42, #7a4b2b 60%, #5a361f); background-size: 100% 60px, auto; box-shadow: 0 8px 14px -6px rgba(0,0,0,.7); }

/* ---------- the call to action: a request card left on the desk ---------- */
.cta { padding: clamp(30px, 5vw, 52px) 16px clamp(34px, 5vw, 56px); border-radius: 0 0 8px 8px; display: grid; place-items: center;
  background: radial-gradient(ellipse 55% 70% at 50% 30%, rgba(255,200,120,.25), transparent 70%), var(--woodgrain), linear-gradient(#6a4127, #4a2d1a); background-size: auto, 100% 60px, auto; }
.mini-card { position: relative; width: min(100%, 520px); padding: 22px clamp(20px, 4vw, 30px) 24px; color: var(--paper-ink); background-color: #F5ECDA; border-radius: 3px; transform: rotate(-1.5deg);
  background-image: repeating-linear-gradient(transparent 0 29px, rgba(120,150,190,.2) 29px 30px); background-position: 0 52px;
  box-shadow: 0 2px 0 #d9c9a8, 0 4px 0 #cdbb98, 0 30px 40px -20px rgba(0,0,0,.8); transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.mini-card::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .14; mix-blend-mode: multiply; pointer-events: none; }
.mini-card > * { position: relative; z-index: 1; }
.mini-card:hover { transform: rotate(0deg); }
.mc-top { display: block; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px solid #b9a37d; font: 600 12px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: #7a6650; }
.mini-card h2 { font: 700 clamp(26px, 3.4vw, 34px)/1.1 var(--f-book); margin: 0 0 8px; }
.mini-card p { margin: 0 0 18px; font: 400 18px/1.5 var(--f-book); color: #4a3a2b; max-width: 36ch; }
.ink-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 16px var(--f-ui); color: var(--paper); background: var(--paper-ink); text-decoration: none; }
.ink-btn:hover { background: #4a3a2b; }
.mc-stamp { position: absolute; right: clamp(14px, 3vw, 24px); bottom: 24px; padding: 6px 10px; border: 3px solid #a3322b; border-radius: 4px; color: #a3322b; font: 700 12px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; transform: rotate(-8deg); opacity: .85; }
@media (max-width: 560px) {
  .turn-row { grid-template-columns: 1fr; gap: 18px; } .tb, .tb.next { min-height: 92px; }
  .mc-stamp { position: static; display: inline-block; margin: 14px 0 0; }
}

/* ---------- case study figures (photo book generator) ---------- */
.chapter code { font: 500 .86em var(--f-mono, ui-monospace, Menlo, monospace); background: #ebdfc4; padding: 1px 6px; border-radius: 4px; color: #4a3a2b; }
/* the pipeline: index cards linked by a thread */
.pipe { margin: 18px 0 0; }
.pipe-run { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: r; }
.pipe-run li { position: relative; counter-increment: r; display: grid; gap: 4px; align-content: start; padding: 14px 14px 16px; background: #fffaf0; border-radius: 4px; box-shadow: 0 0 0 1px rgba(90,61,34,.18), 0 8px 16px -12px rgba(60,35,10,.6); }
.pipe-run li::before { content: counter(r); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #f3dea6; font: 700 13px var(--f-ui); margin-bottom: 4px; }
.pipe-run li:not(:last-child)::after { content: "\2192"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); font: 700 16px var(--f-ui); color: #8a6f52; z-index: 1; }
.pipe-run b { font: 700 17px/1.2 var(--f-book); } .pipe-run span, .pipe-side span { font: 400 14.5px/1.45 var(--f-ui); color: #5a4836; }
.pipe-fork { margin: 16px 0 10px; text-align: center; font: italic 500 16px var(--f-book); color: var(--muted); }
.pipe-fork::before { content: "\2193"; display: block; font-style: normal; font-size: 18px; color: #8a6f52; }
.pipe-side { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pipe-side li { display: grid; gap: 6px; align-content: start; padding: 12px 14px 14px; border-radius: 4px; border: 1.5px dashed #c9b48c; }
.pipe-side code { justify-self: start; font-size: 12.5px; background: #e9dcc0; }
.pipe-out { margin: 14px 0 0; padding: 12px 16px; border-radius: 4px; background: #2b2118; color: #f3e9d6; font: 500 15px var(--f-ui); text-align: center; }
.pipe-out code { background: rgba(243,233,214,.12); color: var(--lamp); }
.pipe-stores { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pipe-stores li { font: 500 13.5px var(--f-ui); color: #5a4836; padding: 6px 12px; border-radius: 999px; background: #ebdfc4; }
.pipe-stores b { color: var(--paper-ink); }

/* the page, exploded into its five layers */
.layers { margin: 18px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center; }
.stack { position: relative; height: 330px; perspective: 900px; }
.sheet { position: absolute; left: 50%; top: calc(250px - var(--i) * 52px); width: 190px; height: 130px; margin-left: -95px; border-radius: 6px;
  transform: rotateX(58deg) rotateZ(-38deg); transform-style: preserve-3d; box-shadow: 0 0 0 1.5px rgba(90,61,34,.35), 0 18px 18px -12px rgba(60,35,10,.45); background: rgba(255,250,240,.78); }
.sheet .ink { position: absolute; }
.s-bg { background: linear-gradient(135deg, #e9c98f, #c98e5a); }
.s-st .ink { left: 22px; top: 18px; width: 42px; height: 42px; background: #d2456a; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.s-lp .ink { left: 74px; top: 14px; width: 98px; height: 70px; border-radius: 3px; background: linear-gradient(160deg, #8fb0c6, #4e6f8a 60%, #3c5a46); box-shadow: 0 0 0 4px #fff; }
.s-fp .ink { left: 18px; top: 70px; width: 64px; height: 46px; border-radius: 3px; background: linear-gradient(160deg, #f0c27b, #c96b4b); box-shadow: 0 0 0 4px #fff; transform: rotate(-6deg); }
.s-tx .ink { left: 96px; top: 96px; width: 76px; height: 6px; border-radius: 3px; background: #2b2118; box-shadow: 0 12px 0 -1px #2b2118; }
.layer-key { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.layer-key li { display: grid; gap: 2px; padding: 10px 14px; background: #fffaf0; border-radius: 4px; box-shadow: 0 0 0 1px rgba(90,61,34,.16); border-left: 4px solid var(--c); }
.layer-key b { font: 700 16px var(--f-book); } .layer-key span { font: 400 14px/1.45 var(--f-ui); color: #5a4836; }

/* the benchmark: one bar per step, landscape vs portrait where photos differ */
.bench { margin: 18px 0 0; }
.bench figcaption { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; font: 500 14px var(--f-ui); color: #4a3a2b; }
.bench .lg { display: inline-flex; align-items: center; gap: 7px; } .bench .lg i { width: 14px; height: 10px; border-radius: 2px; }
.bench .land { background: #A8741A; } .bench .port { background: #1B6FA8; } .bench .both { background: #9a8a76; }
.bench-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.bench-rows li { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 14px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(90,61,34,.12); }
.bench .step { font: 500 14.5px var(--f-ui); color: var(--paper-ink); }
.bench .bars { display: grid; gap: 2px; }
.bench .bar { position: relative; display: block; height: 14px; width: var(--w); border-radius: 0 4px 4px 0; transition: filter .15s; }
.bench .bar i { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); white-space: nowrap; font: 500 12.5px var(--f-ui); font-style: normal; color: #4a3a2b; font-variant-numeric: tabular-nums; }
.bench .bar:hover { filter: brightness(1.15); }
.bench-table { margin-top: 14px; font: 14px var(--f-ui); }
.bench-table summary { cursor: pointer; color: var(--c); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.bench-table table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.bench-table th, .bench-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(90,61,34,.15); }
.bench-table td { text-align: right; }

@media (max-width: 760px) {
  .pipe-run, .pipe-side { grid-template-columns: 1fr; gap: 18px; }
  .pipe-run li:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%); }
  .pipe-side { gap: 10px; }
  .layers { grid-template-columns: 1fr; gap: 14px; } .stack { height: 330px; } .sheet { top: calc(215px - var(--i) * 46px); }
  .bench-rows li { grid-template-columns: 1fr; gap: 6px; }
  .bench .bar { max-width: calc(100% - 64px); }
}
.chapter .pipe p, .chapter p.proof-note { max-width: none; }
.chapter p.proof-note { font: 500 14px/1.5 var(--f-ui); color: var(--muted); }
.chapter .pipe p::first-letter, .chapter p.proof-note::first-letter { all: unset; }
/* an odd number of proofs: the first one runs full width, as the hero shot */
.proof .shot:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.proof .shot:first-child:nth-last-child(odd) .frame { aspect-ratio: 1332 / 600; }

/* the brass plaque is a link back to the full library */
a.turn-plaque { text-decoration: none; cursor: pointer; transition: transform .2s cubic-bezier(.3,1.5,.5,1), filter .2s; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
a.turn-plaque:hover, a.turn-plaque:focus-visible { transform: translateX(-50%) translateY(-2px); filter: brightness(1.08); }
/* influencer PR orders: three layers + the rules */
.pipe-run.layers3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pipe-run.layers3 > li > small { font: 600 11px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pipe-run.layers3 .pts { display: grid; gap: 6px; margin-top: 6px; }
.pipe-run.layers3 .pts span { position: relative; padding-left: 16px; font: 400 14.5px/1.45 var(--f-ui); color: #5a4836; }
.pipe-run.layers3 .pts span::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.guards { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.guards li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 4px; background: #2b2118; color: #e8dbc2; text-align: center; }
.guards b { font: 700 24px/1.1 var(--f-book); color: var(--lamp); } .guards span { font: 500 13px var(--f-ui); }
@media (max-width: 760px) { .pipe-run.layers3 { grid-template-columns: 1fr; } .guards { grid-template-columns: 1fr 1fr; } }

/* proof photos keep their own shape: nothing cropped */
.shot .frame, .proof .shot:first-child:nth-last-child(odd) .frame { aspect-ratio: auto; background: #efe5d0; }
.shot img { height: auto; object-fit: contain; }

/* a book still being written: three dots writing */
.inprog { display: flex; justify-content: center; gap: 10px; margin: 0 auto 22px; }
.inprog span { width: 14px; height: 14px; border-radius: 50%; background: var(--c); animation: ink 1.2s ease-in-out infinite; }
.inprog span:nth-child(2) { animation-delay: .15s; } .inprog span:nth-child(3) { animation-delay: .3s; }
@keyframes ink { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-8px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .inprog span { animation: none; opacity: .8; } }

.ink-btn.ghost-ink { background: transparent; color: var(--paper-ink); box-shadow: inset 0 0 0 1.5px rgba(43,33,24,.45); margin-left: 6px; }
.ink-btn.ghost-ink:hover { background: rgba(43,33,24,.06); }
/* buttons (About page) */
.btn { font: 700 16px var(--f-ui); background: var(--lamp); color: var(--paper-ink); text-decoration: none; padding: 0 20px; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; }
.btn:hover { background: #ffe0ad; }
.btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(243,233,214,.4); }
.btn.ghost:hover { background: rgba(243,233,214,.08); }
/* with two buttons on the card, the stamp moves to the top corner */
.mini-card:has(.ghost-ink) .mc-stamp { top: 18px; bottom: auto; right: 18px; }
.mini-card:has(.ghost-ink) .mc-top { padding-right: 130px; }
@media (max-width: 560px) { .mini-card:has(.ghost-ink) .mc-stamp { position: static; } .mini-card:has(.ghost-ink) .mc-top { padding-right: 0; } .ink-btn.ghost-ink { margin: 10px 0 0; } }

.pipe-run.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .pipe-run.five { grid-template-columns: 1fr; } }
/* two proofs: wide list on top, the tall workflow below, both full width */
.proof:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
.proof:has(> :nth-child(2):last-child) .shot img { max-height: 760px; }
.proof:has(> :nth-child(2):last-child) .shot:last-child { justify-self: center; max-width: 460px; }
