/* ============================================================
   SAGEBRUSH CYCLE — Foundations
   Bike rentals on the Weiser Trail. Parchment, sage, worn ink.
   Serif type + softly distressed surfaces.
   ============================================================ */

/* ---------- Cormorant Garamond — display serif ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Libre Baskerville — body serif ---------- */
@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/LibreBaskerville-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/LibreBaskerville-Italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---------- BRAND PALETTE ---------- */
  /* Warm sands / paper */
  --sand-50:  #FAF4E8;
  --sand-100: #EDE4D3;
  --sand-200: #E0D2BC;
  --sand-300: #CDBA9D;

  /* Sage greens (primary) */
  --sage-100: #E4EBD8;   /* soft tint / chips */
  --sage-200: #C7D4B2;   /* light fills */
  --sage-400: #8AA06F;   /* sage */
  --sage-500: #748B58;   /* primary */
  --sage-600: #5C7144;   /* primary pressed / deep */
  --sage-700: #43542F;   /* darkest foliage */

  /* Clay / terracotta (accent) */
  --clay-100: #F6DDCD;
  --clay-300: #E5A87F;
  --clay-500: #CC7B52;   /* accent */
  --clay-600: #B5613B;   /* accent pressed */

  /* Sky (secondary accent) */
  --sky-200:  #CFE0E0;
  --sky-400:  #8FB0B3;
  --sky-600:  #5E8589;

  /* Sun (highlight) */
  --sun-400:  #F0C868;
  --sun-500:  #E8B65A;

  /* Warm ink */
  --ink:      #2F2820;
  --ink-soft: #5E5346;
  --ink-faint:#8A7C6C;

  /* ---------- SEMANTIC COLOR ---------- */
  --bg:            var(--sand-100);
  --bg-elevated:   var(--sand-50);
  --bg-sunk:       var(--sand-200);
  --surface:       #FAF6EE;
  --border:        #C9B698;
  --border-strong: #B39E7C;

  --fg1: var(--ink);        /* headings, primary copy */
  --fg2: var(--ink-soft);   /* supporting copy */
  --fg3: var(--ink-faint);  /* hints, placeholders */
  --fg-on-sage: #FBF8F0;
  --fg-on-clay: #FFF6EE;

  --primary:        var(--sage-500);
  --primary-hover:  var(--sage-600);
  --primary-press:  var(--sage-700);
  --accent:         var(--clay-500);
  --accent-hover:   var(--clay-600);

  --focus-ring: var(--sage-500);
  --selection:  var(--sage-200);

  /* ---------- TYPE FAMILIES ---------- */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Libre Baskerville', Georgia, 'Times New Roman', serif;

  /* ---------- TYPE SCALE (mobile-first, fluid) ---------- */
  --text-xs:   0.8125rem;  /* 13px */
  --text-sm:   0.9375rem;  /* 15px */
  --text-base: 1.0625rem;  /* 17px — comfy on phones */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  1.9375rem;  /* 31px */
  --text-3xl:  2.5rem;     /* 40px */
  --text-4xl:  clamp(2.75rem, 9vw, 4rem); /* hero */

  --leading-tight: 1.08;
  --leading-snug:  1.25;
  --leading-body:  1.55;

  --tracking-tight: -0.01em;
  --tracking-wide:  0.12em;

  /* ---------- SPACING (4px base) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---------- RADII (soft & rounded) ---------- */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* ---------- SHADOWS (soft, warm-tinted) ---------- */
  --shadow-sm: 0 1px 0 rgba(47, 40, 32, 0.08), 0 2px 8px rgba(47, 40, 32, 0.06);
  --shadow-md: 0 1px 0 rgba(47, 40, 32, 0.1), 0 6px 18px rgba(47, 40, 32, 0.08);
  --shadow-lg: 0 2px 0 rgba(47, 40, 32, 0.08), 0 14px 34px rgba(47, 40, 32, 0.12);
  --shadow-focus: 0 0 0 3px rgba(116, 139, 88, 0.22);
  --ink-bleed: 0 1px 0 rgba(47, 40, 32, 0.12);
  --paper-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");

  /* ---------- MOTION ---------- */
  --ease-soft: cubic-bezier(0.34, 1.2, 0.64, 1);   /* gentle overshoot */
  --ease-out:  cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur-fast:  140ms;
  --dur-med:   240ms;
}

::selection { background: var(--selection); color: var(--ink); }

/* ============================================================
   SEMANTIC TYPE ROLES
   ============================================================ */
.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg1);
}
.t-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  color: var(--fg1);
}
.t-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--fg1);
}
.t-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: 1.2;
  color: var(--fg1);
}
.t-lead {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--fg2);
}
.t-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--fg1);
}
.t-small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--fg2);
}
.t-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--clay-600);
}
.t-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--fg1);
}
