/* Shared by every page: tokens, header, footer, buttons.
   Colours, type and radii come from design/design-specification.md (the app's spec).
   Served immutable from /assets: a change is a rename (site-v2.css) plus every <link> updated. */

:root {
    --ink: #1C2230;
    --paper: #F7F4EE;
    --card: #FFFFFF;
    --muted: #5B6170;
    --sand: #ECE6DB;
    --line: #CFC6B5;
    --divider: #EEE8DD;
    --amber: #D9822B;
    --amber-light: #F2B66D;
    --amber-card: #E9A048;
    --teal: #1F4F4B;
    --teal-text: #2F6B66;
    --ink-raised: #343B4B;
    --ink-surface: #262C38;
    --tab-text: #D9DCE3;
    --on-teal: #CFE5E2;
    --on-teal-2: #E3EFED;
    --negative: #A3461F;
    --chevron: #8A8F9C;
    --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
    --text: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 16px;
    line-height: 1.45;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.overline {
    font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted); margin: 0;
}

/* ---- Header ---- */
.site-header .wrap {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px; padding-top: 20px; padding-bottom: 20px;
}
.brand {
    display: flex; align-items: center; gap: 10px; min-height: 44px;
    text-decoration: none; color: var(--ink);
    font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
}
.brand img { border-radius: 8px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a {
    min-height: 44px; padding: 0 14px; display: flex; align-items: center;
    text-decoration: none; font-size: 15px; font-weight: 600;
}
.site-nav a:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.site-nav a.pill {
    margin-left: 8px; height: 44px; border-radius: 22px; background: var(--ink); color: #FFFFFF;
    padding: 0 18px;
}
.site-nav a.pill:hover { background: var(--ink-raised); text-decoration: none; }

/* ---- App Store badge (Apple's artwork, self-hosted, unchanged) ---- */
.store-badge { display: inline-flex; min-height: 44px; align-items: center; }
.store-badge img { display: block; height: 54px; width: auto; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px; padding-top: 28px; padding-bottom: 40px;
}
.site-footer .who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.site-footer .who img { border-radius: 7px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-footer nav a {
    min-height: 44px; padding: 0 12px; display: flex; align-items: center;
    font-size: 14px; color: var(--muted);
}

@media (max-width: 640px) {
    .site-nav a:not(.pill) { display: none; }
}
