:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --page: #fffdf8;
  --ink: #26302e;
  --muted: #6d7673;
  --line: #ddd3c1;
  --accent: #9a5b34;
  --accent-ink: #fffdf8;
  --shadow: rgba(38, 48, 46, .14);
  --focus: #9a5b34;
  --radius: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171c1b;
    --paper-2: #1e2423;
    --page: #ece5d6;
    --ink: #ece6da;
    --muted: #a3aaa6;
    --line: #333b39;
    --accent: #d39a6f;
    --accent-ink: #171c1b;
    --shadow: rgba(0, 0, 0, .45);
    --focus: #e3b48f;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
.defs { position: absolute; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: -.012em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; margin-bottom: .6em; }
h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: .35em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); }
.center { text-align: center; }

.eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1em; font-weight: 600;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.lede.small { font-size: 1.08rem; }
.center .lede { margin-inline: auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Fraunces, Georgia, serif; font-size: 1.35rem; font-weight: 600; text-decoration: none; }
.brand.small { font-size: 1.1rem; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.nav nav a.nav-cta { color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 7px 16px; }
.nav nav a.nav-cta:hover { background: var(--ink); color: var(--paper); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin-left: 6px; }
.lang-switch button { font: inherit; font-size: .82rem; letter-spacing: .04em; cursor: pointer; border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 4px 9px; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lede { margin-bottom: 1.8em; }
.fine { font-size: .88rem; color: var(--muted); margin-top: .9em; }

/* form */
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cta.center { justify-content: center; }
.button {
  display: inline-block; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
  color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius); padding: 13px 22px;
  transition: transform .15s ease, filter .15s ease;
}
.button:hover { filter: brightness(1.07); }
.button:active { transform: translateY(1px); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--paper); filter: none; }

/* book mockup */
.book { margin: 0; }
.book svg { width: 100%; height: auto; display: block; overflow: visible; }
.book figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 10px; font-style: italic; }
.book .shadow { fill: var(--shadow); filter: blur(6px); }
.book .paper { fill: #fffdf8; stroke: #e2d8c6; stroke-width: 1; }
.book .gutter { fill: #e9e0cf; }
.book .fold { fill: rgba(38, 48, 46, .06); }
.book text { font-family: 'Source Serif 4', Georgia, serif; fill: #26302e; }
.book .cap { font-size: 12.5px; font-style: italic; }
.book .eyebrow-svg { font-size: 10px; letter-spacing: 2.4px; fill: #6d7673; }
.book .title-svg { font-family: Fraunces, Georgia, serif; font-size: 24px; font-weight: 500; }
.book .date-svg { font-size: 12px; fill: #6d7673; }
.book .ink path, .book .ink circle { fill: none; stroke: #26302e; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.book .ink .fillink { fill: #26302e; }
.book .compass .n { font-size: 10px; fill: #6d7673; }
.book .route .dash { fill: none; stroke: #9a5b34; stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.book .route .pin { fill: #9a5b34; }
.book .route .pin.hollow { fill: #fffdf8; stroke: #9a5b34; stroke-width: 2; }
.book .route .contour { fill: none; stroke: #b9b1a2; stroke-width: 1.2; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .book .route .dash { animation: walk 2.6s ease-out both .3s; stroke-dashoffset: 300; }
  @keyframes walk { from { stroke-dashoffset: 300; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
}

/* sections */
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--paper-2); }
.two { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; }
.steps .num { font-family: Fraunces, Georgia, serif; font-size: 2.4rem; line-height: 1; color: var(--accent); display: block; margin-bottom: 18px; }
.steps p { color: var(--muted); font-size: 1rem; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; }
.features li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; }
.features svg { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.features p { color: var(--muted); font-size: 1rem; margin: 0; }


.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan .eyebrow { margin: 0; }
.plan .price { font-family: Fraunces, Georgia, serif; font-size: 2.4rem; line-height: 1.1; margin: 0; }
.plan .price span { font-family: inherit; font-size: 1rem; color: var(--muted); }
.plan-note { color: var(--muted); font-size: 1rem; margin: 0; flex: 1; }
.plan .button { width: 100%; }
.center-text { text-align: center; margin-top: 24px; }

.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-family: Fraunces, Georgia, serif; font-size: 1.2rem; padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; max-width: 38em; }

.join { background: var(--ink); color: var(--paper); border-top: 0; }
.join .lede { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.join h2 { margin-bottom: .4em; }
.join .button { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.footer { padding: 32px 0 40px; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-inner .brand { color: var(--ink); margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 960px) {
  .hero-grid, .two { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .lang-switch { margin-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .cta .button { flex: 1 1 100%; }
  .nav nav a.nav-cta { padding: 6px 12px; font-size: .88rem; }
  .footer-inner .brand { flex: 1 0 100%; }
}
