/* ============================================================
   TEXPÖ · Design System — Tokens & Base
   ============================================================ */

:root {
  /* — Brand palette — */
  --tx-blue-900: #0a1f3d;
  --tx-blue-800: #14366b;
  --tx-blue:     #1d4d8c;   /* Primary */
  --tx-blue-600: #2f6bb0;
  --tx-blue-300: #b7cce4;
  --tx-blue-100: #e6eef7;

  --tx-red-900:  #7a1417;
  --tx-red:      #e7282b;   /* Accent */
  --tx-red-300:  #f4a4a6;
  --tx-red-100:  #fce4e5;

  /* — Neutrals — */
  --tx-ink:      #0e1726;
  --tx-graphite: #2b3445;
  --tx-slate:    #5a6478;
  --tx-mute:     #8a93a4;
  --tx-line:     #e3e6ec;
  --tx-paper:    #f6f4ef;   /* warm off-white */
  --tx-paper-2:  #efece4;
  --tx-white:    #ffffff;

  /* — Semantic — */
  --bg:          var(--tx-paper);
  --bg-card:     var(--tx-white);
  --text:        var(--tx-ink);
  --text-mute:   var(--tx-slate);
  --line:        var(--tx-line);
  --brand:       var(--tx-blue);
  --accent:      var(--tx-red);

  /* — Type — */
  --font-sans: "Geist", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale (modular) */
  --fs-mono:   12px;
  --fs-xs:     13px;
  --fs-sm:     15px;
  --fs-base:   17px;
  --fs-lg:     20px;
  --fs-xl:     26px;
  --fs-2xl:    36px;
  --fs-3xl:    52px;
  --fs-4xl:    76px;
  --fs-5xl:   112px;
  --fs-display:160px;

  /* — Spacing — */
  --sp-0: 0px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10:128px;

  /* — Radii — */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* — Shadow / depth — */
  --shadow-sm: 0 1px 2px rgba(14,23,38,.06), 0 1px 1px rgba(14,23,38,.04);
  --shadow-md: 0 8px 24px -8px rgba(14,23,38,.12), 0 2px 4px rgba(14,23,38,.05);
  --shadow-lg: 0 24px 60px -20px rgba(14,23,38,.22), 0 6px 12px rgba(14,23,38,.06);

  /* — Layout — */
  --maxw: 1320px;
  --gutter: 32px;
}

/* ============================================================
   Reset + base
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

::selection { background: var(--tx-blue); color: white; }

/* ============================================================
   Typography utilities
   ============================================================ */
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.headline-xl {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(48px, 7vw, var(--fs-4xl));
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.headline-lg {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, var(--fs-3xl));
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.headline-md {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-2xl);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
}

.subhead {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-xl);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}

.lead {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--text-mute);
  text-wrap: pretty;
  margin: 0;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   Layout
   ============================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--sp-10) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.section--dark {
  background: var(--tx-blue-900);
  color: var(--tx-paper);
  border-top: 0;
}
.section--dark .lead,
.section--dark .text-mute { color: rgba(246,244,239,.7); }

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-8);
  align-items: end;
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head__index .num {
  display: block;
  color: var(--brand);
  font-size: 52px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  text-transform: none;
  font-family: var(--font-sans);
  font-weight: 600;
}
.section--dark .section-head__index .num { color: var(--tx-paper); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-5); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: var(--sp-4); }
}
