/* Greenwell design tokens.
   Fonts and type scale mirror AutoGo (autogo-mono/apps/web/src/app/fonts.css,
   packages/design-tokens/src/sizing.ts, docs/brand.md § Typography).
   Colors are placeholders. */

/* ── Fonts ────────────────────────────────────────────────────────────────
   One family for every role, as in AutoGo. The "mono" role is the same face
   with tabular figures, not a separate font. The faces, their unicode-ranges
   (latin / cyrillic / armenian) and the metric-matched fallback are declared
   in fonts.css, copied from AutoGo unchanged apart from the family name. */

@import url("fonts.css");

:root {
  --gw-font-family: "Greenwell", "Greenwell Fallback", "Open Sans", "Lucida Grande", Tahoma, Arial, sans-serif;
  --gw-font-display: var(--gw-font-family);
  --gw-font-body: var(--gw-font-family);
  --gw-font-mono: var(--gw-font-family); /* same face + tabular-nums, as in AutoGo */

  /* ── Colors. The primary green is FINAL (chosen 16 Nov 2026); the rest are
     still working values. ── */
  --gw-olive: #3e4a2f; /* FINAL — primary, "olive leaf" */
  --gw-cream: #ede3d1; /* NOT FINAL — text on green */
  --gw-bg: #f4efe6; /* NOT FINAL — all backgrounds */
  --gw-terracotta: #c07a5a; /* NOT FINAL — accent */

  /* ── Type scale (AutoGo sizing.fontSize) ── */
  --gw-text-display: 58px; /* AutoGo `display` */
  --gw-text-h1: 36px; /* `title-xl` */
  --gw-text-h2: 28px; /* `title-lg` */
  --gw-text-h3: 22px; /* `title` */
  --gw-text-body: 14px; /* brand.md: body sits at 14px */
  --gw-text-caption: 12.5px; /* `caption` */
  --gw-text-eyebrow: 11.5px; /* `eyebrow` */
  --gw-text-price: 22px; /* `title`, set in the machine layer */

  /* ── Tracking (AutoGo sizing.letterSpacing) ── */
  --gw-tracking-title: -0.02em;
  --gw-tracking-title-tight: -0.03em;
  --gw-tracking-eyebrow: 0.14em;

  /* ── Weights (AutoGo brand.md) ── */
  --gw-weight-body: 500;
  --gw-weight-heading: 700;
}

/* ── Type roles ── */

.gw-display {
  font-family: var(--gw-font-display);
  font-size: var(--gw-text-display);
  font-weight: var(--gw-weight-heading);
  line-height: 1.05;
  letter-spacing: var(--gw-tracking-title-tight);
}

.gw-h1,
.gw-h2,
.gw-h3 {
  font-family: var(--gw-font-display);
  font-weight: var(--gw-weight-heading);
  letter-spacing: var(--gw-tracking-title);
}

.gw-h1 {
  font-size: var(--gw-text-h1);
  line-height: 1.15;
}

.gw-h2 {
  font-size: var(--gw-text-h2);
  line-height: 1.2;
}

.gw-h3 {
  font-size: var(--gw-text-h3);
  line-height: 1.3;
}

.gw-body {
  font-family: var(--gw-font-body);
  font-size: var(--gw-text-body);
  font-weight: var(--gw-weight-body);
  line-height: 1.55;
}

.gw-caption {
  font-family: var(--gw-font-body);
  font-size: var(--gw-text-caption);
  font-weight: var(--gw-weight-body);
  line-height: 1.4;
}

.gw-eyebrow {
  font-family: var(--gw-font-body);
  font-size: var(--gw-text-eyebrow);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--gw-tracking-eyebrow);
  text-transform: uppercase;
}

/* The "machine layer": same family, tabular figures, so prices line up. */
.gw-price {
  font-family: var(--gw-font-mono);
  font-size: var(--gw-text-price);
  font-weight: var(--gw-weight-heading);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 640px) {
  :root {
    --gw-text-display: 40px; /* AutoGo `title-2xl` */
    --gw-text-h1: 28px;
    --gw-text-h2: 24px; /* `title-page` */
  }
}
