/*
  Unscrambled pages, Brand v2: "a modern coffee shop by day, an inspiring
  library at night". Tokens mirror the app's Theme.swift role for role
  (docs/brand/brand-v2.md in the app repo). Café · day is the default;
  Library · night follows the visitor's device setting.
*/

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ground: #f5efe4;
  --ground-bottom: #efe7d9;
  --surface: #fbf7f0;
  --raised: #fffcf7;
  --stroke: #d8ccb9;
  --ink: #2a211b;
  --ink-2: #6b5d50;
  --accent: #a8461f;
  --accent-pressed: #8c3916;
  --accent-tint: #f2e0d3;
  --focus: #4f6f8f;
  --radius-chip: 12px;
  --radius-card: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1c1612;
    --ground-bottom: #15100d;
    --surface: #261e18;
    --raised: #2f261f;
    --stroke: #3a2f26;
    --ink: #f1e7d8;
    --ink-2: #b7a791;
    --accent: #e07a52;
    --accent-pressed: #cc6c45;
    --accent-tint: #3d2419;
    --focus: #8fa9c6;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--ground-bottom);
  -webkit-text-size-adjust: 100%;
  font-variant-numeric: tabular-nums;
}
body {
  min-height: 100svh;
  color: var(--ink);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--ground-bottom) linear-gradient(to bottom, var(--ground), var(--ground-bottom)) no-repeat;
  background-size: 100% 100svh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-tint); color: var(--ink); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--raised); color: var(--ink); padding: 8px 16px; border-radius: var(--radius-chip); }

.col { max-width: 48rem; margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .col { padding: 0 32px; } }

/* Header and footer */
header.site { border-bottom: 1px solid var(--stroke); }
header.site .col { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.brand:hover { color: var(--accent); }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9375rem; color: var(--ink-2); }
nav a { text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
footer.site { margin-top: 96px; border-top: 1px solid var(--stroke); padding: 40px 0; font-size: 0.9375rem; color: var(--ink-2); }
footer.site .col { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { footer.site .col { flex-direction: row; align-items: center; justify-content: space-between; } }
footer.site a:hover { color: var(--ink); }

/* Page intro */
.intro { padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 640px) { .intro { padding-top: 80px; } }
.intro h1 { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.intro p.lead { margin-top: 16px; max-width: 36rem; font-size: 1.125rem; color: var(--ink-2); line-height: 1.65; }

/* Landing */
.hero h1 { max-width: 40rem; font-size: clamp(1.875rem, 5vw, 3rem); text-wrap: balance; }
.hero-art { margin-top: 48px; border: 1px solid var(--stroke); border-radius: var(--radius-card); background: var(--surface); padding: 24px; display: flex; justify-content: center; }
.hero-art img { width: min(100%, 340px); height: auto; display: block; }
.badge { margin-top: 48px; display: inline-flex; align-items: center; gap: 16px; border: 1px solid var(--stroke); border-radius: var(--radius-card); background: var(--raised); padding: 16px 24px; }
.badge .small { display: block; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); line-height: 1.2; }
.badge .big { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.chip { border: 1px solid var(--accent); border-radius: var(--radius-chip); padding: 4px 12px; font-size: 0.75rem; font-weight: 600; color: var(--accent); }
.cards { list-style: none; display: grid; gap: 16px; margin-top: 64px; }
@media (min-width: 640px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--stroke); border-radius: var(--radius-card); background: var(--surface); padding: 24px; }
.card h3 { font-size: 1rem; font-weight: 700; }
.card p { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.6; }
.section { margin-top: 96px; }
.section h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.section .body { margin-top: 20px; max-width: 36rem; font-size: 1.125rem; color: var(--ink-2); line-height: 1.7; }
.section .body p + p { margin-top: 16px; }
.section .body .strong { color: var(--ink); }
.statement { max-width: 36rem; font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }

/* Long-form text */
.prose { max-width: 42rem; color: var(--ink-2); line-height: 1.7; }
.prose h2 { margin-top: 48px; margin-bottom: 12px; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 16px; }
.prose ul { padding-left: 1.25rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a, .mail-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover, .mail-card a:hover { color: var(--ink); }
.prose .updated { margin-top: 40px; font-size: 0.875rem; }

/* Support */
.mail-card { border: 1px solid var(--stroke); border-radius: var(--radius-card); background: var(--surface); padding: 20px 24px; }
.mail-card a { font-size: 1.125rem; font-weight: 700; overflow-wrap: anywhere; }
.mail-card p { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }
.faq { list-style: none; display: grid; gap: 16px; margin-top: 24px; }
.faq h3 { font-size: 1rem; font-weight: 700; }
.faq p { margin-top: 8px; color: var(--ink-2); line-height: 1.65; }

/* Plain feature rows (landing) */
.rows { list-style: none; margin-top: 48px; border-top: 1px solid var(--stroke); }
.rows li { padding: 20px 0; border-bottom: 1px solid var(--stroke); display: grid; gap: 4px 32px; }
@media (min-width: 640px) { .rows li { grid-template-columns: 11rem 1fr; } }
.rows h3 { font-size: 1rem; font-weight: 700; }
.rows p { color: var(--ink-2); }
.facts-line { margin-top: 48px; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.soon { margin-top: 24px; color: var(--ink-2); font-size: 0.9375rem; }
.faq-list { list-style: none; margin-top: 32px; border-top: 1px solid var(--stroke); }
.faq-list li { padding: 20px 0; border-bottom: 1px solid var(--stroke); }
.faq-list h3 { font-size: 1rem; font-weight: 700; }
.faq-list p { margin-top: 6px; color: var(--ink-2); }
.small-note { margin-top: 20px; font-size: 0.9375rem; color: var(--ink-2); }
