/* ============================================================
   TIMO SCHNIERING — Artist Website
   Shared stylesheet across all 7 pages
   ============================================================ */

/* Local brand typefaces. Variable fonts (one file per family/style covers
   the full weight axis 100–900) shipped from this server — no Google Fonts
   CDN, no third-party request on first paint. font-display: swap renders
   the page in fallback fonts immediately and swaps in the brand fonts as
   soon as they're decoded. */
@font-face {
  font-family: 'Cinzel';
  src: url('fonts/Cinzel/Cinzel-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/Cormorant_Garamond/CormorantGaramond-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/Cormorant_Garamond/CormorantGaramond-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EB_Garamond/EBGaramond-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EB_Garamond/EBGaramond-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrains_Mono/JetBrainsMono-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrains_Mono/JetBrainsMono-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Colors — warm, dark, editorial */
  --obsidian:   oklch(0.12 0.006 60);   /* page bg */
  --obsidian-2: oklch(0.16 0.008 60);   /* raised bg */
  --obsidian-3: oklch(0.20 0.010 65);   /* hairlines / wells */
  --bone:       oklch(0.93 0.012 80);   /* primary text */
  --bone-dim:   oklch(0.78 0.012 75);   /* secondary text */
  --muted:      oklch(0.55 0.015 70);   /* tertiary / meta */
  --ember:      oklch(0.74 0.075 65);   /* accent (warm bronze) */
  --line:       color-mix(in oklch, var(--bone) 14%, transparent);
  --line-soft:  color-mix(in oklch, var(--bone) 7%, transparent);

  /* Type */
  --display: "Cinzel", "Trajan Pro", serif;
  --body:    "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--obsidian);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .35s ease, opacity .35s ease;
}

::selection { background: var(--ember); color: var(--obsidian); }

/* Cinematic film grain — real SVG fractal noise, animated frame by frame */
body::after {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 200;
  opacity: .22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  animation: grain 0.6s steps(5) infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 199;
  opacity: .08;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n2'><feTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='3' stitchTiles='stitch'/></filter><rect width='320' height='320' filter='url(%23n2)'/></svg>");
  background-size: 320px 320px;
}

@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20%     { transform: translate(-2%, -3%); }
  40%     { transform: translate(2%, 1%); }
  60%     { transform: translate(-1%, 2%); }
  80%     { transform: translate(1%, -1%); }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

/* ---------- Display + heading scale ---------- */

.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.1;
}

h1, h2, h3 { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-family: var(--body);
  font-size: clamp(22px, 2.2vw, 30px);
  font-style: italic;
  line-height: 1.45;
  color: var(--bone-dim);
  max-width: 60ch;
}

/* ============================================================
   GLOBAL NAVIGATION — minimal top bar (non-hero pages)
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--obsidian) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  /* Extend the topbar's background INTO the notch / status-bar area on
     devices where the viewport reaches the physical screen edge. With
     viewport-fit=cover on the page's <meta viewport>, env(safe-area-
     inset-top) returns the height of the notch — that becomes extra
     padding here, which the bar's translucent blur background fills.
     The inner content (.topbar__inner) still has its 18px top padding,
     so the menu text stays at the same visual offset below the notch.
     On non-notched devices / pages without viewport-fit=cover the env()
     returns 0 and nothing changes. */
  padding-top: env(safe-area-inset-top, 0);
}

/* Floating variant — sits over a hero video, transparent with a gradient scrim */
.topbar--floating {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar__brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar__nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  align-items: center;
}

.topbar__nav a {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-dim);
  position: relative;
  padding: 6px 0;
}

.topbar__nav a:hover { color: var(--bone); }

.topbar__nav a[aria-current="page"] {
  color: var(--ember);
}

.topbar__nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ember);
}

.topbar__menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 0;
}

@media (max-width: 820px) {
  .topbar__nav { display: none; }
  .topbar__menu-btn { display: inline-flex; align-items: center; gap: 10px; }
  .topbar__menu-btn::after {
    content: ""; width: 18px; height: 1px; background: currentColor;
  }
  .topbar.is-open .topbar__nav {
    display: flex;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    background: var(--obsidian);
    border-bottom: 1px solid var(--line);
    padding: 28px var(--gutter) 36px;
    gap: 22px;
    align-items: flex-start;
  }
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(80px, 11vw, 160px) 0;
}

