/* ==================================================================
   base.css — Schriften, Farbtoken, Grundtypografie
   Mythic Boho: dunkle Bühne, Gold- und Kupfer-Linework.
   ================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'InterLocal';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'InterLocal';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'InterLocal';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;

  /* Flächen */
  --bg:            #0c0a11;
  --bg-deep:       #07060b;
  --surface:       #16131d;
  --surface-2:     #1d1927;
  --surface-3:     #241f30;

  /* Linien */
  --line:          rgba(232, 181, 106, 0.18);
  --line-strong:   rgba(232, 181, 106, 0.38);
  --line-soft:     rgba(239, 230, 218, 0.09);

  /* Schrift */
  --ink:           #efe6da;
  --ink-dim:       rgba(239, 230, 218, 0.64);
  --ink-faint:     rgba(239, 230, 218, 0.42);

  /* Metalle */
  --gold:          #e8b56a;
  --gold-deep:     #c08f4a;
  --copper:        #cf8355;

  /* Geprüfte Datenpalette — siehe js/ui.js */
  --phase-menstruation: #d55181;
  --phase-follicular:   #3987e5;
  --phase-ovulation:    #c98500;
  --phase-luteal:       #9085e9;
  --phase-unknown:      #7c8698;

  --warn:          #e0a33c;
  --danger:        #e06a6a;

  --radius:        18px;
  --radius-sm:     11px;
  --radius-lg:     26px;

  --font-display:  'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --font-ui:       'InterLocal', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shadow:        0 18px 48px rgba(0, 0, 0, 0.55);
  --shadow-sm:     0 6px 20px rgba(0, 0, 0, 0.4);

  --maxw:          680px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(144, 133, 233, 0.14), transparent 60%),
    radial-gradient(ellipse 90% 60% at 10% 100%, rgba(232, 181, 106, 0.08), transparent 62%),
    radial-gradient(ellipse 80% 50% at 95% 40%, rgba(213, 81, 129, 0.07), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(2rem, 7.5vw, 3rem); }
h2 { font-size: clamp(1.3rem, 4.6vw, 1.75rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.005em; }

p { margin: 0 0 0.85em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-underline-offset: 3px; }

b, strong { font-weight: 600; color: var(--ink); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

.eyebrow,
.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

.lede { color: var(--ink-dim); font-size: 1.02rem; max-width: 46ch; }
.fine { font-size: 0.82rem; color: var(--ink-faint); line-height: 1.55; }
.dim  { color: var(--ink-dim); }

.disclaimer {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-faint);
  border-top: 1px solid var(--line-soft);
  padding-top: 1.1rem;
  margin: 2rem 0 0;
}

/* Sichtbarer Fokus überall — Tastaturbedienung ist kein Sonderfall. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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