/* ==========================================================================
   anarchismus.at — Neuauflage · Design-System
   Stil: warm + editorial, mit revolutionären Schwarz/Rot-Akzenten
   ========================================================================== */

/* ----------  Design Tokens  ---------- */
:root {
  /* Warme Basis */
  --cream:        #F7F1E4;   /* Haupt-Hintergrund */
  --cream-2:      #F1E8D6;   /* leicht abgesetzt */
  --sand:         #E8DCC2;
  --paper:        #FCF8EF;   /* Karten / heller */

  /* Tinte / Dunkel (warmes Blau-Schwarz) */
  --ink:          #1A1714;   /* Haupttext / revolutionäres Schwarz */
  --ink-soft:     #2C2723;
  --ink-mute:     #5B5249;   /* Sekundärtext */
  --ink-faint:    #8A7E70;

  /* Revolutionäres Rot */
  --red:          #C0241C;
  --red-deep:     #931812;
  --red-bright:   #E03A2E;

  /* Erdige Akzente */
  --terra:        #C2693C;   /* Terrakotta */
  --terra-deep:   #9E4F2A;
  --ochre:        #D69A3C;   /* Gold/Ocker */
  --sage:         #6E7C57;   /* Salbeigrün */
  --sage-deep:    #51603E;
  --plum:         #7A3B5A;   /* Anarcha-Feminismus-Akzent */

  /* Funktional */
  --line:         rgba(26,23,20,.14);
  --line-soft:    rgba(26,23,20,.08);
  --shadow-sm:    0 1px 2px rgba(26,23,20,.06), 0 2px 8px rgba(26,23,20,.05);
  --shadow-md:    0 6px 18px rgba(26,23,20,.10), 0 2px 6px rgba(26,23,20,.06);
  --shadow-lg:    0 24px 60px -18px rgba(26,23,20,.32);

  /* Typografie */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-serif:   'Newsreader', Georgia, serif;
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Maße */
  --maxw:         1200px;
  --maxw-wide:    1380px;
  --maxw-read:    72ch;
  --gutter:       clamp(1.1rem, 4vw, 3rem);
  --radius:       4px;        /* eckig-editorial, kein verspieltes Rund */
  --radius-lg:    10px;

  /* Rhythmus */
  --section-y:    clamp(4rem, 9vw, 8.5rem);

  color-scheme: light;
}

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: clamp(1rem, .96rem + .25vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--sand); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: var(--paper); }
hr { border: none; border-top: 1px solid var(--line); }

/* ----------  Typografie  ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-optical-sizing: auto;
  text-wrap: balance;
}
.h-display {
  font-size: clamp(2.6rem, 1.4rem + 5.6vw, 6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
h1, .h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem); }
h2, .h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3rem); }
h3, .h3 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem); }
h4, .h4 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }

p { text-wrap: pretty; }
strong, b { font-weight: 650; }
em { font-style: italic; }
small { font-size: .82em; }

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.05rem + .8vw, 1.55rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 380;
}

/* Eyebrow / Kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: ""; width: 1.9em; height: 2px; background: var(--red); flex: none;
}
.eyebrow--center::after {
  content: ""; width: 1.9em; height: 2px; background: var(--red); flex: none;
}

/* Akzent-Markierungen */
.mark-red { color: var(--red); }
.mark-terra { color: var(--terra-deep); }
.mark-sage { color: var(--sage-deep); }
.u-underline {
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 100% 3px; background-repeat: no-repeat;
  background-position: 0 92%; padding-bottom: .04em;
}

/* ----------  Layout  ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--maxw-wide); }
.container--read { max-width: var(--maxw-read); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.bg-cream   { background: var(--cream); }
.bg-cream-2 { background: var(--cream-2); }
.bg-paper   { background: var(--paper); }
.bg-sand    { background: var(--sand); }
.bg-ink     { background: var(--ink); color: var(--cream); }
.bg-ink h1,.bg-ink h2,.bg-ink h3,.bg-ink h4 { color: var(--paper); }
.bg-ink .lead { color: rgba(247,241,228,.82); }
.bg-red     { background: var(--red); color: var(--paper); }
.bg-red h1,.bg-red h2,.bg-red h3 { color: var(--paper); }

/* Grid-Helfer */
.grid { display: grid; gap: clamp(1.2rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.flow > * + * { margin-top: 1.1em; }
.flow-lg > * + * { margin-top: 1.7em; }

/* Section-Kopf */
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 1rem; }

/* ----------  Utilities  ---------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0 !important; }
.measure { max-width: var(--maxw-read); }
.measure-center { max-width: var(--maxw-read); margin-inline: auto; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cluster--center { justify-content: center; }
.divider { height: 1px; background: var(--line); border: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .7rem 1.1rem; border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* Korn-/Papier-Textur als feiner Overlay-Helfer */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------  Scroll-Reveal Animation  ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .site-header, .site-footer, .to-top, .lang-note { display: none !important; }
  body { background: #fff; color: #000; }
}
