/* Drambook landing, design tokens mirror the app's DrambookTheme.swift */
:root {
  /* Dark mode parchment palette (default) */
  --bg: #0E0C0A;
  --bg-inset: #161310;
  --surface: #1A1612;
  --surface-hi: #221C16;
  --ink: #EBE3D4;
  --ink-soft: #C9BFAB;
  --ink-muted: #8A8170;
  --ink-faint: #5C5446;
  --accent: #C8924A;          /* Cask Amber */
  --accent-soft: #A87838;
  --accent-deep: #7A5320;
  --line: rgba(235, 227, 212, 0.10);
  --line-strong: rgba(235, 227, 212, 0.18);
  --on-accent: #0E0C0A;

  --serif: ui-serif, "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --sans: -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --col: 680px;
  --col-wide: 920px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F2EBDC;
    --bg-inset: #EAE1CE;
    --surface: #F8F2E4;
    --surface-hi: #FFFCF2;
    --ink: #1F1812;
    --ink-soft: #3A2E22;
    --ink-muted: #6B5E4C;
    --ink-faint: #9B8E7B;
    --line: rgba(40, 27, 18, 0.10);
    --line-strong: rgba(40, 27, 18, 0.18);
    --on-accent: #FFF8E8;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden; /* guard against sub-320px header overflow; no sticky header to break */
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { color: var(--ink); border-bottom-color: var(--ink); }

::selection { background: var(--accent); color: var(--on-accent); }

/* ── Layout ───────────────────────────────────────────────────────── */
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--col-wide); margin: 0 auto; padding: 0 24px; }

/* ── Top bar ──────────────────────────────────────────────────────── */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
}
.topbar .brand {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 2.6px; font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: none;
}
.topbar nav { display: flex; gap: 28px; }
.topbar nav a {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--ink-soft); border-bottom: none;
  letter-spacing: 0.4px;
}
.topbar nav a:hover { color: var(--accent); }
.topbar nav a.active { color: var(--ink); }
@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 48px;
  }
  .topbar nav {
    flex-wrap: wrap;
    gap: 10px 16px;
    width: 100%;
  }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 40px 0 80px; }
.hero .silhouette {
  display: inline-block;
  width: 100px; height: 220px;
  background: var(--accent);
  clip-path: polygon(38% 0%, 62% 0%, 62% 14%, 70% 22%, 92% 30%, 92% 100%, 8% 100%, 8% 30%, 30% 22%, 38% 14%);
  margin-bottom: 36px;
  filter: drop-shadow(0 18px 40px rgba(200, 146, 74, 0.18));
}
.hero .eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 2.6px; color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.5px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft);
  margin-top: 22px;
  font-size: 18px;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
  line-height: 1.6;
}

.hero-cta { margin-top: 44px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.app-store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase;
  padding: 14px 22px; border-radius: 999px;
  border-bottom: none;
  transition: transform 0.15s ease;
}
.app-store-badge:hover { color: var(--on-accent); border-bottom-color: transparent; transform: translateY(-1px); }
.app-store-badge .meta { font-size: 10px; letter-spacing: 1.2px; opacity: 0.7; }

.btn-secondary {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--ink-soft); padding: 14px 22px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  letter-spacing: 1.2px; text-transform: uppercase;
}
.btn-secondary:hover { color: var(--ink); border-color: var(--ink-muted); border-bottom-color: var(--ink-muted); }

/* ── Section rhythm ───────────────────────────────────────────────── */
section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
section.no-rule { border-top: none; }

.section-eyebrow {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 2.4px; color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
}

.lede-block {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); font-size: 18px; line-height: 1.6;
  max-width: 580px;
}

/* ── Manifesto / pillars ──────────────────────────────────────────── */
.pillars {
  display: grid; grid-template-columns: 1fr; gap: 56px;
  margin-top: 56px;
}
@media (min-width: 720px) {
  .pillars { grid-template-columns: 1fr 1fr; gap: 64px 56px; }
}
.pillar h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  margin-bottom: 10px;
}
.pillar p {
  color: var(--ink-soft); font-size: 16px; line-height: 1.65;
}
.pillar .num {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 1.4px;
  margin-bottom: 8px; display: block;
}

/* ── Spec stripe ──────────────────────────────────────────────────── */
.spec-stripe {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between;
}
.spec {
  flex: 1; min-width: 130px;
}
.spec .label {
  font-family: var(--sans); font-size: 9px; font-weight: 600;
  letter-spacing: 2.0px; color: var(--ink-muted);
  text-transform: uppercase; margin-bottom: 6px;
}
.spec .value {
  font-family: var(--mono); font-size: 16px; color: var(--ink);
}

/* ── Quote / pull ─────────────────────────────────────────────────── */
.pull {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  text-align: center;
  max-width: 720px; margin: 0 auto;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.pull::before, .pull::after {
  content: ", "; color: var(--accent);
  font-style: normal; margin: 0 16px;
}

/* ── Anti-SaaS price card ─────────────────────────────────────────── */
.price-card {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 36px 32px;
  text-align: center;
  background: var(--surface);
  margin-top: 44px;
}
.price-card .price {
  font-family: var(--serif); font-size: 56px; font-weight: 500;
  color: var(--accent); line-height: 1;
  margin: 14px 0 6px;
}
.price-card .terms {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 2.0px; color: var(--ink-muted);
  text-transform: uppercase;
}
.price-card .meta {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); margin-top: 14px; font-size: 15px;
}

