@font-face { font-family: Literata; src: url("fonts/literata-latin.woff2") format("woff2"); font-style: normal; font-weight: 300 700; font-display: swap; }
@font-face { font-family: Literata; src: url("fonts/literata-latin-italic.woff2") format("woff2"); font-style: italic; font-weight: 300 700; font-display: swap; }
/* Wort für Wort — a quiet, contemporary reading room. */
:root {
  --paper: #f7f7f2;
  --surface: #fffefa;
  --ink: #243e34;
  --muted: #616b63;
  --rule: #d8ddd4;
  --accent: #f5eed8;
  --soft: #edf0e8;
  --story-blue: #356da8;
  --serif: Literata, 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1,h2,h3,p { margin: 0; }
button,input,select { font: inherit; color: inherit; }
button,a,input,select,summary { -webkit-tap-highlight-color: transparent; }
button,summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { touch-action: manipulation; }
button:disabled { opacity: .42; cursor: default; }
:focus-visible { outline: 2px solid var(--story-blue); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--ink); }
[hidden] { display: none !important; }
em { font-weight: 400; }
.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: 48px; }
.skip { position: absolute; top: -100px; padding: 14px 24px; background: var(--ink); color: white; z-index: 100; }
.skip:focus { top: 0; }
.demo-bar { min-height: 34px; padding: 7px 20px; background: var(--soft); text-align: center; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.demo-detail { letter-spacing: 0; }
.demo-dot,.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #607c68; margin-right: 9px; flex-shrink: 0; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 650; letter-spacing: -.8px; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; position: relative; width: 37px; height: 42px; border: 1px solid var(--ink); font: italic 32px/1 var(--serif); }
.brand-icon>span { position: absolute; right: -4px; top: -8px; background: var(--paper); font: 17px/1 var(--sans); }
.brand-period { color: #8b7043; }
.header nav { display: flex; align-items: center; gap: 24px; }
.header nav a,.nav-button { font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-button { border: 0; background: none; padding: 0; }
.nav-button span { margin-left: 7px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.header nav a:hover,.nav-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 14px 22px; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--surface); font-size: 14px; font-weight: 550; line-height: 1.5; transition: background .15s; }
.button:hover:not(:disabled) { background: #365549; }
.button.small { min-height: 44px; padding: 10px 16px; font-size: 12px; gap: 16px; }
.text-button { min-height: 36px; border: 0; background: transparent; padding: 6px 0; font-size: 12px; line-height: 1.5; }
.text-button:hover:not(:disabled),.back-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-button span { margin-left: 8px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 600 11px/1.6 var(--sans); letter-spacing: .13em; }
.line { width: 26px; height: 1px; background: currentColor; }
.hero { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(240px,1fr); column-gap: 72px; padding-top: 65px; padding-bottom: 68px; border-top: 1px solid var(--rule); }
.hero>.eyebrow { grid-column: 1/-1; color: var(--muted); margin-bottom: 24px; }
h1 { font: 400 clamp(48px,5.3vw,72px)/1.06 var(--serif); letter-spacing: -.045em; }
h1 em { display: block; font-style: italic; }
.hero-bottom { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 34px; padding-top: 8px; }
.hero-bottom>p { font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 340px; }
.desktop-break { display: none; }
.edition { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--rule); padding-top: 21px; width: 100%; }
.edition-star { font: 34px/1 var(--serif); color: #8b7043; }
.edition>span:last-child { font-size: 12px; line-height: 1.8; }
.edition strong { font-weight: 550; }
.story-section { overflow-anchor: none; }
.story-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--ink); padding: 18px 0; }
.chapter { display: flex; align-items: center; }
.chapter h2 { font: 550 14px/1.5 var(--sans); }
.example-note { padding: 12px 18px; margin-bottom: 12px; font-size: 11px; line-height: 1.7; color: #6b592f; background: #f1ecd9; border-left: 2px solid #b29a63; }
.timeline-panel { border-block: 1px solid var(--rule); margin-bottom: 20px; }
.timeline-panel summary { display: flex; align-items: center; justify-content: space-between; list-style: none; padding: 11px 0; font-size: 12px; color: var(--muted); min-height: 44px; }
.timeline-panel summary::-webkit-details-marker { display: none; }
.timeline-panel summary span { font-size: 20px; }
.timeline-panel[open] summary { color: var(--ink); }
html:has(#timeline-panel[open]) { scroll-behavior: auto; }
.timeline-inner { padding: 8px 0 20px; }
.timeline-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.timeline-heading label { margin: 0; font-size: 13px; font-weight: 400; }
.timeline-heading strong { font-size: 12px; font-weight: 550; }
.timeline-panel input[type=range] { border: 0; padding: 0; height: 36px; margin: 12px 0; background: none; accent-color: var(--ink); }
.timeline-shortcuts { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.timeline-shortcuts button:last-child { margin-left: auto; }
.timeline-inner>p { font-size: 12px; color: var(--muted); margin-top: 12px; }
.story-paper { height: 510px; min-height: 510px; max-height: 510px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); padding: 32px 52px 26px; }
.paper-top { display: flex; justify-content: space-between; gap: 18px; flex: 0 0 auto; font-size: 10px; line-height: 1.6; letter-spacing: .1em; color: var(--muted); }
.story-paper .story-text { flex: 1; min-height: 0; overflow: hidden; margin: 28px 0; font: 400 clamp(34px,3.8vw,48px)/1.47 var(--serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.story-paper .story-text.long-excerpt { font-size: clamp(25px,2.6vw,32px); letter-spacing: -.015em; }
.word { padding: 0 1px; border: 0; border-radius: 2px; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; }
.word:hover,.word:focus-visible { background: var(--soft); }
.word.latest { text-decoration: underline; text-decoration-color: #bea26b; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.punctuation-word { padding: 0 !important; }
.next-mark { margin-left: 8px; letter-spacing: 4px; }
.paper-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 30px; flex: 0 0 auto; font-size: 12px; line-height: 1.6; color: var(--muted); }
.paper-symbol { font: 24px/1 var(--serif); }
.invisible { visibility: hidden; }
.read-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; min-height: 74px; }
.read-button { background: transparent; color: var(--ink); min-height: 46px; padding: 11px 18px; font-size: 13px; }
.read-button:hover:not(:disabled) { background: var(--ink); color: var(--surface); }
.read-actions>span { margin-left: auto; font-size: 12px; color: var(--muted); }
.story-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 13px; font-size: 12px; color: var(--muted); }
.pointer-icon { margin-right: 5px; font-size: 16px; }
.contribute { margin-top: 34px; padding: 30px 34px; background: var(--ink); color: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 26px; }
.contribute .eyebrow { font-size: 10px; color: #cbd7cd; margin-bottom: 9px; }
.contribute h3 { font: 400 28px/1.25 var(--serif); letter-spacing: -.025em; }
.contribute .button { background: var(--surface); color: var(--ink); border-color: var(--surface); flex-shrink: 0; }
.contribute .button:hover { background: var(--soft); }
.price { border-left: 1px solid #bcc6b9; padding-left: 17px; white-space: nowrap; }
.progress-panel { padding: 26px 0 29px; border-bottom: 1px solid var(--rule); }
.progress-label,.progress-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.progress-label p { font-size: 12px; }
.progress-label strong { font-size: 25px; font-weight: 500; margin-right: 6px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.progress-label p span,.progress-label>span,.progress-bottom { font-size: 12px; color: var(--muted); }
progress { display: block; width: 100%; height: 3px; border: 0; appearance: none; margin: 15px 0; background: var(--rule); }
progress::-webkit-progress-bar { background: var(--rule); }
progress::-webkit-progress-value { background: var(--ink); }
progress::-moz-progress-bar { background: var(--ink); }
.idea-section { display: grid; grid-template-columns: 1fr 1.25fr; gap: 100px; padding-top: 84px; padding-bottom: 80px; }
.idea-heading>.eyebrow { color: var(--muted); }
.idea-heading h2 { font: 400 54px/1.1 var(--serif); letter-spacing: -.04em; margin-top: 23px; }
.idea-heading>p { margin-top: 24px; max-width: 330px; font-size: 15px; line-height: 1.85; color: var(--muted); }
.steps article { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.steps article:first-child { padding-top: 0; }
.step-number { font-size: 12px; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 17px; font-weight: 550; line-height: 1.5; }
.steps p { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.closing { text-align: center; border-top: 1px solid var(--rule); padding-top: 42px; padding-bottom: 55px; }
.closing>span { display: block; font: 56px/.8 var(--serif); color: #8b7043; }
.closing p { font: 400 32px/1.4 var(--serif); letter-spacing: -.02em; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--rule); padding-block: 26px; }
.footer-brand { font-size: 17px; font-weight: 600; letter-spacing: -.6px; }
.footer>p { font-size: 12px; color: var(--muted); }
/* Keep the writing flow legible without adding another visual container. */
#write-dialog .dialog-top { margin-bottom: 27px; }
#write-dialog .dialog-description { max-width: 42ch; }
#write-dialog .context { font-size: 20px; line-height: 1.55; padding: 7px 0 7px 16px; margin: 24px 0 27px; }
#write-dialog label[for="word-input"] { margin-top: 0; }
#write-dialog .contribution-count { font-size: 11px; }
#write-dialog .punctuation-help { margin: 8px 0 24px; }
#write-dialog .paragraph-choice { border-top: 1px solid var(--rule); padding: 15px 0; }
#write-dialog .paragraph-choice:has(#paragraph-after) { border-bottom: 1px solid var(--rule); }
#write-dialog label[for="author-input"] { margin-top: 27px; }
#write-dialog .privacy-note { margin: 8px 0 24px; }
#write-dialog .demo-note { margin-top: 12px; }
#confirm-step .preview-word { padding: 23px 0 19px; }
#confirm-step .receipt { margin: 22px 0; }
#confirm-step .payment-demo { background: transparent; border-left: 2px solid var(--rule); padding: 4px 0 4px 16px; font-size: 12px; }
/* Dialogs share the same typography, controls and paper surfaces. */
dialog { width: calc(100% - 40px); max-width: 580px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; padding: 32px 38px; border: 1px solid var(--rule); border-radius: 5px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 80px #15251d29; }
dialog::backdrop { background: #172b2470; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.dialog-top .eyebrow { font-size: 10px; color: var(--muted); }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: transparent; font: 26px/1 var(--sans); }
.icon-button:hover { background: var(--soft); }
dialog h2 { font: 400 40px/1.13 var(--serif); letter-spacing: -.035em; overflow-wrap: anywhere; }
.dialog-description { font-size: 14px; color: var(--muted); line-height: 1.75; margin-top: 14px; }
.context { white-space: pre-line; font: 22px/1.6 var(--serif); padding: 10px 0 10px 20px; border-left: 2px solid var(--rule); margin: 24px 0; overflow-wrap: anywhere; }
.context::after { content: ' …'; }
label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 550; margin: 22px 0 9px; }
label span { color: var(--muted); font-size: 12px; font-weight: 400; }
input,select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #7d8c80; border-radius: 3px; background: var(--surface); font-size: 16px; }
input::placeholder { color: #717970; opacity: 1; }
input:focus,select:focus { border-color: var(--story-blue); }
#word-input { font: 27px/1.4 var(--serif); }
.error { font-size: 12px; line-height: 1.7; color: #a13628; margin-top: 7px; }
.contribution-count,.privacy-note,.demo-note,.punctuation-help { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 9px; }
.contribution-count.over-limit { color: #a13628; }
.privacy-note { margin-bottom: 23px; }
.demo-note { text-align: center; margin-top: 14px; }
.punctuation-help { margin-top: 12px; }
.paragraph-choice { display: flex; align-items: flex-start; justify-content: flex-start; gap: 12px; padding: 12px 0; margin: 0; }
.paragraph-choice input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin: 2px 0 0; padding: 0; accent-color: var(--ink); }
.paragraph-choice>span { font-size: 13px; color: var(--ink); line-height: 1.6; }
.paragraph-choice small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.full { width: 100%; justify-content: space-between; margin-top: 7px; }
.preview-word { font: 38px/1.35 var(--serif); letter-spacing: -.025em; padding: 26px 0 20px; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.paragraph-preview-note { color: var(--muted); font-size: 12px; margin-top: 13px; }
.transition-label { color: var(--muted); font-size: 10px; letter-spacing: .12em; margin-top: 24px; }
.paragraph-preview { background: var(--surface); border: 1px solid var(--rule); padding: 20px; margin: 12px 0; }
#transition-preview { font: 22px/1.65 var(--serif); overflow-wrap: anywhere; }
#transition-preview p+p { margin-top: 1.2em; }
.next-paragraph { font: italic 17px/1.6 var(--serif); color: var(--muted); margin-top: 1.3em; }
.confirmation-author { color: var(--muted); font-size: 13px; margin-top: 12px; }
.typo-note { font-size: 13px; color: var(--muted); line-height: 1.8; padding-top: 18px; }
.typo-note strong { display: block; color: var(--ink); font-weight: 550; }
.receipt { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; border-block: 1px solid var(--rule); padding: 18px 0; margin: 24px 0; font-size: 13px; }
.receipt strong { font-size: 22px; font-weight: 550; white-space: nowrap; }
.payment-demo { padding: 18px; background: var(--soft); font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
.payment-demo p { margin-top: 6px; color: var(--muted); }
.back-button { display: block; margin: 15px auto 0; min-height: 44px; padding: 8px 0; border: 0; background: transparent; font-size: 13px; color: var(--muted); }
.detail-dialog h2 { margin: 20px 0; }
.detail-dialog>p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.detail-date { font-size: 12px !important; }
.detail-note { font-size: 12px !important; border-top: 1px solid var(--rule); padding-top: 16px; }
#detail-dialog { max-width: 640px; }
#detail-dialog h2 { font-size: 40px; }
.word-card { padding: 26px; margin-top: 24px; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--ink); }
.word-card .eyebrow { font-size: 10px; }
.card-position { font: 27px/1.3 var(--serif); margin: 17px 0; letter-spacing: -.02em; }
.card-context { font: 23px/1.65 var(--serif); overflow-wrap: anywhere; }
.card-context mark { padding: 1px; }
.card-author { font-size: 12px; color: var(--muted); margin-top: 18px; }
.card-continuation { border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 20px; }
#card-following { font-size: 12px; color: var(--muted); }
.card-continuation button { margin-top: 8px; }
.card-url { display: block; font: 12px/1.7 var(--sans); color: var(--muted); margin: 18px 0 13px; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.card-tagline { font-size: 12px; line-height: 1.7; color: var(--muted); }
.word-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; }
.card-link-note { font-size: 12px !important; }
.authors-dialog,.search-dialog { max-width: 720px; }
.directory-controls,.search-controls { display: grid; grid-template-columns: minmax(0,1fr) 175px; gap: 16px; }
.directory-controls label,.search-controls label { display: block; min-width: 0; }
.directory-controls input,.directory-controls select,.search-controls input,.search-controls select { margin-top: 8px; }
.results-summary { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 18px 0 8px; }
.author-card { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; gap: 20px; padding: 20px 4px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; }
.author-card:hover,.search-result:hover { background: var(--soft); }
.author-card strong { font: 25px/1.3 var(--serif); overflow-wrap: anywhere; }
.author-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 7px; }
.author-card>span:last-child { max-width: 50%; text-align: right; font-size: 12px; color: var(--muted); line-height: 1.7; }
.search-result { display: block; width: 100%; padding: 20px 4px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--rule); }
.result-meta { display: block; font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.result-snippet { display: block; font: 22px/1.6 var(--serif); overflow-wrap: anywhere; }
mark,.word.search-hit { background: var(--accent); color: inherit; border-radius: 1px; }
#clear-author-filter { margin-top: 8px; }
.empty-authors { padding: 24px 0; font-size: 14px; color: var(--muted); }
.reset-button { padding: 12px 16px; margin-top: 26px; min-height: 44px; border: 1px solid var(--rule); border-radius: 3px; background: transparent; font-size: 13px; }
/* The reader reserves a stable text area. Pagination measures the actual space. */
.reader-dialog[open] { display: flex; flex-direction: column; padding: 0; width: calc(100% - 48px); max-width: 960px; height: 92dvh; max-height: 92dvh; overflow: hidden; }
.reader-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 32px; flex-shrink: 0; }
.reader-header .eyebrow { font-size: 10px; color: var(--muted); }
.reader-header h2 { font-size: 32px; margin-top: 8px; }
.reader-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 20px; padding: 6px 32px; border-block: 1px solid var(--rule); flex-shrink: 0; }
.reader-tools>span { font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.reader-tools>div { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.reader-tools button { white-space: nowrap; }
.reader-scroll { flex: 1; min-height: 0; overflow: hidden; padding: 28px 56px 20px; background: var(--surface); }
.reader-page { display: flow-root; font: 22px/1.8 var(--serif); max-width: 700px; margin: 0 auto; overflow-wrap: anywhere; }
.reader-page p { margin-bottom: 1.2em; }
.reader-page p:last-child { margin-bottom: 0; }
.reader-page .word { padding: 0; }
.reader-page-end { height: 48px; overflow: hidden; border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 14px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.reader-navigation { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 10px 24px; border-top: 1px solid var(--rule); flex-shrink: 0; }
.reader-nav-button { width: 44px; height: 44px; background: transparent; border: 1px solid var(--rule); border-radius: 3px; font-size: 21px; }
.reader-nav-button:hover:not(:disabled) { background: var(--soft); }
.reader-navigation label { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 400; }
.reader-navigation select { width: auto; min-height: 40px; padding: 6px; font-size: 13px; }
.reader-navigation label span { white-space: nowrap; }
.reader-bookmark { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 16px; padding: 6px 24px; border-top: 1px solid var(--rule); flex-shrink: 0; }
.reader-bookmark>span { font-size: 11px; color: var(--muted); }
.reader-help { text-align: center; font-size: 11px; color: var(--muted); padding: 0 20px 10px; flex-shrink: 0; }
.reader-size-18 { font-size: 18px; }.reader-size-20 { font-size: 20px; }.reader-size-22 { font-size: 22px; }.reader-size-24 { font-size: 24px; }.reader-size-26 { font-size: 26px; }.reader-size-28 { font-size: 28px; }.reader-size-30 { font-size: 30px; }
.bookmark-banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--soft); border-left: 2px solid #7f947c; padding: 18px 22px; margin-top: 24px; }
.bookmark-banner strong { font-size: 14px; font-weight: 550; }
.bookmark-banner p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.bookmark-banner button { flex-shrink: 0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 14px 22px; border-radius: 3px; background: var(--ink); color: var(--surface); font-size: 13px; max-width: calc(100% - 32px); width: max-content; z-index: 20; opacity: 0; pointer-events: none; transition: opacity .15s; }
.toast.visible { opacity: 1; }
/* Narrative blue is invariant across all views, selections and exports. */
[data-story-text],[data-story-text] .word,[data-story-text] mark,[data-story-text] .excerpt-ellipsis,[data-story-text] .next-mark,#context::after { color: var(--story-blue); }
#print-story-content { display: none; }
@media (max-width: 1000px) {
  .wrap { padding-inline: 32px; }
  .header { gap: 18px; }
  .header nav { gap: 18px; }
  .hero { column-gap: 40px; grid-template-columns: minmax(0,1.5fr) minmax(220px,1fr); }
  .hero-bottom>p { font-size: 15px; }
  .idea-section { gap: 64px; }
  .contribute { padding: 28px; }
  .contribute h3 { font-size: 25px; }
  .read-actions>span { width: 100%; margin-left: 0; }
}
@media (max-width: 760px) {
  .header { flex-wrap: wrap; padding-top: 20px; padding-bottom: 12px; gap: 12px 20px; }
  .header nav { order: 3; width: 100%; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); padding-top: 5px; }
  .header>.button { margin-left: auto; }
  .hero { padding-top: 40px; padding-bottom: 44px; gap: 24px 36px; grid-template-columns: minmax(0,1.2fr) minmax(190px,1fr); }
  .hero>.eyebrow { margin-bottom: 0; }
  h1 { font-size: 50px; }
  .hero-bottom { gap: 22px; padding-top: 0; }
  .edition { padding-top: 16px; }
  .story-paper { padding-inline: 32px; }
  .contribute { align-items: flex-start; flex-direction: column; gap: 22px; }
  .contribute .button { width: 100%; justify-content: space-between; }
  .price { margin-left: auto; }
  .idea-section { gap: 40px; grid-template-columns: .9fr 1.1fr; padding-block: 60px; }
  .idea-heading h2 { font-size: 44px; }
  .steps article { grid-template-columns: 25px 1fr; gap: 14px; }
  .footer { flex-wrap: wrap; gap: 8px 20px; }
  .footer>p { order: 3; width: 100%; }
  .reader-tools { padding-inline: 24px; }
  .reader-scroll { padding-inline: 30px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 22px; }
  .demo-bar { padding: 7px 16px; font-size: 10px; }
  .demo-detail { display: none; }
  .header { gap: 14px 10px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand-icon { width: 29px; height: 34px; font-size: 26px; }
  .header>.button { font-size: 11px; padding: 10px 12px; gap: 7px; }
  .header nav a,.nav-button { font-size: 12px; }
  .hero { display: block; padding-top: 36px; padding-bottom: 36px; }
  .hero>.eyebrow { font-size: 9px; letter-spacing: .09em; gap: 8px; margin-bottom: 22px; }
  .line { width: 18px; }
  h1 { font-size: clamp(43px,10.8vw,58px); line-height: 1.08; }
  .hero-bottom { margin-top: 24px; gap: 22px; }
  .hero-bottom>p { max-width: none; font-size: 15px; }
  .edition { width: 100%; gap: 12px; padding-top: 18px; }
  .edition>span:last-child { display: flex; flex-wrap: wrap; column-gap: 5px; font-size: 12px; }
  .edition br { display: none; }
  .edition-star { font-size: 27px; }
  .story-toolbar { align-items: flex-start; gap: 14px; padding: 15px 0; }
  .chapter { padding-top: 6px; }
  .chapter h2 { font-size: 12px; }
  .story-toolbar .text-button { font-size: 11px; max-width: 125px; text-align: right; padding-top: 5px; }
  .example-note { font-size: 10px; padding: 10px 13px; }
  .timeline-panel { margin-bottom: 16px; }
  .timeline-heading { display: block; }
  .timeline-heading strong { display: block; margin-top: 8px; }
  .timeline-shortcuts { gap: 8px 20px; }
  .timeline-shortcuts button:last-child { margin-left: 0; }
  .story-paper { padding: 24px 24px 22px; height: 480px; min-height: 480px; max-height: 480px; }
  .paper-top { font-size: 9px; letter-spacing: .06em; }
  .story-paper .story-text { font-size: 34px; margin: 24px 0; }
  .story-paper .story-text.long-excerpt { font-size: 25px; }
  .paper-bottom { font-size: 11px; min-height: 38px; }
  .read-actions { gap: 7px 20px; padding-top: 18px; }
  .read-actions .read-button { width: 100%; justify-content: space-between; }
  .read-actions>span { font-size: 11px; }
  .story-footer { align-items: flex-start; font-size: 11px; gap: 16px; }
  .story-footer p { max-width: 220px; }
  .story-footer button { white-space: nowrap; min-height: 32px; font-size: 11px; }
  .story-footer button span { display: none; }
  .contribute { margin-top: 28px; padding: 26px 22px; }
  .contribute h3 { font-size: 27px; }
  .contribute .eyebrow { font-size: 9px; }
  .contribute .button { padding: 13px; gap: 12px; font-size: 13px; }
  .price { padding-left: 12px; }
  .progress-label { align-items: flex-start; gap: 14px; }
  .progress-label>span { text-align: right; max-width: 140px; font-size: 11px; }
  .progress-label p span { font-size: 11px; }
  .progress-label strong { font-size: 23px; }
  .progress-bottom { display: block; font-size: 11px; }
  .progress-bottom>span { display: block; }
  .progress-bottom>span+span { margin-top: 4px; }
  .idea-section { grid-template-columns: 1fr; gap: 35px; padding-block: 48px; }
  .idea-heading h2 { font-size: 46px; }
  .idea-heading>p { max-width: none; }
  .steps article { grid-template-columns: 30px 1fr; gap: 16px; }
  .closing { padding-block: 36px; }
  .closing p { font-size: 27px; }
  .footer { padding-block: 22px; }
  dialog { padding: 22px; width: calc(100% - 24px); max-height: 94dvh; }
  .dialog-top { margin-bottom: 18px; }
  dialog h2,#detail-dialog h2 { font-size: 34px; }
  label { flex-wrap: wrap; gap: 2px 12px; }
  label span { font-size: 11px; }
  .paragraph-choice { flex-wrap: nowrap; gap: 10px; }
  .paragraph-choice>span { font-size: 12px; }
  .paragraph-choice small { font-size: 11px; }
  .preview-word { font-size: 32px; }
  .word-card { padding: 22px; }
  .card-context { font-size: 21px; }
  .word-card-actions { gap: 8px 18px; }
  .directory-controls,.search-controls { grid-template-columns: 1fr; gap: 0; }
  .directory-controls label+label,.search-controls label+label { margin-top: 10px; }
  .author-card { gap: 14px; }
  .author-card strong { font-size: 23px; }
  .author-card>span:last-child { font-size: 11px; }
  .reader-dialog[open] { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .reader-header { padding: 16px 22px; gap: 12px; }
  .reader-header .eyebrow { font-size: 9px; }
  .reader-header h2 { font-size: 27px; margin-top: 6px; }
  .reader-tools { padding: 6px 22px; }
  .reader-tools>div { justify-content: space-between; gap: 0 16px; width: 100%; }
  .reader-tools .text-button { font-size: 11px; }
  .reader-scroll { padding: 22px 24px 16px; }
  .reader-navigation { padding: 8px 12px; gap: 8px; justify-content: space-between; }
  .reader-navigation>.text-button { font-size: 11px; }
  .reader-navigation label { flex-wrap: nowrap; gap: 5px; font-size: 11px; }
  .reader-nav-button { width: 36px; }
  .reader-bookmark { padding: 3px 18px; gap: 0; flex-direction: column; }
  .reader-bookmark>span { font-size: 10px; }
  .reader-bookmark button { font-size: 11px; }
  .reader-help { font-size: 10px; padding: 4px 16px 10px; }
  .bookmark-banner { display: block; padding: 17px; }
  .bookmark-banner button { margin-top: 10px; }
}
@media (max-width: 360px) {
  .wrap { padding-inline: 16px; }
  .header>.button span { display: none; }
  .brand { font-size: 17px; gap: 6px; }
  .brand-icon { width: 25px; height: 30px; font-size: 23px; }
  .header>.button { font-size: 10px; padding-inline: 9px; }
  h1 { font-size: 38px; }
  .header nav { gap: 9px; }
  .reader-navigation { gap: 4px; padding-inline: 8px; }
  .reader-navigation label { font-size: 10px; gap: 4px; }
  .reader-navigation select { min-width: 38px; padding-inline: 3px; }
  .reader-navigation>.text-button { font-size: 0; min-width: 28px; min-height: 44px; }
  #reader-first::after { content: '⇤'; font-size: 19px; }
  #reader-last::after { content: '⇥'; font-size: 19px; }
  .reader-tools>div { gap: 0 8px; }
  .reader-tools .text-button { font-size: 10px; }
}
@media (max-height: 600px) {
  .reader-header { padding-block: 8px; }
  .reader-header h2 { font-size: 24px; margin-top: 2px; }
  .reader-header .eyebrow,.reader-help,.reader-bookmark>span { display: none; }
  .reader-tools { padding-block: 2px; }
  .reader-scroll { padding-top: 16px; padding-bottom: 8px; }
  .reader-navigation { padding-block: 4px; }
  .reader-bookmark { padding-block: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition: none !important; animation: none !important; }
}
@media print {
  @page { margin: 20mm; }
  body { background: white; color: #111; }
  body>*:not(#print-story-content) { display: none !important; }
  #print-story-content { display: block !important; font: 12pt/1.65 var(--serif); }
  #print-story-content h1 { font: 25pt/1.2 var(--serif); letter-spacing: -.5pt; margin-bottom: 12pt; }
  #print-story-content p { margin-bottom: 12pt; orphans: 3; widows: 3; }
  #print-story-content .print-note { font: 9pt/1.5 sans-serif; color: #555; border-bottom: 1px solid #aaa; padding-bottom: 12pt; margin-bottom: 20pt; }
  body:has(dialog[open]) { overflow: visible; }
  [data-story-text],[data-story-text] .word,[data-story-text] mark { color: var(--story-blue) !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

#payment-area { margin: 20px 0 12px; }
#payment-element { margin-bottom: 18px; }
