/* ============================================================
   Reset, typography baseline, layout primitives.
   Loaded after tokens.css.
   ============================================================ */

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

html, body { margin: 0; padding: 0; }

html {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    var(--grain),
    radial-gradient(1200px 600px at 80% -10%, var(--pe-mint-tint) 0%, transparent 60%),
    radial-gradient( 800px 500px at -10% 20%, var(--pe-pink-tint) 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed, fixed, fixed, fixed;
}

img, svg { max-width: 100%; height: auto; display: block; }

button { font: inherit; cursor: pointer; }

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--pe-mustard);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft);
}
a:hover { text-decoration-color: var(--pe-pink-dark); color: var(--pe-pink-dark); }

::selection { background: var(--pe-mustard); color: var(--pe-ink); }

/* -- Display type --------------------------------------- */
.display,
h1, h2, h3 {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 700;
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  margin: 0;
  color: var(--fg);
}

h1   { font-size: var(--fs-3xl); }
h2   { font-size: var(--fs-2xl); }
h3   { font-size: var(--fs-xl);  }
h4, h5, h6 {
  font-family: var(--ff-body);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: 0;
  margin: 0;
}
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--tr-loose); }

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

.lead {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 400;
  font-size: var(--fs-lg);
  line-height: 1.35;
  color: var(--fg-soft);
}

/* small labels (über-uns, bühne, programm n°…) */
.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pe-mint-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* numerals — display variant for big concert dates */
.numeral {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 700;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* -- Layout containers ---------------------------------- */
.shell {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}
.shell--mid    { max-width: var(--w-mid); }
.shell--narrow { max-width: var(--w-narrow); }

section { padding-block: var(--sp-6); }
section.tight { padding-block: var(--sp-5); }
section.loose { padding-block: var(--sp-7); }

hr.rule {
  border: none;
  height: 0;
  border-top: 2px dashed var(--rule);
  margin: var(--sp-4) 0;
}

/* -- Inline ornament: hand-drawn squiggle underline ---- */
.scribble {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.18em;
  height: 0.25em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 6 Q 12 1, 22 6 T 42 6 T 62 6 T 82 6 T 102 6 T 122 6 T 142 6 T 162 6 T 182 6 T 198 6' fill='none' stroke='%23E8B546' stroke-width='3' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
  pointer-events: none;
}
.scribble--pink::after { filter: hue-rotate(280deg) saturate(1.4); }
.scribble--mint::after { filter: hue-rotate(120deg); }

/* -- Visually hidden but readable for screen readers --- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* -- Reduced motion respect --------------------------- */
@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;
  }
}
