/* ==========================================================================
   Royal Church — Design System
   Warm earth tones · Lustria serif + Lato sans · burgundy + gold on paper
   ========================================================================== */

:root {
  /* Surfaces — warm paper instead of clinical white */
  --c-bg: #f7f0df;
  --c-bg-soft: #ecdec0;
  --c-bg-warm: #e3d2ac;
  --c-bg-dark: #2c1d12;
  --c-bg-darker: #1f140c;

  /* Ink — warm browns instead of grey */
  --c-text: #261a10;
  --c-text-muted: #6b513a;
  --c-text-inverse: #f7f0df;
  --c-border: #cbb787;
  --c-border-soft: rgba(43, 26, 14, 0.12);

  /* Brand accents — ecclesiastical burgundy + gilded gold */
  --c-accent: #6e1f24;
  --c-accent-hover: #4d1418;
  --c-gold: #80591a;
  --c-gold-soft: #d4b260;
  --c-teal: #80591a;          /* alias kept for legacy selectors */
  --c-teal-soft: #ecdec0;

  /* Display type */
  --f-serif: "Lustria", "Cormorant Garamond", "Georgia", serif;
  --f-sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-hero: clamp(2.75rem, 6vw, 4.5rem);
  --fs-h1: clamp(2.15rem, 4.2vw, 3rem);
  --fs-h2: clamp(1.7rem, 3.2vw, 2.6rem);
  --fs-h3: clamp(1.3rem, 2.1vw, 1.6rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --max-width: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  --shadow-sm: 0 1px 0 rgba(46, 28, 14, 0.06), 0 6px 18px rgba(46, 28, 14, 0.06);
  --shadow-md: 0 2px 0 rgba(46, 28, 14, 0.05), 0 18px 38px rgba(46, 28, 14, 0.14);
  --shadow-warm: 0 24px 60px -28px rgba(110, 31, 36, 0.45);

  --t-fast: 180ms ease;
  --t-base: 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  /* Subtle paper grain — pure CSS, no external assets */
  background-image:
    radial-gradient(1100px 700px at 12% -8%, rgba(163, 122, 44, 0.10), transparent 55%),
    radial-gradient(900px 600px at 100% 110%, rgba(110, 31, 36, 0.08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-accent-hover); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--c-gold-soft); color: var(--c-text); }

/* Typography ---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: inherit;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.005em; }
p { margin: 0 0 1rem; }
.lead {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--c-text-muted);
  max-width: 60ch;
}
.eyebrow {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-gold);
  margin: 0 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* Layout -------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: var(--section-y) 0; }
.section-dark {
  background:
    radial-gradient(900px 600px at 80% 0%, rgba(163, 122, 44, 0.20), transparent 60%),
    var(--c-bg-dark);
  color: var(--c-text-inverse);
  position: relative;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #f4e8c8; }
.section-dark p { color: rgba(247, 240, 223, 0.82); }
.section-dark .lead { color: rgba(247, 240, 223, 0.78); }
.section-dark .eyebrow { color: var(--c-gold-soft); }
.section-soft {
  background: var(--c-bg-soft);
  position: relative;
}
.section-soft::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border) 18%, var(--c-border) 82%, transparent);
}

/* Header / Nav -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 240, 223, 0.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0.65rem 0;
}
.brand {
  font-family: var(--f-serif);
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.brand__mark {
  width: 30px; height: 30px;
  display: inline-block;
  background: var(--c-accent);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 2px rgba(247, 240, 223, 0.95), 0 0 0 3px var(--c-gold);
}
.brand__mark::before, .brand__mark::after {
  content: "";
  position: absolute;
  background: var(--c-gold-soft);
}
.brand__mark::before { top: 6px; bottom: 6px; left: 14px; width: 2px; }
.brand__mark::after { left: 9px; right: 9px; top: 13px; height: 2px; }

.nav { display: flex; align-items: center; gap: 1.85rem; }
.nav a {
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-text);
  position: relative;
  padding: 0.3rem 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
@media (hover: hover) {
  .nav a:hover { color: var(--c-accent); }
  .nav a:hover::after { transform: scaleX(1); }
}
.nav a[aria-current="page"] { color: var(--c-accent); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  flex-shrink: 0;
  z-index: 110;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--c-text);
  transition: transform var(--t-base), top var(--t-base), background var(--t-fast);
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -8px; left: 0; right: 0; transform-origin: center; }
.nav-toggle span::after { top: 8px; left: 0; right: 0; transform-origin: center; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-110%);
    transition: transform var(--t-base), box-shadow var(--t-base);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    box-shadow: none;
    visibility: hidden;
  }
  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
    box-shadow: 0 18px 40px -18px rgba(46, 28, 14, 0.35);
  }
  .nav a { padding: 0.95rem 0; width: 100%; border-bottom: 1px solid var(--c-border-soft); }
  .nav a:last-child { border-bottom: 0; }
}

/* Buttons ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.65rem;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  background: var(--c-accent);
  color: #f7f0df;
  position: relative;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-base);
  box-shadow: 0 1px 0 var(--c-gold), 0 18px 30px -22px rgba(110, 31, 36, 0.55);
}
.btn::after {
  content: "→";
  font-family: var(--f-serif);
  font-size: 1.05rem;
  line-height: 1;
  margin-left: 0.15rem;
  transition: transform var(--t-base);
}
.btn:hover { background: var(--c-accent-hover); color: #fff; box-shadow: 0 1px 0 var(--c-gold-soft), 0 22px 36px -22px rgba(110, 31, 36, 0.65); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn[data-close]::after { content: none; }
.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  box-shadow: none;
}
.btn--ghost:hover { background: var(--c-gold); color: #1f140c; border-color: var(--c-gold); box-shadow: 0 18px 30px -22px rgba(163, 122, 44, 0.6); }
.btn--link {
  padding: 0;
  background: transparent;
  color: inherit;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: none;
}
.btn--link::after {
  content: " →";
  font-family: var(--f-serif);
  font-size: 0.95rem;
  margin-left: 0.35rem;
  transition: transform var(--t-base);
  display: inline-block;
}
.btn--link:hover { background: transparent; color: var(--c-accent); }
.btn--link:hover::after { transform: translateX(4px); }

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  color: #f7f0df;
  background: var(--c-bg-darker);
  overflow: hidden;
  isolation: isolate;
}
.hero__media, .hero__media .ph {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(31, 20, 12, 0.20) 0%, rgba(31, 20, 12, 0.55) 55%, rgba(31, 20, 12, 0.92) 100%),
    radial-gradient(800px 500px at 18% 90%, rgba(110, 31, 36, 0.30), transparent 70%);
}
.hero__inner {
  padding: 9rem 0 4.5rem;
  max-width: 740px;
  position: relative;
}
.hero h1 {
  font-size: var(--fs-hero);
  color: #f7f0df;
  margin-bottom: 1.1rem;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.hero p {
  font-size: 1.18rem;
  line-height: 1.65;
  color: rgba(247, 240, 223, 0.92);
  margin-bottom: 1.85rem;
  max-width: 56ch;
}
.hero .eyebrow { color: var(--c-gold-soft) !important; }
.hero--page { min-height: 56vh; }
.hero--page .hero__inner { padding: 7rem 0 3.5rem; }

/* Placeholder image ---------------------------------------------------------
   Used while real photos are pending. Grok-images skill replaces .ph contents.
*/
.ph {
  position: relative;
  background:
    linear-gradient(135deg, #463222 0%, #5b412c 50%, #38271a 100%);
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(247, 240, 223, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(247, 240, 223, 0.06) 25%, transparent 25%);
  background-size: 28px 28px;
  opacity: 0.7;
}
.ph > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.ph:has(> img)::after { display: none; }

/* Cards --------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  color: var(--c-text);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color var(--t-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-gold);
}
.card:hover::after { border-color: var(--c-gold); inset: -4px; }
.card:hover h3 { color: var(--c-accent); }
.card__media { aspect-ratio: 4 / 3; }
.card__body {
  padding: 1.65rem 1.65rem 1.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
}
.card h3 {
  margin-bottom: 0.5rem;
  transition: color var(--t-fast);
}
.card p {
  color: var(--c-text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.card__cta { margin-top: auto; padding-top: 1rem; color: var(--c-accent); }

/* Featured / split section -------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0;
  align-items: stretch;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.section-dark .split {
  background: rgba(247, 240, 223, 0.04);
  border-color: rgba(247, 240, 223, 0.12);
  box-shadow: none;
}
.split__media { min-height: 280px; }
.split__body {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* Featured churches grid (large editorial cards) ---------------------------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) { .featured-grid { grid-template-columns: 1fr; } }
.feature {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: #f7f0df;
  background: #1f140c;
  isolation: isolate;
}
.feature .ph { position: absolute; inset: 0; z-index: 0; }
.feature .ph img { transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(31, 20, 12, 0) 35%, rgba(31, 20, 12, 0.55) 65%, rgba(31, 20, 12, 0.95) 100%);
  transition: background var(--t-base);
}
.feature::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(247, 240, 223, 0.2);
  z-index: 2;
  pointer-events: none;
  transition: border-color var(--t-base), inset var(--t-base);
}
.feature__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  z-index: 3;
  transform: translateY(0);
  transition: transform var(--t-base);
}
.feature__overlay h3 {
  color: #f7f0df;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  margin-bottom: 0.35rem;
  letter-spacing: -0.005em;
}
.feature__overlay p {
  color: rgba(247, 240, 223, 0.86);
  font-size: 0.96rem;
  margin: 0;
}
.feature:hover .ph img { transform: scale(1.06); }
.feature:hover::before { background: linear-gradient(180deg, rgba(110, 31, 36, 0.05) 0%, rgba(31, 20, 12, 0.6) 60%, rgba(31, 20, 12, 0.95) 100%); }
.feature:hover::after { border-color: var(--c-gold); }

/* Church gallery (3 photos per page) --------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  margin: 2.5rem 0 3.5rem;
}
.gallery > * {
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.gallery > *:nth-child(1) { grid-row: 1 / 3; aspect-ratio: 4 / 5; }
.gallery > *:nth-child(2) { aspect-ratio: 1 / 1; }
.gallery > *:nth-child(3) { aspect-ratio: 1 / 1; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery > * { aspect-ratio: 4 / 3 !important; grid-row: auto !important; }
}

/* Fact list ----------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem 2.25rem;
  list-style: none;
  padding: 1.85rem 0;
  margin: 2rem 0 2.5rem;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
.facts::before, .facts::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  transform: translate(-50%, -50%);
}
.facts::before { top: 0; }
.facts::after { bottom: -3px; top: auto; }
.facts dt {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.facts dd {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 1.18rem;
  color: var(--c-text);
  line-height: 1.3;
}

/* Prose --------------------------------------------------------------------- */
.prose {
  max-width: 68ch;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--c-text);
}
.prose h2, .prose h3 { margin-top: 2.75rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--c-gold); }
.prose blockquote {
  border-left: 2px solid var(--c-gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.55;
  color: var(--c-text);
  margin: 2rem 0;
  position: relative;
}
.prose blockquote::before {
  content: "“";
  position: absolute;
  left: -0.05rem;
  top: -1.5rem;
  font-family: var(--f-serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--c-gold);
  opacity: 0.4;
  pointer-events: none;
}

/* Tables (legal pages, cookies) -------------------------------------------- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.96rem;
  background: var(--c-bg);
  box-shadow: var(--shadow-sm);
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border: 1px solid var(--c-border);
  vertical-align: top;
}
.legal-table th {
  background: var(--c-bg-soft);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text);
}

/* Map (static) -------------------------------------------------------------- */
.map-static {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--c-bg-soft);
  position: relative;
  border: 1px solid var(--c-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-static .ph { position: absolute; inset: 0; }
.map-caption {
  font-size: 0.86rem;
  color: var(--c-text-muted);
  margin-top: 0.65rem;
  font-style: italic;
}

/* Footer -------------------------------------------------------------------- */
.site-footer {
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(163, 122, 44, 0.20), transparent 65%),
    var(--c-bg-darker);
  color: rgba(247, 240, 223, 0.78);
  padding: 5rem 0 2.25rem;
  font-size: 0.95rem;
  border-top: 4px solid var(--c-accent);
}
.site-footer h3 {
  font-family: var(--f-sans);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-gold-soft);
  margin: 0 0 1.1rem;
}
.site-footer a { color: rgba(247, 240, 223, 0.8); transition: color var(--t-fast); }
.site-footer a:hover { color: var(--c-gold-soft); }
.site-footer .brand { color: #f7f0df; }
.site-footer .brand__mark {
  box-shadow: 0 0 0 2px var(--c-bg-darker), 0 0 0 3px var(--c-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.75rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(247, 240, 223, 0.10);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.65rem;
  font-size: 0.84rem;
  color: rgba(247, 240, 223, 0.55);
  flex-wrap: wrap;
  gap: 1rem;
  letter-spacing: 0.02em;
}
@media (max-width: 740px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Cookie banner ------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--c-bg-darker);
  color: #f7f0df;
  border-top: 3px solid var(--c-gold);
  padding: 1.1rem var(--gutter);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.4);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.93rem; max-width: 60ch; color: rgba(247, 240, 223, 0.86); }
