/* goethecloud.com – the Goethe Library (prototype). Loaded after site.css on library pages only.
   Same rules as site.css: system fonts, no JavaScript, no inline styles, light and dark from the system.
   Reading text is set in the serif of the site (New York / Iowan / Palatino / Georgia), the interface stays sans. */

:root { --measure: 34em; --vn: 3.2em; }

/* ------------------------------------------------------------------ layout: work contents on the left, text in a column */
.lib-layout { display: grid; column-gap: clamp(48px, 5vw, 80px); padding-top: clamp(36px, 5vw, 72px); }
.lib-main { min-width: 0; max-width: 780px; }
@media (min-width: 1040px) {
  .lib-layout { grid-template-columns: 236px minmax(0, 1fr); }
  .lib-main { grid-column: 2; grid-row: 1; }
  .lib-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; }
}
@media (max-width: 1039px) {
  .lib-side { margin-bottom: clamp(48px, 8vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
  .lib-side ol { columns: 2 240px; column-gap: 40px; }
  .lib-side li { break-inside: avoid; }
}
.lib-side-h { font-family: var(--sans); font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: 0; max-width: none; }
.lib-side-h a { color: var(--ink); }
.lib-side-k { margin: 14px 0 4px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.lib-side ol { list-style: none; }
.lib-side ol a { display: block; margin-inline: -10px; padding: 5px 10px; border-radius: 8px; font-size: 16px; line-height: 1.35; color: var(--ink-2); }
.lib-side ol a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.lib-side ol a[aria-current] { background: var(--bg-2); color: var(--accent); font-weight: 600; }
@media (max-width: 1039px) { .lib-side ol a { margin-inline: 0; padding-inline: 0; } .lib-side ol a[aria-current] { background: none; } }

/* ------------------------------------------------------------------ head of a text page */
.lib-kicker { font-size: 17px; line-height: 1.4; color: var(--ink-3); margin-bottom: 8px; }
.lib-kicker a { color: var(--ink-3); }
.lib-head h1 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; font-size: clamp(38px, 4.8vw, 60px); max-width: 15em; }
.lib-head .lib-orig { margin-top: 10px; font-family: var(--serif); font-size: clamp(20px, 1.7vw, 23px); color: var(--ink-2); }
.lib-setting { margin-top: 18px; max-width: var(--measure); font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.lib-facts-line { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.lib-facts-line span + span::before { content: "·"; margin: 0 .5em; }

/* the languages of this text: a quiet row of links, the current one marked */
.lib-langs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 18px; list-style: none; font-size: 15px; }
.lib-langs a, .lib-langs span { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.lib-langs a:hover { text-decoration: none; background: var(--fill-2); color: var(--ink); }
.lib-langs [aria-current] { background: var(--ink); color: var(--bg); font-weight: 600; }

/* ------------------------------------------------------------------ the reading text */
.reading { padding-top: clamp(28px, 3.4vw, 44px); padding-bottom: clamp(44px, 6vw, 76px); font-family: var(--serif); font-size: clamp(19px, 1.45vw, 21px); line-height: 1.62; color: var(--ink); max-width: var(--measure); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; font-variant-ligatures: common-ligatures; font-feature-settings: "onum" 1, "kern" 1; }
.reading p { text-wrap: pretty; }
.reading p + p { margin-top: .9em; }
.reading .synopsis { font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink-3); max-width: 40em; margin-bottom: 1.6em; hyphens: manual; }

/* verse: one block per line, a wrapped line hangs in; verse numbers (from the edition, never counted by us) in the margin */
.verse { position: relative; hyphens: manual; -webkit-hyphens: manual; }  /* a verse is never hyphenated: a long line hangs in instead */
.verse .l { display: block; padding-left: 1.6em; text-indent: -1.6em; position: relative; }
.verse .vn { position: absolute; left: calc(-1 * var(--vn)); width: calc(var(--vn) - .9em); text-indent: 0; text-align: right; font: 13px/2.1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; user-select: none; -webkit-user-select: none; }
.stanza + .stanza { margin-top: 1.05em; }
.poem { padding-top: clamp(28px, 3.4vw, 44px); }

/* drama: the speaker in small capitals, stage directions in italics */
.drama .sp { margin-top: 1.25em; font-family: var(--sans); font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.drama .sp:first-child { margin-top: 0; }
.drama .sp + .verse, .drama .sp + .sd, .drama .sd + .verse { margin-top: .25em; }
.drama .sd { font-style: italic; color: var(--ink-2); }
.drama .sd-block { margin-block: 1.1em; padding-left: 1.6em; font-style: italic; color: var(--ink-2); }
.drama .verse + .verse { margin-top: .6em; }

/* dated entries (diaries, travel journals, letters within a novel): the date as a quiet heading, the place beside it */
.entry { padding-top: 1.6em; }
.entry + .entry { margin-top: 1.4em; border-top: 1px solid var(--line); }
.entry h2 { font-family: var(--sans); font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--ink); max-width: none; scroll-margin-top: 24px; }
.entry h2 .place { font-weight: 400; color: var(--ink-3); }
.entry h2 .place::before { content: "·"; margin: 0 .5em; }
.entry .synopsis { margin: .4em 0 1em; }

/* a letter: place and date to the right, as printed; the signature to the right */
.letter .dateline { text-align: right; font-style: italic; color: var(--ink-2); }
.letter .salute { margin-top: 1.2em; }
.letter .sign { text-align: right; margin-top: 1em; }

/* ------------------------------------------------------------------ about this text: edition, translator, licence, download */
.lib-about { margin-top: 8px; padding: 22px 24px 24px; border-radius: 12px; background: var(--bg-2); font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.lib-about h2 { font-family: var(--sans); font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--ink-3); max-width: none; }
.lib-about dl { margin-top: 10px; }
.lib-about dl > div { display: grid; gap: 2px 20px; padding: 10px 0; border-top: 1px solid var(--line); }
.lib-about dl > div:first-child { border-top: 0; padding-top: 2px; }
@media (min-width: 640px) { .lib-about dl > div { grid-template-columns: 9.5em minmax(0, 1fr); } }
.lib-about dt { font-weight: 600; color: var(--ink); }
.lib-about .lib-dl { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.lib-dl .btn { font-size: 17px; min-height: 44px; padding: 10px 20px; }
.lib-dl-note { font-size: 15px; color: var(--ink-3); }

/* ------------------------------------------------------------------ indexes: A–Z, decades, genres, contents of a work */
.az { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 18px; }
.az a, .az span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 10px; background: var(--bg-2); font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); }
.az a:hover { background: var(--fill-2); text-decoration: none; color: var(--accent); }
.az span { color: var(--ink-3); font-weight: 400; }
.decades { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; list-style: none; margin-top: 18px; }
.decades a { display: block; padding: 12px 14px 13px; border-radius: 12px; background: var(--bg-2); color: var(--ink); }
.decades a:hover { background: var(--fill-2); text-decoration: none; }
.decades b { display: block; font-family: var(--display); font-size: 20px; font-weight: 650; }
.decades small { display: block; font-size: 14px; color: var(--ink-3); }

.contents { list-style: none; border-top: 1px solid var(--line); counter-reset: none; }
.contents > li { border-bottom: 1px solid var(--line); }
.contents a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 16px 2px; color: inherit; }
.contents a:hover { text-decoration: none; }
.contents a:hover .c-t { color: var(--accent); }
.c-n { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 16px; text-align: right; }
.c-t { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--ink); }
.c-o { grid-column: 2; font-size: 15px; color: var(--ink-3); }
.c-p { grid-column: 2 / -1; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.c-w { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.contents-part { margin-top: clamp(28px, 4vw, 44px); font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); max-width: none; margin-bottom: 8px; }

/* a section of the hub: number of texts in a quiet line */
.count { font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mock-note { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: var(--bg-2); font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 46em; }
.mock-note strong { color: var(--accent); }

@media print {
  .lib-side, .lib-langs, .lib-dl, .hb-pager { display: none; }
  .lib-layout { display: block; }
  .reading { max-width: none; color: #000; }
}

/* ==================================================================== the Goethe world (g-*): a literary museum
   Tokens: warm paper and ink, a muted gold for kickers and rules (never green), the site's serif for all display type.
   Nothing is fixed or sticky over text except the work contents on wide screens, which sit beside the text. */
:root {
  --paper: #fbf8f1; --paper-2: #f3eee3; --gold: #7d5f24; --rule: rgba(80, 60, 20, .22);
  --night: #14120e; --night-ink: #f4efe4; --night-ink-2: #c9c0ad;
  --g-measure: 36em;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #15140f; --paper-2: #1d1b15; --gold: #d8b46a; --rule: rgba(216, 180, 106, .24); --night: #0c0b08; }
}
:root[data-theme="light"] { --paper: #fbf8f1; --paper-2: #f3eee3; --gold: #7d5f24; --rule: rgba(80, 60, 20, .22); }
body.g { background: var(--paper); }
.g main { background: var(--paper); }

.g-kicker { font-family: var(--sans); font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.g-sec-h { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.01em; color: var(--ink); max-width: 20em; margin-bottom: clamp(20px, 2.6vw, 34px); }
.g-lede { margin-top: clamp(16px, 2vw, 24px); font-family: var(--serif); font-size: clamp(21px, 1.9vw, 26px); line-height: 1.5; color: var(--ink-2); max-width: 32em; text-wrap: pretty; }
.g-orig { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.6vw, 22px); color: var(--ink-2); }
.g-more { margin-top: clamp(20px, 2.4vw, 30px); font-size: 18px; font-weight: 600; }

/* ---------------------------------------------------------------- page head */
.g-head { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(24px, 3.4vw, 48px); border-bottom: 1px solid var(--rule); }
.g-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 7vw, 104px); line-height: 1.02; letter-spacing: -.02em; max-width: 14em; text-wrap: balance; }
.g-head-chapter h1 { font-size: clamp(46px, 7.4vw, 112px); }
.g-head .decades, .g-head .az { max-width: 1000px; }
.g-head .g-epigraph { margin-top: clamp(28px, 3.4vw, 44px); }
.g-year-big { font-variant-numeric: oldstyle-nums; font-size: clamp(88px, 16vw, 220px); line-height: .9; letter-spacing: -.03em; }

/* ---------------------------------------------------------------- epigraphs and pull quotes: Goethe's words with their source */
.g-epigraph { max-width: 34em; margin-top: clamp(24px, 3vw, 40px); padding-left: clamp(18px, 2vw, 28px); border-left: 2px solid var(--gold); }
.g-epigraph blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2vw, 27px); line-height: 1.45; color: var(--ink); }
.g-epigraph-sm blockquote p { font-size: clamp(19px, 1.6vw, 22px); }
.g-ep-orig { margin-top: 10px; font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.g-epigraph figcaption, .g-pull figcaption { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.g-pull { margin-block: 1.8em; padding: 6px 0 6px clamp(18px, 2vw, 28px); border-left: 2px solid var(--gold); }
.g-pull blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 26px); line-height: 1.45; color: var(--ink); }

