/* Rozdział site. Tokens mirror Rozdzial/Theme.swift: Swiss cream, maroon accent, serif titles, Helvetica Neue for everything else. */
:root {
  /* The site's own light: paler than the app's cream, so the preview window (which keeps the app's real palette) stands off the page. */
  --bg: #FBF9F3;
  --surface: #F3EEE2;
  --rule: #E2DBCB;
  --band: #ECE5D6;
  --ink: #1A1A1A;
  --ink-2: #69645A;
  --accent: #7A1F2B;
  --on-accent: #FAF7EF;
  --selected: rgba(122, 31, 43, .10);
  --hover: rgba(26, 26, 26, .04);
  --well: rgba(26, 26, 26, .04);
  --highlight: rgba(193, 154, 62, .28);
  --shadow: rgba(26, 26, 26, .08);
  --window-shadow: 0 1px 0 rgba(26,26,26,.04), 0 24px 60px -24px rgba(26,26,26,.28);

  --idea: #9C968A; --draft: #C19A3E; --revised: #4A6FA5; --done: #4F7A5A;
  --c0: #4A6FA5; --c1: #3F8A87; --c2: #7A8B4A; --c3: #C19A3E; --c4: #6E5E9E; --c5: #4F7A5A; --c6: #6B9AC4; --c7: #5E5A52;
  --l0: #FAF7EF; --l1: #000; --l2: #1B1916; --l3: #1B1916; --l4: #FAF7EF; --l5: #FAF7EF; --l6: #1B1916; --l7: #FAF7EF;

  --title: "Perpetua", "Hoefler Text", "Baskerville", "Libre Baskerville", Georgia, serif;
  --book: "Iowan Old Style", "Palatino", "Palatino Linotype", "Charter", Georgia, serif;
  --ui: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-s: 6px; --r-m: 10px; --r-l: 14px;
  color-scheme: light dark;
}
/* Inside the window: the app's light tokens, exactly as Theme.swift has them. */
.window { --bg: #F4EFE3; --surface: #FAF7EF; --rule: #E2DBCB; --ink: #1A1A1A; --ink-2: #69645A; --accent: #7A1F2B; --well: rgba(26, 26, 26, .04); }
@media (prefers-color-scheme: dark) {
  /* The site's own dark: a step lighter than the app's, so the preview window (which keeps the app's real dark palette) sits on it with contrast. */
  :root {
    --bg: #2E2A25; --surface: #37332D; --band: #37332D; --rule: #4A443C; --ink: #EEE8DB; --ink-2: #B3AC9F;
    --accent: #D98A94; --on-accent: #1B1916;
    --selected: rgba(212, 122, 133, .16); --hover: rgba(236, 230, 217, .05); --well: rgba(236, 230, 217, .05);
    --highlight: rgba(205, 169, 90, .26); --shadow: rgba(0,0,0,.3);
    --window-shadow: 0 0 0 1px #1F1C19, 0 28px 70px -24px rgba(0,0,0,.6);
    --idea: #8A857A; --draft: #CDA95A; --revised: #7B98C4; --done: #74A080;
    --c0: #7B98C4; --c1: #5FA39F; --c2: #97A866; --c3: #CDA95A; --c4: #9486C0; --c5: #74A080; --c6: #86AED3; --c7: #8F8A80;
    --l0: #1B1916; --l1: #1B1916; --l4: #1B1916; --l5: #1B1916; --l7: #1B1916;
  }
  /* Inside the window: the app's dark tokens, exactly as Theme.swift has them. */
  .window {
    --bg: #1B1916; --surface: #26231F; --rule: #3A352F; --ink: #ECE6D9; --ink-2: #A8A194; --accent: #D47A85;
    --well: rgba(236, 230, 217, .04);
    border-color: #1F1C19;
  }
  .views { background: rgba(0,0,0,.18); }
  .views button[aria-selected="true"] { background: #4A443C; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s5); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
h1, h2, .page-title, .column h4, .card h5, .sb-novel, .brand { font-variant-numeric: lining-nums; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
code { font: 0.92em ui-monospace, "SF Mono", Menlo, monospace; }
cite { font-style: italic; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: var(--s4); top: -60px; background: var(--accent); color: var(--on-accent); padding: var(--s2) var(--s3); border-radius: var(--r-s); z-index: 10; }
.skip-link:focus { top: var(--s4); }
.muted { color: var(--ink-2); }
.small { font-size: 12px; }
.serif { font-family: var(--title); }

/* The app's SectionLabel: 11pt medium, uppercase, tracked, secondary ink. */
.label, .sb-label { font-family: var(--ui); line-height: 1.4; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--title); font-size: 24px; line-height: 1; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.site-header nav { display: flex; gap: var(--s5); font-size: 13px; }
.site-header nav a { text-decoration: none; color: var(--ink-2); }
.site-header nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template:
    "title art" auto
    "lede  ." auto
    / minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s5) clamp(24px, 5vw, 64px);
  padding: 88px 0 var(--s8);
}
.hero h1 { grid-area: title; margin: 0; }
.hero .lede { grid-area: lede; }
.hero-art {
  grid-area: art;
  /* Center on the headline without letting the icon set the row height. */
  block-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-icon { width: min(100%, 352px); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 { font-family: var(--title); font-weight: 400; font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.01em; margin-bottom: var(--s5); }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.name-note { margin-top: var(--s5); font-size: 13px; color: var(--ink-2); }
.name-note span, .name-note strong { color: var(--ink); font-weight: 500; }

/* Preview */
.preview { padding-bottom: var(--s9); }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s3); }
.views { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--well); border: 1px solid var(--rule); }
.views button { font-size: 13px; padding: 5px 14px; border-radius: var(--r-s); color: var(--ink-2); }
.views button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px var(--shadow); }
.views button:hover { color: var(--ink); }