.hairline {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head .eyebrow { white-space: nowrap; }

/* ============================================================
   IMAGE SLOTS — visual placeholder treatment
   ============================================================ */

image-slot {
  --slot-bg: var(--obsidian-2);
  --slot-border: var(--line);
  --slot-text: var(--muted);
  background: var(--slot-bg);
  position: relative;
  overflow: hidden;
}

image-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 14px,
    color-mix(in oklch, var(--bone) 4%, transparent) 14px 15px
  );
  pointer-events: none;
}

/* ============================================================
   FOOTER (shared on all pages)
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in oklch, var(--obsidian) 96%, black);
  margin-top: 80px;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.site-footer__brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.1;
}

.site-footer__brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-top: 14px;
}

.site-footer__col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 500;
}

.site-footer__col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col a {
  font-family: var(--body);
  font-size: 17px;
  color: var(--bone-dim);
}

.site-footer__col a:hover { color: var(--ember); }

/* Desktop only: align the last footer column (Rechtliches) to its column's
   right edge so the link list visually lines up with "MMXXVI · MADE WITH
   CARE" in the bottom row. Both share the same right boundary (max-width
   + gutter padding match between .site-footer__inner and __bottom), so a
   text-align: right + flex flush-end on the <ul> snaps them onto the same
   vertical column. Mobile (≤ 820 px) collapses to a single-column stack
   where right-alignment would look awkward — so we gate this with
   min-width 821 px to leave the mobile layout untouched. */
@media (min-width: 821px) {
  .site-footer__col:last-child {
    text-align: right;
  }
  .site-footer__col:last-child ul {
    align-items: flex-end;
  }
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer__social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bone-dim);
  border-radius: 50%;
  transition: all .35s ease;
}

.site-footer__social a:hover {
  color: var(--obsidian);
  background: var(--ember);
  border-color: var(--ember);
}

.site-footer__social svg {
  width: 15px;
  height: 15px;
}

.site-footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.site-footer__bottom a:hover { color: var(--ember); }

@media (max-width: 820px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ============================================================
   BUTTONS / CTA
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .35s ease;
}

.btn::after {
  content: "→";
  font-family: var(--body);
  transition: transform .35s ease;
}

.btn:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.btn:hover::after { transform: translateX(4px); }

.btn--ember {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--obsidian);
}

.btn--ember:hover {
  background: transparent;
  color: var(--ember);
}

/* ============================================================
   FORMS
   ============================================================ */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: var(--bone);
  font-family: var(--body);
  font-size: 18px;
  outline: none;
  transition: border-color .3s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--ember);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--bone-dim) 50%),
                    linear-gradient(135deg, var(--bone-dim) 50%, transparent 50%);
  background-position: calc(100% - 14px) center, calc(100% - 8px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); font-style: italic; }

.radio-row {
  display: flex;
  gap: 24px;
  padding: 8px 0;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 17px;
  color: var(--bone-dim);
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
}

.radio-row input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}

.radio-row input[type="radio"]:checked {
  border-color: var(--ember);
}
.radio-row input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--ember);
  border-radius: 50%;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: clamp(40px, 6vw, 80px) 0;
}

.muted { color: var(--muted); }
.dim   { color: var(--bone-dim); }
.center { text-align: center; }
.italic { font-style: italic; }

/* ============================================================
   LANGUAGE TOGGLE — fixed top-right pill (DE / EN)
   ============================================================ */

