/* ============================================================
   FONTS — self-hosted variable fonts, no external requests
   ============================================================ */

/* === CRITICAL:base:start === */
@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/Cinzel/cinzel.woff2') format('woff2'),
       url('../fonts/Cinzel/cinzel.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/inter.woff2') format('woff2'),
       url('../fonts/Inter/inter.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   ROOT DESIGN TOKENS  — authoritative values; names documented in specs/theme.md + sites/specs/design-catalog.md
   ============================================================ */
:root {
  --color-bg:          #faf8f5;
  --color-surface:     #f0ede8;
  --color-surface-alt: #e6e0d8;
  --color-text:        #111111;
  --color-text-muted:  #666666;
  --color-heading:     #49080e;
  --color-accent:      #00662c;
  --color-divider:     #ddd8d0;
  --color-error:       #c0392b;

  --font-hero:  clamp(2rem, 5vw, 3.5rem);
  --font-h2:    clamp(1.5rem, 3vw, 2rem);
  --font-body:  1rem;
  --font-small: 0.875rem;
  --font-quote: clamp(1.1rem, 2vw, 1.4rem);

  --space-xs:  0.25rem;
  --space-s:   0.5rem;
  --space-m:   1rem;
  --space-l:   2rem;
  --space-xl:  4rem;
  --space-2xl: 8rem;

  --content-width: 1000px;   /* shared reading/content frame (homepage, tables) */
  --prose-measure: 680px;    /* comfortable reading line length */
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  font-size: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--color-heading);
}

em { color: var(--color-accent); font-style: normal; }

a { color: inherit; text-decoration: none; }

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

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--space-l);
}

.section-heading {
  text-align: center;
  font-size: var(--font-h2);
  margin-bottom: var(--space-xl);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 102;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-m) var(--space-l);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled,
.navbar.menu-open {
  background: #1a1a1a;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.navbar-logo img { height: 40px; width: auto; }


.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-l);
  list-style: none;
}

.navbar-links a {
  font-size: var(--font-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.navbar-links a:hover { opacity: 1; color: var(--color-accent); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  min-width: 200px;
  padding: var(--space-xs) 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu a {
  display: block;
  padding: var(--space-s) var(--space-m);
  white-space: nowrap;
  color: #ffffff;
  opacity: 1;
  text-transform: none;
  letter-spacing: 0;
}

.dropdown-menu a:hover { background: #222222; color: var(--color-accent); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-xs);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 101;
  background: #111111;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 4.5rem 1.25rem 3rem;
}

.mobile-menu.open { display: flex; }

.mobile-nav-content {
  width: 100%;
  max-width: 480px;
}

/* ============================================================
   LINK CARDS — mobile nav
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 1.5rem 0 0.75rem;
  font-size: 0.82rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2a2a2a;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.link-card:hover,
.link-card:focus-visible {
  background: var(--color-surface-alt);
  border-color: var(--color-divider);
  outline: none;
}
.link-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.link-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--color-accent);
  line-height: 1;
}

/* Link-card overrides for dark mobile overlay */
.mobile-menu .link-card {
  background: #1a1a1a;
  color: #ffffff;
  border-color: var(--color-accent);
}
.mobile-menu .link-card:hover,
.mobile-menu .link-card:focus-visible {
  background: #222222;
  border-color: #ffffff;
}

/* ============================================================
   ACTIVE NAV LINK (current page)
   ============================================================ */
.navbar-links a[aria-current="page"] {
  color: var(--color-accent);
  opacity: 1;
}

@media (max-width: 768px) {
  .container { padding-inline: var(--space-m); }
  .navbar { padding: var(--space-m); }
  .navbar-links { display: none; }
  .hamburger { display: flex; }
}
/* === CRITICAL:base:end === */

/* ============================================================
   HERO SLIDER
   ============================================================ */

/* === CRITICAL:hero-home:start === */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  position: relative;
  min-width: 100vw;
  height: 100%;
  flex-shrink: 0;
}

.hero-slide picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  padding-inline: var(--space-l);
  text-align: center;
}

.hero-content h1 {
  color: #faf8f5;
  font-size: var(--font-hero);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-dots {
  position: absolute;
  bottom: var(--space-l);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-s);
}

/* ============================================================
   BUTTONS & DOTS (shared)
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: var(--font-small);
  letter-spacing: 0.08em;
  padding: var(--space-m) var(--space-xl);
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.dot.active { background: var(--color-accent); }

@media (max-width: 768px) {
  .hero-content { bottom: var(--space-xl); }
}
/* === CRITICAL:hero-home:end === */

/* ============================================================
   PAGE HERO (inner pages — full-viewport image with overlay)
   ============================================================ */

/* === CRITICAL:page-hero:start === */
.page-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: flex-end;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.72) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-xl);
  width: 100%;
  text-align: center;
}

