:root {
  --color-primary: #C9A26B;
  --color-accent: #C9A26B;
  --color-surface: #181410;
  --color-text: #F5EFE4;
  --color-bg: #0F0D0B;
  --color-muted: #B9AB99;
  --color-bg-alt: color-mix(in srgb, #C9A26B 18%, #0F0D0B);
  --color-surface-tint: color-mix(in srgb, #C9A26B 16%, #181410);
  --color-surface-strong: color-mix(in srgb, #C9A26B 22%, #181410);
  --color-card: color-mix(in srgb, #C9A26B 14%, #181410);
  --color-card-strong: color-mix(in srgb, #C9A26B 18%, #181410);
  --color-line: rgba(255,255,255,0.12);
  --color-line-strong: rgba(255,255,255,0.22);
  --color-nav: rgba(255,255,255,0.08);
  --color-nav-border: rgba(255,255,255,0.14);
  --color-image-placeholder: rgba(255,255,255,0.06);
  --font-heading: 'Playfair Display', system-ui, sans-serif;
  --font-body: 'Lato', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* ─── Background systems ─── */
.jean-bg-mesh {
  background-image:
    radial-gradient(at 0% 0%, rgba(201,162,107,0.25) 0%, transparent 55%),
    radial-gradient(at 100% 0%, rgba(201,162,107,0.22) 0%, transparent 55%),
    radial-gradient(at 50% 100%, rgba(201,162,107,0.25) 0%, transparent 50%),
    radial-gradient(at 85% 70%, rgba(201,162,107,0.22) 0%, transparent 45%);
}

.jean-bg-grid {
  background-image: radial-gradient(circle, rgba(185,171,153,0.12) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.jean-bg-spotlight {
  background-image: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(201,162,107,0.22) 0%, transparent 75%);
}

/* ─── Card surface styles ─── */
/* Hero/section-level glass (full blur, applied on hero/cta sections) */
.jean-glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.30);
}

/* Card-level glass (reduced blur for dense grids — lower composite cost) */
.jean-glass-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.jean-elevated {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 10px 15px -3px rgba(0,0,0,0.10);
}

.jean-soft-shadow {
  background: var(--color-card-strong);
  border: 1px solid var(--color-line-strong);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

.jean-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
}

.jean-card-strong {
  background: var(--color-card-strong);
  border: 1px solid var(--color-line-strong);
}

/* ─── Card behaviors ─── */
.jean-float {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jean-float:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.14);
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .jean-float {
    transition: none;
  }
  .jean-float:hover {
    transform: none;
  }
}

/* ─── Structural design tokens ─── */
/* headingTreatment: underlined — accent underline, works for any alignment */
.jean-site-shell section h2 {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.4em;
}

/* jean-bg-fixed — the background holds still, the page scrolls over it. */
@media (min-width: 1024px) and (hover: hover) {
  .jean-site-shell .jean-bg-fixed { background-attachment: fixed; }
}
.jean-site-shell section h1,
.jean-site-shell section h2 { text-wrap: balance; }
/* Inside a photo band's scrim card every block must read white. The blocks
   arrive with their own INLINE color (var(--color-muted) — dark grey), and
   inline beats any selector, so this is the one place !important is the
   honest tool rather than a smell: the band owns legibility on top of a
   photograph, whatever color the block brought with it. */
.jean-site-shell .jean-photo-band :is(p, li, div, span, blockquote) { color: rgba(255,255,255,0.9) !important; }
.jean-site-shell .jean-photo-band a { color: #FFFFFF !important; }
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.jean-scroll-stage {
  position: relative;
  --jean-scroll-progress: 0;
}

/* Scroll-reveal + parallax are opt-in: only active when the site shell carries
   data-jean-motion="on" (set from the design's decorationDensity = expressive).
   With motion off, .jean-motion-layer is inert and content is simply visible —
   a clean, static baseline instead of every section fading/parallaxing in. */
.jean-motion-layer {
  --jean-parallax-offset: 0px;
}

[data-jean-motion='on'] .jean-motion-layer {
  opacity: 0;
  transform: translate3d(0, calc(28px + var(--jean-parallax-offset)), 0) scale(0.985);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

[data-jean-motion='on'] .jean-motion-layer.is-visible {
  opacity: 1;
  transform: translate3d(0, var(--jean-parallax-offset), 0) scale(1);
}

.jean-parallax-up {
  --jean-parallax-offset: 0px;
}

.jean-parallax-down {
  --jean-parallax-offset: 0px;
}

.jean-parallax-subtle {
  --jean-parallax-offset: calc(var(--jean-scroll-progress, 0) * -6px);
}

.jean-panel-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.jean-section-shell {
  position: relative;
}

.jean-rhythm-wide {
  width: min(96rem, calc(100vw - 1.5rem));
}

.jean-rhythm-tight {
  width: min(72rem, calc(100vw - 1.5rem));
}

.jean-gallery-columns,
.jean-stagger-grid {
  display: grid;
  gap: 1rem;
}

.jean-stagger-card {
  transition-delay: var(--jean-stagger-delay, 0s);
}

.jean-pullquote-card {
  position: relative;
}

.jean-pullquote-card::before {
  content: '"';
  position: absolute;
  top: 0.35rem;
  left: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 7vw, 6rem);
  line-height: 0.8;
  color: color-mix(in srgb, var(--color-primary) 20%, transparent);
  pointer-events: none;
}

.jean-grid-pattern-row {
  width: 100%;
}

.jean-hero-shell {
  position: relative;
}

@media (min-width: 1024px) {
  .jean-panel-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 3rem;
    align-items: start;
  }

  /* The 2-column masonry gallery (with an oversized featured first image) is
     opt-in for expressive designs. The default gallery keeps its own Tailwind
     column classes (a clean, uniform 3-column grid). */
  [data-jean-motion='on'] .jean-gallery-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  [data-jean-motion='on'] .jean-gallery-columns .jean-gallery-card--featured {
    grid-row: span 2;
  }

  .jean-grid-pattern-row[data-row-centered='true'] {
    max-width: calc(100% * var(--jean-row-share, 1));
    margin-left: auto;
    margin-right: auto;
  }

  /* Sticky panels are opt-in; the default is normal document flow (no full-height
     sticky hero stage that overrides the whole layout). */
  [data-jean-motion='on'] .jean-panel-sticky {
    position: sticky;
    top: clamp(5rem, 10vh, 7.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Scoped to match the gated hidden rule's specificity so reduced-motion always
     reveals content even when motion is on. */
  [data-jean-motion='on'] .jean-motion-layer {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .jean-parallax-up,
  .jean-parallax-down,
  .jean-parallax-subtle {
    --jean-parallax-offset: 0px;
  }

  .jean-pullquote-card::before {
    display: none;
  }

  .jean-float {
    transition: none;
  }

  .jean-float:hover {
    transform: none;
  }
}


/* V3.4b part 2 — the shared widget skeletons, painted from theme tokens. */
.jean-widget-empty { text-align: center; font-size: 0.875rem; color: var(--color-muted); margin: 0; }
.jean-widget .jean-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.jean-widget .jean-gallery-item { position: relative; margin: 0; border-radius: 1rem; overflow: hidden; background: var(--color-image-placeholder, var(--color-surface)); }
.jean-widget .jean-gallery-image { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.jean-widget .jean-gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem; font-size: 0.875rem; color: #fff; background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0)); }
.jean-widget .jean-menu-group { margin-bottom: 1.75rem; }
.jean-widget .jean-menu-group:last-child { margin-bottom: 0; }
.jean-widget .jean-menu-category { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--color-text); margin: 0 0 0.75rem; }
.jean-widget .jean-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.jean-widget .jean-menu-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.jean-widget .jean-menu-name { font-weight: 600; color: var(--color-text); }
.jean-widget .jean-menu-price { white-space: nowrap; font-weight: 600; color: var(--color-primary); }
.jean-widget .jean-menu-description { margin: 0.15rem 0 0; font-size: 0.875rem; color: var(--color-muted); }
.jean-widget .jean-hours-list { list-style: none; margin: 0; padding: 0; }
.jean-widget .jean-hours-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--color-line); }
.jean-widget .jean-hours-row:last-child { border-bottom: none; }
.jean-widget .jean-hours-day { font-weight: 600; color: var(--color-text); }
.jean-widget .jean-hours-time { color: var(--color-text); }
.jean-widget .jean-hours-closed { color: var(--color-muted); }
.jean-widget .jean-hours-note { font-size: 0.85rem; color: var(--color-muted); }
.jean-widget .jean-downloads-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.jean-widget .jean-downloads-item { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.jean-widget .jean-downloads-link { display: inline-block; padding: 0.55rem 1.1rem; border-radius: 0.6rem; background: var(--color-primary); color: var(--color-on-primary, #fff); font-weight: 600; text-decoration: none; }
.jean-widget .jean-downloads-link:hover { filter: brightness(0.94); }
.jean-widget .jean-downloads-meta { font-size: 0.85rem; color: var(--color-muted); }
/* The announcement strip keeps the React strip's fixed high-contrast tints —
   attention chrome, deliberately not theme tokens. */
.jean-widget .jean-announcement { display: flex; align-items: center; gap: 1rem; padding: 0.65rem 1.5rem; font-size: 0.875rem; font-weight: 500; border-bottom: 1px solid; }
.jean-widget .jean-announcement.is-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.jean-widget .jean-announcement.is-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.jean-widget .jean-announcement.is-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.jean-widget .jean-announcement-text { margin: 0; flex: 1; line-height: 1.45; }
.jean-widget .jean-announcement-link { color: inherit; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.jean-widget .jean-occupancy { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .jean-widget .jean-occupancy { grid-template-columns: 1fr 1fr; } }
.jean-widget .jean-occupancy-month { background: var(--color-card, var(--color-surface)); border: 1px solid var(--color-line); border-radius: 1rem; padding: 1rem; }
.jean-widget .jean-occupancy-title { text-align: center; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--color-text); margin: 0 0 0.75rem; }
.jean-widget .jean-occupancy-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.jean-widget .jean-occupancy-day { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; font-size: 0.8rem; border-radius: 0.375rem; border: 1px solid var(--color-line); color: var(--color-text); }
.jean-widget .jean-occupancy-day.is-booked { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.jean-widget .jean-occupancy-pad { border: none; }
.jean-widget .jean-occupancy-legend { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0; font-size: 0.8rem; color: var(--color-muted); }
.jean-widget .jean-occupancy-key { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 0.2rem; border: 1px solid var(--color-line); margin-right: 0.35rem; vertical-align: -0.1rem; }
.jean-widget .jean-occupancy-key.is-booked { background: var(--color-primary); border-color: var(--color-primary); }
.jean-widget .jean-blog-list { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.jean-widget .jean-blog-card { background: var(--color-card, var(--color-surface)); border: 1px solid var(--color-line); border-radius: 1rem; overflow: hidden; display: flex; flex-direction: column; }
.jean-widget .jean-blog-cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.jean-widget .jean-blog-body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.jean-widget .jean-blog-date { font-size: 0.75rem; color: var(--color-muted); }
.jean-widget .jean-blog-title { margin: 0; font-family: var(--font-heading); font-size: 1.05rem; color: var(--color-text); }
.jean-widget .jean-blog-excerpt { margin: 0; font-size: 0.875rem; color: var(--color-muted); line-height: 1.5; }
.jean-widget .jean-blog-detail summary { cursor: pointer; list-style: none; }
.jean-widget .jean-blog-link { font-size: 0.875rem; font-weight: 600; color: var(--color-primary); }
.jean-widget .jean-blog-full { margin-top: 0.5rem; font-size: 0.875rem; color: var(--color-text); white-space: pre-wrap; }