.cookie-banner a { color: var(--c-gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.cookie-banner button {
  padding: 0.65rem 1.05rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  background: transparent;
  color: #f7f0df;
  border: 1px solid rgba(247, 240, 223, 0.35);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.cookie-banner button:hover {
  background: var(--c-gold-soft);
  color: var(--c-bg-darker);
  border-color: var(--c-gold-soft);
}
.cookie-banner button[data-consent="accept"] {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #f7f0df;
}
.cookie-banner button[data-consent="accept"]:hover {
  background: var(--c-accent-hover);
  color: #fff;
  border-color: var(--c-accent-hover);
}

/* Cookie modal */
.cookie-modal[hidden] { display: none; }
.cookie-modal {
  position: fixed; inset: 0;
  z-index: 10000;
  background: rgba(31, 20, 12, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cookie-modal__inner {
  background: var(--c-bg);
  color: var(--c-text);
  max-width: 580px;
  width: 100%;
  padding: 2.25rem;
  border-radius: 2px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-modal h3 { margin-top: 0; }
.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--c-border-soft);
  gap: 1rem;
}
.cookie-toggle:last-of-type { border-bottom: 0; }
.cookie-toggle__info { flex: 1; }
.cookie-toggle__info strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  font-family: var(--f-sans);
  letter-spacing: 0.02em;
}
.cookie-toggle__info span { font-size: 0.85rem; color: var(--c-text-muted); }
.cookie-toggle__info[data-disabled] strong::after {
  content: " · always on";
  color: var(--c-text-muted);
  font-weight: 400;
  letter-spacing: 0;
}
.switch {
  position: relative;
  width: 42px; height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.switch input { opacity: 0; position: absolute; inset: 0; }
.switch span {
  position: absolute; inset: 0;
  background: var(--c-border);
  border-radius: 24px;
  transition: background var(--t-fast);
}
.switch span::before {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--t-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.switch input:checked + span { background: var(--c-accent); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:disabled + span { opacity: 0.6; }

.cookie-modal__actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Skip link ----------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px; left: 0;
  background: var(--c-accent);
  color: #f7f0df;
  padding: 0.85rem 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  z-index: 200;
}
.skip-link:focus { top: 0; color: #f7f0df; }

/* Utilities ----------------------------------------------------------------- */
.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;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-head {
  margin-bottom: 3rem;
  max-width: 64ch;
}
.section-head h2 { margin-bottom: 0.85rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border) 20%, var(--c-border) 80%, transparent);
  margin: 3.5rem 0;
  position: relative;
}
.divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--c-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

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

/* logo (brand) */
.brand__logo {
  display: inline-block;
  height: clamp(44px, 5vw, 60px); margin: -8px 0;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
