/* ============================================================
   KOONTZ FURNITURE + DESIGN — Web Design Tokens
   Cool & refined direction (Navy + SeaFoam forward)
   ============================================================ */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Mrs Eaves OT";
  src: url("../fonts/mrs-eaves-ot-roman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Brand palette ---- */
  --navy:       #0b2531;
  --blue:       #285e74;
  --seafoam:    #479ead;
  --gold:       #d6ad65;
  --offwhite:   #f6ede3;

  /* ---- Derived / functional tones (oklch, brand-harmonious) ---- */
  --navy-90:    #1a3641;   /* lifted navy for raised surfaces */
  --blue-tint:  #e6eef1;   /* faint blue wash */
  --seafoam-tint:#e3f0f1;  /* faint seafoam wash */
  --gold-tint:  #f5e9d2;   /* faint gold wash */
  --paper:      #fbf6ee;   /* page paper, a touch lighter than off-white */
  --line:       #e3d8c8;   /* hairline on paper */
  --line-cool:  #d2dfe2;   /* hairline cool */
  --ink:        #0b2531;   /* primary text on light */
  --ink-soft:   #3f5560;   /* secondary text on light */
  --ink-faint:  #6c7e86;   /* muted/captions */
  --on-dark:    #f6ede3;   /* text on navy */
  --on-dark-soft:#a9bcc3;  /* secondary text on navy */

  /* ---- Semantic ---- */
  --bg:          var(--paper);
  --surface:     #ffffff;
  --text:        var(--ink);
  --accent:      var(--seafoam);
  --accent-deep: var(--blue);

  /* ---- Type ---- */
  --font-head:  "Montserrat", system-ui, sans-serif;   /* titles / headers */
  --font-ui:    "Montserrat", system-ui, sans-serif;   /* subheads / UI */
  --font-body:  "Mrs Eaves OT", Georgia, "Times New Roman", serif; /* body / accent */

  --w-regular: 400;
  --w-medium:  500;
  --w-semibold:600;
  --w-bold:    700;

  /* Fluid type scale (1.250 major third) */
  --t-display: clamp(3rem, 6vw, 5.25rem);
  --t-h1:      clamp(2.4rem, 4.4vw, 3.5rem);
  --t-h2:      clamp(1.9rem, 3vw, 2.6rem);
  --t-h3:      clamp(1.45rem, 2.1vw, 1.85rem);
  --t-h4:      1.25rem;
  --t-lead:    clamp(1.1rem, 1.4vw, 1.3rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
  --t-eyebrow: 0.78rem;
  --t-caption: 0.8125rem;

  --lh-tight:  1.04;
  --lh-snug:   1.18;
  --lh-body:   1.62;

  --track-eyebrow: 0.22em;
  --track-head:    0.005em;

  /* ---- Radii — concentric system (soft rounded) ----
     A "radius parent" sets --r (its own corner) + --p (inset to its
     children) and exposes --r-child = max(--r − --p, --r-min). Nested
     controls read var(--r-child) so their corners stay parallel to the
     parent's. Standalone controls fall back to --r-control. */
  --r-2xs: 4px;
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  22px;
  --r-xl:  30px;
  --r-pill:999px;

  --r-min:     6px;   /* floor so concentric corners never invert */
  --r-control: 12px;  /* default standalone button / input radius */
  /* A radius parent defines --r (its corner) + --p (inset to children),
     then sets   --r-child: max(calc(var(--r) - var(--p)), var(--r-min));
     Nested controls read var(--r-child, var(--r-control)). */

  /* ---- Spacing scale (8pt) ---- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10:128px;

  /* ---- Shadows (cool, low, refined) ---- */
  --sh-sm: 0 1px 2px rgba(11,37,49,.06), 0 1px 3px rgba(11,37,49,.05);
  --sh-md: 0 6px 18px rgba(11,37,49,.08), 0 2px 6px rgba(11,37,49,.05);
  --sh-lg: 0 18px 48px rgba(11,37,49,.12), 0 6px 16px rgba(11,37,49,.07);
  --sh-focus: 0 0 0 3px rgba(71,158,173,.35);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur:  .28s;

  /* ---- Layout ---- */
  --maxw: 1200px;
}

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

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow-x: clip; }

/* ---- Reduced motion ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
}

/* Base type roles ------------------------------------------------ */
.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--w-semibold);
  font-size: var(--t-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--seafoam);
}
.h-display { font-family: var(--font-head); font-weight: var(--w-semibold); font-size: var(--t-display); line-height: var(--lh-tight); letter-spacing: -0.01em; }
.h1 { font-family: var(--font-head); font-weight: var(--w-semibold); font-size: var(--t-h1); line-height: var(--lh-tight); letter-spacing: -0.005em; }
.h2 { font-family: var(--font-head); font-weight: var(--w-semibold); font-size: var(--t-h2); line-height: var(--lh-snug); }
.h3 { font-family: var(--font-head); font-weight: var(--w-semibold); font-size: var(--t-h3); line-height: var(--lh-snug); }
.h4 { font-family: var(--font-ui);   font-weight: var(--w-semibold); font-size: var(--t-h4); line-height: 1.3; }
.lead { font-family: var(--font-body); font-size: var(--t-lead); line-height: 1.5; color: var(--ink-soft); }
.body { font-family: var(--font-body); font-size: var(--t-body); line-height: var(--lh-body); }
.small { font-size: var(--t-small); }
.caption { font-family: var(--font-ui); font-size: var(--t-caption); color: var(--ink-faint); }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