.page-hero-content h1 {
  font-size: var(--font-hero);
  color: #faf8f5;
}

.page-hero-sub {
  margin-top: var(--space-s);
  font-size: var(--font-small);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page-hero--short {
  height: auto;
  aspect-ratio: 16 / 9;
}
/* === CRITICAL:page-hero:end === */

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* === CRITICAL:about:start === */
.about-intro {
  padding-block: var(--space-xl);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-portrait-col {
  position: sticky;
  top: calc(80px + var(--space-l));
}

.about-portrait-col picture {
  display: block;
  width: 100%;
}

.about-portrait-col img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}

.about-text-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  padding-top: var(--space-s);
}

.about-text-col p.about-greeting {
  font-family: 'Cinzel', serif;
  color: var(--color-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: 0.05em;
}

.about-text-col p {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-text-col a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-text-col a:hover {
  color: var(--color-heading);
}

@media (max-width: 768px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }

  .about-portrait-col {
    position: static;
    max-width: 260px;
    margin-inline: auto;
  }
}
/* === CRITICAL:about:end === */

/* ============================================================
   ONE-LINER
   ============================================================ */
.one-liner {
  background: var(--color-surface);
  padding-block: var(--space-xl);
  text-align: center;
}

.one-liner h2 {
  font-size: var(--font-h2);
  margin-inline: auto;
  margin-bottom: var(--space-l);
}

/* Mission portrait — small, centred, sits directly on top of the rule */
.mission-figure {
  display: block;
  max-width: 180px;
  margin: 0 auto;
}

.mission-figure img { width: 100%; height: auto; }

.mission-rule {
  border: none;
  border-top: 1px solid var(--color-text);
  max-width: var(--content-width);
  margin: 0 auto;
}

.one-liner .mission {
  max-width: var(--content-width);
  margin-inline: auto;
  margin-block: var(--space-m);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1.7;
  text-align: center;
  text-box: trim-both cap alphabetic;
}

.one-liner p {
  max-width: var(--content-width);
  margin-inline: auto;
  margin-top: var(--space-l);
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: left;
}

/* ============================================================
   WHAT I DO — tabular (two columns) on desktop, accordion on mobile
   ============================================================ */
.gruende {
  padding-block: var(--space-xl);
}

.gruende-list {
  list-style: none;
  max-width: var(--content-width);
  margin-inline: auto;
  border-top: 1px solid var(--color-divider);
}

/* Desktop: title | description as a two-column row, separated by rules. */
.gruende-item {
  border-bottom: 1px solid var(--color-divider);
  display: grid;
  grid-template-columns: 22% 1fr;
  column-gap: var(--space-l);
  align-items: start;
}

.gruende-trigger {
  display: flex;
  align-items: baseline;
  gap: var(--space-m);
  width: 100%;
  padding: var(--space-l) 0;
  background: none;
  border: none;
  color: var(--color-heading);
  text-align: left;
  cursor: default;        /* desktop: static, non-interactive */
  pointer-events: none;
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.gruende-number {
  font-family: 'Inter', sans-serif;
  font-size: var(--font-small);
  font-weight: 500;
  color: var(--color-accent);
  opacity: 0.7;
  min-width: 2rem;
}

.gruende-title {
  flex: 1;
  text-transform: uppercase;
  transition: color 0.2s;
}

.gruende-arrow { display: none; }   /* desktop: no chevron */

.gruende-body {
  padding: var(--space-l) 0;
}

.gruende-body-inner {
  overflow: visible;
}

.gruende-body p {
  color: var(--color-text-muted);
  font-size: var(--font-body);
  line-height: 1.7;
}

/* Mobile: collapse back to the foldable accordion. */
@media (max-width: 768px) {
  .gruende-list { max-width: 540px; }

  .gruende-item { display: block; }

  .gruende-trigger {
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    padding: var(--space-m) 0;
    font-size: 1.25rem;
  }

  .gruende-trigger:hover .gruende-title { color: var(--color-accent); }

  .gruende-arrow {
    display: block;
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform 0.35s ease;
  }

  .gruende-item.open .gruende-arrow { transform: rotate(180deg); }

  .gruende-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    padding: 0 0 0 calc(2rem + var(--space-m));
  }

  .gruende-item.open .gruende-body { grid-template-rows: 1fr; }

  .gruende-body-inner { overflow: hidden; }

  .gruende-body p { padding-bottom: var(--space-m); }
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: var(--color-surface);
  padding-block: var(--space-xl);
  text-align: center;
}

.cta-strip h2 {
  font-size: var(--font-h2);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-l);
}

