/* ============================================================
   e11even — Base layer
   Token values (colors, spacing, radii, layout, type styles) live in
   tokens.json; the page compiles them to tokens.css, imported below.
   This file keeps the fonts, the motion and type-size variables, and
   the global base. Old version: archived/colors_and_type.css
   ============================================================ */

/* -------- Google Font imports (Be Vietnam Pro, Instrument Serif, Inter fallback for TT Commons) -------- */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap');
@import url('./tokens.css');

:root {
  /* ============ MOTION ============ */
  --press-scale:       0.97; /* @kind other */
  --ease-standard:     cubic-bezier(0.2, 0.8, 0.2, 1); /* @kind other */
  --duration-fast:     160ms; /* @kind other */
  --duration-base:     240ms; /* @kind other */

  /* ============ TYPE: scale tokens (used by h1–h6, p, small below) ============ */
  --t-hero-display-size:    96px;
  --t-display-xl-size:      72px;
  --t-display-lg-size:      56px;
  --t-display-md-size:      40px;
  --t-display-sm-size:      32px;
  --t-lead-size:            24px;
  --t-body-lg-size:         18px;
  --t-body-size:            16px;
  --t-caption-size:         14px;
  --t-fine-print-size:      12px;
  --t-editorial-serif-size: 64px;
  --t-wordmark-paren-size:  96px;
}

/* ===========================================================
   GLOBAL BASE
   =========================================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-surface);
  color: var(--fg-primary);
  font-family: var(--font-latin);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Language-aware family selection */
:lang(ru), [lang="ru"] { font-family: var(--font-cyrillic); }
:lang(en), [lang="en"] { font-family: var(--font-latin); }

/* OpenType stylistic alternates for Be Vietnam Pro headlines */
.font-headline,
h1, h2, h3,
.t-hero-display,
.t-wordmark-paren {
  font-feature-settings: "ss01", "ss02";
}

/* ===========================================================
   SEMANTIC ELEMENT DEFAULTS (h1–h6, p, a, small)
   =========================================================== */

h1 { font-size: var(--t-hero-display-size); font-weight: 500; line-height: 0.95;  letter-spacing: -0.04em;  margin: 0 0 var(--space-md); }
h2 { font-size: var(--t-display-xl-size);   font-weight: 500; line-height: 1.00;  letter-spacing: -0.035em; margin: 0 0 var(--space-md); }
h3 { font-size: var(--t-display-lg-size);   font-weight: 500; line-height: 1.05;  letter-spacing: -0.03em;  margin: 0 0 var(--space-sm); }
h4 { font-size: var(--t-display-md-size);   font-weight: 500; line-height: 1.10;  letter-spacing: -0.025em; margin: 0 0 var(--space-sm); }
h5 { font-size: var(--t-display-sm-size);   font-weight: 500; line-height: 1.15;  letter-spacing: -0.02em;  margin: 0 0 var(--space-xs); }
h6 { font-size: var(--t-lead-size);         font-weight: 500; line-height: 1.20;  letter-spacing: -0.01em;  margin: 0 0 var(--space-xs); }

p  { font-size: var(--t-body-size); font-weight: 400; line-height: 1.55; margin: 0 0 var(--space-sm); }
small { font-size: var(--t-fine-print-size); line-height: 1.4; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

strong, b { font-weight: 600; }