.window { background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: var(--window-shadow); }
.titlebar { position: relative; height: 40px; display: flex; align-items: center; padding: 0 var(--s4); gap: var(--s5); }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #E0443E; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }
.lights i:nth-child(2) { background: #DEA123; } .lights i:nth-child(3) { background: #1AAB29; }
.tb-icons { display: flex; gap: var(--s4); margin-left: var(--s2); }
.titlebar svg { width: 15px; height: 15px; fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tb-more { margin-left: auto; display: flex; }
.tb-more svg { fill: var(--ink-2); stroke: none; }
.win-body { display: grid; grid-template-columns: 256px minmax(0, 1fr); height: 640px; }

/* Sidebar: a floating panel with an 8pt gutter. */
.sidebar { padding: 0 8px 8px; min-height: 0; }
.sb-panel { height: 100%; overflow: auto; background: var(--surface); border-radius: var(--r-m); padding: var(--s3) var(--s2); font-size: 13px; }
.sb-novel { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 2px var(--s2) var(--s3); font-size: 17px; line-height: 1.2; }
.sb-search { display: flex; align-items: center; gap: var(--s2); margin: 0 var(--s1) var(--s4); padding: 5px var(--s2); border-radius: var(--r-s); background: var(--well); border: 1px solid var(--rule); color: var(--ink-2); font-size: 12px; }
.sb-search svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.sb-search kbd { margin-left: auto; font: inherit; font-size: 11px; }
.sb-panel .sb-label { padding: var(--s3) var(--s2) var(--s1); }
.sb-row { display: flex; align-items: center; gap: 6px; width: 100%; height: 28px; padding: 0 var(--s2); border-radius: var(--r-s); text-align: left; white-space: nowrap; overflow: hidden; }
.sb-row .num, .column h4 .num, .rail .num { color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 1ch; }
.sb-scene { padding-left: 30px; }
.sb-scene span:first-child { overflow: hidden; text-overflow: ellipsis; }
.sb-scene:hover { background: var(--hover); }
.sb-scene[aria-current="true"] { background: var(--selected); }
.sb-scene .sdot { margin-left: auto; flex: none; }
.count { margin-left: auto; color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.sb-progress { margin-top: var(--s2); }
.ring { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--rule); }
.chev { width: 12px; height: 12px; flex: none; display: inline-grid; place-items: center; color: var(--ink-2); }
.chev::before { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.3px 1.3px 0; transform: rotate(-45deg); }
.chev.open::before { transform: translateY(-1.5px) rotate(45deg); }
.sdot, .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--done); display: inline-block; }