.lang-toggle {
  position: fixed;
  /* Add safe-area-inset-top so the pill sits below the notch on devices
     with viewport-fit=cover. env() resolves to 0 elsewhere — same 18px
     visual offset preserved on every non-notched setup. */
  top: calc(18px + env(safe-area-inset-top, 0));
  right: 18px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: color-mix(in oklch, var(--obsidian) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
}

.lang-toggle button {
  background: none;
  border: 0;
  color: var(--bone-dim);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
  transition: color .3s ease;
}

.lang-toggle button:hover { color: var(--bone); }
.lang-toggle button.active { color: var(--ember); }

.lang-toggle .sep {
  width: 1px; height: 11px;
  background: var(--line);
  display: inline-block;
}

/* Reserve right-side gutter on the topbar so the fixed-position language
   pill doesn't crash into the last nav link. The clamp covers three
   regimes:
     · narrow desktop / wide tablet (~821–950px) where the full nav is
       shown and space is tightest — needs the 125px floor;
     · standard desktop where 13vw scales naturally;
     · ultra-wide where 160px caps the reservation. */
.topbar__inner { padding-right: clamp(125px, 13vw, 160px); }

@media (max-width: 480px) {
  .lang-toggle {
    top: calc(12px + env(safe-area-inset-top, 0));
    right: 12px;
    padding: 7px 12px;
  }
  /* The mobile pill is narrower (padding 7×12 + smaller right offset), so
     the topbar only needs ~105px reserved on the right. */
  .topbar__inner { padding-right: 105px; }
}

/* Pages with a topbar (every page except the hero on index.html, which
   sets data-topbar="false") — align the DE/EN pill onto the same row as
   the brand and the nav/menu text. Strategy: mirror the topbar's own
   vertical metrics. The topbar inner has `padding: 18px var(--gutter)` and
   the nav links / menu button use `padding: 6px 0`, so a pill anchored at
   `top: 18px` with `padding: 6px 14px` shares the same top edge, the same
   row height, and (since flex align-items: center handles the rest) the
   same baseline as the menu text — no transform translateY guesswork
   required. */
body:not([data-topbar="false"]) .lang-toggle {
  /* Mirror the topbar's safe-area padding so the pill stays vertically
     centred on the menu text, even on notched devices where the topbar
     content was pushed down by env(safe-area-inset-top). */
  top: calc(18px + env(safe-area-inset-top, 0));
  padding: 6px 14px;
}

/* ============================================================
   COOKIE CONSENT BANNER + SETTINGS MODAL
   ============================================================ */

/* Slim informational notice. With all fonts now bundled locally and
   YouTube already gated by an individual click, no consent toggle is
   needed — this is a transparency banner, not a consent UI. Kept compact
   enough that it never obscures the hero video on the index page. */
.cookie-banner {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  /* Lift the banner above the home-indicator zone on devices with
     viewport-fit=cover. On pages without cover (or non-iOS), env() is 0
     and the bottom inset stays at the original clamp value. */
  bottom: calc(clamp(12px, 2vw, 24px) + env(safe-area-inset-bottom, 0));
  z-index: 250;
  background: color-mix(in oklch, var(--obsidian) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px -10px rgba(0,0,0,0.4);
  transition: transform .45s ease, opacity .45s ease;
}
.cookie-banner.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-banner__text {
  margin: 0;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--bone-dim);
  flex: 1 1 320px;
}
.cookie-banner__text em { color: var(--bone); font-style: italic; }

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

/* "Details" — text-only secondary action so the primary CTA stays clear. */
.cookie-banner__link {
  background: none;
  border: 0;
  padding: 6px 4px;
  color: var(--bone-dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .3s ease;
}
.cookie-banner__link:hover { color: var(--ember); }

/* Primary CTA — single button (no Accept/Reject pair since nothing is
   actually being consented to under §25 TTDSG). */
.cookie-banner__btn,
.cookie-modal__btn {
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone);
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
  white-space: nowrap;
}
.cookie-banner__btn:hover,
.cookie-modal__btn:hover {
  border-color: var(--ember);
  color: var(--ember);
}
.cookie-banner__btn--ember,
.cookie-modal__btn--ember {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--obsidian);
}
.cookie-banner__btn--ember:hover,
.cookie-modal__btn--ember:hover {
  background: transparent;
  color: var(--ember);
}
.cookie-banner__btn {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--obsidian);
}
.cookie-banner__btn:hover {
  background: transparent;
  color: var(--ember);
}

@media (max-width: 520px) {
  .cookie-banner__inner {
    gap: 12px;
    padding: 12px 18px;
  }
  .cookie-banner__actions { justify-content: space-between; flex: 1 1 100%; }
}

/* Full-screen settings dialog reached via the "Einstellungen" button on the
   banner or via the Cookie-Einstellungen link in the footer. */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cookie-modal[hidden] { display: none !important; }

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cookie-modal__panel {
  position: relative;
  background: var(--obsidian);
  border: 1px solid var(--line);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 44px 40px 36px;
}

.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: color .3s ease;
}
.cookie-modal__close:hover { color: var(--ember); }

.cookie-modal__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0 0 14px;
  line-height: 1.15;
}
.cookie-modal__lede {
  margin: 0 0 28px;
  font-family: var(--body);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--bone-dim);
}

.cookie-modal__category {
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}
.cookie-modal__category:last-of-type {
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 28px;
}
.cookie-modal__category h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0 0 10px;
}
.cookie-modal__category p {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--bone-dim);
}

.cookie-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cookie-modal__panel { padding: 36px 24px 28px; max-height: 92vh; }
  .cookie-modal__actions { flex-direction: column-reverse; align-items: stretch; }
}