/* ============================================================
   PAGE HEADER (inner pages — compact bar)
   ============================================================ */

/* === CRITICAL:page-header:start === */
.page-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  padding-top: calc(80px + var(--space-l));
  padding-bottom: var(--space-l);
  text-align: center;
}

.page-header h1 {
  font-size: var(--font-h2);
  color: var(--color-heading);
}

.page-subtitle {
  font-size: var(--font-small);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.page-header:has(.page-subtitle) {
  padding-bottom: var(--space-s);
}

.blog-post-date {
  font-size: var(--font-small);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}
/* === CRITICAL:page-header:end === */

/* ============================================================
   SHARED CARD GRID
   ============================================================ */

/* === CRITICAL:cards:start === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
  list-style: none;
  margin-bottom: var(--space-xl);
}

.content-card {
  background: var(--color-surface);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.content-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.content-card-image picture,
.content-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-card-body {
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Type/section label strip shown above a card grid */
.card-group-header {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}

.card-group-header::before,
.card-group-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}

.card-group-header h2 {
  font-size: 1rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
  color: var(--color-heading);
  white-space: nowrap;
  font-weight: 400;
}

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* Card body typography — shared between publications and blog index */
.pub-meta {
  font-size: var(--font-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-s);
}

.pub-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--color-heading);
  line-height: 1.4;
  margin-bottom: var(--space-m);
  transition: color 0.2s;
}

.pub-desc {
  font-size: var(--font-small);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-m);
}
/* === CRITICAL:cards:end === */

/* ============================================================
   PUBLICATIONS
   ============================================================ */

/* === CRITICAL:publications:start === */
.publications-section {
  padding-block: var(--space-xl);
}

.publications-section .container {
  max-width: 1400px;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-m);
  list-style: none;
  margin-top: auto;
}

.pub-links a {
  font-size: var(--font-small);
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pub-links a:hover { color: var(--color-text); }

.pub-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-s);
  font-style: italic;
}

/* === CRITICAL:publications:end === */

/* ============================================================
   OFFERS PAGE — overlay cards with hover-reveal details
   ============================================================ */

/* === CRITICAL:offers:start === */
.offers-intro {
  padding-block: var(--space-l);
  text-align: center;
}

.offers-intro-text {
  max-width: var(--content-width);
  margin-inline: auto;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.75;
  color: var(--color-text-muted);
}

.offers-section {
  padding-block: var(--space-m) var(--space-xl);
}

.offers-section .container {
  max-width: 1400px;
}

.offer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-m);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
}

.offer-card {
  position: relative;
  width: calc((100% - 2 * var(--space-m)) / 3);
  aspect-ratio: 1;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--color-surface);
}

.offer-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.offer-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offer-card:hover .offer-card-img { transform: scale(1.04); }

.offer-card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-m);
  background: linear-gradient(to top,
              var(--color-bg) 0%,
              var(--color-bg) 17%,
              rgba(250, 248, 245, 0.9) 20%,
              rgba(250, 248, 245, 0) 27%);
  transition: background 0.3s ease;
}

.offer-card:hover .offer-card-body,
.offer-card:focus-within .offer-card-body {
  background: rgba(250, 248, 245, 0.88);
}

.offer-card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.offer-card-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.offer-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--color-heading);
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin: 0;
}

/* Optional second line under the title; keeps the title's former size */
.offer-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  color: var(--color-heading);
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin: 0;
}

.offer-card-extra {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

/* Generous cap so revealed text grows upward from the bottom into the free
   space above; real clipping is the card's top edge when content overshoots. */
.offer-card:hover .offer-card-extra,
.offer-card:focus-within .offer-card-extra {
  max-height: 30rem;
  opacity: 1;
}

.offer-desc {
  font-size: var(--font-small);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 var(--space-xs);
}

.offer-meta {
  font-size: var(--font-small);
  color: var(--color-accent);
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-xs);
}