/* Page column */
.page-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.view[hidden] { display: none; }
.scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.crumb { height: 36px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 var(--s6); font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.crumb b { font-weight: 400; color: var(--ink); }
.scene-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: var(--s6); padding: var(--s3) var(--s6) var(--s7); }
.page { max-width: 640px; }
.page-title { font-family: var(--title); font-weight: 400; font-size: 36px; line-height: 1.1; margin-bottom: var(--s4); }
.props { display: grid; gap: 6px; font-size: 13px; margin-bottom: var(--s6); padding-bottom: var(--s4); border-bottom: 1px solid var(--rule); }
.props > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: baseline; gap: var(--s3); }
.props dt { color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 3px; border-radius: 999px; background: var(--well); border: 1px solid var(--rule); font-size: 12px; white-space: nowrap; }
.chip.tag { padding-left: 8px; }
.chip.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sw); }
.avatar { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 8.5px; font-weight: 600; background: var(--sw); color: var(--sl); }

/* Manuscript text: Iowan Old Style 17, 1.45 line height, 1.5em first-line indent, no paragraph space. */
.manuscript, .book { font-family: var(--book); font-size: 17px; line-height: 1.45; }
.manuscript p, .book p { text-indent: 1.5em; }
mark { background: var(--highlight); color: inherit; border-radius: 2px; padding: 1px 0; cursor: pointer; }
mark.active { box-shadow: 0 2px 0 var(--draft); }

.inspector { font-size: 13px; display: grid; align-content: start; gap: var(--s5); padding-top: 6px; }
.inspector .sb-label { margin-bottom: var(--s2); }
.comment { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m); padding: var(--s3); line-height: 1.45; }
.comment:hover, .comment.active { box-shadow: 0 2px 8px var(--shadow); }
.comment.active { border-color: var(--draft); }
.comment q { display: block; color: var(--ink-2); font-size: 12px; margin-bottom: 6px; border-left: 2px solid var(--draft); padding-left: var(--s2); }
.no-comments { color: var(--ink-2); }
.version { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s2); padding: var(--s2) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.version small { grid-column: 2; color: var(--ink-2); font-size: 12px; }
.footer-bar { flex: none; height: 32px; display: flex; align-items: center; gap: var(--s4); padding: 0 var(--s6); border-top: 1px solid var(--rule); font-size: 12px; font-variant-numeric: tabular-nums; }
.footer-bar .focus { margin-left: auto; color: var(--ink-2); }

/* Board */
.board { padding: var(--s5) var(--s6) var(--s7); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
.metric { display: grid; gap: var(--s1); background: var(--surface); border-radius: var(--r-m); padding: var(--s3) var(--s4); }
.metric b { font-weight: 500; font-size: 20px; font-variant-numeric: tabular-nums; }
.bar { height: 4px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--accent); }
.bar.done i { background: var(--done); }
.controls { display: flex; gap: var(--s4); font-size: 12px; color: var(--ink-2); margin-bottom: var(--s4); }
.controls b { font-weight: 500; color: var(--ink); }
.controls span { display: inline-flex; align-items: center; gap: 4px; }
.columns { display: grid; grid-template-columns: 300px 220px; gap: var(--s3); align-items: start; }
.column { background: var(--well); border-radius: var(--r-m); padding: var(--s3); }
.column h4 { font-family: var(--title); font-weight: 400; font-size: 19px; display: flex; gap: var(--s2); }
.column h4 .num { font-family: var(--ui); font-size: 13px; padding-top: 4px; }
.column > .small { margin: 2px 0 var(--s3); }
.column-empty { display: grid; place-items: center; height: 64px; background: none; border: 1px dashed var(--rule); color: var(--ink-2); font-size: 13px; }
.card { display: block; width: 100%; text-align: left; background: var(--surface); border-radius: var(--r-s); padding: var(--s3); margin-bottom: var(--s2); border-left: 3px solid var(--sw); transition: box-shadow .15s; }
.card:hover { box-shadow: 0 2px 8px var(--shadow); }
.card h5 { font-family: var(--title); font-weight: 400; font-size: 17px; margin: 0 0 4px; line-height: 1.2; }
.card p { font-size: 12px; color: var(--ink-2); line-height: 1.45; margin-bottom: var(--s2); }
.card-foot { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--ink-2); }
.card-foot .avatar { margin-right: -5px; box-shadow: 0 0 0 1.5px var(--surface); }
.card-foot .meta { margin-left: auto; display: inline-flex; gap: var(--s2); }

