:root {
  --paper: #f7f7f3;
  --ink: #252620;
  --muted: #6a6d64;
  --line: #dddfd6;
  --surface: #edeee7;
  --button-text: #fafaf7;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --page-width: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: #dadfc9; color: #252620; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #74865d; outline-offset: 6px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--page-width), calc(100% - 112px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: -100px; left: 12px; padding: 8px 18px; background: var(--ink); color: var(--paper);  }
.skip-link:focus { top: 12px; }
.site-header { display: flex; justify-content: space-between; align-items: center; padding-block: 30px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { width: 27px; height: 27px; mix-blend-mode: multiply; }
.brand span, .footer-wordmark { font-family: var(--serif); font-size: 30px; letter-spacing: -.055em; line-height: 1; }
.site-header nav { display: flex; gap: 34px; align-items: center; font-size: 13px; }
.site-header nav a, .site-footer nav a { text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { text-decoration: underline; }
.hero { padding-top: clamp(64px, 8.5vw, 118px); padding-bottom: 85px; text-align: center; }
.eyebrow, .chapter-label, .product-topline, .specimen-label { font-size: 10px; font-weight: 500; letter-spacing: .15em; line-height: 1.5; color: var(--muted); }
.eyebrow { margin: 0 0 29px; }
h1, h2, h3, .body-large { font-family: var(--serif); font-weight: 400; }
h1, h2 { letter-spacing: -.048em; }
h1 { margin: 0 0 27px; font-size: clamp(64px, 7.5vw, 104px); line-height: .99; }
em { font-weight: 400; }
.hero-description { color: var(--muted); margin: 0 0 28px; font-size: 15px; line-height: 1.8; }
.button { display: inline-flex; gap: 20px; align-items: center; justify-content: center; min-height: 48px; padding: 11px 23px; background: var(--ink); color: var(--button-text); border-radius: 999px; font-size: 13px; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.button:hover { background: #414538; transform: translateY(-1px); }
.availability { margin: 16px 0 0; font-size: 10px; color: var(--muted); letter-spacing: .025em; }
.product { scroll-margin-top: 28px; }
.product-topline { display: flex; justify-content: space-between; margin: 0 0 18px; font-size: 9px; }
.app-frame { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 52px -30px #30372336; background: #fff; }
.screenshot-crop { overflow: hidden; }
.screenshot-crop img { width: 100%; margin-top: -3.55%; }
.product-bottomline { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; }
.product-bottomline p { margin: 0; font-size: 12px; color: var(--muted); }
.mode-switch { display: flex; align-items: center; gap: 3px; padding: 4px; background: var(--surface); border-radius: 999px; }
.mode-switch button { min-height: 36px; padding: 5px 16px; border: none; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.mode-switch button[aria-pressed="true"] { color: var(--ink); background: var(--paper); box-shadow: 0 1px 4px #2028200b; }
.mode-switch button:hover { color: var(--ink); }
.chapter { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-top: 150px; padding-bottom: 140px; }
.chapter-label { margin: 10px 0 0; }
h2 { font-size: clamp(38px, 4.1vw, 57px); line-height: 1.1; margin: 0 0 26px; }
.chapter-content p { margin: 0 0 17px; color: var(--muted); font-size: 14px; }
.chapter-content .body-large { color: var(--ink); font-size: 24px; line-height: 1.5; margin-bottom: 14px; letter-spacing: -.02em; }
.small-note, .chapter-content .small-note { font-size: 12px; line-height: 1.8; color: var(--muted); }
.chapter-content .small-note { margin: 28px 0 0; }
.direction-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; border-block: 1px solid var(--line); padding-block: 70px; }
.direction-copy .chapter-label { margin-bottom: 38px; }
.direction-copy p:not(.chapter-label) { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.writing-specimen { position: relative; min-height: 390px; display: grid; place-items: center; background: var(--surface); border-radius: 2px; }
.specimen-label { position: absolute; top: 26px; left: 26px; font-size: 8px; letter-spacing: .09em; }
.vertical-poem { display: flex; flex-direction: row-reverse; gap: 30px; padding-top: 12px; }
.vertical-poem p { writing-mode: vertical-rl; font-family: "Songti TC", "Noto Serif CJK TC", "Yu Mincho", serif; font-size: 25px; line-height: 1.9; letter-spacing: .12em; margin: 0; }
.vertical-poem p + p { padding-top: 55px; color: var(--muted); }
.specimen-caption { position: absolute; bottom: 22px; left: 26px; font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); }
.local-chapter { padding-block: 140px; }
.connect { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; padding-block: 70px; border-block: 1px solid var(--line); }
.connect-heading .chapter-label { margin-bottom: 37px; }
.connect h2 { font-size: clamp(36px, 3.5vw, 49px); }
.connect-options { display: flex; flex-direction: column; gap: 38px; padding-top: 54px; }
h3 { font-size: 25px; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 12px; }
.connect-options p { font-size: 14px; color: var(--muted); margin: 0; max-width: 40ch; }
.connect-options .small-note { margin-top: 13px; font-size: 11px; line-height: 1.85; }
.closing { text-align: center; padding-top: 130px; padding-bottom: 125px; }
.closing-mark { width: 36px; height: 36px; margin: 0 auto 35px; mix-blend-mode: multiply; }
.closing h2 { font-size: clamp(46px, 5vw, 68px); margin-bottom: 28px; }
.text-link { font-size: 12px; text-decoration-color: var(--line); }
.text-link:hover { text-decoration-color: currentColor; }
.text-link span { display: inline-block; margin-left: 12px; }
.site-footer { display: flex; align-items: center; gap: 25px; padding-block: 28px 34px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.footer-wordmark { font-size: 24px; color: var(--ink); text-decoration: none; }
.site-footer nav { display: flex; gap: 25px; margin-left: auto; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 36px; }
/* Legal text shares the same navigation, page rhythm and accessible measure. */
.legal-shell { width: min(720px, calc(100% - 112px)); margin-inline: auto; padding: 65px 0 110px; }
.legal-back { font-size: 12px; color: var(--muted); text-decoration: none; }
.legal-shell .legal-eyebrow { margin: 49px 0 22px; }
.legal-shell h1 { font-size: clamp(45px, 6vw, 68px); line-height: 1.05; margin-bottom: 24px; }
.legal-notice { padding: 15px 18px; border-left: 2px solid var(--line); background: var(--surface); font-size: 12px; color: var(--muted); margin-bottom: 34px; }
.legal-body { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.legal-body h2 { font-family: var(--sans); font-size: 18px; font-weight: 500; letter-spacing: -.015em; margin: 43px 0 13px; line-height: 1.45; }
.legal-body p { margin: 0 0 18px; }
.legal-body ul { padding-left: 21px; margin: 0 0 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body code { font-family: ui-monospace, Menlo, monospace; font-size: .85em; overflow-wrap: anywhere; }
.legal-body a { overflow-wrap: anywhere; }
.legal-body .effective-date { color: var(--muted); font-size: 12px; }
.legal-nav { display: flex; gap: 30px; margin-top: 60px; padding-top: 23px; border-top: 1px solid var(--line); font-size: 13px; }
.site-header a[aria-current="page"], .site-footer a[aria-current="page"] { text-decoration: underline; text-decoration-color: currentColor; }
@media (min-width: 1700px) { .hero { padding-top: 140px; } }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 64px); }
  .hero { padding-top: 74px; padding-bottom: 65px; }
  .chapter { grid-template-columns: 1fr 2fr; gap: 30px; padding-block: 110px; }
  .direction-section, .connect { gap: 40px; }
  .writing-specimen { min-height: 360px; }
  .legal-shell { width: min(680px, calc(100% - 64px)); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-block: 23px; }
  .brand span { font-size: 28px; }
  .brand img { width: 24px; height: 24px; }
  .site-header nav { gap: 24px; font-size: 12px; }
  .site-header nav a { display: inline-flex; align-items: center; min-height: 36px; }
  .hero { padding-top: 61px; padding-bottom: 57px; }
  .eyebrow { font-size: 9px; margin-bottom: 26px; }
  h1 { font-size: clamp(57px, 13.4vw, 81px); margin-bottom: 23px; }
  .hero-description { font-size: 13px; line-height: 1.9; margin-bottom: 26px; }
  .button { min-height: 46px; font-size: 12px; padding-inline: 23px; }
  .availability { font-size: 9px; }
  .desktop-only { display: none; }
  .product-topline { font-size: 7px; margin-bottom: 13px; letter-spacing: .12em; }
  .app-frame { border-radius: 11px; box-shadow: 0 12px 28px -22px #30372330; }
  .product-bottomline { flex-direction: column-reverse; gap: 14px; padding-top: 19px; }
  .product-bottomline p { font-size: 10px; }
  .mode-switch button { padding-inline: 17px; min-height: 38px; }
  .chapter { display: block; padding-block: 88px; }
  .chapter-label { margin: 0 0 27px; font-size: 9px; }
  h2 { font-size: clamp(36px, 9vw, 45px); margin-bottom: 22px; }
  .chapter-content .body-large { font-size: 22px; }
  .chapter-content p { font-size: 13px; }
  .chapter-content p br { display: none; }
  .chapter-content .small-note { font-size: 11px; margin-top: 23px; }
  .direction-section { grid-template-columns: 1fr; gap: 30px; padding-block: 47px; }
  .direction-copy .chapter-label, .connect-heading .chapter-label { margin-bottom: 27px; }
  .direction-copy p:not(.chapter-label) { font-size: 13px; }
  .writing-specimen { min-height: 350px; }
  .specimen-label { font-size: 7px; top: 22px; left: 22px; }
  .vertical-poem p { font-size: 24px; }
  .specimen-caption { bottom: 20px; left: 22px; font-size: 12px; }
  .connect { grid-template-columns: 1fr; gap: 15px; padding-block: 47px; }
  .connect h2 { font-size: 40px; margin-bottom: 12px; }
  .connect-options { padding-top: 0; gap: 31px; }
  .connect-options p { max-width: none; font-size: 13px; }
  .connect-options .small-note { font-size: 11px; }
  h3 { font-size: 25px; }
  .closing { padding-block: 85px 80px; }
  .closing h2 { font-size: clamp(43px, 10.5vw, 57px); }
  .closing-mark { width: 31px; height: 31px; margin-bottom: 29px; }
  .site-footer { gap: 14px; padding-block: 20px; font-size: 10px; }
  .footer-wordmark { font-size: 23px; }
  .site-footer nav { gap: 17px; }
  .legal-shell { width: calc(100% - 40px); padding-top: 36px; padding-bottom: 70px; }
  .legal-shell .legal-eyebrow { margin-top: 39px; }
  .legal-shell h1 { font-size: 44px; }
  .legal-body { font-size: 14px; }
  .legal-body h2 { font-size: 17px; margin-top: 35px; }
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1a1c18; --ink: #eeeee7; --muted: #a6aa9c; --line: #3b3e33; --surface: #24271f; --button-text: #1a1c18; }
  ::selection { background: #525c42; color: #fff; }
  .brand img, .closing-mark { filter: invert(1); mix-blend-mode: screen; }
  .button:hover { background: #d4d9c8; }
  .app-frame { border-color: #44483b; box-shadow: 0 20px 50px -28px #0009; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.apple-icon { width: 17px; height: 19px; flex: 0 0 17px; fill: currentColor; }
.download-button { border: 0; gap: 11px; }
.download-button:disabled { opacity: 1; cursor: default; }
.download-button:disabled:hover { background: var(--ink); transform: none; }

@media (pointer: coarse) {
  .site-header nav a, .site-footer nav a { min-height: 44px; }
  .mode-switch button { min-height: 44px; }
}