.offer-fit {
  font-size: var(--font-small);
  color: var(--color-text-muted);
  margin: 0;
}

/* Mobile: drop the overlay, stack image over a static surface panel (details always shown) */
@media (max-width: 768px) {
  .offer-card {
    width: 100%;
    aspect-ratio: unset;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .offer-card-img {
    position: static;
    width: 100%;
    height: 220px;
    flex-shrink: 0;
  }

  .offer-card-img img { height: 220px; }

  .offer-card-body {
    position: static;
    background: var(--color-surface);
    justify-content: flex-start;
    gap: var(--space-s);
  }

  .offer-card:hover .offer-card-body { background: var(--color-surface); }

  .offer-card-extra {
    max-height: none;
    opacity: 1;
    overflow: visible;
  }
}
/* === CRITICAL:offers:end === */

/* ============================================================
   CONTACT FORM
   ============================================================ */
/* === CRITICAL:contact:start === */
.contact-section {
  padding-block: var(--space-xl);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(to right, var(--color-bg), var(--color-bg) calc(100% - 520px), transparent calc(100% - 80px)),
    url('../images/crystalball_maerchendom.jpg');
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
  min-height: 80vh;
}

.contact-intro {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.contact-form {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.form-label {
  font-size: var(--font-small);
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1px solid var(--color-divider);
  border-radius: 2px;
  padding: var(--space-s) var(--space-m);
  font-family: 'Inter', sans-serif;
  font-size: var(--font-body);
  line-height: 1.5;
  width: 100%;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: '▾';
  position: absolute;
  right: var(--space-m);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
}

.topic-hint {
  font-size: var(--font-small);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.55;
  min-height: 1.2em;
  margin-top: calc(-1 * var(--space-s));
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-s);
}

.form-checkbox {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-checkbox.field-error {
  outline: 2px solid var(--color-error);
  outline-offset: 2px;
}

.form-checkbox-label {
  font-size: var(--font-small);
  color: var(--color-text-muted);
  line-height: 1.6;
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-input.field-error,
.form-select.field-error,
.form-textarea.field-error {
  border-color: var(--color-error);
}

.form-error-msg {
  font-size: var(--font-small);
  color: var(--color-error);
  min-height: 1.2em;
}

.form-submit-wrap {
  display: flex;
  justify-content: flex-end;
}

.btn-primary[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.form-banner-error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid var(--color-error);
  color: var(--color-error);
  border-radius: 2px;
  padding: var(--space-s) var(--space-m);
  font-size: var(--font-small);
}

.form-success-msg {
  max-width: 640px;
  margin-inline: auto;
  padding: var(--space-l);
  border: 1px solid var(--color-divider);
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.success-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.03em;
}

.summary-intro {
  margin-top: var(--space-m);
  color: var(--color-text-muted);
  font-size: var(--font-small);
  letter-spacing: 0.03em;
}

.summary-table {
  width: 100%;
  margin-top: var(--space-m);
  border-collapse: collapse;
  font-size: 0.9rem;
}

.summary-table th,
.summary-table td {
  padding: 0.4em 0;
  vertical-align: top;
  text-align: left;
}

.summary-table th {
  color: var(--color-text-muted);
  font-weight: 500;
  width: 30%;
  padding-right: var(--space-m);
  white-space: nowrap;
}

.summary-table td {
  color: var(--color-text);
  white-space: pre-wrap;
}

.summary-table tr + tr th,
.summary-table tr + tr td {
  border-top: 1px solid var(--color-divider);
  padding-top: 0.5em;
}

.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

@media (max-width: 768px) {
  .contact-section {
    background-image: none;
    min-height: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit-wrap {
    justify-content: stretch;
  }

  .form-submit-wrap .btn-primary {
    width: 100%;
    text-align: center;
  }
}
/* === CRITICAL:contact:end === */

/* ============================================================
   PARTNER & CREDITS PAGE
   ============================================================ */
/* === CRITICAL:credits:start === */
.credits-section {
  padding-block: var(--space-l);
}

.credits-section .container {
  max-width: 60ch;
}

.credits-section + .credits-section {
  border-top: 1px solid var(--color-divider);
}

.credits-section h2 {
  text-align: center;
  font-size: var(--font-h2);
  margin-bottom: var(--space-m);
}

.credits-category-name,
.credits-photographer {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-m);
}

.credits-category-name::before,
.credits-category-name::after,
.credits-photographer::before,
.credits-photographer::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}

.credits-category {
  margin-bottom: var(--space-l);
}

.credits-partner-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.credits-partner-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-s);
  padding-block: var(--space-xs);
}

.credits-partner-item::before {
  content: '◆';
  color: var(--color-accent);
  font-size: 0.5rem;
  flex-shrink: 0;
}

.credits-partner-name {
  font-weight: 600;
}

.credits-partner-name a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.credits-intro {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--space-l);
}

