/* goethecloud.com – the home of Goethe Write.
   Calm surfaces, strong type, generous space; light and dark follow the system. System fonts only (the server's
   Content-Security-Policy allows no web fonts), no JavaScript. Home and tour are set as stages (see "stages" below): real windows in a window frame with a soft
   shadow, dark windows on light stages and light ones on the night stage.
   Type is set large on purpose: many writers read this page on a laptop at arm's length. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #48484d;          /* secondary text: 8.7:1 on white, 8.0:1 on --bg-2 */
  --ink-3: #5f5f65;          /* captions and fine print: 6.3:1 on white */
  --line: rgba(0, 0, 0, .14);
  --accent: #3a2fd6;         /* Goethe ultramarine, links and marks: 8.2:1 on white */
  --fill: #3a2fd6;           /* filled button, white label: 5.4:1 */
  --fill-hover: #2f25b8;
  --fill-ink: #ffffff;
  --paper: #f4efe4;          /* the cream page of the manuscript, as in the app */
  --paper-ink: #1d1d1f;
  --paper-line: rgba(0, 0, 0, .12);
  --sel: rgba(58, 47, 214, .22);
  --key: #e8e8ed;            /* a key of the keyboard in the handbook's text */
  --fill-2: #ebebf0;         /* a grouped surface pressed or hovered */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --courier: "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
  --gap: clamp(76px, 10.5vw, 152px);
  --pad: clamp(20px, 5vw, 48px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;           /* the desk around the page in the app */
    --bg-2: #1a1b20;         /* sidebar and inspector */
    --ink: #f1eee6;          /* the paper colour as text */
    --ink-2: #b4b7bf;        /* 9.6:1 on --bg */
    --ink-3: #9a9ea7;        /* 7.1:1 on --bg, 6.5:1 on --bg-2 */
    --line: rgba(255, 255, 255, .14);
    --accent: #a59dff;       /* 7.8:1 on --bg */
    --fill: #4a3fe6;
    --fill-hover: #5a50f0;
    --fill-ink: #ffffff;
    --paper: #f1ece1;
    --paper-ink: #1d1d1f;
    --paper-line: rgba(0, 0, 0, .14);
    --sel: rgba(58, 47, 214, .38);
    --key: #2c2d34;
    --fill-2: #23242a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 19px; line-height: 1.6; font-kerning: normal;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (max-width: 640px) { body { font-size: 18px; } }
::selection { background: var(--sel); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 650; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--fill); color: var(--fill-ink); font-weight: 600; }
.skip:focus { top: 12px; text-decoration: none; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right)); }
.wrap-wide { max-width: 1408px; }
.narrow { max-width: 800px; }

/* ------------------------------------------------------------------ header */

.head { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--bg); }
.head-row { display: flex; align-items: center; gap: 8px; min-height: 60px; }
.brand { display: inline-flex; align-items: baseline; gap: .28em; margin-right: auto; color: var(--ink); white-space: nowrap; padding-block: 8px; }
.brand:hover { text-decoration: none; }
.brand-g { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.brand-w { font-size: 17px; font-weight: 500; color: var(--ink-2); line-height: 1; }
.nav ul { display: flex; list-style: none; gap: 4px; }
.nav-a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-size: 17px; }
.nav-a:hover { text-decoration: none; background: var(--bg-2); }
.nav-a[aria-current="page"] { color: var(--accent); }

/* pull-down menus (no script: details and summary) */
.pop { position: relative; }
.pop summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-size: 17px; user-select: none; }
.pop summary::-webkit-details-marker { display: none; }
.pop summary:hover { background: var(--bg-2); }
.pop[open] summary { background: var(--bg-2); }
.pop-label { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.globe { color: var(--ink-2); }
.pop-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; list-style: none; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); z-index: 20; }
.pop-list a { display: block; padding: 11px 14px; border-radius: 9px; color: var(--ink); font-size: 17px; }
.pop-list a:hover { background: var(--bg-2); text-decoration: none; }
.pop-list a[aria-current] { color: var(--accent); font-weight: 600; }
.menu-pop { display: none; }
.menu-pop summary { font-weight: 600; color: var(--accent); }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-pop { display: block; }
  .menu-pop .pop-list { position: fixed; left: 12px; right: 12px; top: 64px; min-width: 0; }
  .lang-pop .pop-list { position: fixed; left: 12px; right: 12px; top: 64px; min-width: 0; }
}

/* ------------------------------------------------------------------ type */

