/* ===================================================================
   ludwig.guide — "The Candlelit Archive"
   Hand-written CSS, theming via [data-theme] custom properties.
   See docs/design-system.md for the full brief.
   =================================================================== */

/* ---------- Self-hosted variable fonts (latin + latin-ext) ---------- */
@font-face {
    font-family: 'Fraunces';
    src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
    font-weight: 300 900; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'Fraunces';
    src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
    font-weight: 300 900; font-style: normal; font-display: swap;
    unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: 'Fraunces';
    src: url('/assets/fonts/fraunces-latin-italic.woff2') format('woff2');
    font-weight: 300 900; font-style: italic; font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'Fraunces';
    src: url('/assets/fonts/fraunces-latin-ext-italic.woff2') format('woff2');
    font-weight: 300 900; font-style: italic; font-display: swap;
    unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-latin.woff2') format('woff2');
    font-weight: 100 900; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
    font-weight: 100 900; font-style: normal; font-display: swap;
    unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* Metric-matched fallbacks to minimise font-swap CLS */
@font-face { font-family: 'Fraunces Fallback'; src: local('Georgia'); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'); size-adjust: 107%; }

/* ----------------------------- Tokens ----------------------------- */
:root {
    --font-display: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
    --font-sans: 'Inter', 'Inter Fallback', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    /* Fluid type scale */
    --step--1: clamp(.83rem, .8rem + .15vw, .92rem);
    --step-0:  clamp(1.06rem, 1rem + .3vw, 1.19rem);
    --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
    --step-2:  clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
    --step-3:  clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
    --step-4:  clamp(2.3rem, 1.7rem + 3vw, 3.8rem);
    --step-5:  clamp(3rem, 2rem + 5vw, 5.6rem);
    --step-7:  clamp(3.5rem, 2rem + 8vw, 8rem);

    /* Space scale */
    --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2rem;
    --space-5: 3rem; --space-6: 4.5rem; --space-7: 7rem;

    --maxw: 64rem;
    --radius: 14px; --radius-sm: 9px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --shadow: 0 18px 50px -24px rgba(0,0,0,.55);
}

/* Dark (default) — aged paper at night */
[data-theme="dark"] {
    --bg: #14110E; --bg-2: #1A1611; --surface: #1C1813; --surface-2: #241F18; --surface-3: #39301F;
    --text: #F2EBDD; --muted: #B8AE9C; --border: rgba(242,235,221,.08);
    --accent: #C9A24B; --accent-2: #7D9B8C; --accent-ink: #1A140A; --accent-hover: #E0B83A;
    --scrim: linear-gradient(180deg, rgba(20,17,14,.12) 0%, rgba(20,17,14,.45) 50%, rgba(20,17,14,.92) 100%);
    --hero-fallback: radial-gradient(120% 120% at 70% 10%, #3a2c1b 0%, #241a12 45%, #140f0a 100%);
    --photo-bg: #241F18;
}
/* Light — parchment / old map */
[data-theme="light"] {
    --bg: #F7F1E3; --bg-2: #EFE6D2; --surface: #FBF6EC; --surface-2: #F1E8D6; --surface-3: #E7D9BF;
    --text: #2A2118; --muted: #5A4F3E; --border: rgba(42,33,24,.12);
    --accent: #8A5E16; --accent-2: #4F6E6C; --accent-ink: #FBF6EC; --accent-hover: #A06C1A;
    /* The hero is a cinematic dark title card in BOTH themes so white text stays legible. */
    --scrim: linear-gradient(180deg, rgba(20,17,14,.12) 0%, rgba(20,17,14,.45) 50%, rgba(20,17,14,.92) 100%);
    --hero-fallback: radial-gradient(120% 120% at 70% 10%, #3a2c1b 0%, #241a12 45%, #140f0a 100%);
    --photo-bg: #E7D9BF;
    --shadow: 0 18px 50px -28px rgba(70,50,20,.30);
}

/* ----------------------------- Reset ------------------------------ */
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--font-sans); font-size: var(--step-0); line-height: 1.7;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:where(input, select, textarea):focus-visible,
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; margin: 0 0 .4em; letter-spacing: -.015em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }

/* Static film grain — single static SVG, opacity only (no blend, no animation) */
body::after {
    content: ''; position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 640px) { body::after { display: none; } }
@media (prefers-reduced-data: reduce) { body::after { display: none; } }

/* Reading progress bar (zero JS, compositor scaleX) */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
@supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
        .progress { animation: progressGrow linear both; animation-timeline: scroll(root); }
    }
}
@keyframes progressGrow { to { transform: scaleX(1); } }