.credits-partner-desc {
  font-size: var(--font-small);
  color: var(--color-text-muted);
}

.credits-photo-block {
  margin-bottom: var(--space-l);
}

.credits-photo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.credits-photo-list li {
  font-size: var(--font-small);
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--color-divider);
}

.credits-photo-alt {
  color: var(--color-text);
}

.credits-photo-page {
  color: var(--color-text-muted);
}

.credits-empty {
  font-size: var(--font-small);
  color: var(--color-text-muted);
}
/* === CRITICAL:credits:end === */

/* === CRITICAL:blog:start === */

/* ─── Blog index ─── */
.blog-section {
  padding-block: var(--space-xl);
}

.blog-section .container {
  max-width: 1400px;
}

.blog-intro-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: var(--prose-measure);
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.blog-card-link:hover .pub-title {
  color: var(--color-accent);
}

/* ─── Blog post ─── */
.blog-post {
  padding-block: var(--space-xl);
}

.blog-post-container {
  max-width: 1280px;
}

.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr fit-content(420px);
  gap: var(--space-xl);
  align-items: start;
}

.blog-post-main {
  max-width: 940px;
  min-width: 0;
}

.blog-toc-sidebar {
  position: sticky;
  top: calc(80px + var(--space-m));
  align-self: start;
  max-height: calc(100vh - 80px - var(--space-m) * 2);
  overflow-y: auto;
}

.blog-back-link {
  display: block;
  font-size: var(--font-small);
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-m);
}

.blog-back-link:hover {
  color: var(--color-accent);
}

.toc-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.blog-toc-sidebar .toc {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-m);
  padding: var(--space-s) var(--space-m);
}

.blog-toc-sidebar .toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.blog-toc-sidebar .toc li {
  margin-bottom: var(--space-xs);
  counter-increment: toc-counter;
}

.blog-toc-sidebar .toc a::before {
  content: counter(toc-counter) ". ";
  color: var(--color-text-muted);
}

.blog-toc-sidebar .toc a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
  display: block;
}

.blog-toc-sidebar .toc a:hover {
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .blog-post-layout {
    grid-template-columns: 1fr;
  }
  .blog-toc-sidebar {
    position: static;
    order: -1;
  }
  .blog-toc-sidebar .toc {
    display: inline-block;
  }
}

/* ─── H3 entries in TOC (nested ul) ─── */
.blog-toc-sidebar .toc ul ul {
  counter-reset: none;
  padding-left: var(--space-m);
  margin-top: calc(var(--space-xs) / 2);
  margin-bottom: 0;
}
.blog-toc-sidebar .toc ul ul li {
  counter-increment: none;
  margin-bottom: calc(var(--space-xs) / 2);
}
.blog-toc-sidebar .toc ul ul a::before {
  content: none;
}
.blog-toc-sidebar .toc ul ul a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ─── Blog post closing greeting ─── */
.blog-post-closing {
  margin-top: var(--space-xl);
  text-align: center;
}
.blog-post-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
  color: var(--color-text-muted);
}
.blog-post-divider::before,
.blog-post-divider::after {
  content: '';
  width: 5rem;
  height: 1px;
  background: var(--color-divider);
}
.blog-post-greeting {
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 0;
}

/* ─── Blog post prev/next nav ─── */
.blog-post-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-l);
  margin-top: var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--color-divider);
}

.blog-nav-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-decoration: none;
  max-width: 45%;
}

.blog-nav-prev {
  align-items: flex-start;
  text-align: left;
}

.blog-nav-next {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}

.blog-nav-label {
  font-size: var(--font-small);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-nav-title {
  color: var(--color-heading);
  font-weight: 500;
}

.blog-nav-item:hover .blog-nav-title {
  color: var(--color-accent);
}

.blog-post-container h2 {
  font-family: 'Cinzel', serif;
  font-size: var(--font-h2);
  color: var(--color-heading);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-m);
  scroll-margin-top: calc(80px + var(--space-m));
}