h1 { font-family: var(--display); font-size: clamp(40px, 5.6vw, 72px); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; max-width: 18em; }
h2 { font-family: var(--display); font-size: clamp(31px, 4.1vw, 52px); line-height: 1.1; font-weight: 700; letter-spacing: -.022em; text-wrap: balance; max-width: 17em; }
h3 { font-family: var(--display); font-size: clamp(20px, 1.7vw, 23px); line-height: 1.3; font-weight: 650; letter-spacing: -.012em; }
.lede { margin-top: clamp(18px, 2.2vw, 26px); font-size: clamp(21px, 2vw, 25px); line-height: 1.45; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.body { font-size: clamp(19px, 1.45vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.flow > * + * { margin-top: 1em; }
.flow > .rows, .flow > .facts, .flow > .faq { margin-top: 1.6em; }
.footnote { font-size: 16px; line-height: 1.55; color: var(--ink-3); max-width: 46em; }
.flow .footnote { margin-top: 1.4em; }
.more { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 19px; }
.flow > .more { margin-top: 1.5em; }
.more a { font-weight: 500; }
.chev { font-weight: 400; }

/* ------------------------------------------------------------------ buttons */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: clamp(26px, 3.2vw, 38px); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: var(--fill); color: var(--fill-ink); font-size: 18px; font-weight: 600; line-height: 1.2; }
.btn:hover { background: var(--fill-hover); text-decoration: none; }
.btn-plain { display: inline-flex; align-items: center; min-height: 48px; font-size: 18px; font-weight: 500; }
.btn-plain::after { content: "\203A"; margin-left: .3em; }
@media (prefers-reduced-motion: no-preference) {
  .head-fig picture { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* ------------------------------------------------------------------ page head (inner pages) */

.page-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(8px, 2vw, 24px); }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; gap: 2px 0; font-size: 16px; color: var(--ink-3); margin-bottom: clamp(16px, 2vw, 24px); }
.crumbs li + li::before { content: "\203A"; margin: 0 .55em; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }
.status { margin-top: clamp(22px, 2.6vw, 30px); font-size: 18px; font-weight: 600; color: var(--ink); }
.status span { display: block; font-weight: 400; color: var(--ink-2); }
.meta { margin-top: 18px; font-size: 16px; color: var(--ink-3); }
.draft { margin-top: 18px; max-width: 46em; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.draft strong { color: var(--accent); }
.head-fig { margin-top: clamp(36px, 5vw, 64px); }

/* ------------------------------------------------------------------ sections */

.sec { padding-block: var(--gap); }
.head-fig + .sec { padding-top: calc(var(--gap) * .8); }
.page-head + .sec { padding-top: calc(var(--gap) * .5); }
.sec-raised { background: var(--bg-2); }
.split { display: grid; gap: clamp(18px, 2.6vw, 30px); }
@media (min-width: 920px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
  .split > .flow { padding-top: .5em; }
  .split > h2:only-child { grid-column: 1 / -1; }
  .split-script > .flow { padding-top: 0; }
}

/* figures: the real window, a hairline so a dark window reads on a dark page */
.fig-wrap { margin-top: clamp(36px, 5vw, 72px); }
.fig picture, .fig img { border-radius: clamp(6px, .9vw, 12px); }
.fig img { width: 100%; border: 1px solid var(--line); background: #1a1b20; }
.fig figcaption { margin-top: 16px; font-size: 16px; line-height: 1.5; color: var(--ink-3); max-width: 52em; }
.fig-note { color: var(--ink-3); }
.sec > .wrap + .wrap > .rows { margin-top: clamp(28px, 4vw, 48px); }

/* rows: an inset list like Settings, hairlines inset to the text */
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows > li { border-bottom: 1px solid var(--line); }
.row, .row-link { display: flex; align-items: center; gap: 16px; padding: 18px 2px; }
.row-link { color: inherit; }
.row-link:hover { text-decoration: none; }
.row-link:hover .row-h { color: var(--accent); }
.row-text { flex: 1; min-width: 0; }
.row-h { display: block; font-family: var(--display); font-size: clamp(19px, 1.5vw, 21px); line-height: 1.35; font-weight: 600; color: var(--ink); }
.row-p { display: block; margin-top: 4px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.row-link .chev { flex: none; font-size: 26px; line-height: 1; color: var(--ink-3); }
.tag { margin-left: .6em; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.sec-raised .rows, .sec-raised .rows > li { border-color: var(--line); }

/* columns: two to four short texts under a hairline */
.cols { display: grid; gap: 28px clamp(24px, 3.6vw, 52px); margin-top: clamp(36px, 5vw, 64px); }
.col { border-top: 1px solid var(--line); padding-top: 20px; }
.col p { margin-top: 8px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.col h3 a { color: var(--ink); }
.col h3 a:hover { color: var(--accent); }
/* four short texts stay two by two: four narrow columns would break the lines too often for comfortable reading */
@media (min-width: 680px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cols + .more { margin-top: clamp(28px, 4vw, 44px); }

/* facts: label and value, like an Info pane */
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: 4px 24px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .facts > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { color: var(--ink-2); }

/* the screenplay page: words set as a screenplay, on the cream paper of the app (text, not a picture of the app) */
/* indents in the proportions of the page: text area 6 in; character at 2 in, dialogue 1 to 4.5 in, parenthetical
   1.5 to 4 in, transition ending 0.4 in before the right margin (Final Draft 13 defaults, measured from the margin) */
.sheet { background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-line); border-radius: 6px; padding: clamp(22px, 3.4vw, 44px) clamp(18px, 2.6vw, 36px); font-family: var(--courier); font-size: clamp(14px, 1.12vw, 16px); line-height: 1.45; max-width: 38em; }
.sheet p { margin: 0; }
.sheet p + p { margin-top: 1.45em; }
.sheet .sp-cue + p, .sheet .sp-paren + p { margin-top: 0; }
.sp-scene { font-weight: 700; }
.sp-cue { padding-left: 33.3%; }
.sp-paren { padding-left: 25%; padding-right: 33.3%; }
.sp-dia { padding-left: 16.7%; padding-right: 25%; }
.sp-trans { text-align: right; padding-right: 6.7%; }
.sp-center { text-align: center; }
@media (max-width: 520px) { .sp-cue { padding-left: 26%; } .sp-paren { padding-left: 16%; padding-right: 14%; } .sp-dia { padding-left: 9%; padding-right: 6%; } .sp-trans { padding-right: 0; } }
.prose .sheet { margin-block: 1.6em; }

/* pricing */
.plans { display: grid; gap: 40px clamp(24px, 3.6vw, 52px); margin-top: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { border-top: 1px solid var(--line); padding-top: 22px; }
.price { margin-top: 14px; font-family: var(--display); font-size: clamp(38px, 4.4vw, 54px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.unit { display: block; margin-top: 8px; font-family: var(--sans); font-size: 17px; line-height: 1.45; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.plan-p { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.ticks { list-style: none; margin-top: 18px; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 13px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .footnote { margin-top: 14px; }
.plans-foot { margin-top: clamp(28px, 4vw, 40px); }
.plans-foot + .more { margin-top: 18px; }

/* questions and answers, all open: nothing to click to read the answer */
.faq { border-top: 1px solid var(--line); }
.qa { padding: 22px 2px 24px; border-bottom: 1px solid var(--line); }
.qa h3 { font-size: clamp(19px, 1.55vw, 21px); }
.qa p { margin-top: 8px; color: var(--ink-2); max-width: 38em; }

/* tables (comparisons, guides) */
.table-wrap { margin-top: clamp(28px, 4vw, 48px); }
.table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.5; }
.table caption { text-align: left; font-size: 16px; color: var(--ink-3); padding-bottom: 12px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.table thead th { font-family: var(--display); font-size: 18px; font-weight: 650; color: var(--ink); border-bottom-color: var(--ink-3); }
.table tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.table td { color: var(--ink-2); }
@media (max-width: 760px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: auto; }
  .table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .table tbody th, .table td { border: 0; padding: 4px 0; width: auto; }
  .table tbody th { font-size: 18px; padding-bottom: 6px; }
  .table td::before { content: attr(data-label); display: block; font-size: 15px; font-weight: 600; color: var(--ink-3); }
  .table td + td { margin-top: 8px; }
}

/* long texts: guides and legal pages */
.prose { font-size: 19px; line-height: 1.65; }
.doc { padding-bottom: var(--gap); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(27px, 3vw, 36px); margin-top: 1.9em; scroll-margin-top: 24px; }
.prose h3 { margin-top: 1.6em; }
.prose h4 { font-size: 19px; margin-top: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { padding-left: 20px; border-left: 3px solid var(--line); color: var(--ink-2); }
.prose .table-wrap { margin-top: 1.4em; }
.pre { overflow-x: auto; padding: 18px 20px; border-radius: 10px; background: var(--bg-2); font-size: 16px; line-height: 1.5; }
.toc { margin: 8px 0 28px; padding: 20px 0; border-block: 1px solid var(--line); }
.toc h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.toc ol { margin-top: 10px; padding-left: 1.3em; font-size: 18px; columns: 2 260px; column-gap: 40px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }

/* ------------------------------------------------------------------ handbook */

/* a chapter: the chapters on the left (on a phone and a narrow window below the text), the text in a reading column */
.hb-layout { display: grid; column-gap: clamp(48px, 5vw, 80px); padding-top: clamp(36px, 5vw, 72px); }
.hb-main { min-width: 0; max-width: 760px; }
@media (min-width: 1040px) {
  .hb-layout { grid-template-columns: 224px minmax(0, 1fr); }
  .hb-main { grid-column: 2; grid-row: 1; }
  .hb-side { grid-column: 1; grid-row: 1; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; overscroll-behavior: contain; padding: 6px 4px 48px 0; }
}

.hb-head { padding-bottom: 4px; }
.hb-kicker { font-size: 17px; line-height: 1.4; color: var(--ink-3); margin-bottom: 8px; }
.hb-head h1 { font-size: clamp(38px, 4.6vw, 58px); max-width: 15em; }
.hb-head .meta { margin-top: 16px; }

.hb-prose { padding-top: clamp(26px, 3vw, 38px); padding-bottom: clamp(44px, 6vw, 76px); overflow-wrap: break-word; }
.hb-intro > * + * { margin-top: 1em; }
.hb-intro > p:first-child { font-size: clamp(20px, 1.6vw, 22px); line-height: 1.55; }
.prose.hb-prose h3, .prose.hb-prose h4 { scroll-margin-top: 24px; }
.prose.hb-prose h4 { font-size: 19px; color: var(--ink); }
.prose.hb-prose li > ul, .prose.hb-prose li > ol { margin-top: .4em; }
.prose.hb-prose p > em:first-child { color: var(--ink); }

/* keys: the shortcut as one quiet key, never a picture */
kbd { display: inline-block; padding: .08em .4em .1em; border-radius: 6px; background: var(--key); color: var(--ink); font-family: var(--sans); font-size: .84em; font-weight: 500; line-height: 1.35; letter-spacing: .03em; white-space: nowrap; }
.table kbd { font-size: .9em; }

/* notes: Tip, Coming soon, an example from practice – a grouped surface, the label in bold */
.hb-note { padding: 18px 22px 19px; border-radius: 12px; background: var(--bg-2); }
.prose .hb-note { margin-top: 1.4em; }
.prose .hb-note + * { margin-top: 1.4em; }
.hb-note > * + * { margin-top: .7em; }
.prose .hb-note p, .prose .hb-note li { font-size: 18px; line-height: 1.6; }
.hb-note kbd { background: var(--fill-2); }
.hb-soon > p:first-child > strong:first-child { color: var(--accent); }

/* tables of the handbook: commands, shortcuts, settings */
.prose .hb-table { font-size: 17px; }
@media (min-width: 761px) {
  .hb-table th, .hb-table td { padding: 12px 18px 12px 0; }
  .hb-table tbody th { width: auto; min-width: 9em; }
  .hb-prose .table-wrap { overflow-x: auto; }
  .hb-table.hb-even { table-layout: fixed; }
  .hb-table.hb-even tbody th { min-width: 0; }
}
@media (max-width: 760px) {
  .hb-table td.empty { display: none; }
  /* two columns (a command and its key, a setting and what it does) stay side by side on a phone */
  .table.hb-cols-2 { display: table; width: 100%; font-size: 16px; }
  .table.hb-cols-2 thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: table-header-group; }
  .table.hb-cols-2 tbody { display: table-row-group; }
  .table.hb-cols-2 tr { display: table-row; padding: 0; }
  .table.hb-cols-2 th, .table.hb-cols-2 td { display: table-cell; width: auto; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
  .table.hb-cols-2 thead th { font-size: 16px; }
  /* the columns share the width by their content: a short term leaves its sentence room, a long command its key */
  .table.hb-cols-2 tbody th { font-size: 16px; padding-bottom: 10px; width: auto; }
  .table.hb-cols-2 td::before { content: none; }
  .table.hb-cols-2 td.empty { display: table-cell; }
  .table.hb-keys tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; }
  .table.hb-keys tbody th { grid-column: 1; grid-row: 1; }
  .table.hb-keys td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
  .table.hb-keys td:nth-child(3) { grid-column: 1 / -1; }
  .table.hb-keys td::before { content: none; }
  .table.hb-keys td + td { margin-top: 2px; }
}
.hb-rule { margin-block: 2em; border: 0; border-top: 1px solid var(--line); }

/* contents of the chapter: its sections, each with its subsections in a quiet line underneath */
.hb-toc { margin-top: clamp(28px, 3.4vw, 40px); padding: 18px 24px 20px; border-radius: 12px; background: var(--bg-2); }
.prose .hb-toc h2 { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.prose .hb-toc ol, .prose .hb-toc ul { list-style: none; padding-left: 0; }
.prose .hb-toc ol { margin-top: 8px; }
.prose .hb-toc ol > li { margin: 0; padding: 11px 0 12px; border-top: 1px solid var(--line); }
.prose .hb-toc ol > li:first-child { border-top: 0; padding-top: 4px; }
.hb-toc ol > li > a { font-family: var(--display); font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.hb-toc ol > li > a:hover { color: var(--accent); }
.prose .hb-toc ul { display: flex; flex-wrap: wrap; margin-top: 5px; font-size: 15px; line-height: 1.55; }
.prose .hb-toc ul li { margin: 0; color: var(--ink-3); }
.hb-toc ul li:not(:last-child)::after { content: "·"; margin: 0 .5em; }
.hb-toc ul a { color: var(--ink-2); }
.hb-toc ul a:hover { color: var(--accent); }

/* previous and next chapter */
.hb-pager { display: grid; gap: 12px; padding-bottom: clamp(48px, 7vw, 96px); }
@media (min-width: 640px) {
  .hb-pager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-pg-next { grid-column: 2; text-align: right; }
}
.hb-pg { display: block; padding: 16px 20px 18px; border-radius: 12px; background: var(--bg-2); color: var(--ink); }
.hb-pg:hover { text-decoration: none; background: var(--fill-2); }
.hb-pg-k { display: block; font-size: 15px; line-height: 1.4; color: var(--accent); }
.hb-pg-t { display: block; margin-top: 3px; font-family: var(--display); font-size: 18px; line-height: 1.35; font-weight: 600; }
.hb-pg-n { display: block; font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--ink-3); }

/* the chapter list */
.hb-side-h { font-family: var(--sans); font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: 0; max-width: none; }
.hb-side-h a { color: var(--ink); }
.hb-side-h a:hover { color: var(--accent); text-decoration: none; }
.hb-groups { list-style: none; margin-top: 16px; }
.hb-groups > li { padding-bottom: 16px; }
.hb-side-g { margin: 0 0 4px; font-family: var(--sans); font-size: 13px; line-height: 1.4; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.hb-side ol { list-style: none; }
.hb-side ol a { display: flex; gap: 10px; margin-inline: -10px; padding: 6px 10px; border-radius: 8px; font-size: 16px; line-height: 1.35; color: var(--ink-2); }
.hb-side ol a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.hb-side ol a[aria-current] { background: var(--bg-2); color: var(--accent); font-weight: 600; }
.hb-n { flex: none; min-width: 1.35em; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 400; }
@media (max-width: 1039px) {
  .hb-side { margin-bottom: clamp(48px, 8vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
  .hb-groups { columns: 2 260px; column-gap: 48px; }
  .hb-groups > li { break-inside: avoid; }
  .hb-side ol a { margin-inline: 0; padding-inline: 0; }
  .hb-side ol a[aria-current] { background: none; }
}

/* the format's specification (/format/specification/): the handbook's reading column and side list; identifiers break
   after a dot or a slash (build.mjs marks the places), so tables keep their columns and nothing runs off a phone */
.facts code { overflow-wrap: anywhere; }
.prose.fmt-prose .hb-table { font-size: 16px; }
@media (min-width: 761px) {
  .fmt-prose .hb-table th, .fmt-prose .hb-table td { padding: 11px 14px 11px 0; }
  .fmt-prose .hb-table tbody th { min-width: 0; }
}
.fmt-side code { font-size: .9em; }

/* the handbook's index: every chapter with its sections */
.hb-group { padding-block: clamp(52px, 7vw, 104px); }
.page-head + .hb-group { padding-top: clamp(40px, 5vw, 64px); }
.hb-index { list-style: none; border-top: 1px solid var(--line); }
.hb-entry { padding: 20px 2px 22px; border-bottom: 1px solid var(--line); }
.hb-entry h3 { font-size: clamp(20px, 1.7vw, 23px); }
.hb-entry h3 a { display: inline-flex; gap: .55em; color: var(--ink); }
.hb-entry h3 a:hover { color: var(--accent); text-decoration: none; }
.hb-entry h3 .hb-n { min-width: 1.1em; text-align: left; }
.hb-desc { margin-top: 6px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.hb-secs { list-style: none; display: flex; flex-wrap: wrap; margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.hb-secs li:not(:last-child)::after { content: "·"; margin: 0 .5em; }

/* "In the handbook:" under a group of questions */
.hb-more-k { color: var(--ink-2); font-weight: 500; }

/* closing */
.cta { text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; }
.cta-mark { font-family: var(--serif); font-size: clamp(48px, 6vw, 76px); line-height: 1; color: var(--accent); margin-bottom: clamp(16px, 2.4vw, 26px); }
.cta h2 { max-width: 16em; }
.cta-p { margin-top: 16px; font-size: clamp(19px, 1.5vw, 21px); color: var(--ink-2); max-width: 32em; }
.cta .status { text-align: center; }
.cta .actions { justify-content: center; }

/* 404 */
.nf { padding-bottom: var(--gap); }
.nf-mark { font-family: var(--serif); font-size: clamp(56px, 8vw, 96px); line-height: 1; color: var(--accent); margin-bottom: 20px; }
.nf-links { list-style: none; margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 19px; }

/* ------------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(48px, 6vw, 72px) clamp(40px, 5vw, 56px); font-size: 16px; color: var(--ink-2); }
.foot-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; }
.foot-line { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink); }
.foot-tag { font-size: 16px; color: var(--ink-3); }
.foot-status { font-size: 17px; color: var(--ink); max-width: 46em; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .foot-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.foot h2, .foot-h { font-family: var(--sans); font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--ink); max-width: none; }
.foot ul { list-style: none; margin-top: 10px; }
.foot li + li { margin-top: 8px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--accent); }
.foot-lang { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-lang ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-lang li + li { margin-top: 0; }
.foot-lang a[aria-current] { color: var(--ink); font-weight: 600; }
.foot-fine { margin-top: 20px; font-size: 15px; line-height: 1.55; color: var(--ink-3); max-width: 60em; }
.foot-fine + .foot-fine { margin-top: 8px; }

@media print {
  .head, .foot, .skip, .actions, .hb-side, .hb-pager, .hb-toc { display: none; }
  .hb-layout { display: block; }
  kbd { border: 1px solid #999; background: none; }
  .sec { padding-block: 24px; }
  body { background: #fff; color: #000; }
}

/* Sign in to Goethe Cloud (account.goethecloud.com), a quiet pill in the header */
.signin { margin-left: auto; padding: 6px 14px; border: 1px solid var(--line, rgba(127,127,127,.35)); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.signin:hover { border-color: var(--accent); color: var(--accent); }
.nav + .signin { margin-left: 18px; }
@media (max-width: 860px) { .signin { display: none; } }

/* ------------------------------------------------------------------ our story (/story/)
   An editorial page: a serif reading column, Goethe's lines set large, then and now side by side. */

.page-story .page-head h1 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.04; max-width: 15em; }
.page-story .page-head .lede { font-family: var(--serif); font-style: italic; color: var(--ink-2); max-width: 30em; }
.page-story .sec { padding-block: calc(var(--gap) * .78); }
.page-story .page-head { max-width: 820px; }
.page-story h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; }

/* essay: one column of about 62 characters, set in serif */
.essay-col { max-width: 820px; }
.essay-kicker { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--accent); margin-bottom: 14px; }
.essay { margin-top: clamp(22px, 3vw, 36px); }
.essay-p { font-family: var(--serif); font-size: clamp(20px, 1.75vw, 23px); line-height: 1.66; color: var(--ink); max-width: 34em; text-wrap: pretty; hyphens: auto; }
.essay-p + .essay-p { margin-top: 1.05em; }
.essay-drop > .essay-p:first-child::first-letter { float: left; font-size: 4.1em; line-height: .84; font-weight: 500; margin: .07em .09em 0 -.02em; color: var(--accent); }
.essay-col > .more { margin-top: 1.6em; }

/* quote: the German original large, our translation below, the source in small capitals */
.quote-sec { text-align: center; }
.quote { max-width: 900px; margin-inline: auto; padding-block: clamp(8px, 2vw, 24px); }
.quote::before { content: ""; display: block; width: 56px; height: 1px; margin: 0 auto clamp(26px, 3.4vw, 40px); background: var(--accent); }
.quote-de p { font-family: var(--serif); font-size: clamp(27px, 3.5vw, 44px); line-height: 1.32; font-weight: 400; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.quote-tr { margin-top: clamp(16px, 2vw, 24px); font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); }
.quote-note { font-family: var(--sans); font-style: normal; font-size: 15px; color: var(--ink-3); white-space: nowrap; }
.quote-cap { margin-top: clamp(18px, 2.4vw, 28px); font-size: 16px; line-height: 1.5; color: var(--ink-3); }
.quote-cap cite { font-style: normal; font-variant: small-caps; letter-spacing: .03em; }
.quote-cap cite em { font-style: italic; }
.quote-ctx { display: block; margin-top: 6px; }

/* then and now: numbered pairs under a hairline, Weimar on the left, Goethe Write on the right */
.tn { list-style: none; counter-reset: tn; margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.tn-item { counter-increment: tn; position: relative; display: grid; gap: 18px clamp(28px, 5vw, 80px); padding: clamp(24px, 3vw, 36px) 0 clamp(24px, 3vw, 36px) clamp(44px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.tn-item::before { content: counter(tn, upper-roman); position: absolute; left: 0; top: clamp(24px, 3vw, 36px); font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.2; color: var(--accent); }
@media (min-width: 760px) { .tn-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tn-k { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--accent); }
.tn-then h3 { font-family: var(--serif); font-style: italic; font-weight: 500; }
.tn-now h3 a { color: var(--ink); }
.tn-now h3 a:hover { color: var(--accent); }
.tn h3 { margin-top: 6px; }
.tn-p { margin-top: 8px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.tn-then .tn-p { font-family: var(--serif); font-size: 19px; }

/* the blog (blog.mjs): the quiet line under each article in a list */
.blog-when { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.blog-meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.blog-meta a:hover { color: var(--accent); }
/* ------------------------------------------------------------------ feature pages (long form)
   Problem as a quiet pull quote, the solution beside a real screenshot (sides alternate), an example from practice,
   key facts and questions. Text stays in a reading measure; screenshots get the room. Nothing overlaps the text. */
.fx-tocwrap { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(8px, 2vw, 16px); }
.fx-toc { padding: 22px 0 18px; border-block: 1px solid var(--line); }
.fx-toc h2 { font-size: 17px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.fx-toc ol { margin-top: 10px; padding-left: 1.4em; font-size: 18px; columns: 2 300px; column-gap: 48px; }
.fx-toc li { margin: 0 0 7px; break-inside: avoid; color: var(--ink-3); }
.fx-sec { scroll-margin-top: 0; }
.fx-h2 { max-width: 22em; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; text-wrap: balance; }
.fx-body { margin-top: clamp(22px, 3vw, 36px); }
.fx-body > * + * { margin-top: clamp(26px, 3.4vw, 44px); }
.fx-body > .prose, .fx-body > p { max-width: 42em; }
.fx-body .prose > * + * { margin-top: 1em; }
.fx-problem { max-width: 30em; padding: 4px 0 4px clamp(18px, 2vw, 26px); border-left: 3px solid var(--accent); }
.fx-problem p { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 29px); line-height: 1.38; color: var(--ink); text-wrap: pretty; }
.fx-row { display: grid; gap: clamp(24px, 3.4vw, 48px); align-items: start; }
@media (min-width: 1000px) {
  .fx-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .fx-row-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .fx-row-flip .fx-row-text { order: 2; }
  .fx-row-fig { position: sticky; top: 24px; }
}
.fx-row-text h3 { font-size: clamp(21px, 1.8vw, 24px); }
.fx-row-text h3:first-child { margin-top: 0; }
.fx-fig img { width: 100%; border: 1px solid var(--line); background: #1a1b20; border-radius: clamp(6px, .9vw, 12px); }
.fx-fig figcaption { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--ink-3); }
.fx-wide { max-width: none; }
.fx-practice { max-width: 46em; padding: clamp(20px, 2.6vw, 30px); border-radius: 16px; background: var(--bg-2); }
.sec-raised .fx-practice, .sec-raised .fx-facts { background: var(--bg); }
.fx-practice > * + * { margin-top: .8em; }
.fx-practice p, .fx-practice li { color: var(--ink-2); }
.fx-practice ol, .fx-practice ul { padding-left: 1.3em; }
.fx-k { font-size: 15px; font-weight: 650; letter-spacing: 0; color: var(--accent); }
.fx-facts { max-width: 46em; padding: clamp(20px, 2.6vw, 30px) clamp(20px, 2.6vw, 30px) 8px; border-radius: 16px; background: var(--bg-2); }
.fx-facts .facts { margin-top: 12px; }
.fx-facts .facts > div:last-child { border-bottom: 0; }
@media (min-width: 720px) { .fx-facts .facts > div { grid-template-columns: 13em 1fr; } }
.fx-faq { max-width: 46em; }
.prose code, .fx-body code { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ stages (home, tour)
   One idea per stage, across the full width: a large serif headline, a sentence or two, one large picture, then a
   row of details. Three stages alternate – paper (the cream of the manuscript page), white, and night (the desk
   around the page in the app) – so a dark window stands on a light stage and a light one on the night stage.
   A stage keeps its tone in light and in dark appearance (the light ones a shade calmer in the dark); the text
   colours are set per stage, so everything inside follows.
   Every picture has its width and height in the HTML and a ground in its own tone (.ph-*) while it loads. */

:root {
  --paper-a: #fbf8f1; --paper-b: #f0e9da; --paper-c: #e4d9c1;
  --white-a: #ffffff; --white-b: #f1f1f5;
  --night-a: #2c2f3a; --night-b: #16171c; --night-c: #0c0d10;
  --win-r: clamp(5px, .82vw, 11px);
  --stage-gap: clamp(84px, 11vw, 168px);
}
@media (prefers-color-scheme: dark) {
  :root { --paper-a: #ece6d8; --paper-b: #e1d9c6; --paper-c: #d3c8ae; --white-a: #ececf0; --white-b: #dedee4; }
}

.wrap-stage { max-width: 1320px; }
.stage { position: relative; padding-block: var(--stage-gap); overflow: clip; color: var(--ink); }
.stage-paper, .stage-white {
  --ink: #1d1d1f; --ink-2: #45454a; --ink-3: #5c5c62; --line: rgba(0, 0, 0, .15); --accent: #3a2fd6;
  --fill: #3a2fd6; --fill-hover: #2f25b8; --bg-2: rgba(0, 0, 0, .05);
  --ring: rgba(0, 0, 0, .26); --shade: rgba(28, 24, 40, .34); --card-ring: rgba(0, 0, 0, .1);
}
.stage-paper { --card: #fffdf8; background: radial-gradient(ellipse 80% 55% at 50% 100%, var(--paper-c), transparent 72%), linear-gradient(var(--paper-a), var(--paper-b)); }
.stage-white { --card: #f3f3f6; background: linear-gradient(var(--white-a), var(--white-b)); }
.stage-night {
  --ink: #f4f0e6; --ink-2: #b9bcc5; --ink-3: #9da1ab; --line: rgba(255, 255, 255, .16); --accent: #a59dff;
  --fill: #4a3fe6; --fill-hover: #5a50f0; --bg-2: rgba(255, 255, 255, .07);
  --ring: rgba(255, 255, 255, .2); --shade: rgba(0, 0, 0, .7); --card: rgba(255, 255, 255, .06); --card-ring: rgba(255, 255, 255, .1);
  background: radial-gradient(ellipse 70% 60% at 50% 58%, var(--night-a), var(--night-b) 58%, var(--night-c));
}
.stage h2, .h1-tag { font-family: var(--serif); font-weight: 500; letter-spacing: -.022em; text-wrap: balance; }
.stage h2 { font-size: clamp(36px, 5.6vw, 78px); line-height: 1.03; max-width: 13em; }
.stage .body { color: var(--ink-2); font-size: clamp(19px, 1.55vw, 22px); line-height: 1.5; }

/* placeholders: the picture's own ground while it loads */
.ph-dark, .ph-dark img { background-color: #1c1d22; }
.ph-light, .ph-light img { background-color: #ececee; }
.m-img { width: 100%; }
.vis picture, .mat picture { display: contents; }
.vis img { width: 100%; }

/* a Mac window: the real screenshot in a window frame – round corners, a hairline, a long soft shadow */
.win, .clip { position: relative; overflow: hidden; }
.win { border-radius: var(--win-r); box-shadow: 0 0 0 1px var(--ring), 0 2px 5px rgba(0, 0, 0, .14), 0 22px 44px -14px var(--shade), 0 64px 120px -44px var(--shade); }
.win::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.win.ph-dark::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); }
.stage-night .win.ph-dark { box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 0 0 2px rgba(255, 255, 255, .1), 0 30px 70px -20px #000, 0 0 140px -30px rgba(120, 150, 255, .28); }
.stage-night .win.ph-light { box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 30px 70px -20px #000, 0 0 160px -30px rgba(255, 244, 220, .3); }
/* a detail as the large picture: a clip or a close-up, no window frame */
.clip { border-radius: clamp(8px, 1.1vw, 16px); box-shadow: 0 0 0 1px var(--ring), 0 18px 40px -16px var(--shade); }
.vis-note { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }

/* the hero */
.hero { padding-top: clamp(40px, 6.5vw, 96px); padding-bottom: clamp(64px, 8vw, 120px); }
.hero-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { max-width: none; font-weight: inherit; letter-spacing: 0; }
.mark { display: block; line-height: 1; color: var(--ink-2); }
.mark-g { font-family: var(--serif); font-size: clamp(27px, 2.7vw, 36px); font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.mark-w { font-family: var(--display); font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; }
.h1-tag { display: block; margin-top: clamp(14px, 1.8vw, 24px); font-size: clamp(44px, 7.7vw, 108px); line-height: .98; letter-spacing: -.028em; max-width: 11.5em; }
.hero-page .h1-tag { margin-top: 0; max-width: 12em; }
.hero-page .crumbs ol { justify-content: center; }
.hero-sub { margin-top: clamp(20px, 2.4vw, 30px); font-size: clamp(20px, 2vw, 26px); line-height: 1.4; color: var(--ink-2); max-width: 30em; text-wrap: balance; }
.hero-page .hero-sub { max-width: 36em; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; text-wrap: pretty; }
.hero .actions { justify-content: center; }
.hero-status { margin-top: 18px; font-size: 16px; line-height: 1.45; color: var(--ink-3); }
.hero-vis { margin-top: clamp(44px, 6vw, 84px); }
/* two windows: the book behind, the screenplay in front */
.duo { position: relative; padding-bottom: 9.5%; }
.duo-back { width: 79%; }
.duo-front { position: absolute; right: 0; bottom: 0; width: 61%; }
@media (max-width: 640px) { .duo { padding-bottom: 17%; } .duo-back { width: 90%; } .duo-front { width: 74%; } }
.hero-lede { margin-top: clamp(56px, 7vw, 104px); max-width: 980px; text-align: center; }
.hero-p { font-family: var(--serif); font-size: clamp(22px, 2.5vw, 33px); line-height: 1.36; letter-spacing: -.008em; color: var(--ink); text-wrap: pretty; }
.hero-lede .more { justify-content: center; margin-top: 1.4em; }
@media (prefers-reduced-motion: no-preference) {
  .hero-vis .vis { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-vis .duo-front { animation-delay: .18s; }
}

/* a scene: headline and text in the middle, the picture below … */
.scene-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.scene-copy { margin-top: clamp(18px, 2.2vw, 28px); max-width: 37em; }
.scene-copy > * + * { margin-top: 1em; }
.scene-copy .body { margin-inline: auto; }
.scene-head .more { justify-content: center; margin-top: 1.3em; }
.scene-vis { margin-top: clamp(40px, 5.5vw, 80px); }
.scene-center .scene-vis { max-width: 1264px; }
.scene-under { margin-top: clamp(28px, 3.6vw, 52px); }
.scene-vis + .scene-under { margin-top: clamp(44px, 5.5vw, 84px); }
.scene-note { margin-top: clamp(24px, 3vw, 36px); text-align: center; margin-inline: auto; }
.scene-cols { margin-top: clamp(40px, 5vw, 72px); }
.stage .col p { color: var(--ink-2); }

/* … or beside it: text on one side, the window on the other, running off the edge of a wide screen */
.scene-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.scene-grid .scene-head { align-items: flex-start; text-align: left; }
.scene-grid .scene-head .more { justify-content: flex-start; }
.scene-grid .scene-copy .body { margin-inline: 0; }
.scene-grid .scene-vis { margin-top: 0; min-width: 0; }
.scene-grid .rows { margin-top: 1.5em; }
.scene-grid .row { padding-block: 14px; }
.scene-grid .sheet { margin-inline: auto; box-shadow: 0 24px 60px -20px var(--shade), 0 0 140px -40px rgba(255, 244, 220, .35); border: 0; border-radius: 4px; }
@media (min-width: 1000px) {
  .scene-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .scene-grid h2 { font-size: clamp(36px, 4.3vw, 64px); }
  .scene-flip .scene-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .scene-flip .scene-head { order: 2; }
  .scene-bleed .vis { width: 128%; }
  .scene-flip .scene-bleed .vis { margin-left: -28%; }
}

/* statement: words alone */
.scene-statement .scene-copy { max-width: 40em; }
.scene-statement .body { font-family: var(--serif); font-size: clamp(21px, 2vw, 27px); line-height: 1.45; color: var(--ink); max-width: none; }
.scene-statement .body + .body { color: var(--ink-2); }

/* two windows side by side */
.pair-vis { display: grid; gap: clamp(28px, 3.4vw, 48px); align-items: center; }
@media (min-width: 760px) { .pair-vis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* strips: a wide, low clip or close-up (the ribbon, the stage bar, a line being typed) */
.strips { display: grid; gap: clamp(14px, 1.8vw, 24px); justify-items: center; }
.strip { width: 100%; max-width: 1264px; }
.strip .clip { border-radius: clamp(6px, .9vw, 12px); }
.strips + .details { margin-top: clamp(20px, 2.4vw, 32px); }

/* details: close-ups on a mat in a rounded card, the caption below. The mat has one proportion in a row; a tall
   close-up shows its top at a readable size, a small one stands whole in the middle (mat-contain). */
.details { display: grid; gap: clamp(14px, 1.8vw, 24px); }
@media (min-width: 640px) { .details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .details-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .details-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.details-2 { max-width: 1000px; margin-inline: auto; }
/* on a phone the details of a stage are one row to swipe through (the next card shows at the edge); the three kinds
   of work on the home page stay one below the other, because they are text to read */
@media (max-width: 639px) {
  .details:not(.details-trio) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding: 2px var(--pad) 6px; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain; }
  .details:not(.details-trio)::-webkit-scrollbar { display: none; }
  .details:not(.details-trio) > .detail { flex: 0 0 80%; scroll-snap-align: start; }
  .strip img { min-height: 76px; object-fit: cover; object-position: left top; }
}
.detail { display: flex; flex-direction: column; padding: clamp(10px, 1.1vw, 14px); border-radius: clamp(18px, 2vw, 26px); background: var(--card); }
.mat { aspect-ratio: 4 / 3; overflow: hidden; border-radius: clamp(10px, 1.1vw, 14px); box-shadow: 0 0 0 1px var(--card-ring); }
.mat img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.mat-low img { object-position: center bottom; }
.mat-contain { display: flex; align-items: center; padding: 7%; }
.mat-contain img { height: auto; max-height: 100%; object-fit: contain; object-position: center; border-radius: 4px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.detail figcaption { padding: 14px 8px 6px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.detail-loop figcaption p::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 .55em .12em 0; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.details-trio figcaption { padding: 18px 10px 12px; font-size: 17px; line-height: 1.5; }
.details-trio h3 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.012em; line-height: 1.15; }
.details-trio h3 a { color: var(--ink); }
.details-trio h3 a:hover { color: var(--accent); text-decoration: none; }
.details-trio h3 + p { margin-top: 8px; }

/* iPhone and iPad: the real screen in a plain dark bezel */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3.4vw, 56px); }
.phone, .pad { overflow: hidden; background: #0b0b0d; border: solid #0b0b0d; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 30px 60px -20px var(--shade); }
.vis-phone { width: clamp(92px, 24vw, 232px); }
.vis-pad { width: clamp(132px, 34.5vw, 336px); }
.phone { border-width: clamp(3px, .8vw, 8px); border-radius: clamp(15px, 4vw, 38px); }
.pad { border-width: clamp(4px, 1vw, 11px); border-radius: clamp(10px, 2.6vw, 24px); }
.phone img { border-radius: clamp(12px, 3.2vw, 30px); }
.pad img { border-radius: clamp(6px, 1.5vw, 13px); }

/* then and now: Weimar above in italic serif, Goethe Write below, three pairs side by side */
.weimar-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.weimar h2 { font-style: italic; letter-spacing: -.018em; }
.weimar-p { margin-top: clamp(16px, 2vw, 24px); font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; color: var(--ink-2); max-width: 30em; text-wrap: balance; }
.pairs { list-style: none; display: grid; gap: clamp(20px, 2.4vw, 32px); margin-top: clamp(44px, 5.5vw, 80px); }
@media (min-width: 900px) { .pairs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pair { display: grid; grid-template-rows: auto 1fr; border-radius: clamp(18px, 2vw, 26px); background: var(--card); overflow: hidden; }
@media (min-width: 900px) { .pair { grid-template-rows: subgrid; grid-row: span 2; } }
.pair-then, .pair-now { padding: clamp(22px, 2.6vw, 34px); }
.pair-then { border-bottom: 1px solid var(--line); }
.pair-now { background: rgba(255, 255, 255, .55); }
.pair-k { font-size: 15px; line-height: 1.3; color: var(--ink-3); }
.pair-then .pair-k { font-family: var(--serif); font-variant: small-caps; letter-spacing: .04em; font-size: 17px; }
.pair-now .pair-k { font-weight: 600; color: var(--accent); }
.pair h3 { margin-top: 8px; }
.pair-then h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(25px, 2.3vw, 31px); line-height: 1.15; letter-spacing: -.01em; }
.pair-now h3 { font-size: clamp(21px, 1.8vw, 24px); }
.pair-now h3 a { color: var(--ink); }
.pair-now h3 a:hover { color: var(--accent); text-decoration: none; }
.pair-p { margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.pair-then .pair-p { font-family: var(--serif); font-size: 18px; }
.weimar .more { justify-content: center; margin-top: clamp(32px, 4vw, 52px); }

/* the closing band on the night stage */
.cta.stage { padding-block: clamp(96px, 13vw, 200px); background: radial-gradient(ellipse 60% 70% at 50% 0%, #34384a, transparent 70%), linear-gradient(var(--night-b), var(--night-c)); }
.cta.stage .cta-mark { color: var(--ink); font-size: clamp(64px, 9vw, 128px); letter-spacing: -.02em; }
.cta.stage h2 { font-size: clamp(34px, 4.6vw, 62px); }
.cta.stage .cta-p { font-size: clamp(19px, 1.6vw, 22px); max-width: 34em; }
.cta.stage .status { font-size: 16px; font-weight: 400; color: var(--ink-3); }
.cta.stage .status span { color: var(--ink-3); }

@media print { .stage { background: none; color: #000; padding-block: 24px; } }

/* ---- navigation (claude/goethecloud-navigation): mega footer with the Goethe world, the HTML site map /sitemap/ */
@media (min-width: 1200px) { .foot-cols { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.foot-col-goethe h2, .foot-col-goethe .foot-h { font-family: var(--serif); font-weight: 500; }
.foot-sitemap { font-weight: 600; }
.sm-head { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.sm-head h1 { font-family: var(--display); font-size: clamp(38px, 5vw, 64px); line-height: 1.06; letter-spacing: -.02em; margin-top: 12px; }
.sm-lede { margin-top: 16px; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--ink-2, var(--ink)); max-width: 36em; }
.sm-toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.sm-toc a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--ink); }
.sm-toc a:hover { border-color: var(--accent); text-decoration: none; }
.sm-toc span { color: var(--ink-3, var(--ink)); opacity: .75; font-variant-numeric: tabular-nums; }
.sm-grid { display: grid; grid-template-columns: 1fr; gap: 0 48px; padding-bottom: clamp(48px, 7vw, 96px); }
@media (min-width: 900px) { .sm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sm-sec { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.sm-sec h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.sm-count { font-size: 15px; font-weight: 400; color: var(--ink-3, var(--ink)); opacity: .8; letter-spacing: 0; }
.sm-sec > p { margin-top: 8px; color: var(--ink-2, var(--ink)); }
.sm-list { list-style: none; margin: 14px 0 0; padding: 0; columns: 2 14em; column-gap: 28px; }
.sm-list li { break-inside: avoid; padding: 5px 0; font-size: 16px; line-height: 1.4; }
.sm-list .sm-n { font-size: 14px; opacity: .7; font-variant-numeric: tabular-nums; }
.sm-goethe { grid-column: 1 / -1; }
.sm-goethe h2 { font-family: var(--serif); font-weight: 500; }
.sm-list-g { columns: 3 12em; }

/* ==================================================================== App Store badges, the AI mark, the recognition mark
   The badges are Apple's artwork, unchanged (static/img/badges/). Apple's rules for them: never smaller than 40 px
   high on screen, clear space of at least a quarter of the height on every side, no effect and no animation, the
   black badge on light ground and the white one on dark ground. So: no filter, no transform, no transition here. */
.store { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 28px; margin-top: clamp(26px, 3.2vw, 38px); }
.store-item { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.store-badge { display: block; padding: 0; border-radius: 8px; line-height: 0; }
.store-badge img { display: block; height: 48px; width: auto; max-width: none; }
.store-badge:focus-visible { outline-offset: 5px; }
.store-note { font-size: 15px; line-height: 1.35; font-weight: 500; color: var(--ink-2); padding-left: 2px; }
.hero .store, .cta .store, .store-band .store { justify-content: center; }
.hero .store-item, .cta .store-item, .store-band .store-item { align-items: center; }
.store-hero .store-badge img { height: 54px; }
.store-night .store-note { color: var(--ink-2); }
.store-head { margin-top: clamp(22px, 2.6vw, 30px); }
.store-foot { margin-top: 20px; gap: 14px 18px; }
.store-foot .store-badge img, .store-lib .store-badge img { height: 44px; }
.store-lib { margin-top: 6px; margin-bottom: 4px; }
.g-cta .store-note { font-size: 15px; color: var(--ink-3); }
.actions-under { margin-top: 14px; }
.hero .actions-under { justify-content: center; }
.store-band { text-align: center; }
.store-band .wrap { display: flex; flex-direction: column; align-items: center; }
.store-band h2 { max-width: 16em; }
@media (max-width: 420px) {
  .store { gap: 16px 18px; }
  .store-hero .store-badge img { height: 48px; }
}
@media print { .store, .store-band { display: none; } }

/* the marks: a small pill beside a label. AI = Goethe, the assistant (your own key); auto = recognition, without AI */
:root {
  --ai-ink: #5a33c8; --ai-bg: rgba(124, 77, 255, .11); --ai-ring: rgba(124, 77, 255, .28);
  --auto-ink: #0a6a52; --auto-bg: rgba(12, 154, 118, .11); --auto-ring: rgba(12, 154, 118, .3);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ai-ink: #cbbcff; --ai-bg: rgba(150, 120, 255, .18); --ai-ring: rgba(170, 145, 255, .34);
    --auto-ink: #86e2c6; --auto-bg: rgba(60, 200, 160, .15); --auto-ring: rgba(90, 215, 175, .32);
  }
}
.stage-paper, .stage-white {
  --ai-ink: #5a33c8; --ai-bg: rgba(124, 77, 255, .11); --ai-ring: rgba(124, 77, 255, .28);
  --auto-ink: #0a6a52; --auto-bg: rgba(12, 154, 118, .11); --auto-ring: rgba(12, 154, 118, .3);
}
.stage-night {
  --ai-ink: #cbbcff; --ai-bg: rgba(150, 120, 255, .18); --ai-ring: rgba(170, 145, 255, .34);
  --auto-ink: #86e2c6; --auto-bg: rgba(60, 200, 160, .15); --auto-ring: rgba(90, 215, 175, .32);
}
.chip {
  display: inline-flex; align-items: center; gap: 5px; margin-left: .6em; padding: 2px 9px 2px 7px; border-radius: 999px;
  font-family: var(--sans); font-size: 13px; line-height: 1.5; font-weight: 650; font-style: normal; letter-spacing: .02em;
  white-space: nowrap; vertical-align: middle; position: relative; top: -.08em;
}
.chip .mark-i { width: 14px; height: 14px; flex: none; }
.chip-ai { color: var(--ai-ink); background: var(--ai-bg); box-shadow: inset 0 0 0 1px var(--ai-ring); }
.chip-auto { color: var(--auto-ink); background: var(--auto-bg); box-shadow: inset 0 0 0 1px var(--auto-ring); }
h1 .chip, h2 .chip { font-size: 14px; }
.row-h .chip, .ticks .chip, dt .chip { margin-left: .5em; }
.table th .chip { margin-left: .5em; }
.foot a .mark-i { display: inline-block; width: 14px; height: 14px; margin-left: 2px; vertical-align: -2px; }
.head-mark { margin-top: 16px; }
.head-mark .chip, .smart-k .chip { margin-left: 0; top: 0; font-size: 14px; padding: 3px 11px 3px 9px; }

/* the section "Recognition and Goethe" on the home page and the tour */
.smart-cards { display: grid; gap: clamp(22px, 2.6vw, 36px); margin-top: clamp(44px, 5.5vw, 80px); }
@media (min-width: 900px) { .smart-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.smart-card { display: flex; flex-direction: column; border-radius: clamp(18px, 2vw, 26px); background: var(--card); overflow: hidden; }
.smart-auto { background: linear-gradient(180deg, rgba(12, 154, 118, .07), transparent 46%), var(--card); }
.smart-ai { background: linear-gradient(180deg, rgba(124, 77, 255, .08), transparent 46%), var(--card); }
.smart-vis { padding: clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 32px) 0; }
.smart-vis .vis { margin: 0; }
.smart-vis .vis-note { font-size: 14px; }
.smart-text { padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; flex: 1; }
.smart-card h3 { margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.015em; }
.smart-claim { margin-top: 10px; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.45; color: var(--ink); font-weight: 500; max-width: 26em; }
.smart-list { list-style: none; margin-top: 18px; border-top: 1px solid var(--line); }
.smart-list li { position: relative; padding: 11px 0 11px 28px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.smart-list li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 6px; border-left: 2px solid var(--auto-ink); border-bottom: 2px solid var(--auto-ink); transform: rotate(-45deg); }
.smart-ai .smart-list li::before { border-color: var(--ai-ink); }
.smart-list strong { color: var(--ink); }
.smart-text .more { margin-top: auto; padding-top: 22px; }
.smart-strip { margin-top: clamp(40px, 5vw, 72px); }
.smart-table thead th { vertical-align: bottom; }
.smart-table tbody th { width: 22%; }
.smart-table td { width: 39%; }

/* the brand accent (Goethe ultramarine): key numbers carry it too */
.price { color: var(--accent); }

/* the offer on guides, glossary and templates (offerBox in build.mjs) */
.offer { margin: 2.4em 0; padding: 24px 24px 20px; border-radius: 18px; background: var(--bg-2); }
.offer-compact { margin: 2em 0; padding: 18px 20px 16px; }
.offer .offer-h { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.offer-compact .offer-h { font-size: 20px; }
.offer .offer-facts { list-style: none; margin: 10px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; color: var(--accent); font-weight: 600; }
.offer .offer-facts li { margin: 0; }
.offer .offer-facts li::before { content: "✓ "; }
.offer .store { margin-top: 0; }
