/* ============================================================
   WELT · Design Tokens
   Colors + Type for the WELT eyewear brand.
   Strict B&W palette. Editorial serif + lean sans.
   ============================================================ */

/* ---------- Fonts (local · self-hosted) ----------------------
 * Libre Baskerville = the official WELT logotype face.
 * Jost = body / UI sans.
 * Files live in fonts/ at the project root. The @font-face url()s
 * resolve relative to THIS file, so they work from any nesting.
 * ------------------------------------------------------------ */

@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/LibreBaskerville-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/LibreBaskerville-RegularItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/LibreBaskerville-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Jost-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Jost-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Jost-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Jost-SemiBold.woff2') format('woff2');
}

:root {
  /* ---------- Color · Foundation ----------------------------- */
  /* Strict B&W. No accent colors anywhere.                      */
  --welt-black: #0c0c0c;        /* Editorial black — primary surface for dark sections */
  --welt-ink:   #000000;        /* True black — only for logos / max contrast */
  --welt-white: #ffffff;        /* Paper white — primary background */
  --welt-paper: #fafaf8;        /* A whisper warmer — optional alternate background */

  /* ---------- Color · Neutral scale (grays only) ------------- */
  --welt-gray-100: #f4f4f2;
  --welt-gray-200: #e8e8e6;
  --welt-gray-300: #d4d4d1;
  --welt-gray-400: #b4b4b1;
  --welt-gray-500: #8a8a87;
  --welt-gray-600: #6a6a67;
  --welt-gray-700: #3a3a38;
  --welt-gray-800: #1a1a18;

  /* ---------- Color · Semantic ------------------------------- */
  --fg-1: var(--welt-black);              /* Primary text */
  --fg-2: var(--welt-gray-700);           /* Secondary text */
  --fg-3: var(--welt-gray-500);           /* Tertiary / captions / labels */
  --fg-mute: var(--welt-gray-400);        /* Disabled / hairline labels */
  --fg-on-dark: var(--welt-white);
  --fg-on-dark-2: var(--welt-gray-300);

  --bg-1: var(--welt-white);              /* Default page background */
  --bg-2: var(--welt-paper);              /* Alt warm-white surface */
  --bg-3: var(--welt-gray-100);           /* Block / section divider */
  --bg-inverse: var(--welt-black);        /* Dark editorial surface (footer / data section) */

  --rule: var(--welt-gray-300);           /* Standard hairline */
  --rule-strong: var(--welt-black);       /* Bold editorial rule */
  --rule-on-dark: rgba(255,255,255,0.18);

  /* ---------- Type · Families -------------------------------- */
  --font-serif: "Libre Baskerville", "Times New Roman", Times, serif;
  --font-sans:  "Jost", "Helvetica Neue", Helvetica, "Arial", sans-serif;
  --font-mono:  ui-monospace, "SF Mono", Menlo, monospace;

  /* ---------- Type · Tracking / leading ---------------------- */
  --track-tight: -0.01em;
  --track-normal: 0;
  --track-wide: 0.04em;
  --track-wider: 0.12em;
  --track-widest: 0.32em;     /* Logo / eyebrows / section labels */

  /* ---------- Type · Scale (fluid, editorial) ---------------- */
  --t-display: clamp(64px, 9vw, 168px);   /* Hero display, serif */
  --t-h1:      clamp(44px, 5.6vw, 92px);  /* Section opening, serif */
  --t-h2:      clamp(32px, 3.6vw, 56px);  /* Subsection, serif */
  --t-h3:      clamp(22px, 2.2vw, 32px);  /* Card title, serif or sans */
  --t-stat:    clamp(72px, 11vw, 192px);  /* Data numerals, serif */
  --t-lead:    clamp(18px, 1.4vw, 22px);  /* Lead paragraph, sans */
  --t-body:    16px;                       /* Body, sans */
  --t-small:   14px;                       /* Captions, sans */
  --t-micro:   11px;                       /* Eyebrow / label, uppercase */

  /* ---------- Spacing ---------------------------------------- */
  --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;
  --s-11: 160px;
  --s-12: 200px;

  /* ---------- Layout ---------------------------------------- */
  --container: 1360px;
  --gutter: clamp(24px, 4vw, 56px);

  /* ---------- Radii (very restrained) ----------------------- */
  --r-0: 0px;        /* Default — square corners almost everywhere */
  --r-1: 1px;
  --r-2: 2px;

  /* ---------- Motion ---------------------------------------- */
  --ease-quiet: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 520ms;
}

/* ============================================================
   Base type
   ============================================================ */

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--fg-1);
  background: var(--bg-1);
  letter-spacing: var(--track-normal);
  font-feature-settings: "ss01", "kern";
}

/* Serif display family — for hero, section titles, big stats */
.serif, h1, h2, h3, .display, .stat-numeral {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: var(--track-tight);
  line-height: 1.1;
  color: var(--fg-1);
}

.display { font-size: var(--t-display); font-weight: 400; }
h1       { font-size: var(--t-h1); font-weight: 400; }
h2       { font-size: var(--t-h2); font-weight: 400; }
h3       { font-size: var(--t-h3); font-weight: 500; letter-spacing: 0; line-height: 1.2; }

.stat-numeral {
  font-size: var(--t-stat);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums proportional-nums;
}

p, .body { font-size: var(--t-body); line-height: 1.7; color: var(--fg-2); }
.lead    { font-size: var(--t-lead); line-height: 1.55; color: var(--fg-1); font-weight: 300; }
.small   { font-size: var(--t-small); line-height: 1.55; color: var(--fg-2); }

/* Eyebrow / micro-label — used for section markers, footer labels, etc. */
.eyebrow, .label-micro {
  font-family: var(--font-sans);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Logo lockup — wide-tracked serif caps */
.logotype {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--fg-1);
  display: inline-block;
  /* compensate for tracking pushing left edge */
  padding-left: 0.42em;
}

a { color: inherit; text-decoration: none; }
a.link-underline {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity var(--dur-1) var(--ease-quiet);
}
a.link-underline:hover { opacity: 0.55; }

hr.rule { border: 0; border-top: 1px solid var(--rule); margin: var(--s-7) 0; }
hr.rule-strong { border: 0; border-top: 1px solid var(--rule-strong); margin: var(--s-7) 0; }

/* ============================================================
   Inverse surface — black sections (footer, technology, etc)
   ============================================================ */

.surface-dark { background: var(--bg-inverse); color: var(--fg-on-dark); }
.surface-dark p, .surface-dark .body { color: var(--fg-on-dark-2); }
.surface-dark .eyebrow, .surface-dark .label-micro { color: var(--fg-on-dark-2); }
.surface-dark h1, .surface-dark h2, .surface-dark h3,
.surface-dark .display, .surface-dark .stat-numeral { color: var(--fg-on-dark); }
.surface-dark hr.rule { border-top-color: var(--rule-on-dark); }