/* Manuscript view */
.book-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 220px; }
.book { max-width: 36em; margin: 0 auto; padding: var(--s7) var(--s5) var(--s9); }
.book .ch-label { text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--ink-2); font-family: var(--ui); margin: var(--s6) 0 var(--s7); }
.book .first { text-indent: 0; }
.book .break { text-align: center; text-indent: 0; margin: var(--s4) 0; color: var(--ink-2); }
.rail { padding: var(--s7) var(--s4) var(--s4) 0; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.rail .sb-label { margin-bottom: var(--s2); padding-left: var(--s3); }
.rail a { display: flex; gap: var(--s2); padding: 3px var(--s3); text-decoration: none; color: var(--ink-2); border-left: 2px solid transparent; }
.rail a.sub { padding-left: 28px; font-size: 12px; }
.rail a:hover { color: var(--ink); }
.rail a.on { color: var(--accent); border-left-color: var(--accent); }

.preview-note { margin-top: var(--s4); font-size: 13px; }
.credit { margin-top: var(--s2); font-size: 12px; color: var(--ink-2); max-width: 64em; }

/* Sections */
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); align-items: end; padding-bottom: var(--s6); border-bottom: 1px solid var(--rule); margin-bottom: var(--s6); }
h2 { font-family: var(--title); font-weight: 400; font-size: clamp(32px, 3.8vw, 46px); line-height: 1.08; }
.section-head p { color: var(--ink-2); font-size: 16px; max-width: 34em; }
.features, .files, .faq { padding-bottom: var(--s9); }
.feature-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.group .label { margin-bottom: var(--s4); }
.group dl { display: grid; }
.group dt { font-weight: 500; font-size: 15px; padding-top: var(--s4); border-top: 1px solid var(--rule); }
.group dt:first-child { border-top: 0; padding-top: 0; }
.group dd { color: var(--ink-2); font-size: 14px; margin: var(--s1) 0 var(--s4); }

.mobile { background: var(--band); padding: var(--s9) 0; margin-bottom: var(--s9); }
.shot-ipad { border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--window-shadow); }
.shots-phone { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); margin: var(--s7) auto 0; max-width: 860px; }
.shots-phone img { border-radius: 22px; border: 1px solid var(--rule); box-shadow: var(--window-shadow); }
.shots-phone figcaption { margin-top: var(--s3); font-size: 13px; color: var(--ink-2); text-align: center; }
.mobile .credit { margin-top: var(--s5); text-align: center; max-width: none; }

.file-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
.file-grid h3 { font-size: 15px; font-weight: 500; margin-bottom: var(--s1); }
.file-grid p { font-size: 14px; color: var(--ink-2); }

