/* ============================================================
   The Kids Table — Colors & Type Tokens
   Source of truth: the-kids-table-landing/src/index.css + tailwind.config.ts
   ============================================================ */

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

:root {
  /* -------- Palette --------------------------------------- */
  /* Black ink on near-white. Amber is the only bright color. */
  --tkt-ink:           #1a1a1a;   /* hsl(0 0% 10%) — primary text, logo, dark sections */
  --tkt-body-grey:     #4a4a4a;   /* hsl(0 0% 29%) — body copy */
  --tkt-muted:         #737373;   /* hsl(0 0% 45%) — captions, micro */
  --tkt-subtext:       #ababab;   /* hsl(0 0% 67%) — footer subtext on dark */
  --tkt-border:        #dadde2;   /* hsl(220 13% 87%) — hairline dividers */

  --tkt-paper:         #ffffff;   /* pure white — cards, hero, recent issues bg */
  --tkt-cream:         #ebedf1;   /* hsl(228 14% 93%) — page bg ("light grey") */
  --tkt-near-white:    #fafafa;   /* optional off-white if illustration needs more contrast */

  --tkt-amber:         #F2A12B;   /* hsl(36 88% 55%) — THE accent. Use sparingly. */
  --tkt-amber-soft:    rgba(242,161,43,0.15); /* icon plate fill */
  --tkt-amber-glow:    0 4px 20px rgba(242,161,43,0.20);

  --tkt-destructive:   #ef4444;
  --tkt-success:       #16a34a;

  /* Semantic aliases */
  --fg-1: var(--tkt-ink);
  --fg-2: var(--tkt-body-grey);
  --fg-3: var(--tkt-muted);
  --fg-on-dark: var(--tkt-paper);
  --fg-subtext-on-dark: var(--tkt-subtext);

  --bg-page:    var(--tkt-cream);
  --bg-paper:   var(--tkt-paper);
  --bg-dark:    var(--tkt-ink);
  --bg-accent:  var(--tkt-amber);

  --border-hairline: var(--tkt-border);
  --border-dark:     #2e2e2e;

  /* -------- Type families --------------------------------- */
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script:  "Cormorant Garamond", Georgia, serif; /* italic 400 used for "The" in logo */

  /* -------- Type scale ------------------------------------ */
  --fs-hero:           56px;   /* H1 desktop */
  --fs-hero-mobile:    36px;   /* H1 mobile */
  --fs-section:        36px;   /* H2 desktop */
  --fs-section-mid:    32px;   /* H2 alt */
  --fs-section-mobile: 26px;   /* H2 mobile */
  --fs-card-title:     22px;   /* H3 article/issue */
  --fs-eyebrow:        13px;   /* uppercase section labels */
  --fs-body-lg:        18px;   /* hero subhead */
  --fs-body:           17px;   /* default body */
  --fs-body-sm:        16px;   /* secondary body */
  --fs-micro:          13px;   /* captions, footer */
  --fs-stat:           96px;   /* big stat numbers (40%) */

  --lh-hero:    1.1;
  --lh-section: 1.2;
  --lh-body:    1.65;
  --lh-tight:   1.25;

  --tracking-hero:    -0.02em;
  --tracking-eyebrow:  0.15em;

  /* -------- Spacing & layout ------------------------------ */
  --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;   /* section padding mobile */
  --space-28: 112px;  /* section padding desktop */

  --container-max: 1120px;     /* max-w-5xl ≈ 64rem (1024) is most common; 6xl on hero */
  --container-wide: 1200px;
  --measure: 680px;            /* article max-width */

  /* -------- Radii ----------------------------------------- */
  --radius-sm: 6px;
  --radius-md: 8px;            /* buttons-ish, default --radius */
  --radius-lg: 12px;           /* cards (rounded-xl) */
  --radius-pill: 999px;        /* CTAs */

  /* -------- Shadows --------------------------------------- */
  --shadow-card: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-amber-glow: 0 4px 20px rgba(242,161,43,0.20);

  /* -------- Motion ---------------------------------------- */
  --ease-standard: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-slow: 300ms;
}

/* ============================================================
   Semantic typography classes (drop-in)
   ============================================================ */

.tkt-h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--tracking-hero);
  color: var(--fg-1);
}
@media (max-width: 768px) {
  .tkt-h1 { font-size: var(--fs-hero-mobile); }
}

.tkt-h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-section);
  line-height: var(--lh-section);
  color: var(--fg-1);
}
@media (max-width: 768px) {
  .tkt-h2 { font-size: var(--fs-section-mobile); }
}

.tkt-h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-card-title);
  line-height: var(--lh-tight);
  color: var(--fg-1);
}

.tkt-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--tkt-amber);
}

.tkt-lead {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--fg-2);
}

.tkt-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-2);
}

.tkt-body-sm {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--fg-2);
}

.tkt-micro {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: var(--fg-3);
}

.tkt-stat {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-stat);
  line-height: 1;
  color: var(--tkt-amber);
}

/* Buttons */
.tkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  text-decoration: none;
  transition: box-shadow var(--dur-base) var(--ease-standard),
              background-color var(--dur-base) var(--ease-standard);
  cursor: pointer;
  border: 0;
}
.tkt-btn--primary {
  background: var(--tkt-amber);
  color: var(--tkt-ink);
}
.tkt-btn--primary:hover { box-shadow: var(--shadow-amber-glow); }

.tkt-btn--ink {
  background: var(--tkt-ink);
  color: var(--tkt-paper);
  padding: 10px 24px;
  font-size: 14px;
}
.tkt-btn--ink:hover { box-shadow: var(--shadow-amber-glow); }

/* Cards */
.tkt-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.tkt-card--quote {
  border-left: 4px solid var(--tkt-amber);
  box-shadow: var(--shadow-card);
}
