:root {
  color-scheme: light;
  --paper: #f2e8d5;
  --paper-light: #faf1df;
  --ink: #2f2220;
  --wine: #6d2336;
  --deep-wine: #321c22;
  --gold: #d9b984;
  --rule: #ab9278;
  --display: "Baskerville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --page-margin: clamp(1.25rem, 6vw, 7.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.1rem/1.55 var(--display); }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
a:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; object-fit: cover; }
.skip { position: fixed; z-index: 5; top: 1rem; left: 1rem; padding: .65rem 1rem; background: var(--paper-light); color: var(--wine); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.cover { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; isolation: isolate; overflow: hidden; padding: 2.75rem var(--page-margin) 2.3rem; color: var(--paper-light); background: var(--deep-wine); }
.cover::before { content: ""; position: absolute; inset: 1rem; border: 1px solid #d9b98466; z-index: 1; pointer-events: none; }
.cover-image { position: absolute; z-index: -1; inset: 0 0 0 34%; background: url("assets/cover.webp") center 50% / cover no-repeat; }
.cover-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #321c22 0%, #321c22bc 13%, #321c2233 44%, transparent 76%), linear-gradient(0deg, #271419b0 0%, transparent 24%, transparent 82%, #27141996 100%); }
.cover-folio, .cover-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: clamp(.69rem, 1.2vw, .89rem); letter-spacing: .14em; text-transform: uppercase; color: #f5dec0; }
.cover-folio { padding-block-end: 1.1rem; border-bottom: 1px solid #d9b98455; }
.cover-foot { padding-block-start: 1.1rem; border-top: 1px solid #d9b98455; }
.cover-inner { align-self: center; padding-block: clamp(2rem, 8vh, 7rem); }
.cover h1 { width: min-content; margin-left: -.065em; font-size: clamp(6rem, 14.7vw, 16rem); font-weight: 400; letter-spacing: -.087em; line-height: .70; text-shadow: 2px 4px 36px #24152070; }
.cover h1 em { display: block; padding-left: .2em; padding-bottom: .18em; font-weight: 400; color: #f0d6b3; }
.cover-inner p { margin: 1.5rem 0 1.6rem; font-size: clamp(1.05rem, 2.25vw, 1.7rem); }
.pill { display: inline-flex; width: fit-content; align-items: center; min-height: 46px; gap: 1.7rem; padding: .58rem .95rem .65rem 1.12rem; border: 1px solid currentColor; text-decoration: none; line-height: 1.25; font-size: .95rem; }
.pill:hover { background: var(--paper-light); color: var(--deep-wine); }
.pill span { font-family: system-ui, sans-serif; font-size: 1rem; }
.pill-dark { color: var(--wine); }
.pill-dark:hover { background: var(--wine); color: var(--paper-light); }
.text-link { display: inline-block; min-height: 44px; align-content: center; text-decoration-color: #895468; text-underline-offset: .24em; text-decoration-thickness: 1px; }
.text-link:hover, .compare-story a:hover, .colophon a:hover { text-decoration-thickness: 2px; }

.fork, .comparison { padding: clamp(3.5rem, 10vw, 8rem) var(--page-margin); }
.section-lead { max-width: 75rem; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; gap: 2rem 7%; margin: 0 auto 3.4rem; }
.section-lead h2, .story-header h2 { color: var(--wine); font-size: clamp(3.25rem, 8vw, 8.25rem); line-height: .89; letter-spacing: -.065em; font-weight: 400; }
.section-lead p { max-width: 30rem; font-size: clamp(1.1rem, 1.75vw, 1.4rem); line-height: 1.43; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 2rem); max-width: 75rem; margin-inline: auto; }
.choice { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(22rem, 43vw, 37rem); display: grid; align-items: end; text-decoration: none; color: #fff1db; background: var(--deep-wine); }
.choice::before { content: ""; position: absolute; inset: .65rem; z-index: 1; border: 1px solid #f6dbac8c; pointer-events: none; }
.choice::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 16%, #2b171d65 39%, #26151dec 80%); pointer-events: none; }
.choice img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; transition: transform .4s ease; }
.choice:hover img, .choice:focus-visible img { transform: scale(1.045); }
.choice-text { padding: clamp(1.3rem, 3vw, 2rem); }
.choice-date { display: flex; justify-content: space-between; border-block-end: 1px solid #f7dbac82; margin-bottom: .75rem; font-size: .83rem; letter-spacing: .12em; }
.choice h3 { font-size: clamp(1.7rem, 3.9vw, 3.45rem); line-height: .96; font-weight: 400; letter-spacing: -.05em; text-wrap: balance; }
.choice p { font-size: .9rem; margin: .55rem 0 1.15rem; }
.choice-action { display: flex; justify-content: space-between; border-top: 1px solid #f7dbac82; padding-block-start: .7rem; font-size: .87rem; }
.fork > .text-link { display: block; width: fit-content; margin: 1.75rem auto 0; color: var(--wine); }

.story { --diagram: #8a3a4b; padding: 2.2rem var(--page-margin) 4.5rem; border-top: 1px solid var(--rule); background: var(--paper-light); }
.story-header { max-width: 75rem; margin: auto; padding-bottom: 2.4rem; border-bottom: 1px solid var(--rule); }
.story-header .text-link { color: var(--wine); }
.folio { margin: 2.2rem 0 1rem; color: var(--wine); letter-spacing: .16em; font-size: .83rem; }
.attribution { margin-top: 1.05rem; font-size: 1.2rem; font-style: italic; }
.scene { display: grid; max-width: 75rem; margin: 0 auto; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: start; gap: clamp(2rem, 8vw, 8rem); }
.plate { position: sticky; top: 2.5svh; align-self: start; margin: 1.5rem 0; padding: .65rem .65rem .35rem; background: #e5d1ae; border: 1px solid var(--rule); }
.plate-frame { overflow: hidden; background: var(--deep-wine); }
.plate img { width: 100%; height: min(67svh, 37rem); object-fit: cover; transform: translate(var(--plate-x, 0%), var(--plate-y, 0%)) scale(var(--plate-scale, 1)); }
.plate figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1.25rem; margin: .45rem .35rem .2rem; color: #532b30; line-height: 1.25; font-size: .86rem; }
.trace { width: 100%; display: block; overflow: visible; }
.plate .trace { height: min(12svh, 4.7rem); }
.trace-ground, .trace-route { fill: none; stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.trace-ground { stroke: currentColor; opacity: .42; stroke-dasharray: 1 5; }
.trace-route { stroke: var(--diagram); }
.has-reader .plate .trace-route { stroke-dasharray: 1; stroke-dashoffset: var(--dash-offset, 1); }
.trace-shoe { fill: var(--diagram); stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.trace-traveller { fill: currentColor; visibility: hidden; }
.has-reader .plate .trace-traveller { visibility: visible; }
.beat { min-height: 67svh; padding: 2.5rem 0; display: grid; align-content: center; }
.beat + .beat { border-top: 1px solid #ab927875; }
.beat-index { display: block; margin-bottom: .8rem; color: var(--wine); font-size: .9rem; letter-spacing: .1em; }
.beat h3 { font-weight: 400; font-size: clamp(2.4rem, 4.55vw, 4.4rem); line-height: .98; margin-bottom: 1.2rem; letter-spacing: -.047em; }
.beat p { max-width: 32rem; font-size: clamp(1.12rem, 1.75vw, 1.4rem); line-height: 1.52; }
.story-end { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; max-width: 75rem; margin-inline: auto; border-top: 1px solid var(--rule); padding-top: 2rem; color: var(--wine); }
.comparison { --diagram: #e9b889; background: var(--deep-wine); color: var(--paper-light); }
.comparison .section-lead h2 { color: #f3d5b2; }
.compare-list { list-style: none; padding: 0; max-width: 75rem; margin: 0 auto 2.5rem; border-bottom: 1px solid #d9b98476; }
.compare-row { display: grid; grid-template-columns: 3rem minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, .7fr); align-items: center; gap: clamp(.6rem, 2.5vw, 2rem); padding: .9rem 0; border-top: 1px solid #d9b98476; }
.compare-number { color: #e6bd8f; }
.compare-story { line-height: 1.15; }
.compare-story a { font-size: clamp(1.1rem, 2.15vw, 1.6rem); text-underline-offset: .22em; text-decoration-thickness: 1px; text-decoration-color: #e6bd8f; }
.compare-story span, .compare-clue span { display: block; margin-top: .45rem; color: #edcfad; font-size: .87rem; line-height: 1.35; }
.compare-clue { line-height: 1.1; }
.compare-clue strong { font-weight: 400; font-size: clamp(1.12rem, 2.4vw, 1.68rem); }
.compare-line svg { max-height: 5rem; }
.comparison > .pill { display: flex; margin-inline: auto; }
.colophon { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; padding: 3.5rem var(--page-margin); color: var(--wine); }
.colophon h2 { font-weight: 400; font-size: 1.2rem; }
.colophon p, .colophon ul { margin: .4rem 0 0; font-size: .93rem; }
.colophon ul { padding: 0; list-style: none; }
.colophon a { text-underline-offset: .24em; text-decoration-thickness: 1px; }
.colophon li + li { margin-top: .35rem; }
.colophon li span { margin-inline-start: .25em; }
.brand { font-size: 1.8rem; letter-spacing: -.04em; }

@media (max-width: 760px) {
  .cover { padding: 2.25rem calc(var(--page-margin) + .4rem) 1.95rem; }
  .cover::before { inset: .65rem; }
  .cover-image { inset: 0; background-position: 55% 50%; }
  .cover-image::after { background: linear-gradient(90deg, #321c22ba, #321c2244 75%), linear-gradient(0deg, #271419d9, transparent 45%, transparent 65%, #27141996); }
  .cover h1 { font-size: clamp(5.1rem, 20vw, 9.3rem); }
  .section-lead { grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 2rem; }
  .choices { grid-template-columns: 1fr; }
  .choice { min-height: 0; aspect-ratio: 1 / .88; }
  .choice img { object-position: 50% 44%; }
  .choice-text { padding: 1.35rem 1.5rem; }
  .choice h3 { font-size: 2.35rem; }
  .scene { display: block; }
  .plate { position: relative; top: auto; }
  .plate img { height: min(53svh, 26rem); }
  .plate .trace { height: 3.8rem; }
  .beat { min-height: auto; display: block; padding-block: 2.5rem; }
  .compare-row { grid-template-columns: 1.7rem minmax(0, 1fr) minmax(0, .83fr); }
  .compare-line { grid-column: 2; grid-row: 2; }
  .compare-clue { grid-column: 3; grid-row: 1 / 3; padding-left: .25rem; }
  .compare-number { align-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .plate img, .choice:hover img, .choice:focus-visible img { transform: none; }
  .has-reader .plate .trace-route { stroke-dashoffset: 0; }
  .has-reader .plate .trace-traveller { visibility: hidden; }
}

.plate img { height: auto; max-height: 65svh; aspect-ratio: 3 / 2; }
@media (max-width: 760px) {
  .plate { position: sticky; top: .35rem; z-index: 1; }
  .plate img { max-height: 32svh; }
  .plate .trace { height: min(7svh, 3rem); }
  .beat { min-height: 62svh; padding-block: 1.65rem 2rem; }
}
@media (max-width: 760px) and (max-height: 680px), (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .plate { position: relative; top: auto; }
  .beat { min-height: 0; }
}

.cover { padding-block: clamp(1.65rem, 4.7svh, 2.75rem) clamp(1.55rem, 4.2svh, 2.3rem); }
.cover-inner { padding-block: clamp(1.65rem, 5svh, 4.25rem); }
.cover h1 { font-size: clamp(5.4rem, min(14.7vw, 25svh), 16rem); line-height: .77; }
@media (max-width: 760px) {
  .cover h1 { font-size: clamp(4.7rem, min(20vw, 24svh), 9.3rem); }
}
