/* ─────────────────────────────────────────────────────────
   base.css — Reset · Design Tokens · Typografie-Utilities
   sidami.ch
───────────────────────────────────────────────────────── */

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
  background-color: #EFE9DD;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

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

button {
  border: none;
  background: none;
  font: inherit;
}

ul,
ol {
  list-style: none;
}

/* ─── Design Tokens ────────────────────────────────────── */
:root {
  /* Paper-Basis — warmes Off-White wie Magazin-Papier */
  --paper:        #EFE9DD;
  --paper-shadow: #DDD5C5;

  /* Ink — tief, samtig, fast schwarz */
  --ink:      #141210;
  --ink-soft: #2A2620;

  /* Brand Voltage — Rosso Sidami */
  --voltage:       #E63329;
  --voltage-hover: #BC2820;

  /* Akzent-Palette — sparsam einsetzen */
  --highlight-yellow: #F5D742;
  --print-blue:       #2B5DD8;
  --riso-green:       #3FA45A;

  /* Cars-Panel Override */
  --cars-bg: #181818;

  /* Hairlines */
  --hairline:      rgba(20, 18, 16, 0.12);
  --hairline-soft: rgba(20, 18, 16, 0.06);

  /* Typography */
  --font-display:     'Boldonse', 'Anton', sans-serif;
  --font-body:        'Inter', system-ui, sans-serif;
  --font-handwritten: 'Caveat', cursive;
  --font-mono:        'JetBrains Mono', monospace;

  /* Motion */
  --ease-paper:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 240ms;
  --duration-mid:  480ms;
  --duration-slow: 800ms;

  /* Layout */
  --gutter: clamp(1.5rem, 4vw, 4rem);

  /* Vertical Rhythm */
  --space-section-y:      clamp(48px, 5vw, 80px);
  --space-after-label:    clamp(12px, 1.5vw, 24px);
  --space-after-headline: clamp(24px, 3vw, 48px);
  --space-after-body:     clamp(20px, 2.5vw, 40px);
  --space-between-blocks: clamp(20px, 2.5vw, 40px);
  --space-row-gap:        clamp(16px, 2vw, 32px);
}

/* ─── Typografie-Utilities ──────────────────────────────── */

/* Display — Boldonse/Anton, für Headlines 8–16vw */
.t-display {
  font-family: var(--font-display);
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.t-display--xl {
  font-size: clamp(4rem, 10vw, 13rem);
}

.t-display--xxl {
  font-size: clamp(4.5rem, 13vw, 17rem);
}

.t-display--hero {
  font-size: clamp(4rem, 9vw, 11rem);
}

.t-display--section {
  font-size: clamp(3rem, 6.5vw, 9rem);
}

/* Italic + Voltage-Rot: kommt auf <em> innerhalb Display */
.t-display em,
em.t-voltage {
  font-style: italic;
  color: var(--voltage);
}

/* Label — Mono, Grossbuchstaben */
.t-label {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 0.75vw, 0.8rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.55;
}

/* Body Copy */
.t-body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  line-height: 1.65;
  max-width: 65ch;
  color: var(--ink-soft);
}

/* Handgeschrieben — Caveat, für Notizen und CTAs */
.t-hand {
  font-family: var(--font-handwritten);
  font-size: clamp(1.1rem, 1.5vw, 1.6rem);
  color: var(--ink);
}

/* Mono */
.t-mono {
  font-family: var(--font-mono);
}

/* ─── Accessibility ─────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus-Ring — sichtbar beim Tastatur-Navigieren */
:focus-visible {
  outline: 2px solid var(--voltage);
  outline-offset: 3px;
}

/* ─── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }


}

/* ─── GSAP: Start-Zustand für animierte Elemente ────────── */
.gsap-reveal {
  opacity: 0;
  transform: translateY(32px);
}

.gsap-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.gsap-reveal-right {
  opacity: 0;
  transform: translateX(40px);
}