/* ---------------------------------------------------------------- HUB hero: full-bleed, monumental */
.g-hero { background: var(--night); color: var(--night-ink); border-bottom: 1px solid var(--rule); overflow: hidden; }
.g-hero-in { display: grid; max-width: 1600px; margin-inline: auto; }
.g-hero-text { padding: clamp(48px, 8vw, 128px) max(var(--pad), env(safe-area-inset-left)) clamp(48px, 7vw, 112px); min-width: 0; }
.g-hero .g-kicker { color: #d8b46a; }
.g-hero h1 { max-width: none; font-family: var(--serif); font-weight: 400; color: var(--night-ink); }
.g-mono { display: block; font-size: clamp(84px, 17vw, 260px); line-height: .86; letter-spacing: -.035em; }
.g-hero-name { display: block; margin-top: clamp(14px, 2vw, 26px); font-family: var(--sans); font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--night-ink-2); }
.g-hero .g-lede { color: var(--night-ink-2); max-width: 30em; }
.g-hero .g-epigraph { border-left-color: #d8b46a; }
.g-hero .g-epigraph blockquote p { color: var(--night-ink); }
.g-hero .g-ep-orig { color: var(--night-ink-2); }
.g-hero .g-epigraph figcaption { color: #a99f8a; }
.g-hero-fig { margin: 0; min-width: 0; }
.g-hero-fig img { display: block; width: 100%; height: 100%; max-height: 92vh; object-fit: cover; object-position: 50% 20%; }
.g-hero-fig figcaption { padding: 10px max(var(--pad), env(safe-area-inset-left)); font-size: 14px; color: #a99f8a; }
.g-hero-fig figcaption a { color: #d8b46a; }
@media (min-width: 1100px) { .g-hero-img .g-hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: stretch; } .g-hero-fig figcaption { padding-inline: 20px; } }

/* bands of the hub */
.g-band { padding-block: clamp(64px, 9vw, 136px); border-bottom: 1px solid var(--rule); }
.g-band-life { background: var(--paper-2); }
.g-cards { list-style: none; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 640px) { .g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .g-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.g-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: clamp(22px, 2.6vw, 34px); background: var(--paper); color: var(--ink); }
.g-card:hover { text-decoration: none; background: var(--paper-2); }
.g-card-k { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); min-height: 1.4em; }
.g-card-t { font-family: var(--serif); font-size: clamp(30px, 2.8vw, 40px); line-height: 1.05; }
.g-card:hover .g-card-t { color: var(--accent); }
.g-card-p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* lifeline, map: full width, never cropped */
.g-chart { margin: 0; }
.g-chart img { display: block; width: 100%; height: auto; }
.g-chart-wide { margin-block: clamp(8px, 2vw, 24px) clamp(32px, 4vw, 56px); }
.g-chart-map img { max-height: 120vh; width: auto; max-width: 100%; margin-inline: auto; }
.g-map-band { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (min-width: 1000px) { .g-map-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* dated rows: "on this day" – the day large, month and year small */
.g-days { list-style: none; border-top: 1px solid var(--rule); }
.g-day { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 4px clamp(16px, 2.4vw, 32px); padding-block: 18px 20px; border-bottom: 1px solid var(--rule); }
.g-day-d { display: flex; flex-direction: column; }
.g-day-n { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 46px); line-height: 1; color: var(--ink); font-variant-numeric: oldstyle-nums; }
.g-day-m { margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--gold); font-weight: 600; letter-spacing: .02em; }
.g-day-t p { font-family: var(--serif); font-size: clamp(19px, 1.5vw, 21px); line-height: 1.5; color: var(--ink); max-width: 36em; }
.g-day-t .g-day-s { margin-top: 6px; font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.g-days-big .g-day-n { font-size: clamp(44px, 5vw, 64px); }
@media (min-width: 1000px) { .g-band-life .g-days { columns: 2; column-gap: 56px; border-top: 0; } .g-band-life .g-day { break-inside: avoid; } }

/* books on the hub, works index */
.g-books { list-style: none; display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-top: clamp(28px, 3vw, 40px); }
.g-book { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 250px; padding: 26px 24px 22px; border: 1px solid var(--rule); border-top: 4px solid var(--gold); background: var(--paper); color: var(--ink); }
.g-book:hover { text-decoration: none; background: var(--paper-2); }
.g-book-y { font-family: var(--serif); font-size: 18px; color: var(--gold); font-variant-numeric: oldstyle-nums; }
.g-book-t { font-family: var(--serif); font-size: clamp(26px, 2.2vw, 32px); line-height: 1.12; }
.g-book-g { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

/* the poem set piece */
.g-showcase { padding-block: clamp(64px, 9vw, 136px); background: var(--night); color: var(--night-ink); }
.g-showcase .g-sec-h { color: var(--night-ink); }
.g-poem-pair { display: grid; gap: clamp(32px, 5vw, 96px); }
@media (min-width: 820px) { .g-poem-pair { grid-template-columns: repeat(2, minmax(0, max-content)); } }
.g-poem-card { margin: 0; }
.g-poem-card .verse { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.5; color: var(--night-ink); }
.g-poem-card figcaption { margin-top: 16px; font-size: 15px; color: var(--night-ink-2); }
.g-poem-card figcaption a, .g-showcase .g-more a { color: #d8b46a; }

/* ---------------------------------------------------------------- life: chapter list, chapter page */
.g-chaps { list-style: none; counter-reset: none; margin-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 96px); border-top: 1px solid var(--rule); }
.g-chap { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 4px clamp(14px, 2vw, 28px); padding-block: clamp(22px, 2.6vw, 32px); border-bottom: 1px solid var(--rule); color: var(--ink); }
@media (min-width: 900px) { .g-chap { grid-template-columns: 4em 9em minmax(0, 1fr); } .g-chap-p { grid-column: 3; } .g-chap-t { grid-column: 3; grid-row: 1; } .g-chap-y { grid-column: 2; grid-row: 1; padding-top: .5em; } }
.g-chap:hover { text-decoration: none; }
.g-chap:hover .g-chap-t { color: var(--accent); }
.g-chap-n { grid-row: span 3; font-family: var(--serif); font-size: clamp(40px, 4vw, 58px); line-height: .95; color: var(--gold); font-variant-numeric: oldstyle-nums; }
.g-chap-y { font-size: 15px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.g-chap-t { font-family: var(--serif); font-size: clamp(27px, 2.8vw, 38px); line-height: 1.12; }
.g-chap-p { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 44em; }

.g-read-wrap { padding-block: clamp(36px, 5vw, 72px); }
:not(body).g-chapter, .g-work-main { max-width: var(--g-measure); margin-inline: auto; }
@media (min-width: 1180px) { :not(body).g-chapter { margin-left: 8%; } }
.g-plate { margin: 0; }
.g-plate img { display: block; width: 100%; height: auto; background: var(--paper-2); }
.g-plate figcaption { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-3); max-width: 46em; }
.g-cred { display: block; font-size: 13px; color: var(--ink-3); }
.g-plate-hero { margin-top: clamp(24px, 3vw, 40px); }
.g-plate-hero img { max-height: 78vh; object-fit: cover; }
.g-plate-in { margin-block: 2em; }
.g-glance { margin-block: clamp(28px, 3vw, 40px); padding: 22px 26px; background: var(--paper-2); border-top: 3px solid var(--gold); }
.g-glance h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); max-width: none; }
.g-glance ul { margin-top: 10px; padding-left: 1.1em; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.g-glance li + li { margin-top: 6px; }

/* the reading prose of a chapter: serif, a large drop cap, side notes in the margin on wide screens */
.g-prose { font-family: var(--serif); font-size: clamp(19px, 1.5vw, 21px); line-height: 1.68; color: var(--ink); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; font-feature-settings: "onum" 1, "kern" 1; }
.g-prose > * + * { margin-top: 1em; }
.g-prose p { text-wrap: pretty; }
.g-prose h2 { margin-top: 2.2em; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.01em; max-width: none; }
.g-prose h2 + * { margin-top: .7em; }
.g-prose ul { padding-left: 1.2em; }
.g-prose a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .18em; }
.g-drop::first-letter { float: left; font-family: var(--serif); font-size: 4.6em; line-height: .82; padding: .07em .1em 0 0; color: var(--gold); font-weight: 500; }
.g-side { font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink-3); padding: 12px 0 12px 16px; border-left: 2px solid var(--rule); }
@media (min-width: 1180px) { :not(body).g-chapter { position: relative; } .g-side { float: right; clear: right; width: 15em; margin: .3em -19em 1em 2em; padding: 0 0 0 16px; } }
.g-uncertain { padding: 16px 20px; background: var(--paper-2); border-left: 3px solid var(--gold); font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.g-uncertain h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }

.g-related { margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--rule); }
.g-related h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.4vw, 32px); max-width: none; }
.g-rel-cols { display: grid; gap: 24px 40px; margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.g-rel-cols h3 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.g-rel-cols ul { list-style: none; margin-top: 8px; }
.g-rel-cols li { padding-block: 5px; font-size: 17px; line-height: 1.4; }
.g-rel-cols li span { color: var(--ink-3); font-size: 14px; }
.g-sources { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--rule); }
.g-sources h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); max-width: none; }
.g-sources ol { margin-top: 12px; padding-left: 1.4em; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.g-sources li + li { margin-top: 6px; }
.g-pager { margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 700px) { .g-pager { grid-template-columns: 1fr 1fr; } .g-pager a[rel="next"] { text-align: right; } }
.g .hb-pg { background: var(--paper-2); }
.g .hb-pg:hover { background: var(--fill-2); }
.g .hb-pg-k { color: var(--gold); }
.g .hb-pg-t { font-family: var(--serif); font-weight: 500; font-size: 21px; }

/* ---------------------------------------------------------------- chronology */
.g-chrono { padding-block: clamp(32px, 4vw, 64px); max-width: 980px; }
.g-decade { scroll-margin-top: 24px; }
.g-decade + .g-decade { margin-top: clamp(48px, 6vw, 88px); }
.g-decade > h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -.02em; margin-bottom: 18px; max-width: none; }
:not(body).g-year { display: grid; gap: 4px 28px; padding-top: 18px; }
@media (min-width: 800px) { :not(body).g-year { grid-template-columns: 5.5em minmax(0, 1fr); } }
.g-year h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; font-variant-numeric: oldstyle-nums; }
.g-year h3 a { color: var(--gold); }
.g-year .g-days { border-top: 0; }
.g-year .g-day { padding-block: 10px 14px; }
.g-year .g-day-n { font-size: 28px; }
.g .decades a { background: var(--paper-2); }
.g .decades b { font-family: var(--serif); font-weight: 500; }

