/* ============================================================
   THE SILVER LAB — Foundations
   Colors, type, spacing, motion. Import once, use anywhere.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=Italianno&display=swap');

:root {
  /* --- Brand palette: warm neutrals, paper, ink -------------- */
  --tsl-ink:        #14110F;   /* primary text, logo */
  --tsl-ink-soft:   #2A2622;   /* slightly relaxed black */
  --tsl-graphite:   #4A4540;   /* secondary text */
  --tsl-pewter:     #8C857A;   /* tertiary text, metadata */
  --tsl-silver:     #B8B0A3;   /* hairlines, disabled */
  --tsl-bone:       #D9D1C2;   /* dividers, soft surface */
  --tsl-linen:      #E8E0D2;   /* warm panel surface */
  --tsl-paper:      #EEE3D4;   /* default page background (warm cream — brand spec) */
  --tsl-chalk:      #FBF8F2;   /* lightest surface, cards */
  --tsl-white:      #FFFFFF;

  /* --- Accent (used sparingly: editorial pull-quotes, CTAs) -- */
  --tsl-amber:      #C2A079;   /* warm tan — section markers */
  --tsl-amber-soft: #E8D8BE;   /* tinted background washes */
  --tsl-clay:       #8A4F3B;   /* deep accent, rarely */

  /* --- Semantic surface roles ------------------------------- */
  --bg:             var(--tsl-paper);          /* cream — page default */
  --bg-elevated:    var(--tsl-chalk);          /* slightly lighter inset */
  --bg-inverse:     var(--tsl-ink);            /* dark bands (footer, pull-quote) */
  --surface-panel:  var(--tsl-linen);
  --fg:             var(--tsl-ink);
  --fg-muted:       var(--tsl-graphite);
  --fg-subtle:      var(--tsl-pewter);
  --fg-inverse:     var(--tsl-chalk);
  --hairline:       #C9BFAD;                   /* tonal hairline on cream */
  --hairline-strong:var(--tsl-graphite);

  /* --- Type families ---------------------------------------- */
  --font-display:   "Cormorant Garamond", "GT Sectra", "Tiempos Headline", Georgia, serif;
  --font-serif:     "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:      "DM Sans", "Söhne", "Suisse Int'l", system-ui, -apple-system, sans-serif;
  --font-script:    "Italianno", "Allura", cursive; /* calligraphic, close to the logo's "the" */
  --font-mono:      ui-monospace, "SF Mono", Menlo, monospace;

  /* --- Type scale (editorial, generous) --------------------- */
  --fs-hero:        clamp(56px, 9vw, 144px);   /* magazine cover */
  --fs-display:     clamp(44px, 6vw, 88px);    /* section heroes */
  --fs-h1:          clamp(34px, 4vw, 56px);
  --fs-h2:          clamp(26px, 2.6vw, 38px);
  --fs-h3:          22px;
  --fs-h4:          18px;
  --fs-lede:        clamp(20px, 1.6vw, 26px);  /* opening paragraph */
  --fs-body:        17px;
  --fs-small:       14px;
  --fs-eyebrow:     11px;                       /* tracking widely */
  --fs-caption:     13px;

  /* --- Line heights ----------------------------------------- */
  --lh-display:     1.02;
  --lh-heading:     1.12;
  --lh-lede:        1.45;
  --lh-body:        1.6;
  --lh-tight:       1.2;

  /* --- Tracking --------------------------------------------- */
  --tr-tight:       -0.02em;
  --tr-display:     -0.015em;
  --tr-body:         0em;
  --tr-eyebrow:      0.22em;
  --tr-caps:         0.12em;

  /* --- Spacing scale (8pt + editorial generosity) ----------- */
  --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;
  --space-10: 128px;
  --space-11: 192px;

  /* --- Layout: editorial column widths ---------------------- */
  --measure-narrow: 56ch;    /* longform reading */
  --measure-wide:   72ch;
  --container-edit: 1280px;  /* article + grids */
  --container-page: 1440px;
  --gutter-edge:    clamp(24px, 5vw, 80px);

  /* --- Radii (almost zero — editorial doesn't round) -------- */
  --radius-0:  0px;
  --radius-1:  2px;
  --radius-2:  4px;
  --radius-pill: 999px;

  /* --- Borders & hairlines ---------------------------------- */
  --border-hair:      1px solid var(--hairline);
  --border-rule:      1px solid var(--tsl-ink);
  --border-rule-thin: 0.5px solid var(--tsl-ink);

  /* --- Shadows (used very sparingly — editorial is flat) ---- */
  --shadow-none:    none;
  --shadow-card:    0 1px 2px rgba(20,17,15,0.04), 0 8px 24px rgba(20,17,15,0.06);
  --shadow-lift:    0 24px 60px rgba(20,17,15,0.12);

  /* --- Motion ----------------------------------------------- */
  --ease-editorial: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-quiet:     cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:       160ms;
  --dur-base:       260ms;
  --dur-slow:       520ms;
  --dur-fade:       900ms;
}

/* ============================================================
   Base reset + page
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ============================================================
   Semantic type styles — use these by class
   ============================================================ */
.tsl-hero {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  color: var(--fg);
  text-wrap: balance;
}
.tsl-display, h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  text-wrap: balance;
  margin: 0;
}
.tsl-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-tight);
  text-wrap: balance;
}
h2, .tsl-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-tight);
  margin: 0;
  text-wrap: balance;
}
h3, .tsl-h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-tight);
  margin: 0;
}
h4, .tsl-h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: var(--lh-heading);
  margin: 0;
}
.tsl-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  color: var(--fg-muted);
  text-wrap: pretty;
}
p, .tsl-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg);
  text-wrap: pretty;
  margin: 0 0 1em;
}
.tsl-small  { font-size: var(--fs-small); line-height: 1.5; }
.tsl-caption{
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 400;
  color: var(--fg-subtle);
  line-height: 1.45;
}
.tsl-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-eyebrow);
  color: var(--fg-muted);
}
.tsl-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
}
.tsl-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.25;
  color: var(--fg);
  text-wrap: balance;
}

/* Editorial flourishes */
.tsl-rule {
  display: block;
  border: 0;
  border-top: var(--border-rule-thin);
  margin: var(--space-7) 0;
}
.tsl-hair {
  display: block;
  border: 0;
  border-top: var(--border-hair);
  margin: var(--space-5) 0;
}
.tsl-drop-cap::first-letter {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 5.2em;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.08em 0 -0.04em;
  color: var(--tsl-ink);
}
