/* Shared styles for the site pages: home, about, privacy. The app has its
   own stylesheet. Same colour tokens, so the brand matches. */
:root {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --ink: #2b2b2b;
  --muted: #6b665c;
  --border: #ddd8cc;
  --accent: #8a5a6b;
  --accent-ink: #ffffff;
  --soft: #efe6e9;
  --max: 1080px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--accent); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Wordmark (option A, approved 2026-11-26): bold serif, with an italic
   plum ampersand as the one flourish. System serif fonts, so nothing loads
   from elsewhere. */
.wordmark {
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .amp { color: var(--accent); font-style: italic; font-weight: 400; }

/* --- Header ----------------------------------------------------------------- */
.site-head { border-bottom: 1px solid var(--border); background: var(--panel); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.site-head nav { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-head nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.site-head nav a:hover { color: var(--accent); }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.button.small { padding: 8px 14px; font-size: 0.92rem; }
.button.ghost { background: var(--panel); color: var(--ink) !important; border: 1px solid var(--border); }

/* --- Hero ------------------------------------------------------------------ */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { margin: 0 auto 14px; max-width: 760px; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; letter-spacing: -0.01em; }
.hero p.lead { margin: 0 auto 26px; max-width: 640px; color: var(--muted); font-size: 1.15rem; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }

/* Photo -> chart -> stitched */
.examples { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; margin: 44px 0 0; }
.examples figure { margin: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
/* height: auto overrides the img's height attribute, which sets the space
   to reserve while loading but would otherwise fix it at full size. */
.examples img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #fff; }
.examples figcaption { margin-top: 8px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.examples .arrow { color: var(--muted); font-size: 1.6rem; }

/* --- Sections -------------------------------------------------------------- */
section.block { padding: 56px 0; }
section.block + section.block { border-top: 1px solid var(--border); }
section.block h2 { margin: 0 0 8px; font-size: 1.8rem; }
section.block p.sub { margin: 0 0 28px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700;
}
.steps h3 { margin: 0 0 4px; font-size: 1.02rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.privacy-band { background: var(--soft); border-radius: 14px; padding: 28px; display: grid; gap: 6px; }
.privacy-band h2 { margin: 0; font-size: 1.4rem; }
.privacy-band p { margin: 0; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.closing { text-align: center; }
.closing h2 { margin-bottom: 16px; }

/* --- Prose pages (about, privacy) ------------------------------------------- */
.prose { max-width: 720px; padding: 48px 20px 64px; margin: 0 auto; }
.prose h1 { font-size: 2.2rem; margin: 0 0 8px; line-height: 1.2; }
.prose .updated { color: var(--muted); margin: 0 0 28px; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.prose ul { padding-left: 1.2em; }
.prose code, .prose pre { font-size: 0.85rem; }
.prose pre { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px; white-space: pre-wrap; }

/* --- Footer ---------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.site-foot nav { display: flex; gap: 16px; }
.site-foot .fine { flex-basis: 100%; margin: 0; }

@media (max-width: 820px) {
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 24px; }
  .examples { grid-template-columns: 1fr; }
  .examples .arrow { transform: rotate(90deg); justify-self: center; }
  .features, .steps { grid-template-columns: 1fr; }
  .site-head nav a:not(.button) { display: none; }
}