/* ---------------------------------------------------------------- people and places */
.g-group { padding-top: clamp(40px, 5vw, 72px); scroll-margin-top: 24px; }
.g-people { list-style: none; display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
:not(body).g-person { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
:not(body).g-person:hover { text-decoration: none; }
:not(body).g-person:hover .g-person-n { color: var(--accent); }
.g-person-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); border: 1px solid var(--rule); margin-bottom: 10px; }
.g-person-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.g-mono-av { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: var(--serif); font-size: clamp(54px, 6vw, 76px); color: var(--gold); letter-spacing: .02em; }
.g-person-n { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.g-person-d { font-size: 14px; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.g-person-r { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.g-person-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--rule); }
.g-person-grid { display: grid; gap: clamp(24px, 4vw, 64px); align-items: end; }
@media (min-width: 820px) { .g-person-grid { grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); } }
.g-person-grid h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.02em; }
.g-portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.g-portrait-mono { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; background: var(--paper-2); border: 1px solid var(--rule); max-width: 360px; }
.g-portrait-mono span { font-family: var(--serif); font-size: clamp(80px, 10vw, 140px); color: var(--gold); }
.g-facts { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.g-facts span { display: block; }
.g-ids { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.g-placelist { list-style: none; border-top: 1px solid var(--rule); }
.g-placelist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding-block: 14px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.g-placelist a:hover { text-decoration: none; }
.g-placelist a:hover .g-pl-n { color: var(--accent); }
.g-pl-n { font-family: var(--serif); font-size: 24px; }
.g-pl-c { font-size: 14px; color: var(--gold); font-weight: 600; align-self: center; }
.g-pl-s { grid-column: 1 / -1; font-size: 15px; color: var(--ink-3); }
.g-place-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1100px) { .g-place-grid { grid-template-columns: minmax(0, var(--g-measure)) minmax(280px, 1fr); } .g-place-grid .g-chapter { margin: 0; } }
.g-stays h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.g-stays .g-day { grid-template-columns: 11em minmax(0, 1fr); }

/* ---------------------------------------------------------------- works, poems */
.g-works { list-style: none; border-top: 1px solid var(--rule); }
:not(body).g-work { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 4px 20px; padding-block: 22px; border-bottom: 1px solid var(--rule); color: var(--ink); }
:not(body).g-work:hover { text-decoration: none; }
:not(body).g-work:hover .g-work-t { color: var(--accent); }
.g-work-y { grid-row: span 4; font-family: var(--serif); font-size: 24px; color: var(--gold); font-variant-numeric: oldstyle-nums; }
.g-work-t { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; }
.g-work-o { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); }
.g-work-p { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 46em; }
.g-work-l { font-size: 13px; color: var(--ink-3); }
.g-head-work h1 { font-size: clamp(44px, 6.6vw, 96px); }
.g-work-main .contents { margin-top: 8px; }
.g-work-main .g-sec-h { margin-top: clamp(32px, 4vw, 56px); margin-bottom: 8px; font-size: clamp(26px, 2.4vw, 32px); }
:not(body).g-about { margin-top: clamp(40px, 5vw, 64px); background: var(--paper-2); }
.g-poems { list-style: none; display: grid; gap: 0 clamp(24px, 4vw, 64px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); border-top: 1px solid var(--rule); }
:not(body).g-poem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding-block: 16px 18px; border-bottom: 1px solid var(--rule); color: var(--ink); }
:not(body).g-poem:hover { text-decoration: none; }
:not(body).g-poem:hover .g-poem-t { color: var(--accent); }
.g-poem-t { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.g-poem-y { font-size: 14px; color: var(--gold); font-weight: 600; align-self: center; font-variant-numeric: oldstyle-nums; }
.g-poem-f { grid-column: 1 / -1; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-3); }
.g-poem-page { max-width: 860px; padding-top: clamp(36px, 5vw, 72px); padding-bottom: 24px; }
.g-poem-page .lib-head h1 { font-size: clamp(44px, 6vw, 80px); }
.g-poem-page .reading { font-size: clamp(21px, 1.8vw, 24px); line-height: 1.6; margin-left: var(--vn); }
@media (max-width: 520px) { .g-poem-page .reading { margin-left: calc(var(--vn) * .8); } }
.g-orig-poem { margin-top: 8px; padding: 22px 24px; background: var(--paper-2); max-width: 34em; }
.g-orig-poem h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink-3); max-width: none; margin-bottom: 10px; }
.g-orig-poem .verse { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* reading pages of works: the text column, verse numbers in the margin, never covered */
.g-reading-page .reading:not(.poem) { margin-left: 0; }
.g-reading-page .reading.is-drama:has(.vn) { padding-left: var(--vn); }
@media (max-width: 520px) { .g-reading-page .reading.is-drama:has(.vn) { padding-left: calc(var(--vn) * .8); } }
/* verse units of a work (epigrams, elegies): room for the line numbers, as in drama */
.g-reading-page .lib-main .reading:not(.is-drama):has(.vn) { padding-left: var(--vn); }
@media (max-width: 520px) { .g-reading-page .lib-main .reading:not(.is-drama):has(.vn) { padding-left: calc(var(--vn) * .8); } }
.g-reading-page .reading > p.g-drop::first-letter { font-size: 3.6em; }
.g .lib-head h1 { font-family: var(--serif); font-weight: 500; }
.g .lib-kicker { color: var(--gold); font-weight: 600; letter-spacing: .02em; }
.g .lib-kicker a { color: var(--gold); }
.g .lib-langs a, .g .lib-langs span { background: var(--paper-2); }
.g .lib-langs [aria-current] { background: var(--ink); color: var(--paper); }
.g .lib-side details + details { margin-top: 6px; }
.g .lib-side summary { cursor: pointer; list-style: none; }
.g .lib-side summary::-webkit-details-marker { display: none; }
.g .lib-side summary::before { content: "›"; display: inline-block; width: 1em; color: var(--ink-3); transition: transform .15s; }
.g .lib-side details[open] > summary::before { transform: rotate(90deg); }
.g .lib-side ol a[aria-current] { background: var(--paper-2); color: var(--gold); }
.g .lib-line a { color: var(--ink-3); text-decoration: underline; }

/* ---------------------------------------------------------------- gallery, sources */
.g-gallery { list-style: none; display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); padding-top: clamp(36px, 4vw, 56px); }
.g-gal-item { scroll-margin-top: 24px; }
.g-gal-cred { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.g-sources-page h2 { font-family: var(--serif); }
.g-sources-page ul { padding-left: 1.2em; }
.g-src-work { margin-top: 1.4em; }
.g-src-work h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.g-src-work dl > div { padding-block: 10px; border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.g-src-work dt { font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------- the call to action: once per page, after the content, in the flow */
.g-cta { margin-block: clamp(48px, 6vw, 96px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.g-cta-in { display: grid; gap: 10px; padding-block: clamp(32px, 4vw, 56px); max-width: 44em; }
.g-cta-mark { font-family: var(--serif); font-size: 22px; color: var(--gold); }
.g-cta-mark span { font-family: var(--sans); font-size: 15px; color: var(--ink-3); font-weight: 500; }
.g-cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; max-width: none; }
.g-cta p { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.g-cta .g-cta-status { font-size: 15px; color: var(--ink-3); }
.g-cta-links { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 8px; }
.g-foot-lib { max-width: 60em; }

@media print { .g-cta, .g-pager, .lib-side, .g-hero-fig { display: none; } .g-hero { background: none; color: #000; } .g-hero h1, .g-hero .g-lede { color: #000; } }
/* without a portrait the hero sets the epigraph beside the name on wide screens */
@media (min-width: 1100px) { .g-hero:not(.g-hero-img) .g-hero-text { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 72px; align-items: end; } .g-hero:not(.g-hero-img) .g-hero-text > .g-epigraph { grid-column: 2; grid-row: 1 / span 3; align-self: center; } }
.g-cards { background: none; border: 0; gap: 0; }
.g-cards > li { border: 1px solid var(--rule); margin: 0 -1px -1px 0; }

/* ---------------------------------------------------------------- fixes: no empty band under the lifeline, small monogram on phones */
.g-band-life .g-chart-wide { margin-block: 0 clamp(24px, 3vw, 40px); }
.g-band-life .g-chart-wide img { max-height: 46vh; object-fit: contain; }
@media (max-width: 819px) {
  .g-portrait-mono { aspect-ratio: auto; width: 112px; height: 112px; border-radius: 50%; }
  .g-portrait-mono span { font-size: 46px; }
}

/* ---------------------------------------------------------------- letters: lists, year grids, recipients */
.g-lets { list-style: none; border-top: 1px solid var(--rule); }
.g-let { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 2px clamp(16px, 2.4vw, 32px); padding-block: 14px 16px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.g-let:hover { text-decoration: none; background: var(--paper-2); }
.g-let:hover .g-let-r { color: var(--accent); }
.g-let-d { grid-row: span 2; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--gold); font-variant-numeric: oldstyle-nums; padding-top: .25em; }
.g-let-r { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.g-let-p { font-family: var(--sans); font-size: 15px; color: var(--ink-3); }
.g-let-i { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 560px) { .g-let { grid-template-columns: minmax(0, 1fr); } .g-let-d { grid-row: auto; padding-top: 0; } }
.g-letyear + .g-letyear { margin-top: clamp(36px, 4vw, 56px); }
.g-letyear > h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; margin-bottom: 12px; font-variant-numeric: oldstyle-nums; }
.g-letyear > h2 a { color: var(--gold); }
.g-ygrid-row { display: grid; gap: 8px 24px; padding-block: 14px; border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .g-ygrid-row { grid-template-columns: 9em minmax(0, 1fr); align-items: start; } }
.g-ygrid-row h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; padding-top: 6px; }
.g-ygrid-row h3 a { color: var(--gold); }
.g-ygrid { list-style: none; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.g-ygrid a { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink); }
.g-ygrid a:hover { text-decoration: none; border-color: var(--gold); }
.g-ygrid b { font-family: var(--serif); font-weight: 500; font-size: 20px; font-variant-numeric: oldstyle-nums; }
.g-ygrid small { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.g-rlist { list-style: none; display: grid; gap: 0 clamp(20px, 3vw, 48px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--rule); }
.g-rlist a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.g-rlist a:hover { text-decoration: none; color: var(--accent); }
.g-rlist span { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.g-rlist small { flex: none; font-size: 14px; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.g-corr { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }

/* ---------------------------------------------------------------- a single letter: set like a letter on a sheet */
.g-letter-page { max-width: 54em; padding-bottom: clamp(24px, 3vw, 48px); }
.g-letter-page .lib-head { padding-top: clamp(32px, 5vw, 72px); }
.g-letter-page .lib-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.015em; }
.g-letter { margin-block: clamp(24px, 3vw, 40px); }
.g-letter-note { font-size: 15px; color: var(--ink-3); margin-bottom: 14px; }
.g-letter-h { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 28px 0 12px; }
.g-letter-sheet { position: relative; max-width: 40em; padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 72px) clamp(32px, 5vw, 64px); background: var(--paper-2); border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(60, 40, 10, .35); font-family: var(--serif); font-size: clamp(19px, 1.6vw, 21px); line-height: 1.62; color: var(--ink); hyphens: auto; }
.g-letter-sheet p + p { margin-top: .8em; text-indent: 1.4em; }
.g-letter-sheet .g-letter-dateline { text-align: right; font-style: italic; color: var(--ink-2); margin-bottom: 1.6em; text-indent: 0; }
.g-letter-sheet .g-letter-salut { margin-top: 0; text-indent: 0; margin-bottom: .6em; }
.g-letter-sheet .g-letter-salut + p { margin-top: 0; text-indent: 0; }
.g-letter-sheet .g-letter-close { margin-top: 1.4em; text-indent: 0; padding-left: 40%; }
.g-letter-sheet .g-letter-sig { margin-top: .3em; text-indent: 0; text-align: right; font-style: italic; font-size: 1.15em; }
.g-letter-sheet .g-letter-ps { margin-top: 1.4em; text-indent: 0; font-size: .92em; color: var(--ink-2); }
@media (max-width: 560px) { .g-letter-sheet .g-letter-close { padding-left: 20%; } }
.g-context, .g-same { margin-top: clamp(36px, 4vw, 56px); }
.g-context > h2, .g-same > h2, .g-diary-aside h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.g-ctx-l { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.g-src-box { margin-top: clamp(32px, 4vw, 48px); }

/* ---------------------------------------------------------------- diaries: dated column, one anchor per day */
.g-diary-wrap { display: grid; gap: clamp(32px, 5vw, 72px); padding-block: clamp(28px, 4vw, 56px); }
@media (min-width: 1100px) { .g-diary-wrap { grid-template-columns: minmax(0, 46em) minmax(260px, 1fr); } }
.g-diary { list-style: none; border-top: 1px solid var(--rule); }
.g-diary-day { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 4px clamp(16px, 2.4vw, 32px); padding-block: 20px 24px; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.g-diary-day:target { background: var(--paper-2); }
.g-diary-d { display: flex; flex-direction: column; }
.g-diary-d .g-day-n { color: var(--ink); }
.g-diary-d .g-day-n:hover { color: var(--accent); text-decoration: none; }
.g-diary-otd { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.g-diary-t { font-family: var(--serif); font-size: clamp(19px, 1.5vw, 21px); line-height: 1.58; color: var(--ink); }
.g-diary-t p + p { margin-top: .6em; }
.g-diary-place { font-style: italic; color: var(--ink-2); }
.g-diary-t .g-diary-src { margin-top: 10px; font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
.g-diary-aside section + section { margin-top: 32px; }
@media (max-width: 520px) { .g-diary-day { grid-template-columns: minmax(0, 1fr); } .g-diary-d { flex-direction: row; align-items: baseline; gap: 12px; } }

/* ---------------------------------------------------------------- on this day: the calendar */
.g-cals { display: grid; gap: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 48px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); padding-block: clamp(32px, 4vw, 56px); }
.g-cal-m h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 10px; }
.g-cal { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.g-cal a, .g-cal span { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; font-size: 15px; font-variant-numeric: tabular-nums; }
.g-cal a { background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink); }
.g-cal a:hover { text-decoration: none; border-color: var(--gold); color: var(--accent); }
.g-cal span { color: var(--ink-3); opacity: .5; }

/* ---------------------------------------------------------------- A–Z of works and poems */
.g-azlist { list-style: none; display: grid; gap: 0 clamp(20px, 3vw, 48px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); border-top: 1px solid var(--rule); }
.g-azlist a { display: flex; flex-direction: column; gap: 2px; padding-block: 11px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.g-azlist a:hover { text-decoration: none; }
.g-azlist a:hover .g-az-t { color: var(--accent); }
.g-az-t { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.g-az-k { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--gold); }
.g-az-o { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-3); }
@media print { .g-letter-sheet { box-shadow: none; background: none; } }

/* ---- navigation (claude/goethecloud-navigation): section bar, start here, table of contents, A–Z of everything */
.g-bar { position: relative; border-bottom: 1px solid var(--line); background: var(--bg); }
.g-bar .wrap { display: flex; align-items: center; gap: 4px 18px; min-height: 52px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.g-bar .wrap::-webkit-scrollbar { display: none; }
.g-bar ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.g-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; font-family: var(--sans); font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.g-bar a:hover { color: var(--ink); background: var(--bg-2); text-decoration: none; }
.g-bar a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.g-bar .g-bar-home { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); padding-left: 0; }
.g-start-p { margin: -12px 0 24px; font-family: var(--serif); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.g-start-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 32px; counter-reset: none; }
@media (min-width: 760px) { .g-start-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-start-list a { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); }
.g-start-list a:hover { text-decoration: none; }
.g-start-list a:hover .g-start-t { color: var(--accent); }
.g-start-n { grid-row: span 2; font-family: var(--serif); font-size: 26px; color: var(--gold); }
.g-start-t { font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.g-start-k { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.g-toc { margin: 18px 0 0; max-width: var(--measure, 40em); border: 1px solid var(--line); border-radius: 12px; }
.g-toc summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.g-toc summary span { font-weight: 400; color: var(--ink-3); }
.g-toc ol { margin: 0; padding: 4px 16px 14px 36px; font-family: var(--sans); font-size: 15px; line-height: 1.5; columns: 2 16em; column-gap: 32px; }
.g-toc li { padding: 4px 0; break-inside: avoid; }

/* ---------------------------------------------------------------- WORK PAGES: picture and facts, glance, characters, lines,
   comparison table, downloads and the Goethe Write note (bibliothek/build.mjs richWork). Nothing here is fixed or sticky. */
.g-wk-band { display: grid; gap: clamp(20px, 3vw, 40px); padding-top: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .g-wk-band { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .g-wk-band-solo { grid-template-columns: minmax(0, 40em); justify-content: center; } }
.g-wk-hero img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; border-radius: 4px; background: var(--paper-2); }
.g-wk-hero figcaption { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.g-wk-hero .g-cred { display: block; }
.g-wk-facts { padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--rule); border-radius: 12px; background: var(--paper-2); }
.g-wk-facts h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.g-wk-facts dl > div { display: grid; gap: 2px 18px; padding: 11px 0; border-top: 1px solid var(--rule); }
.g-wk-facts dl > div:first-child { border-top: 0; }
@media (min-width: 520px) { .g-wk-facts dl > div { grid-template-columns: 8.5em minmax(0, 1fr); } }
.g-wk-facts dt { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink-3); }
.g-wk-facts dd { font-size: 17px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.g-wk-glance { margin-bottom: clamp(28px, 4vw, 48px); padding-bottom: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--rule); }
.g-wk-glance p:not(.g-kicker) { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.g-wk-sec { margin-top: clamp(48px, 6vw, 80px); }
.g-wk-sec .g-sec-h { font-size: clamp(28px, 3vw, 40px); }
.c-first { font-family: var(--serif); font-style: italic; }
.g-wk-persons { list-style: none; border-top: 1px solid var(--line); }
.g-wk-persons li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.g-wk-pn { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--ink); }
.g-wk-alias { font-size: 16px; color: var(--ink-3); }
.g-wk-pc { grid-column: 2; grid-row: 1; font-size: 14px; color: var(--ink-3); white-space: nowrap; align-self: baseline; }
.g-wk-pd { grid-column: 1 / -1; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.g-wk-note { font-size: 16px; line-height: 1.5; color: var(--ink-3); margin-bottom: 16px; }
.g-wk-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--gold); }
.g-wk-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; min-width: 520px; }
.g-wk-table th, .g-wk-table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.g-wk-table thead th { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-3); }
.g-wk-table tbody th { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--ink); width: 30%; }
.g-wk-table td { color: var(--ink-2); }
.g-wk-lines { list-style: none; display: grid; gap: clamp(22px, 3vw, 34px); }
.g-wk-lines figure { margin: 0; padding-left: clamp(16px, 2vw, 24px); border-left: 2px solid var(--gold); }
.g-wk-lines blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.45; color: var(--ink); }
.g-wk-lines .l { display: block; }
.g-wk-lines figcaption { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.g-wk-dl { margin-top: clamp(48px, 6vw, 80px); padding: 22px 24px; border-radius: 12px; border: 1px solid var(--rule); }
.g-wk-dl h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.g-wk-dl ul { list-style: none; margin-top: 10px; display: grid; gap: 8px; }
.g-wk-dl li { font-size: 18px; font-weight: 600; }
.g-wk-dl li span { font-weight: 400; font-size: 14px; color: var(--ink-3); }
.g-wk-dl p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.g-wk-write { margin-top: 28px; padding: clamp(22px, 2.6vw, 32px); border-radius: 12px; background: var(--paper-2); border-left: 3px solid var(--gold); }
.g-wk-write-mark { font-family: var(--serif); font-size: 17px; color: var(--ink-3); }
.g-wk-write-mark span { color: var(--gold); }
.g-wk-write h2 { margin-top: 4px; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); color: var(--ink); }
.g-wk-write p:last-child { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.g-wk-next ul { list-style: none; display: grid; gap: 14px; }
.g-wk-card { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 12px; color: inherit; }
.g-wk-card:hover { text-decoration: none; border-color: var(--gold); }
.g-wk-card .g-work-y { font-size: 14px; color: var(--gold); font-weight: 600; }
.g-wk-card .g-work-t { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.g-wk-card .g-work-p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.g-wk-sources { margin-top: clamp(40px, 5vw, 64px); }
.g-wk-unitinfo { margin-top: 8px; font-family: var(--sans); font-size: 15px; line-height: 1.45; color: var(--ink-3); }

/* ---------------------------------------------------------------- Goethe Write in the library
   Band under the section bar, cards in texts and lists, the wide card between groups, the pop-up (CSS only; lesen.js
   remembers when it was closed), and the reading tools (open as .goethex, share, print, copy link). */
.g-appband { background: var(--night); color: var(--night-ink); }
.g-appband p { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; min-height: 52px; padding-block: 8px; font-size: 15px; line-height: 1.35; text-align: center; }
.g-appband .g-pr-icon { width: 28px; height: 28px; border-radius: 7px; }
.g-appband-btn { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 16px; border-radius: 999px; background: var(--night-ink); color: var(--night); font-weight: 600; white-space: nowrap; }
.g-appband-btn:hover { background: #fff; }
.g-pr-icon { flex: none; width: 48px; height: 48px; border-radius: 11px; }

.g-pr { display: grid; grid-template-columns: auto 1fr auto; gap: 14px 18px; align-items: center; margin-block: 36px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper-2); font-family: var(--sans); color: var(--ink); text-align: left; }
.reading .g-pr, .drama .g-pr { margin-block: 2.2em; max-width: none; }
.g-pr p { margin: 0; max-width: none; text-indent: 0; }
.g-pr-h { font-family: var(--serif); font-size: 21px; line-height: 1.2; font-weight: 500; }
.g-pr-p { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); margin-top: 4px !important; }
.g-pr-n { font-size: 13.5px; line-height: 1.35; color: var(--ink-3); margin-top: 6px !important; }
.g-pr-a { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.g-pr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--fill); color: var(--fill-ink); font-size: 16px; font-weight: 600; white-space: nowrap; }
.g-pr-btn:hover { background: var(--fill-hover); }
.g-pr-more { font-size: 14px; text-align: center; color: var(--ink-2); }
.g-pr-li { list-style: none; }
.g-pr-li .g-pr { margin-block: 8px 28px; }
@media (max-width: 640px) {
  .g-pr { grid-template-columns: auto 1fr; align-items: start; }
  .g-pr .g-pr-icon { width: 40px; height: 40px; border-radius: 9px; }
  .g-pr-a { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
}

.g-prb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-block: clamp(40px, 5vw, 72px); padding: clamp(24px, 3.4vw, 44px); border-radius: 22px; background: var(--night); color: var(--night-ink); }
.g-prb-t { display: grid; gap: 10px; }
.g-prb .g-cta-mark { color: #d8b46a; }
.g-prb .g-cta-mark span { color: var(--night-ink-2); }
.g-prb-h { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.g-prb-p { font-size: 17px; line-height: 1.5; color: var(--night-ink-2); }
.g-prb .store { margin-top: 10px; }
.g-prb .store-note { color: var(--night-ink-2); }
@media (max-width: 860px) { .g-prb { grid-template-columns: 1fr; } }

.g-appband, .g-pr, .g-prb, .g-pop, .g-tools { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; }
.g-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.g-pop { position: fixed; z-index: 60; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .28), 0 0 0 1px var(--rule); font-family: var(--sans); animation: g-pop-in .45s cubic-bezier(.2, .8, .2, 1) 20s both; }
@keyframes g-pop-in { from { opacity: 0; transform: translateY(24px); visibility: hidden; } to { opacity: 1; transform: none; visibility: visible; } }
.g-pop:has(.g-pop-x input:checked) { display: none; }
.g-pop-t { display: grid; gap: 8px; padding: 18px 22px 22px; }
.g-pop-h { font-family: var(--serif); font-size: 26px; line-height: 1.15; font-weight: 500; }
.g-pop-p { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.g-pop .store { margin-top: 8px; gap: 14px 16px; flex-wrap: nowrap; }
.g-pop .store-note { font-size: 13px; }
.g-pop .store-badge img { height: 40px; }
.g-pop-x { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.g-pop-x input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.g-pop-x:has(input:focus-visible) { outline: 3px solid var(--accent, #0a84ff); outline-offset: 2px; }
@media (max-width: 640px) { .g-pop { right: 16px; left: 16px; width: auto; bottom: max(16px, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .g-pop { animation-name: g-pop-show; animation-duration: .01s; } @keyframes g-pop-show { from { visibility: hidden; opacity: 0; } to { visibility: visible; opacity: 1; } } }

/* ---------------------------------------------------------------- the art of the promotion
   One picture language everywhere: Stieler's portrait of 1828, the window of the app, a stroke of the quill in gold.
   The rules without animation are the finished picture. Motion is keyframes on transform and opacity only, runs once
   (the pop-up, the band, the hub) or with the scroll position (the wide card), and is off with reduced motion. */
.g-face { display: block; position: relative; overflow: hidden; background: #1a1712; }
.g-face img { position: absolute; top: 0; max-width: none; height: auto; }
.g-win { display: block; }
.g-win img { display: block; width: 100%; height: auto; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 14px 36px rgba(0, 0, 0, .55); }
.g-quill { display: block; overflow: hidden; color: #d8b46a; }
.g-quill > span { display: block; overflow: hidden; }
.g-quill svg { display: block; width: 100%; height: auto; overflow: visible; }
.g-quill path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
@keyframes g-wipe-a { from { transform: translateX(-101%); } to { transform: none; } }
@keyframes g-wipe-b { from { transform: translateX(101%); } to { transform: none; } }

/* the pop-up: a small stage above the text. --t0 is the moment the pop-up has arrived. */
.g-pop { --t0: 20.35s; }
.g-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px 20px 0 0; background: #14120e; }
.g-stage-face { position: absolute; inset: 0; transform: translateX(-30%); }
.g-stage-face img { width: 142.9%; left: -23.2%; transform: translateY(-18.8%); }
.g-stage-face::after { content: ""; position: absolute; inset: 0; background: #a98a5a; mix-blend-mode: color; opacity: 0; }
.g-stage-paper { position: absolute; inset: 0; background: var(--paper-2); opacity: 0; }
.g-stage-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 18, 14, 0) 20%, #14120e 38%); }
.g-stage-win { position: absolute; left: 34%; top: 50%; width: 53%; transform: translateY(-50%); }
.g-pop-mark { display: flex; align-items: flex-end; gap: 12px; margin-top: -46px; margin-bottom: 4px; }
.g-pop-mark .g-pr-icon { position: relative; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 0; filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .35)); }
.g-pop-name { display: grid; justify-items: start; padding-bottom: 1px; }
.g-pop-name .g-cta-mark { line-height: 1.15; white-space: nowrap; }
.g-pop-name .g-quill { width: 132px; margin-top: 1px; color: var(--gold); }
@media (max-width: 640px) {
  .g-stage { aspect-ratio: 3 / 1; }
  .g-stage-face img { transform: translateY(-21.6%); }
  .g-stage-win { left: 41%; width: 43%; }
}
@media (max-height: 680px) {
  .g-stage { aspect-ratio: auto; height: 0; visibility: hidden; } /* not display: none – its animations would start again when the window grows */
  .g-pop-x { background: var(--paper-2); color: var(--ink); }
  .g-pop-mark { margin-top: 0; align-items: center; }
  .g-pop-mark .g-pr-icon { width: 40px; height: 40px; margin-bottom: 0; filter: none; }
}
@keyframes g-stage-face { 0% { transform: scale(1.12); } 56% { transform: scale(1.03); animation-timing-function: cubic-bezier(.5, 0, .2, 1); } 100% { transform: translateX(-30%); } }
@keyframes g-stage-paper { from { opacity: 1; } to { opacity: 0; } }
@keyframes g-stage-shade { from { opacity: 0; } to { opacity: 1; } }
@keyframes g-stage-win { from { opacity: 0; transform: translate(14%, -34%) scale(.94); } to { opacity: 1; transform: translateY(-50%); } }
@keyframes g-pop-icon { 0% { opacity: 0; transform: scale(.5); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes g-pop-name { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .g-stage-paper { animation: g-stage-paper .9s ease-out calc(var(--t0) + .1s) both; }
  .g-stage-face::after { animation: g-stage-paper 1.3s ease-in-out calc(var(--t0) + .7s) both; }
  .g-stage-face { animation: g-stage-face 3.3s cubic-bezier(.2, .6, .3, 1) var(--t0) both; }
  .g-stage-shade { animation: g-stage-shade .9s ease-in-out calc(var(--t0) + 2s) both; }
  .g-stage-win { animation: g-stage-win 1s cubic-bezier(.2, .8, .2, 1) calc(var(--t0) + 2.3s) both; }
  .g-pop-mark .g-pr-icon { animation: g-pop-icon .55s cubic-bezier(.3, .7, .3, 1) calc(var(--t0) + 3s) both; }
  .g-pop-name .g-cta-mark { animation: g-pop-name .5s ease-out calc(var(--t0) + 3.3s) both; }
  .g-pop-name .g-quill > span { animation: g-wipe-a .9s cubic-bezier(.4, 0, .3, 1) calc(var(--t0) + 3.6s) both; }
  .g-pop-name .g-quill svg { animation: g-wipe-b .9s cubic-bezier(.4, 0, .3, 1) calc(var(--t0) + 3.6s) both; }
}

/* the wide card: the window, the portrait as a small plate in front of it, the stroke and the painter's name */
.g-art { position: relative; margin: 0; padding-bottom: 66px; }
.g-art-win { margin-left: 13%; }
.g-art-win img { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 50px rgba(0, 0, 0, .5); }
.g-art-face { position: absolute; left: 0; bottom: 0; width: 27%; aspect-ratio: 4 / 5; border-radius: 10px; box-shadow: 0 0 0 1px rgba(216, 180, 106, .7), 0 14px 34px rgba(0, 0, 0, .6); }
.g-art-face img { width: 250%; left: -78%; transform: translateY(-18.3%); }
.g-art-quill { position: absolute; left: 31%; bottom: 28px; width: min(44%, 200px); }
.g-art-cap { position: absolute; left: 31%; bottom: 0; right: 0; font-size: 13.5px; line-height: 1.4; color: #a99f8a; }
@keyframes g-art-win { from { opacity: 0; transform: translateY(36px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes g-art-face { from { opacity: 0; transform: translate(-14px, 56px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .g-art-win { animation: g-art-win linear both; animation-timeline: view(); animation-range: entry 0% cover 34%; }
    .g-art-face { animation: g-art-face linear both; animation-timeline: view(); animation-range: entry 20% cover 46%; }
    .g-art-quill > span { animation: g-wipe-a linear both; animation-timeline: view(); animation-range: cover 22% cover 46%; }
    .g-art-quill svg { animation: g-wipe-b linear both; animation-timeline: view(); animation-range: cover 22% cover 46%; }
  }
}

/* the band: Goethe looks out from behind the icon */
.g-duo { display: inline-flex; align-items: center; flex: none; }
.g-duo-face { width: 28px; height: 28px; border-radius: 50%; margin-right: -4px; box-shadow: 0 0 0 1px rgba(216, 180, 106, .7); }
.g-duo-face img { width: 400%; left: -161%; transform: translateY(-21%); }
.g-duo .g-pr-icon { position: relative; }
@keyframes g-duo-face { from { opacity: 0; transform: translateX(16px) scale(.7); } to { opacity: 1; transform: none; } }
/* the hub: the stroke under the name */
.g-hero-quill { width: clamp(150px, 22vw, 340px); margin-top: clamp(6px, 1vw, 14px); }
@media (prefers-reduced-motion: no-preference) {
  .g-duo-face { animation: g-duo-face .7s cubic-bezier(.2, .8, .2, 1) .5s both; }
  .g-hero-quill > span { animation: g-wipe-a 1.4s cubic-bezier(.4, 0, .3, 1) .5s both; }
  .g-hero-quill svg { animation: g-wipe-b 1.4s cubic-bezier(.4, 0, .3, 1) .5s both; }
}

.g-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; font-family: var(--sans); }
.g-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.g-tool:hover { background: var(--paper-2); }
.g-tool svg { width: 18px; height: 18px; flex: none; }
.g-tool-gx { background: var(--fill); color: var(--fill-ink); border-color: transparent; font-weight: 600; }
.g-tool-gx:hover { background: var(--fill-hover); }
.g-tool.is-done { border-color: var(--gold); color: var(--gold); }
.g-tool[hidden] { display: none; }
.g-tools-note { flex-basis: 100%; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.g-head .g-tools { justify-content: inherit; }

@media print {
  .g-appband, .g-pr, .g-pr-li, .g-prb, .g-pop, .g-tools, .g-bar, header.head, footer.foot, .g-diary-aside, .g-context, .g-same, .az { display: none !important; }
  body.g, .g main { background: #fff; color: #000; }
  .reading, .g-letter, .g-diary { font-size: 12pt; }
}

/* the iPhone beside the Mac window (stage of the pop-up and the wide card): a real capture in a frame drawn here */
.g-phone { position: absolute; display: block; padding: 3.5%; border-radius: 18%/8.5%; background: #0b0a08; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 14px 30px rgba(0, 0, 0, .55); }
.g-phone img { display: block; width: 100%; height: auto; border-radius: 14%/6.6%; }
.g-stage-phone { right: 5%; bottom: -10%; width: 15%; }
.g-art-phone { right: -3%; bottom: 46px; width: 19%; }
@media (max-width: 640px) { .g-stage-phone { right: 4%; bottom: -26%; width: 10%; } .g-art-phone { right: 0; } }
@keyframes g-phone-in { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .g-stage-phone { animation: g-phone-in .8s cubic-bezier(.2, .8, .2, 1) calc(var(--t0) + 2.75s) both; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .g-art-phone { animation: g-phone-in linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}

/* meaning and questions under a poem (texte/deutungen.json) */
.g-deutung { margin-top: clamp(40px, 6vw, 72px); max-width: 38em; }
.g-deutung > h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; max-width: none; margin: 1.6em 0 .6em; }
.g-deutung > h2:first-child { margin-top: 0; }
.g-faq dt { font-weight: 600; margin-top: 1.2em; color: var(--ink); }
.g-faq dd { margin: .3em 0 0; color: var(--ink-2); line-height: 1.6; }
.g-deutung-cta { margin-top: 1.6em; padding: 18px 20px; border-radius: 12px; background: var(--paper-2); font-size: 17px; line-height: 1.5; color: var(--ink); }
.g-deutung-cta a { font-weight: 600; color: var(--accent); }
.g-cmp-list { list-style: none; padding: 0; margin: 0; max-width: 46em; }
.g-cmp-list li + li { border-top: 1px solid var(--rule); }
.g-cmp-list a { display: block; padding: 18px 0; color: var(--ink); text-decoration: none; }
.g-cmp-t { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.g-cmp-list a:hover .g-cmp-t { color: var(--accent); }
.g-cmp-s { display: block; margin-top: 4px; color: var(--ink-2); font-size: 17px; }
.g-cmp-links { list-style: none; padding: 0; }
.g-cmp-links li + li { margin-top: 8px; }
.g-cmp-links a { color: var(--accent); font-weight: 600; }
.g-cmp-see { margin-top: 1.4em; font-size: 17px; color: var(--ink-2); } .g-cmp-see a { color: var(--accent); }
.g-mode { margin-top: 1.6em; max-width: 38em; border-radius: 12px; background: var(--paper-2); padding: 0 20px; }
.g-mode summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--accent); list-style-position: inside; }
.g-mode ol { margin: 0 0 12px 1.2em; padding: 0; line-height: 1.55; }
.g-mode li + li { margin-top: 8px; }
.g-mode p { padding-bottom: 16px; font-size: 16px; }
.g-mode a { color: var(--accent); font-weight: 600; }
.g-academy { margin-top: 1.4em; font-size: 17px; } .g-academy a { color: var(--accent); font-weight: 600; }
