@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-Light.woff2") format("woff2"); font-weight: 300; font-display: block; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: block; }

/* Haus und Prägung. The paper is the ground; photographs open to the full window;
   burgundy always fills the screen, laid over what came before like a new sheet. */
:root {
  --ink: #2b1b20;
  --burgundy: #5c2a3a;
  --ivory: #efe7dc;
  --paper: #f4f0ea;
  --fg: var(--ink);
  --muted: #6b5f61;
  --line: rgba(43, 27, 32, .18);
  --m: max(1.25rem, 4.2vw);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --slow: cubic-bezier(.65, 0, .15, 1);
  --small: 1.0625rem;
  --ui: 1.125rem;
  --body: 1.3125rem;
  --prose: clamp(1.45rem, 1.85vw, 1.9rem);
}
html[data-theme="dark"] { --paper: #3b1622; --fg: #f1e9e1; --muted: rgba(241, 233, 225, .7); --line: rgba(241, 233, 225, .18); }

html, body, * { scrollbar-width: none; }
::-webkit-scrollbar { display: none; width: 0; height: 0; }
* { box-sizing: border-box; }
html { background: var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; color: var(--fg); background: transparent; font-family: "General Sans", Arial, sans-serif; font-size: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a, button { color: inherit; text-decoration: none; font: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 300; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }
::selection { background: rgba(92, 42, 58, .22); }

#paper { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
[data-emboss] { color: transparent !important; user-select: none; }
[data-emboss="img"], [data-emboss="book"] { visibility: hidden; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fadeOut .45s ease both; }
::view-transition-new(root) { animation: fadeIn .9s ease .05s both; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }

.link { position: relative; display: inline-block; padding-bottom: .32rem; font-size: var(--ui); }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: .42; transform-origin: right; transition: transform .7s var(--slow); }
.link::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--slow) .08s; }
.link:hover::before, .link:focus-visible::before { transform: scaleX(1); }
.link:hover::after { transform: scaleX(0); }
.kicker { margin: 0 0 1.6rem; font-size: var(--small); font-weight: 500; letter-spacing: .01em; color: var(--muted); }

/* Lines rise into place when they come into view */
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line > span { display: inline-block; transform: translateY(105%); transition: transform 1.4s var(--slow); }
.line:nth-child(2) > span { transition-delay: .1s; } .line:nth-child(3) > span { transition-delay: .2s; }
.in .line > span, .line.in > span { transform: none; }
.rise { opacity: 0; transform: translateY(1rem); transition: opacity 1.1s ease .25s, transform 1.3s var(--ease) .25s; }
.in .rise, .rise.in { opacity: 1; transform: none; }

