/* ============================================================
   Snap! — Colors & Type foundations
   Color scheme extracted from the production codebase
   (apps/web/src/styles.css + apps/mobile/src/theme.ts).
   Brand assets (wordmark, app icon, doodles) extracted from
   the brand sheet (uploads/assets.png).
   Fonts mirror the web app: Playfair Display + Libre Franklin + Geist
   (all self-hosted from fonts/ — no CDN font dependency).
   ============================================================ */

/* All brand fonts self-hosted — no CDN font dependency. */

/* Self-hosted brand fonts (variable). Paths resolve relative to this stylesheet. */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/LibreFranklin-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- Core surfaces (dark — the default theme) ---------- */
  --bg: #141312;            /* app background base */
  --bg-mobile: #080808;     /* native app background */
  --surface-1: #1d1b1a;     /* raised panels / cards (rgba 29,27,26) */
  --surface-2: #211f1e;     /* nested controls (segmented buttons) */
  --surface-3: #363433;     /* feature chips, camera frame */
  --surface-mobile: #141414;
  --surface-mobile-alt: #1d1d1f;

  /* ---------- Foreground / text ---------- */
  --fg-1: #e6e1df;          /* primary text */
  --fg-2: #dac2b8;          /* warm secondary (nav, body on panels) */
  --fg-3: #aaa39a;          /* muted body */
  --fg-4: #a28c84;          /* dimmest labels / captions */
  --fg-mobile: #f5f5f5;
  --fg-mobile-muted: #9a9a9e;

  /* ---------- Brand accents ---------- */
  --peach: #ffdbcd;         /* primary action fill */
  --peach-ink: #360f00;     /* text/icon on peach */
  --peach-2: #ffdbd1;       /* light-theme action fill */
  --terracotta: #753401;    /* active nav / selected fill (burnt orange) */
  --terracotta-ink: #ffdbc9;/* text on terracotta */
  --coral: #d27d56;         /* eyebrow / accent stroke */
  --coral-bright: #ff6b5a;  /* brand coral (logo dot, sparkles) */
  --apricot: #ffb596;       /* numerals, highlights, scan line */
  --cream: #f6f2ea;         /* shutter ring, light surfaces, wordmark */

  /* ---------- Light theme tokens ---------- */
  --light-bg: #fcf9f8;
  --light-fg: #1b1c1c;
  --light-fg-2: #55433e;
  --light-eyebrow: #94442c;
  --light-border: rgba(85, 67, 62, 0.18);

  /* ---------- Semantic ---------- */
  --danger: #ff6b6b;
  --danger-2: #ff7560;
  --danger-bg: rgba(40, 16, 12, 0.5);

  /* ---------- Borders & hairlines ---------- */
  --border-soft: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --border-warm: rgba(162, 140, 132, 0.32);

  /* ---------- Ambient background glows (the signature snap! wash) ---------- */
  --glow-sage: rgba(45, 66, 49, 0.24);
  --glow-amber: rgba(117, 52, 1, 0.24);
  --app-bg:
    radial-gradient(circle at 18% 8%, var(--glow-sage), transparent 26%),
    radial-gradient(circle at 78% 10%, var(--glow-amber), transparent 30%),
    var(--bg);

  /* ---------- Brand sheet palette (reference for asset work) ---------- */
  --brand-midnight: #0f1114;
  --brand-cream: #f6f1e6;
  --brand-coral: #ff6b5a;
  --brand-butter: #ffe9a6;
  --brand-sage: #a8b89a;

  /* ---------- Type families ---------- */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-ui: "Geist", "Libre Franklin", ui-sans-serif, system-ui, sans-serif;
  --font-serif-card: Georgia, "Times New Roman", serif; /* editorial card titles */

  /* ---------- Radii (from mobile theme + web) ---------- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 28px;     /* large panels */
  --r-pill: 999px;
  --r-card: 12px;   /* dashboard list cards */
  --r-photo: 18px;  /* photo tiles */
  --r-phone: 46px;  /* device frame */

  /* ---------- Spacing scale (mobile theme) ---------- */
  --s-xs: 6px;
  --s-sm: 10px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;

  /* ---------- Elevation ---------- */
  --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.28);
  --shadow-phone: 0 36px 90px rgba(0, 0, 0, 0.45);
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.35);

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 160ms;
}

/* ============================================================
   Semantic type styles
   ============================================================ */

.snap-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 14px;
}

.snap-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(50px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
  margin: 0;
}

.snap-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  margin: 0;
}

.snap-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  margin: 0;
}

/* Editorial card title — lighter weight Georgia look used on photo overlays */
.snap-card-title {
  font-family: var(--font-serif-card);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}

.snap-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-3);
}

.snap-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--fg-2);
}

.snap-numeral {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 0.9;
  color: var(--apricot);
}

.snap-mono-code {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--fg-4);
}
