/* ==========================================================================
   shift* design system (v6, July 2026)
   Tokens, font, base typography, wordmark, shared elements.
   Section styles live in their own files (e.g. hero.css).
   ========================================================================== */

/* Font: self-hosted (no Google CDN = no data sent to third parties) */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors */
  --magenta: #E6007E;
  --magenta-light: #FF4FA8;      /* only on dark backgrounds */
  --petrol: #0F8A8A;
  --senf: #E9B44C;               /* accent, use sparingly */
  --rosa-pastell: #FFD3E8;       /* small chips / proof pills ONLY */
  --mint-pastell: #C2EAE4;       /* small chips / proof pills ONLY */
  --porzellan: #F8F7FB;
  --tinte: #2D2A3E;
  --tinte-muted: rgba(45, 42, 62, 0.55);   /* "by Franzi Winter" (brand rule), placeholders */
  --tinte-soft: rgba(45, 42, 62, 0.72);    /* quiet small text: footer, sources, captions. 5.4:1 contrast (Mira, 27.10.) */
  --petrol-text: #0D7E7E;  /* Petrol for SMALL text only (under ~19px): 4.6:1 contrast. Frames, lines, big numbers stay --petrol (Mira, 27.10.) */
  --tinte-line: rgba(45, 42, 62, 0.14);    /* quote box outlines */
  --tinte-hair: rgba(45, 42, 62, 0.08);    /* card outlines */
  --white: #FFFFFF;

  /* Gradient: lines, dividers, frames only. Never a surface fill. */
  --shift-gradient: linear-gradient(90deg, var(--magenta), var(--petrol));

  /* Type */
  --font: "Space Grotesk", system-ui, sans-serif;
  --fs-body: 1.125rem;                           /* 18px, never below ~17px */
  --fs-small: 1.0625rem;                         /* 17px floor */
  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 4.25rem);
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-stat: clamp(2.75rem, 2rem + 3vw, 4rem);
  --fs-sub: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --fs-eyebrow: 0.9375rem;  /* (04.11.) 15px instead of 13px: section labels easier to read (Franzi ok) */
  --tracking-tight: -0.02em;
  --tracking-wide: 0.22em;

  /* Space & layout */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max-width: 76rem;
  --radius: 20px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--porzellan);
  color: var(--tinte);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.08;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 4px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--tinte);
  font-weight: 500;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* ---------- Wordmark: shift* (always lowercase, f + * in Magenta) ---------- */
.wordmark {
  font-family: var(--font);
  font-weight: 700;
  color: var(--tinte);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
/* Inside a headline ("shifty", "shifted"): Magenta f like the wordmark, at headline size (25.10.) */
.wordmark--inline { font-size: 1em; line-height: inherit; letter-spacing: inherit; color: inherit; }
.wordmark .f,
.wordmark .star { color: var(--magenta); }
.wordmark .star {
  font-size: 0.5em;
  vertical-align: 0.52em;
  margin-left: 0.02em;
}

/* On dark backgrounds (exception, not the rule) */
.on-dark .wordmark { color: var(--white); }
.on-dark .wordmark .f,
.on-dark .wordmark .star { color: var(--magenta-light); }

/* Lockup: wordmark + "by Franzi Winter" in muted Tinte, never Petrol */
.lockup { display: inline-flex; flex-direction: column; gap: 0.35rem; text-decoration: none; }
.lockup .wordmark { font-size: 2rem; }
.lockup .byline {
  font-size: 0.875rem;
  white-space: nowrap;
  font-weight: 400;
  color: var(--tinte-muted);
  letter-spacing: 0.01em;
}

/* ---------- Shared elements ---------- */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--petrol-text);
}

.gradient-line {
  display: block;
  width: 7.5rem;
  height: 3px;
  border: 0;
  margin: 0;
  background: var(--shift-gradient);
}

/* THE one Magenta statement per surface */
.punch { color: var(--magenta); }

/* Headline asterisk: always colored, never Tinte */
.star-accent { color: var(--magenta); }
.star-accent.petrol { color: var(--petrol); }

/* Button: gradient frame, transparent inside (no fill) */
.btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  padding: 0.7rem 1.5rem;  /* (14.11., Franzi) slimmer, one size everywhere */
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--tinte);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(var(--porzellan), var(--porzellan)) padding-box,
    var(--shift-gradient) border-box;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .btn-star { color: var(--petrol); }

/* Placeholder marker: content not final yet. Remove before launch. */
.placeholder {
  border: 1.5px dashed var(--tinte-line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: var(--tinte-muted);
  font-size: var(--fs-small);
}
.placeholder strong {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Logo = home link: on hover the asterisk spins and a gradient line grows under the wordmark */
.lockup .wordmark {
  position: relative;
  padding-bottom: 0.12em;
  background: var(--shift-gradient) left bottom / 0 2px no-repeat;
  transition: background-size 0.3s ease;
}
.lockup .wordmark .star {
  display: inline-block;
  transition: transform 0.6s ease;
}
.lockup:hover .wordmark,
.lockup:focus-visible .wordmark { background-size: 100% 2px; }
.lockup:hover .wordmark .star,
.lockup:focus-visible .wordmark .star { transform: rotate(360deg) scale(1.3); }

@media (prefers-reduced-motion: reduce) {
  .lockup .wordmark .star { transition: none; }
}

/* Keep words like "2-minute" together on one line (27.10.) */
.nowrap { white-space: nowrap; }