/* ---------- Masthead ---------- */
.masthead { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 7.6rem; padding: 0 var(--m); }
.brand { justify-self: center; }
.wordmark { display: inline-block; font-weight: 500; font-size: 2.25rem; letter-spacing: .005em; line-height: 1; padding: .4rem 0; }
.nav { display: flex; gap: 2.8rem; font-size: var(--ui); }
.nav a { opacity: .82; transition: opacity .4s; }
.nav a:hover { opacity: 1; }
.tools { justify-self: end; display: flex; align-items: center; gap: 1.5rem; font-size: var(--ui); }
.lang { color: var(--muted); }
.switch { width: 1.7rem; height: 1.7rem; display: grid; place-items: center; }
.switch i { width: 1rem; height: 1rem; border-radius: 50%; background: linear-gradient(135deg, #f3ede6 0 50%, var(--burgundy) 50% 100%); box-shadow: 0 0 0 1px rgba(43, 27, 32, .25); transition: transform .9s cubic-bezier(.6, 0, .2, 1); }
html[data-theme="dark"] .switch i { transform: rotate(180deg); }

/* A quiet menu that stays: readable over paper, photograph and burgundy alike */
.pin { position: fixed; z-index: 40; top: 1.6rem; right: var(--m); color: #fff; mix-blend-mode: difference; font-size: var(--ui); letter-spacing: .01em; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.pin.show { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; align-items: end; padding: 0 var(--m) 12vh; background: var(--burgundy); color: var(--ivory); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.sheet nav { display: grid; gap: .2rem; }
.sheet nav a { font-weight: 300; font-size: clamp(2.4rem, 5.4vw, 5.6rem); line-height: 1.08; letter-spacing: -.035em; opacity: .9; }
.sheet nav a:hover { opacity: 1; }
.sheet .close { position: absolute; top: 1.6rem; right: var(--m); font-size: var(--ui); }
.sheet address { font-style: normal; font-size: var(--ui); opacity: .75; justify-self: end; text-align: right; }
.menu-open .sheet { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }

/* ---------- 1 Opening: the mounted print opens to the window ---------- */
.opening { position: relative; height: 300vh; margin-top: -7.6rem; }
.opening .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.opening .says { position: absolute; z-index: 2; left: var(--m); right: var(--m); top: calc(var(--pb, 69vh) + 5.5vh); margin: 0 auto; max-width: 30em; text-align: center; font-size: clamp(1.7rem, 2.5vw, 2.9rem); line-height: 1.25; letter-spacing: -.022em; will-change: transform, opacity; animation: settle 1.6s var(--ease) .5s both; }
@keyframes settle { from { opacity: 0; translate: 0 .6rem; } }
.opening .print { position: absolute; inset: 0; z-index: 1; will-change: clip-path; }
.opening .print img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform-origin: 50% 0; transform: translateY(20vh) scale(.5); will-change: transform; }
.opening .print { clip-path: inset(20vh 21vw 30vh 21vw); }
.opening .print::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, rgba(28, 16, 20, 0) 55%, rgba(28, 16, 20, .38) 100%); opacity: var(--shade, 0); }
.opening .over { position: absolute; z-index: 3; left: var(--m); right: var(--m); bottom: 8vh; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; color: var(--ivory); opacity: var(--over, 0); transform: translateY(calc((1 - var(--over, 0)) * 2rem)); }
.opening .over p { margin: 0; max-width: 34rem; font-size: var(--prose); line-height: 1.45; }
.opening .over .link { color: var(--ivory); white-space: nowrap; }
.opening .caption { position: absolute; z-index: 3; right: var(--m); top: calc(100vh - 2.6rem); font-size: var(--small); color: var(--muted); opacity: calc(1 - var(--over, 0)); }

/* ---------- The stack: sections stay, the next one is laid over ---------- */
section[data-stack], footer[data-stack] { position: sticky; top: 0; z-index: 1; }
[data-stack]::before { content: ""; position: absolute; left: 0; right: 0; top: -3.2rem; height: 3.2rem; pointer-events: none; background: linear-gradient(to top, rgba(30, 14, 20, .16), rgba(30, 14, 20, 0)); opacity: var(--lift, 0); }

/* ---------- Full burgundy sheets ---------- */
/* on the home page the crest and the city are one burgundy sheet, laid over the photograph */
.wine { position: relative; z-index: 2; margin-top: -100vh; }
.burgundy { position: relative; min-height: 100vh; color: var(--ivory); --muted: rgba(239, 231, 220, .7); --line: rgba(239, 231, 220, .2); }
.burgundy .link { color: var(--ivory); }
.seal { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14vh var(--m); }
.seal .crest { width: min(54vh, 68vw); aspect-ratio: 1; }
.seal .statement { margin: 7vh 0 0; max-width: 20em; font-weight: 300; font-size: clamp(1.8rem, 3vw, 3.3rem); line-height: 1.22; letter-spacing: -.025em; }
.seal .link { margin-top: 3.4rem; }

/* ---------- Owners: a small print, a large thought ---------- */
.owners { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; padding: 26vh var(--m) 22vh; align-items: start; }
.owners .print { grid-column: 2 / 6; margin: 14vh 0 0; }
.owners .print .frame { aspect-ratio: 4 / 5; overflow: hidden; }
.owners .print img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.owners .print figcaption, .figcap { margin-top: .9rem; font-size: var(--small); color: var(--muted); }
.owners .text { grid-column: 7 / 12; }
.owners h2 { font-size: clamp(2.6rem, 4.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.04em; }
.owners p { margin: 2.4rem 0 0; font-size: var(--prose); line-height: 1.5; max-width: 30rem; }
.owners .link { margin-top: 2.6rem; }

/* ---------- What we do: an index of three words ---------- */
.index { padding: 6vh var(--m) 26vh; position: relative; }
.index .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4vh; }
.index ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: center; padding: 3.2vh 0; }
.index .word { grid-column: 1 / 8; font-weight: 300; font-size: clamp(3rem, 7.6vw, 9.4rem); line-height: 1; letter-spacing: -.05em; transition: transform .9s var(--ease), opacity .6s; }
.index .desc { grid-column: 8 / 12; font-size: var(--body); line-height: 1.5; color: var(--muted); transition: color .5s; }
.index .go { grid-column: 12 / 13; justify-self: end; font-size: var(--small); color: var(--muted); }
.index ol:hover .word { opacity: .35; }
.index ol a:hover .word { opacity: 1; transform: translateX(1.2vw); }
.index a:hover .desc { color: var(--fg); }
.peek { position: fixed; z-index: 30; left: 0; top: 0; width: 22vw; aspect-ratio: 4 / 5; pointer-events: none; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .45s ease, transform .6s var(--ease); }
.peek.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.peek img.on { opacity: 1; }

