/* =============================================================
   ANTUR — Tokens + Base Type
   "Editorial Traveler" design system
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

:root {
  /* ── Brand colour ──────────────────────────────────────── */
  --primary:               #8f4828;   /* Terracotta — canonical (app) */
  --primary-container:     #ad603d;   /* Lighter end of CTA gradient */
  --primary-hover:         #B8502E;
  --primary-fixed:         #ffe8dc;   /* Soft tint for read states */
  --primary-tint:          rgba(143, 72, 40, 0.10);

  --secondary:             #bbece6;   /* Sage — chips */
  --on-secondary:          #3e6c67;
  --secondary-warm:        #E8C27A;   /* Golden sand */

  --accent:                #2D6A4F;   /* Forest — success, own route */
  --match:                 #D4623E;   /* Coral — matched routes */

  /* ── Surface ladder (tonal layering, no lines) ─────────── */
  --surface:                  #fcf9f6;
  --surface-container-lowest: #ffffff;
  --surface-container-low:    #f6f3f0;
  --surface-container:        #f0edea;
  --surface-container-high:   #eae7e4;
  --surface-container-highest:#e4e1de;

  /* ── Text ──────────────────────────────────────────────── */
  --on-surface:           #1c1c1a;   /* Never #000 */
  --on-surface-variant:   #54433c;
  --text-muted:           #6B5D52;
  --on-primary:           #ffffff;

  /* ── Outlines (use at low opacity — "ghost border") ────── */
  --outline-variant:      #dac1b9;
  --ghost-border:         rgba(218, 193, 185, 0.20);

  /* ── Semantic ──────────────────────────────────────────── */
  --success:              #2D6A4F;
  --warning:              #B8860B;
  --error:                #C0392B;

  /* ── Overlays ──────────────────────────────────────────── */
  --scrim:                rgba(28, 20, 16, 0.50);
  --photo-overlay:        rgba(28, 20, 16, 0.80);

  /* ── Type ──────────────────────────────────────────────── */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --display-lg:   56px;
  --display-md:   45px;
  --display-sm:   36px;
  --headline-lg:  32px;
  --headline-md:  28px;
  --title-lg:     22px;
  --title-md:     16px;
  --title-sm:     14px;
  --label-lg:     14px;
  --label-md:     12px;
  --body-lg:      18px;
  --body-md:      16px;
  --body-sm:      14px;
  --xs:           12px;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;

  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.5;
  --leading-relaxed: 1.6;

  /* ── Spacing (4-pt grid) ───────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ── Radius ────────────────────────────────────────────── */
  --radius-sm:   8px;
  --radius-md:   10px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-xxl:  48px;     /* signature corner — "Editorial Traveler" */
  --radius-full: 9999px;

  /* ── Ambient shadows (never crisp, never black) ────────── */
  --shadow-sm:      0 1px 4px rgba(28, 20, 16, 0.06);
  --shadow-card:    0 4px 16px rgba(28, 20, 16, 0.08);
  --shadow-ambient: 0 8px 50px rgba(28, 28, 26, 0.06);
  --shadow-lift:    0 16px 40px rgba(28, 20, 16, 0.10);

  /* ── Motion ────────────────────────────────────────────── */
  --motion-fast:    150ms ease-out;
  --motion-default: 200ms ease-out;
  --motion-slow:    300ms ease-out;

  /* ── Layout ────────────────────────────────────────────── */
  --max-content: 1120px;
  --max-text:    680px;
  --max-narrow:  480px;
  --nav-height:  64px;

  /* ── Signature gradient (primary CTA only) ─────────────── */
  --gradient-cta: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
}

/* ── Base reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--body-md);
  line-height: var(--leading-normal);
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ── Semantic type ──────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--label-md);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--display-sm);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--on-surface);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--headline-lg);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--headline-md);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--title-lg);
  font-weight: var(--weight-semibold);
}

.display-xl {
  font-family: var(--font-display);
  font-size: var(--display-lg);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.body-lg { font-size: var(--body-lg); line-height: var(--leading-relaxed); }
.body { font-size: var(--body-md); line-height: var(--leading-normal); }
.body-sm { font-size: var(--body-sm); line-height: var(--leading-normal); }
.muted { color: var(--text-muted); }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-container);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
}

/* The wordmark — never use lowercase "antur" as the brand */
.wordmark {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