.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); }
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) 0; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 7px; height: 7px; flex: none; border: solid var(--ink-2); border-width: 0 1.4px 1.4px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding-bottom: var(--s4); max-width: 38em; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) 0 var(--s7); border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-2); }
.site-footer .brand { font-size: 18px; color: var(--ink); }
.site-footer .brand img { width: 24px; height: 24px; border-radius: 5px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Narrower windows: drop the inspector, then the rail. */
@media (max-width: 1080px) {
  .scene-wrap { grid-template-columns: minmax(0, 1fr); }
  .inspector { grid-template-columns: 1fr 1fr; gap: var(--s4); max-width: 640px; }
  .book-wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .win-body { grid-template-columns: minmax(0, 1fr); height: 560px; }
  .sidebar { display: none; }
  .section-head, .faq { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .feature-groups { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .metrics { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .metrics .metric:last-child { display: none; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .column-empty { display: none; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .site-header nav { gap: var(--s4); }
  .site-header nav a:nth-child(3) { display: none; }
  .lede { font-size: 17px; }
  .preview-bar { flex-direction: column; align-items: flex-start; }
  .crumb, .scene-wrap, .board, .footer-bar { padding-left: var(--s4); padding-right: var(--s4); }
  .footer-bar .muted { display: none; }
  .page-title { font-size: 30px; }
  .props > div { grid-template-columns: 76px minmax(0, 1fr); }
  .inspector { grid-template-columns: minmax(0, 1fr); }
  .shots-phone { grid-template-columns: repeat(3, 62%); overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s4); padding-bottom: var(--s2); }
  .shots-phone figure { scroll-snap-align: start; }
  .shot-ipad { border-radius: 10px; }
  .file-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .mobile { padding: var(--s8) 0; }
  .features, .files, .faq, .preview { padding-bottom: var(--s8); }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

/* Italic maroon headlines, a character card, and a closing band. */
h1 em, h2 em { font-family: var(--book); font-style: italic; color: var(--accent); letter-spacing: -.01em; }
h1 { font-size: clamp(48px, 7.6vw, 104px); line-height: .98; letter-spacing: -.02em; }
.rule-short { width: 24px; height: 1px; background: var(--accent); }
.site-header nav { align-items: center; }
.nav-status { display: inline-flex; align-items: center; gap: var(--s2); border: 1px solid var(--rule); padding: 6px 12px; border-radius: 999px; }

.details { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s8); align-items: center; padding-bottom: var(--s9); }
.notes-paper { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m); padding: var(--s6); transform: rotate(-1.2deg); box-shadow: 0 18px 40px -24px var(--shadow), 0 2px 0 var(--rule); max-width: 460px; justify-self: center; width: 100%; }
.notes-paper::after { content: "U."; position: absolute; right: -18px; bottom: -34px; font: italic 120px/1 var(--book); color: var(--accent); opacity: .14; pointer-events: none; }
.paper-label, .paper-foot { font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.profile { display: flex; align-items: center; gap: var(--s3); margin: var(--s5) 0 var(--s4); }
.profile h3 { font-family: var(--title); font-weight: 400; font-size: 26px; line-height: 1.1; }
.profile p { color: var(--ink-2); font-size: 13px; }
.avatar.big { width: 44px; height: 44px; font-size: 18px; font-weight: 500; }
.note-line { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--rule); font-size: 13px; }
.note-line span { color: var(--ink-2); }
.note-line b { font-weight: 400; }
.hand-note { font: italic 20px/1.4 var(--book); color: var(--accent); margin: var(--s5) 0 var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.details-copy p { color: var(--ink-2); font-size: 16px; max-width: 30em; margin-top: var(--s5); }

.release { background: #7A1F2B; color: #FAF7EF; overflow: hidden; }
.release-inner { position: relative; padding: var(--s9) 0; }
.release .label { color: rgba(250,247,239,.75); display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s5); }
.release .dot { background: #FAF7EF; }
.release h2 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1; }
.release h2 em { color: #FAF7EF; }
.release p:not(.label) { margin-top: var(--s5); color: rgba(250,247,239,.8); font-size: 17px; }
.release-mark { position: absolute; right: -40px; bottom: -60px; width: min(46vw, 520px); opacity: .1; }
@media (prefers-color-scheme: dark) { .release { background: #5C1720; } }
.site-footer { border-top: 0; padding-top: var(--s6); }

@media (max-width: 820px) {
  .details { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .nav-status { display: none; }
}

/* Fewer words: a list of features, one-line subheads. */
.features h2, .mobile h2, .files h2 { margin-bottom: var(--s6); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.feature-list li { padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 16px; }
.feature-list b { color: var(--ink); font-weight: 500; }
.sub { color: var(--ink-2); font-size: 17px; margin: calc(var(--s6) * -1 + var(--s3)) 0 var(--s6); }
.files .sub { margin-bottom: 0; }
.hand-note { margin-bottom: 0; }
.release-inner { padding: var(--s9) 0 calc(var(--s9) + var(--s4)); }
@media (max-width: 820px) { .feature-list { grid-template-columns: minmax(0, 1fr); } }

/* Spacing: one rhythm for the whole page. Sections sit --section apart; a headline sits --head above its content. */
:root { --section: 128px; --head: 40px; }
@media (max-width: 820px) { :root { --section: 80px; --head: 28px; } }

.preview { padding-bottom: var(--section); }
.preview-bar { margin-bottom: var(--s4); }
.preview-note { margin-top: var(--s5); }
.credit { margin-top: var(--s1); }

.features, .details, .files, .faq { padding-bottom: var(--section); }
.features h2, .mobile h2, .files h2, .faq h2 { margin-bottom: var(--head); }
h2:has(+ .sub) { margin-bottom: var(--s4) !important; }
.sub { margin: 0 0 var(--head); }
.files .sub { margin-bottom: 0; }

.details { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); }
.notes-paper { justify-self: start; margin-left: var(--s2); }
.details-copy h2 { margin: 0; }

.mobile { padding: var(--section) 0; margin-bottom: var(--section); }
.shots-phone { margin-top: var(--s7); }
.shots-phone figcaption { margin-top: var(--s4); }

.faq h2 { margin-bottom: 0; }
.faq-list details:first-child summary { padding-top: var(--s4); }

.release-inner { padding: var(--section) 0; }
.site-footer { padding: var(--s6) 0 var(--s7); }

@media (max-width: 820px) {
  .hero {
    position: relative;
    isolation: isolate;
    display: block;
    padding: var(--s7) 0 var(--s6);
  }
  .hero h1 { margin-bottom: var(--s5); }
  .hero-art {
    position: absolute;
    inset: 0 calc(-1 * var(--s4)) 0 0;
    block-size: auto;
    display: block;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
  }
  .hero-art::before {
    content: "";
    position: absolute;
    inset-block-start: clamp(36px, 5vw, 52px);
    inset-inline-end: 0;
    width: clamp(180px, 42vw, 320px);
    aspect-ratio: 1004.7 / 827.3;
    background: var(--accent);
    mask: url("assets/mark.svg") center / contain no-repeat;
    opacity: .13;
    transform: translateX(8%) rotate(-10deg);
  }
  .hero-icon { display: none; }
  .details { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .details-copy { order: -1; }
  .notes-paper { margin-left: 0; max-width: 420px; }
  .faq h2 { margin-bottom: var(--s2); }
  .shots-phone { margin-top: var(--s6); }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(40px, 12.8vw, 48px); }
  .feature-list li { padding-right: 0; }
}
.details { overflow-x: clip; padding-inline: 2px; }
.footer-brand { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.footer-brand .name-note { margin: 0; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); }

/* Features open in place, like the FAQ. */
.feature-list { align-items: stretch; }
.feature-list li { padding: 0; }
.feature-list summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: var(--s3); padding: var(--s4) var(--s4) var(--s4) 0; }
.feature-list summary::-webkit-details-marker { display: none; }
.feature-list summary::after { content: ""; margin-left: auto; width: 6px; height: 6px; flex: none; align-self: center; border: solid var(--ink-2); border-width: 0 1.4px 1.4px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.feature-list details[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.feature-list summary:hover b { color: var(--accent); }
.feature-list details p { font-size: 14px; color: var(--ink-2); padding: 0 var(--s5) var(--s4) 0; max-width: 34em; }
.feature-list { column-gap: var(--s6); }
.feature-list summary { padding-right: 0; }
.feature-list details p { padding-right: 0; }

.privacy { max-width: 680px; padding: var(--s7) 0 var(--s9); }
.privacy h1 { font-size: clamp(40px, 7vw, 72px); }
.privacy h2 { font: 400 28px var(--title); margin-top: var(--s6); }
.privacy p { margin-top: var(--s3); }