/* ---------- A full window of Munich ---------- */
.window { height: 100vh; }
.window .frame { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.window img { position: absolute; left: 0; width: 100%; height: 130%; top: -15%; object-fit: cover; will-change: transform; }
.window .cap { position: absolute; left: var(--m); bottom: 5vh; color: var(--ivory); font-size: var(--small); opacity: .85; }

/* ---------- Perspectives ---------- */
.persp { padding: 24vh var(--m) 20vh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
.persp .text { grid-column: 1 / 6; }
.persp h2 { font-size: clamp(2.6rem, 4.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.04em; }
.persp p { margin: 2rem 0 0; color: var(--muted); max-width: 26rem; }
.persp .shelf { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(1rem, 2.6vw, 3rem); margin-top: 10vh; }
.persp figure { margin: 0; }
.persp figure:nth-child(even) { margin-top: 7vh; }
.book { aspect-ratio: 3 / 4.3; }
.persp figcaption { margin-top: 1.1rem; font-size: var(--small); color: var(--muted); }
.persp figcaption span { color: var(--fg); margin-right: .6rem; }

/* ---------- Leadership: the name large, the portrait tall ---------- */
.leader { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; padding: 10vh var(--m) 26vh; align-items: end; }
.leader .text { grid-column: 1 / 7; padding-bottom: 6vh; }
.leader h2 { font-size: clamp(3rem, 6.2vw, 7.6rem); line-height: .98; letter-spacing: -.045em; }
.leader .role { margin: 1.6rem 0 2.4rem; color: var(--muted); font-size: var(--ui); }
.leader p.bio { margin: 0; max-width: 32rem; font-size: var(--body); }
.leader .link { margin-top: 2.4rem; }
.leader .print { grid-column: 8 / 13; margin: 0; }
.leader .print .frame { aspect-ratio: 4 / 5; overflow: hidden; }
.leader .print img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }

/* ---------- Closing: burgundy, one sentence ---------- */
.closing { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-content: center; padding: 16vh var(--m); }
.closing h2 { grid-column: 1 / 11; font-size: clamp(3rem, 6.4vw, 8rem); line-height: 1; letter-spacing: -.045em; }
.closing .row { grid-column: 1 / -1; margin-top: 9vh; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.closing p { margin: 0 0 1.4rem; font-size: var(--prose); }
.closing address { font-style: normal; font-size: var(--ui); text-align: right; opacity: .8; line-height: 1.6; }

/* ---------- Footer: the pressed city ---------- */
.footer { position: relative; }
.skyline { height: min(100vh, calc(100vw * 6123 / 7168)); }
.legal { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2.2rem var(--m) 2.4rem; font-size: var(--small); color: var(--muted); }
.legal nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.legal a:hover { color: var(--fg); }

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  :root { --m: 1.25rem; --body: 1.125rem; }
  .masthead { height: 5.4rem; }
  .wordmark { font-size: 1.45rem; }
  .nav { display: none; }
  .pin { opacity: 1; pointer-events: auto; top: 1.9rem; }
  .sheet { grid-template-columns: 1fr; gap: 3rem; }
  .sheet address { justify-self: start; text-align: left; }
  .opening { height: 260vh; margin-top: -5.4rem; }
  .opening .says { font-size: 1.6rem; max-width: 16em; }
  .opening .print { clip-path: inset(18vh 1.25rem 32vh 1.25rem); }
  .owners, .persp, .leader, .closing { grid-template-columns: 1fr; }
  .owners .print, .owners .text, .persp .text, .leader .text, .leader .print, .closing h2 { grid-column: 1 / -1; }
  .owners { padding-top: 16vh; row-gap: 3rem; }
  .owners .print { margin: 0; width: 78%; }
  .index a { grid-template-columns: 1fr; row-gap: .6rem; padding: 2.6vh 0; }
  .index .word, .index .desc, .index .go { grid-column: 1 / -1; justify-self: start; }
  .index .word { font-size: 16vw; }
  .persp .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
  .persp figure:nth-child(even) { margin-top: 3rem; }
  .leader { row-gap: 3rem; }
  .leader .print { order: -1; width: 82%; }
  .closing .row { flex-direction: column; align-items: start; }
  .closing address { text-align: left; }
  .skyline { height: 70vh; }
  .peek { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .line > span, .rise { transform: none !important; opacity: 1 !important; transition: none !important; }
}

/* ---------- Subpage vocabulary ---------- */
/* Letter: one large sentence, the particulars beside it */
.letter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; padding: 24vh var(--m) 22vh; align-items: start; }
.letter .big { grid-column: 1 / 7; margin: 0; font-weight: 300; font-size: clamp(2rem, 3.4vw, 3.9rem); line-height: 1.16; letter-spacing: -.03em; }
.letter .rows { grid-column: 8 / 13; margin: .8rem 0 0; }
.rows div { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.rows div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 500; font-size: var(--ui); padding-top: .15rem; }
.rows dd { margin: 0; font-size: var(--body); line-height: 1.55; }

/* Career: stations as an index */
.career { padding: 6vh var(--m) 24vh; }
.career h2 { font-size: clamp(2.4rem, 4.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 8vh; max-width: 14em; }
.career ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.career li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: baseline; padding: 2.6vh 0; border-bottom: 1px solid var(--line); }
.career .station { grid-column: 1 / 8; font-weight: 300; font-size: clamp(1.6rem, 2.7vw, 3rem); line-height: 1.12; letter-spacing: -.028em; }
.career .what { grid-column: 8 / 13; color: var(--muted); font-size: var(--body); }
.career .seats { margin-top: 12vh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
.career .seats .kicker { grid-column: 1 / 5; }
.career .seats dl { grid-column: 8 / 13; margin: 0; }

/* Chapters: the word stands while its text passes */
.chapters { padding: 22vh var(--m) 14vh; }
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; min-height: 130vh; border-top: 1px solid var(--line); padding-top: 4vh; }
.chapter .word { grid-column: 1 / 7; align-self: start; position: sticky; top: 14vh; font-weight: 300; font-size: clamp(3.4rem, 8.4vw, 10.4rem); line-height: .96; letter-spacing: -.055em; }
.chapter .body { grid-column: 8 / 12; padding-top: 40vh; padding-bottom: 48vh; }
.chapter .body p { margin: 0; font-size: var(--prose); line-height: 1.5; }
.chapter .body .link { margin-top: 2.4rem; }

/* Volumes alone */
.shelfpage { padding: 18vh var(--m) 24vh; }
.shelfpage .shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(1rem, 2.6vw, 3rem); }
.shelfpage figure { margin: 0; }
.shelfpage figure:nth-child(even) { margin-top: 9vh; }
.shelfpage figcaption { margin-top: 1.1rem; font-size: var(--small); color: var(--muted); }
.shelfpage figcaption span { color: var(--fg); margin-right: .6rem; }
.shelfpage .note { margin: 14vh 0 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
.shelfpage .note p { grid-column: 7 / 12; margin: 0; font-size: var(--prose); line-height: 1.5; }

/* Contact: burgundy first, the form on paper */
.write { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: center; padding: 16vh var(--m) 12vh; margin-top: -7.6rem; }
.write .crest { grid-column: 1 / 6; width: min(52vh, 34vw); aspect-ratio: 1; justify-self: center; }
.write .text { grid-column: 7 / 12; }
.write h1 { font-size: clamp(3rem, 6.4vw, 8rem); line-height: .98; letter-spacing: -.045em; }
.write p { margin: 2.4rem 0 0; font-size: var(--prose); }
.write address { margin-top: 3.4rem; font-style: normal; font-size: var(--ui); line-height: 1.6; opacity: .82; }
.formpage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; padding: 22vh var(--m) 24vh; }
.formpage .intro { grid-column: 1 / 5; }
.formpage .intro h2 { font-size: clamp(2.2rem, 3.6vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; }
.formpage .intro p { margin: 1.8rem 0 0; color: var(--muted); max-width: 22rem; }
.form { grid-column: 7 / 13; display: grid; gap: 2.2rem; }
.form label { display: grid; gap: .6rem; font-size: var(--small); color: var(--muted); }
.form input, .form textarea { font: inherit; font-size: var(--prose); font-weight: 300; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: .5rem 0 .8rem; outline: none; }
.form textarea { min-height: 10rem; resize: vertical; }
.form input:focus, .form textarea:focus { border-bottom-color: currentColor; }
.form .note { margin: 0; font-size: var(--small); color: var(--muted); }
.form .send { justify-self: start; }

/* Plain pages */
.plain { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; padding: 14vh var(--m) 22vh; }
.plain > div { grid-column: 3 / 11; }
.plain h1 { font-size: clamp(2.6rem, 4.4vw, 5rem); letter-spacing: -.04em; margin-bottom: 4rem; }
.plain h2 { font-size: 1.4rem; font-weight: 500; letter-spacing: -.01em; margin: 3rem 0 .8rem; }
.plain p, .plain li { max-width: 44rem; }
.plain ul { padding-left: 1.1rem; }
.plain li { margin-bottom: .6rem; font-size: var(--ui); }
.plain .stand { margin-top: 3rem; font-size: var(--small); color: var(--muted); }

/* Opening without masthead overlap on plain pages */
.closing.short { min-height: 86vh; }

@media (max-width: 960px) {
  .letter, .career li, .career .seats, .chapter, .shelfpage .note, .write, .formpage, .plain { grid-template-columns: 1fr; }
  .letter .big, .letter .rows, .career .station, .career .what, .career .seats .kicker, .career .seats dl, .chapter .word, .chapter .body, .shelfpage .note p, .write .crest, .write .text, .formpage .intro, .form, .plain > div { grid-column: 1 / -1; }
  .letter { padding-top: 14vh; row-gap: 3rem; }
  .rows div { grid-template-columns: 1fr; gap: .3rem; }
  .career li { row-gap: .4rem; }
  .chapter { min-height: auto; }
  .chapter .word { position: static; font-size: 17vw; }
  .chapter .body { padding: 3rem 0 6rem; }
  .shelfpage .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
  .write { margin-top: -5.4rem; padding-top: 14vh; row-gap: 3rem; }
  .write .crest { width: 64vw; }
  .formpage { row-gap: 3rem; padding-top: 14vh; }
}
/* masthead over a burgundy first sheet */
.top-burgundy .masthead { color: var(--ivory); --muted: rgba(239, 231, 220, .7); }
.top-burgundy .switch i { box-shadow: 0 0 0 1px rgba(239, 231, 220, .4); }

/* ---------- Finale: the last sheet is burgundy, the city pressed into it ---------- */
.finale { position: relative; display: grid; grid-template-rows: 1fr auto; padding: 0; color: var(--ivory); --muted: rgba(239, 231, 220, .72); --line: rgba(239, 231, 220, .2); }
.finale .link { color: var(--ivory); }
.finale .say { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; padding: 0 var(--m); align-items: end; }
.finale h2 { grid-column: 1 / 9; font-size: clamp(3rem, 6vw, 7.6rem); line-height: 1; letter-spacing: -.045em; }
.finale .side { grid-column: 9 / 13; justify-self: end; text-align: right; }
.finale .side p { margin: 0 0 1.4rem; font-size: var(--prose); }
.finale .city { height: min(100vh, calc(100vw * 6123 / 7168)); }
.finale .legal { color: var(--muted); }
.finale .legal a:hover { color: var(--ivory); }
@media (max-width: 960px) {
  .finale .say { grid-template-columns: 1fr; row-gap: 2.4rem; }
  .finale h2, .finale .side { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .finale { min-height: 0; padding-top: 6vh; }
  .finale .city { height: 82vw; }
  .finale .legal { row-gap: .7rem; padding-top: 1.6rem; }
}

/* ---------- Without WebGL or without scripts: the same sheet, printed flat ---------- */
html.flat-paper, html:not(.js) { background: var(--paper); }
.flat-paper [data-emboss], html:not(.js) [data-emboss] { color: var(--fg) !important; }
.flat-paper [data-sheet="burgundy"], html:not(.js) [data-sheet="burgundy"] { background: #3b1622; }
.flat-paper .crest, html:not(.js) .crest { visibility: visible; background: rgba(239, 231, 220, .1); -webkit-mask: url(crest-emboss.svg) center / contain no-repeat; mask: url(crest-emboss.svg) center / contain no-repeat; }
.flat-paper .city, html:not(.js) .city { visibility: visible; background: rgba(239, 231, 220, .08); -webkit-mask: url(skyline.svg) top center / 100% auto no-repeat; mask: url(skyline.svg) top center / 100% auto no-repeat; }