.blog-post-container h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: var(--color-heading);
  margin-top: var(--space-l);
  margin-bottom: var(--space-s);
  scroll-margin-top: calc(80px + var(--space-m));
}

.blog-post-container h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-m);
  margin-bottom: var(--space-xs);
}

.blog-post-container p {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--space-m);
}

.blog-post-container em {
  color: inherit;
  font-style: italic;
}

.blog-post-container ul,
.blog-post-container ol {
  padding-left: var(--space-l);
  margin-bottom: var(--space-m);
  color: var(--color-text);
  line-height: 1.8;
}

.blog-post-container li { margin-bottom: var(--space-xs); }

.blog-post-container blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-m);
  margin: var(--space-m) 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.blog-post-container a { color: var(--color-accent); }
.blog-post-container a:hover { text-decoration: underline; }

.blog-post-container code {
  background: var(--color-surface);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  font-size: 0.9em;
}

.blog-post-container table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: var(--space-m);
  font-size: var(--font-small);
}

.blog-post-container th,
.blog-post-container td {
  border: 1px solid var(--color-divider);
  padding: var(--space-s) var(--space-m);
  text-align: left;
}

.blog-post-container th {
  background: var(--color-surface);
  font-weight: 600;
  color: var(--color-text);
}

.blog-post-container picture,
.blog-post-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: var(--space-m);
}

/* ─── Admonition (callout boxes) ─── */
.admonition {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-m) var(--space-l);
  margin-block: var(--space-m);
  border-radius: 0 2px 2px 0;
}

.admonition.info { border-color: var(--color-accent); }

.admonition-title { display: none; }

.admonition p { margin-bottom: 0; }

/* ─── Details / accordion ─── */
.blog-post-container details {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 4px;
  margin-block: var(--space-l);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.blog-post-container details > summary {
  cursor: pointer;
  padding: var(--space-m) var(--space-l);
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

.blog-post-container details > summary::before {
  content: '▶';
  font-size: 0.7em;
  transition: transform 0.2s;
  display: inline-block;
  flex-shrink: 0;
}

.blog-post-container details[open] > summary::before {
  transform: rotate(90deg);
}

.blog-post-container details > summary::-webkit-details-marker { display: none; }

.blog-post-container details > *:not(summary) {
  padding: var(--space-m) var(--space-l) var(--space-l);
}

/* ─── Image grid ─── */
.img-grid {
  display: grid;
  /* column count comes from the inline --cols set by the grid build module */
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: var(--space-s);
  margin-bottom: var(--space-m);
}

.img-grid picture,
.img-grid img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  /* collapse any multi-column grid to 2 across on small screens */
  .img-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Lightbox-clickable images ─── */
.img-grid a.glightbox { display: block; }
.blog-post-container a.glightbox { cursor: zoom-in; }

/* ─── Figure / figcaption ─── */
figure {
  margin-bottom: var(--space-m);
}

figcaption {
  font-size: var(--font-small);
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: var(--space-xs);
}

/* ─── Video embed ─── */
.video-embed {
  margin-bottom: var(--space-m);
}

.video-embed video {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;       /* keep portrait reels from dominating the column */
  border-radius: 4px;
  background: #000;       /* fills the reserved aspect-ratio box before load */
}

/* === CRITICAL:blog:end === */

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
  padding-top: calc(80px + var(--space-xl));
  padding-bottom: var(--space-2xl);
}

.legal-page h1 {
  font-size: var(--font-h2);
  margin-bottom: var(--space-s);
}

.legal-page h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-top: var(--space-l);
  margin-bottom: var(--space-xs);
}

.legal-page p,
.legal-page li {
  color: var(--color-text-muted);
  font-size: var(--font-small);
  line-height: 1.8;
  margin-bottom: var(--space-s);
}

.legal-page ul {
  padding-left: var(--space-l);
  margin-bottom: var(--space-m);
}

.legal-page a { color: var(--color-accent); }
.legal-page a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  padding-block: var(--space-l);
  text-align: center;
  font-size: var(--font-small);
  color: #999999;
}

.footer a { color: #999999; }
.footer a:hover { color: #ffffff; }

.footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-l);
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: var(--space-l);
  list-style: none;
}

.footer-social {
  display: flex;
  gap: var(--space-m);
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  color: var(--color-accent);
  transition: color 0.2s;
}

.footer-social a:hover { color: #ffffff; }