/* ── Locale strip ─────────────────────────────────────────────────── */
.locale-strip {
  display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: center;
  margin-top: 28px;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 1.0px;
}
.locale-strip span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; }

/* ── Catalog preview / bottle pages ──────────────────────────────── */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 36px;
}
@media (min-width: 720px) {
  .catalog-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .catalog-grid-wide { grid-template-columns: 1fr 1fr 1fr; }
}
.catalog-grid a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--surface);
  border-bottom-color: var(--line);
}
.catalog-grid a:hover {
  border-color: var(--accent);
  border-bottom-color: var(--accent);
  color: var(--ink);
}
.catalog-grid span {
  font-family: var(--serif);
  font-size: 17px;
}
.catalog-grid small {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: right;
  flex-shrink: 0;
}

/* ── Guides ───────────────────────────────────────────────────────── */
.guide-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 36px;
}
.guide-list a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 22px;
  color: var(--ink);
  background: var(--surface);
  border-bottom-color: var(--line);
}
.guide-list a:hover {
  border-color: var(--accent);
  border-bottom-color: var(--accent);
  color: var(--ink);
}
.guide-list .guide-kicker {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.guide-list .guide-title {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
}

.breadcrumb {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: none;
  margin-bottom: 28px;
}
.breadcrumb:hover { color: var(--accent); }

.bottle-page section { padding: 64px 0; }
.bottle-hero { padding: 10px 0 48px; }
.bottle-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}
.bottle-hero .lede {
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.62;
}

.bottle-details { padding-top: 24px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 680px) {
  .detail-grid { grid-template-columns: 1fr 1fr; }
}
.detail-grid div {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
  background: var(--surface);
}
.detail-grid .label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.detail-grid strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.tag-strip span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 10px;
}
.tag-strip .muted { color: var(--ink-muted); }
.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.secondary-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Method / how it works ────────────────────────────────────────── */
.method-list {
  list-style: none;
  counter-reset: method;
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.method-list li {
  counter-increment: method;
  position: relative;
  padding-left: 56px;
}
.method-list li::before {
  content: counter(method, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--mono); font-size: 13px;
  color: var(--accent); letter-spacing: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 6px 8px;
}
.method-list h3 {
  font-family: var(--serif); font-size: 21px; font-weight: 500;
  margin-bottom: 8px;
}
.method-list p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.method-note {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-muted); font-size: 15px; line-height: 1.7;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.method-note a { font-style: normal; }

/* ── Honesty (does / doesn't) ─────────────────────────────────────── */
.honesty-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  margin-top: 48px;
}
@media (min-width: 720px) {
  .honesty-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.honesty-col {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 28px 26px;
  background: var(--surface);
}
.honesty-col h3 {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 18px;
}
.honesty-col.does h3 { color: var(--accent); }
.honesty-col.doesnt h3 { color: var(--ink-muted); }
.honesty-col ul { list-style: none; }
.honesty-col li {
  position: relative; padding-left: 24px;
  color: var(--ink-soft); font-size: 16px; line-height: 1.5;
  margin-bottom: 12px;
}
.honesty-col li:last-child { margin-bottom: 0; }
.honesty-col.does li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--accent); font-family: var(--sans);
}
.honesty-col.doesnt li::before {
  content: ", "; position: absolute; left: 0;
  color: var(--ink-faint); font-family: var(--sans);
}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq dt {
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.faq dt:first-child { border-top: none; padding-top: 0; }
.faq dd { color: var(--ink-soft); margin-top: 10px; line-height: 1.65; font-size: 16px; }
.faq dd + dd { margin-top: 8px; }

.faq-list { margin-top: 44px; }
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-list details:first-child { border-top: none; padding-top: 0; }
.faq-list summary {
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  color: var(--ink); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; color: var(--accent);
  font-family: var(--sans); font-weight: 400; font-size: 22px;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  color: var(--ink-soft); margin-top: 12px;
  line-height: 1.65; font-size: 16px; max-width: 600px;
}

/* ── App Store CTA band ───────────────────────────────────────────── */
.get-band { text-align: center; }
.get-band .hero-cta { margin-top: 36px; }
.get-band .lede-block { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Doc body (privacy / support) ────────────────────────────────── */
.doc h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4.4vw, 46px);
  letter-spacing: -0.4px;
  margin: 24px 0 6px;
}
.doc .doc-meta {
  font-family: var(--sans); font-size: 12px;
  color: var(--ink-muted); letter-spacing: 0.8px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.doc h2 {
  font-size: 22px;
  margin-top: 48px;
  margin-bottom: 12px;
  letter-spacing: -0.1px;
}
.doc p { color: var(--ink-soft); margin-bottom: 16px; line-height: 1.7; }
.doc ul, .doc ol { color: var(--ink-soft); margin: 16px 0 16px 24px; line-height: 1.7; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 500; }
.doc .callout {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 28px 0;
}

/* ── Footer ───────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 40px 0 60px;
}
footer .row {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: baseline; justify-content: space-between;
}
footer .credit {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-muted); font-size: 14px;
}
footer nav { display: flex; gap: 24px; }
footer nav a {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  color: var(--ink-muted); letter-spacing: 0.6px;
  border-bottom: none;
}
footer nav a:hover { color: var(--accent); }
footer .legal {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.4px;
  margin-top: 14px; line-height: 1.7;
}
