/* ============================================================
   Design tokens — Editorial / Hospitality aesthetic
   ------------------------------------------------------------
   Portable design primitives. Drop this file into any project,
   reference its CSS custom properties from your project-specific
   stylesheet, and you get a consistent palette + typography +
   spacing system without committing to a JS framework.

   Intentionally includes ONLY design primitives (colors, type,
   spacing, radii) and minimal element resets — no layout, no
   components. Layout and components live in the consuming
   project's own stylesheet.

   v0.1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {

  /* -- Neutrals ----------------------------------------------- */
  --bg:           #F7F5F1;   /* warm cream — page background */
  --paper:        #FFFFFF;   /* paper-white — cards on tinted panels */
  --ink:          #1A1A1A;   /* near-black — primary text */
  --muted:        #6B6B6B;   /* secondary text */
  --muted-2:      #A0A0A0;   /* tertiary text, placeholders */
  --rule:         #E5E2DC;   /* hairline borders */
  --rule-strong:  #D5D2CC;   /* stronger hairline */

  /* -- Tinted surfaces (full-width section panels) ----------- */
  --surface-slate: #D5DDE3;
  --surface-taupe: #E0D8CC;
  --surface-sage:  #D8DFD3;
  --surface-blush: #E8D2C3;

  /* Softer tints for cards on cream */
  --surface-slate-soft: #EDF1F4;
  --surface-taupe-soft: #F0EBE3;
  --surface-sage-soft:  #ECEFE8;
  --surface-blush-soft: #F4E5D9;

  /* -- Accent (single primary action color) ------------------ */
  --accent:       #2C4A3A;   /* deep forest green */
  --accent-hover: #1F3A2C;
  --accent-soft:  #6E8576;   /* sage-adjacent, for less prominent uses */

  /* -- Status (rating chips, alerts) ------------------------- */
  --status-good-bg:    #DFE8DC;
  --status-good-fg:    #2C4A3A;
  --status-warn-bg:    #F0E5D2;
  --status-warn-fg:    #7A5A2A;
  --status-error-bg:   #F0DCD0;
  --status-error-fg:   #8C3F2A;
  --status-neutral-bg: #E5E2DC;
  --status-neutral-fg: #555555;

  /* -- Typography -------------------------------------------- */
  --font-display:
    'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body:
    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:
    ui-monospace, 'SF Mono', 'JetBrains Mono', Consolas, 'Liberation Mono', monospace;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;
  --text-4xl:  3.75rem;

  --leading-tight: 1.15;
  --leading-snug:  1.35;
  --leading-base:  1.6;

  --tracking-wide:  0.08em;
  --tracking-base:  0;
  --tracking-tight: -0.01em;

  /* -- Spacing (4px base) ------------------------------------ */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* -- Radii ------------------------------------------------- */
  --radius-sm:   4px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  /* -- Shadows (subtle; editorial aesthetic is mostly flat) -- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow:    0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.08);

  /* -- Layout containers ------------------------------------- */
  --container-narrow: 720px;
  --container-base:   960px;
  --container-wide:   1240px;

  /* -- Transitions ------------------------------------------- */
  --t-fast: 0.12s ease;
  --t-base: 0.2s ease;
}


/* ============================================================
   Minimal element resets — typography + page baseline only.
   Project stylesheets handle layout, components, etc.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-3);
  letter-spacing: var(--tracking-base);
  color: var(--ink);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); }

p { margin: 0 0 var(--space-4); }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent);
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

button { font-family: inherit; cursor: pointer; }

::placeholder { color: var(--muted-2); opacity: 1; }