/* --------------------------- Utilities ---------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-3); }
.container--wide { max-width: 78rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.center { text-align: center; }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.1em; }
/* Legal pages: comfortable reading, no drop-cap; numbered headings stand out */
.prose--legal { max-width: 70ch; font-size: var(--step--1); line-height: 1.75; color: var(--muted); }
.prose--legal strong { color: var(--text); }

.overline {
    font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .14em;
    font-size: var(--step--1); font-weight: 600; color: var(--accent); margin: 0 0 .8em;
}
.dropcap::first-letter {
    font-family: var(--font-display); float: left; font-size: 3.4em; line-height: .72;
    padding: .05em .12em 0 0; color: var(--accent); font-weight: 500;
}

/* ----------------------------- Buttons ---------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.5em; border-radius: 999px; border: 1px solid transparent;
    font-family: var(--font-sans); font-weight: 600; font-size: var(--step--1);
    letter-spacing: .01em; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
    background: var(--surface-2); color: var(--text);
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
/* The ONE amber-filled button — the booking path */
.btn--book {
    background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
    box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 26px -10px rgba(201,162,75,.5);
}
.btn--book:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; border-color: var(--border); color: inherit; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline { background: transparent; border-color: var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--primary { background: var(--surface-3); color: var(--text); }
.btn--danger { background: transparent; border-color: color-mix(in srgb, #c0392b 60%, transparent); color: #d9796e; }
.btn--danger:hover { background: #b3392f; color: #fff; border-color: #b3392f; }
.btn--lg { padding: .95em 1.9em; font-size: var(--step-0); }
.btn--sm { padding: .45em .9em; font-size: var(--step--1); }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.btn-row--center { justify-content: center; margin-bottom: var(--space-3); }

/* ----------------------------- Header ----------------------------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(12px); border-bottom-color: var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; }
.brand__tag { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: var(--space-3); }
.site-nav > a { position: relative; font-weight: 500; font-size: .96rem; color: var(--text); padding: 4px 0; }
.site-nav > a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease);
}
@media (hover: hover) { .site-nav > a:hover::after { transform: scaleX(1); transform-origin: left; } }
.site-nav > a.is-active::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 10px; padding-left: var(--space-2); }
.lang-switch { font-weight: 600; font-size: .82rem; padding: .3em .55em; border: 1px solid var(--border); border-radius: 8px; }
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

/* Roomier booking CTA pill so the amber oval doesn't crowd the letters/diacritics */
.nav-cta.btn--sm { padding: .62em 1.45em; font-size: .9rem; }

/* --- Legibility of the header while it floats over the dark hero photo ---
   The hero is a dark photo in BOTH themes, but its scrim is transparent at the
   top (where the nav sits), so over bright parts of the image the default text
   washes out. Force light, shadowed header text until the solid scrolled
   background kicks in. Brand always (it's over the photo at every width); nav
   links only on desktop — on mobile they live in a solid dropdown panel. */
body:has(.hero) .site-header:not(.is-scrolled) .brand__name,
body:has(.hero) .site-header:not(.is-scrolled) .brand__tag {
    color: #F6EEDF; text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
@media (min-width: 861px) {
    body:has(.hero) .site-header:not(.is-scrolled) .site-nav > a,
    body:has(.hero) .site-header:not(.is-scrolled) .lang-switch,
    body:has(.hero) .site-header:not(.is-scrolled) .theme-toggle {
        color: #F6EEDF; text-shadow: 0 1px 10px rgba(0,0,0,.55);
    }
    body:has(.hero) .site-header:not(.is-scrolled) .lang-switch { border-color: rgba(246,238,223,.45); }
    /* the amber CTA already has its own contrast — drop the shadow there */
    body:has(.hero) .site-header:not(.is-scrolled) .nav-cta { color: var(--accent-ink); text-shadow: none; }
}
.theme-toggle { background: none; border: 1px solid var(--border); border-radius: 8px; color: inherit; cursor: pointer; padding: .4em; display: grid; place-items: center; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; color: inherit; }
.nav-toggle span { width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; background: var(--hero-fallback); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: var(--scrim); }
.hero__scrim::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(10,8,5,.5) 100%); }
.hero__content { position: relative; padding: 0 var(--space-3) clamp(3.5rem, 9vh, 7rem); max-width: 56rem; color: #F6EEDF; }
.hero__watermark {
    position: absolute; right: 2vw; top: 16vh; font-family: var(--font-display); font-weight: 600;
    font-size: clamp(8rem, 26vw, 22rem); line-height: .7; color: transparent;
    -webkit-text-stroke: 2px rgba(201,162,75,.32); opacity: .8; pointer-events: none; user-select: none;
}
.hero__kicker { color: var(--accent); }
.hero__title { font-size: var(--step-7); line-height: .98; letter-spacing: -.02em; color: #fff; margin: 0 0 .35em; text-wrap: balance; font-variation-settings: 'opsz' 144, 'wght' 380, 'SOFT' 20; }
.hero__lead { font-size: var(--step-1); color: #efe6d6; max-width: 40ch; }
.hero__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; margin-top: var(--space-4); }
.hero__ghostlink { color: #efe6d6; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.hero__ghostlink:hover { color: #fff; border-color: var(--accent); }

/* ---------------------------- Sections ---------------------------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--alt { background: var(--surface); }
/* Pages without a full-bleed hero must clear the fixed header */
main > .section:first-child, main > article > .section:first-child { padding-top: calc(76px + clamp(2rem, 5vw, 4rem)); }
.section__head { max-width: 42rem; margin-bottom: var(--space-5); }
.section__cta { margin-top: var(--space-5); }
.content-narrow { max-width: 46rem; margin: 0 auto; }
.page-title { margin-bottom: .3em; }
.page-head { padding-top: 76px; }

/* --------------------- Chapter spine (signature) ------------------ */
.chapter { display: grid; grid-template-columns: minmax(7rem, 20vw) 1fr; gap: clamp(1rem, 4vw, 3rem); padding: clamp(2rem, 5vw, 4rem) 0; border-top: 1px solid var(--border); }
.chapter__rail { position: sticky; top: clamp(5.5rem, 13vh, 9rem); align-self: start; }
.chapter__num {
    display: block; font-family: var(--font-display); font-weight: 600;
    font-size: clamp(5rem, 13vw, 11rem); line-height: .8; color: transparent;
    -webkit-text-stroke: 2px var(--accent); pointer-events: none; user-select: none;
}
@supports not ((-webkit-text-stroke: 1px red)) {
    .chapter__num { color: color-mix(in srgb, var(--accent) 24%, transparent); -webkit-text-stroke: 0; }
}
.chapter__place { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: var(--step-2); border-left: 3px solid var(--accent); padding-left: .6em; margin: .6em 0 0; color: var(--text); }
.chapter__body { min-width: 0; }
.chapter__photo { display: block; position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: var(--photo-bg); margin-bottom: var(--space-3); }
.chapter__photo:empty { display: none; } /* no placeholder box until a photo is uploaded */
.chapter__photo img, .photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.30) saturate(.92) contrast(1.04) brightness(.96); transition: filter .5s var(--ease), transform .6s var(--ease); }
@media (hover: hover) { .chapter:hover .chapter__photo img { transform: scale(1.04); } }
.chapter__title { font-size: var(--step-2); margin-bottom: .3em; }
.chapter__teaser { color: var(--muted); max-width: 52ch; }
.chapter__meta { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-3) 0; color: var(--muted); font-size: var(--step--1); }
.chapter__price { color: var(--text); font-weight: 600; font-feature-settings: 'onum' 1; }

/* Mobile: numeral becomes a small watermark */
@media (max-width: 760px) {
    .chapter { grid-template-columns: 1fr; gap: var(--space-2); position: relative; }
    .chapter__rail { position: static; display: flex; align-items: baseline; gap: .6em; }
    .chapter__num { font-size: 3.4rem; -webkit-text-stroke: 1.5px var(--accent); }
    .chapter__place { margin-top: 0; }
}

/* -------------------------- About / story ------------------------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__photo { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--photo-bg); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.portrait { filter: grayscale(1) sepia(.4) contrast(1.02); transition: filter .9s var(--ease); }
.is-in .portrait { filter: none; }
.content-portrait { float: right; width: 240px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); margin: 0 0 var(--space-3) var(--space-4); box-shadow: var(--shadow); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .content-portrait { float: none; width: 100%; margin: 0 0 var(--space-3); } }

/* --------------------------- Tour detail -------------------------- */
.tour-hero { position: relative; min-height: 64svh; display: flex; align-items: flex-end; background: var(--hero-fallback); overflow: hidden; }
.tour-hero__bg { position: absolute; inset: 0; }
.tour-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.30) saturate(.92) contrast(1.04) brightness(.9); }
.tour-hero__scrim { position: absolute; inset: 0; background: var(--scrim); }
.tour-hero__content { position: relative; padding: 0 var(--space-3) var(--space-5); color: #F6EEDF; max-width: 52rem; }
.tour-hero__content h1 { color: #fff; }
.tour-hero__summary { font-size: var(--step-1); color: #efe6d6; max-width: 44ch; }
.tour-hero__meta { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-3); color: #e3d8c5; font-feature-settings: 'onum' 1; }
.tour-hero__meta .price { color: var(--accent); font-weight: 600; }
.tour-detail__grid { display: grid; grid-template-columns: 1fr 20rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.booking-box { position: sticky; top: 100px; }
.booking-box__price { font-family: var(--font-display); font-size: var(--step-2); margin-bottom: var(--space-2); font-feature-settings: 'onum' 1; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.gallery__item { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--photo-bg); margin: 0; }
.section__sub { font-size: var(--step-2); margin: var(--space-5) 0 var(--space-2); }
@media (max-width: 860px) { .tour-detail__grid { grid-template-columns: 1fr; } .booking-box { position: static; } }

/* --------------------- Legacy card grid (home) -------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.tour-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s var(--ease); }
@media (hover: hover) { .tour-card:hover { transform: translateY(-4px); border-color: var(--accent); } .tour-card:hover .tour-card__media { transform: scale(1.04); } }
.tour-card__media { aspect-ratio: 16/10; background: var(--hero-fallback); background-size: cover; background-position: center; transition: transform .5s var(--ease); }
.tour-card__media.duo { filter: sepia(.30) saturate(.92) contrast(1.04) brightness(.96); }
.tour-card__body { padding: var(--space-3); display: flex; flex-direction: column; gap: .5em; flex: 1; }
.tour-card__body h3 { margin: 0; font-size: var(--step-1); }
.tour-card__meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-2); color: var(--muted); font-size: .9rem; font-feature-settings: 'onum' 1; }
.tour-card__meta .price { color: var(--accent); font-weight: 600; }

/* ----------------------------- Reviews ---------------------------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-3); }
.review { position: relative; background: var(--surface); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: var(--space-4) var(--space-3) var(--space-3); }
.review::before { content: '\201C'; position: absolute; top: -.1em; left: .2em; font-family: var(--font-display); font-size: 4rem; color: var(--accent); opacity: .25; }
.review blockquote { margin: 0 0 var(--space-2); font-size: var(--step-0); }
.review figcaption { font-weight: 600; }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-2); }
.review__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.review .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: .4em; }
.ratings-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.ratings-score { display: flex; align-items: center; gap: 12px; }
.ratings-score__num { font-size: var(--step-3); font-family: var(--font-display); }
.ratings-score .stars { color: var(--accent); font-size: 1.4rem; }

/* ------------------------------ Forms ----------------------------- */
.form { display: flex; flex-direction: column; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; }
.field input, .field textarea, .field select {
    font: inherit; font-size: var(--step-0); padding: .7em .85em; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface); color: var(--text); color-scheme: dark light;
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-4); margin-top: var(--space-4); }
.contact-info p { margin: 0 0 .6em; }
.map-embed iframe { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); margin-top: var(--space-2); }

/* Booking */
.booking-form fieldset { border: 0; padding: 0; margin: 0 0 var(--space-4); }
.booking-form legend { font-family: var(--font-display); font-size: var(--step-1); margin-bottom: var(--space-2); padding: 0; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-2); }
.slot input { position: absolute; opacity: 0; }
.slot__card { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.slot input:checked + .slot__card { border-color: var(--accent); background: var(--surface-2); }
.slot__date { font-weight: 600; font-feature-settings: 'onum' 1; }
.slot__time { color: var(--accent); font-feature-settings: 'onum' 1; }
.slot__left { font-size: var(--step--1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-grid .field--full { grid-column: 1 / -1; }
.booking-summary { margin-top: var(--space-3); }
.booking-summary__row { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--step-1); margin-bottom: var(--space-2); font-feature-settings: 'onum' 1; }
.how-it-works { margin: var(--space-2) 0 var(--space-3); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Booking status */
.status-card { max-width: 30rem; margin: var(--space-4) auto; text-align: left; }
.status-card__row { display: flex; justify-content: space-between; gap: var(--space-2); padding: .6em 0; border-bottom: 1px solid var(--border); }
.status-card__row:last-child { border-bottom: 0; }
.status-badge { width: 64px; height: 64px; margin: 0 auto var(--space-3); border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; }
.status-badge--ok { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.status-badge--neutral { background: var(--surface-2); color: var(--muted); }

/* Pills */
.pill { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: var(--step--1); font-weight: 600; background: var(--surface-2); color: var(--muted); }
.pill--accepted { background: rgba(125,155,140,.2); color: var(--accent-2); }
.pill--awaiting_approval { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.pill--denied, .pill--cancelled, .pill--expired { background: rgba(192,57,43,.16); color: #e0685c; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: var(--space-6) 0 0; margin-top: var(--space-6); }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-4); }
.site-footer__signoff { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--muted); max-width: 28ch; margin-top: var(--space-2); }
.footer-nav { display: flex; flex-direction: column; gap: .5em; }
.footer-nav a, .footer-contact { color: var(--muted); }
.footer-nav a:hover, .footer-contact:hover { color: var(--text); }
.footer-contact { display: block; margin-bottom: .5em; }
.socials { display: flex; gap: 10px; margin-top: var(--space-2); }
.social { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); transition: color .2s var(--ease), border-color .2s var(--ease); }
.social:hover { color: var(--accent); border-color: var(--accent); }
.site-footer__legal { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-4) 0; margin-top: var(--space-5); border-top: 1px solid var(--border); font-size: var(--step--1); color: var(--muted); font-feature-settings: 'onum' 1; }
.site-footer__legal-info { display: flex; flex-direction: column; gap: 2px; }
.site-footer__legal-links { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.site-footer__legal-links a:hover { color: var(--text); }

/* Essential-cookies notice — small bar, lower-left, dismissible */
.cookie-notice { position: fixed; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); z-index: 70; max-width: 30rem; margin-inline: auto; display: flex; align-items: center; gap: var(--space-2); padding: 12px 14px 12px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.cookie-notice[hidden] { display: none; }
.cookie-notice__text { margin: 0; font-size: var(--step--1); color: var(--muted); flex: 1; }
.cookie-notice__text a { color: var(--accent); text-decoration: underline; }
.cookie-notice .btn { flex-shrink: 0; }
@media (max-width: 480px) { .cookie-notice { flex-direction: column; align-items: stretch; text-align: center; } }

/* ------------------------------ Flash ----------------------------- */
.flash-stack { position: fixed; top: 90px; right: var(--space-3); z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.flash { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); background: var(--surface-2); border: 1px solid var(--border); }
.flash--success { border-left: 4px solid var(--accent-2); }
.flash--error { border-left: 4px solid #c0392b; }
.flash--info { border-left: 4px solid var(--accent); }
.flash__close { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1; }

/* ------------------------- Scroll reveal -------------------------- */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
    }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
/* JS fallback (only when html.js present and native timeline unsupported) */
@supports not (animation-timeline: view()) {
    html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
    html.js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal, html.js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
    .portrait { transition: none; }
}

/* --------------------------- Responsive --------------------------- */
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start;
        background: var(--surface-2); border-bottom: 1px solid var(--border); padding: var(--space-3);
        gap: var(--space-2); transform: translateY(-120%); transition: transform .3s var(--ease); height: auto;
    }
    .site-nav.is-open { transform: translateY(0); }
    .site-header.is-scrolled, .site-header:has(.site-nav.is-open) { background: color-mix(in srgb, var(--bg) 92%, transparent); }
    .nav-tools { padding-left: 0; }
    .contact-grid, .site-footer__inner { grid-template-columns: 1fr; }
}
