/* ============================================================
   THE BASIC HOST — shared stylesheet
   Design tokens mirror the live app (chateau-cream / vignette-black
   / antique-umber / pressed-olive / candelabra-glow).
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Core semantic tokens (from live app) */
  --chateau-cream: hsl(36 33% 96%);
  --warm-white:    hsl(36 40% 98%);
  --vignette-black:hsl(30 10% 9%);
  --ink-900:       hsl(30 10% 12%);
  --antique-umber: hsl(25 30% 22%);
  --pressed-olive: hsl(90 18% 31%);
  --candelabra:    hsl(48 70% 81%);
  --gold:          #c9a96e;
  --border:        hsl(30 15% 82%);
  --muted:         hsl(36 20% 90%);
  --muted-fg:      hsl(25 15% 35%);
  --card-soft:     hsl(36 25% 93%);
  --card-warm:     #f0ebe4;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-italic:  'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-label:   'Montserrat', 'Inter', system-ui, sans-serif;

  /* Radii + shadows */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 2px 20px rgba(26,20,16,0.06);
  --shadow-lift: 0 10px 40px rgba(26,20,16,0.12);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--chateau-cream);
  color: var(--vignette-black);
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ======================  NAV  ====================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--vignette-black);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vignette-black);
  transition: opacity 0.2s var(--ease);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover { opacity: 0.55; }

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--vignette-black);
}

/* ─── Minimal top nav + dropdown menu ───
   .nav-links is the right-side cluster: Home + Menu Builder always-visible
   links plus the ☰ button that opens .nav-dropdown. Everything else
   (Casual / Cookbook / Saved / Profile / Dinner Club / About / Sign in
   or out) lives inside the dropdown — auth-gated by data-auth-show.
   Anchor styling is inherited from `.nav-links a` above; this just adds
   text-decoration: none for the bare-anchor structure (no UL/LI). */
.nav-links a.nav-link { text-decoration: none; }

.nav-dropdown-wrapper { position: relative; }

.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  color: var(--vignette-black, #1A1814);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s var(--ease, ease);
}
.nav-menu-btn:hover { opacity: 0.55; }
.nav-menu-btn svg { display: block; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  background: var(--chateau-cream, #FAF8F4);
  border: 0.5px solid var(--border, rgba(0,0,0,0.10));
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(26, 20, 16, 0.14);
  z-index: 200;
  overflow: hidden;
  padding: 8px 0;
}
.nav-dropdown[hidden] { display: none; }

.dropdown-user { padding: 14px 20px 12px; }
.dropdown-name {
  font-family: var(--font-heading, 'Playfair Display'), Georgia, serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-900, #1A1814);
  margin: 0 0 2px;
  line-height: 1.2;
}
.dropdown-email {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted-fg, #7A7570);
  margin: 0;
  word-break: break-all;
}
.dropdown-divider {
  height: 0.5px;
  background: var(--border-light, #EAE5DC);
  margin: 6px 0;
}
.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink-900, #1A1814);
  text-decoration: none;
  transition: background 0.1s ease, color 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.dropdown-item:hover { background: var(--cream, #FAF8F4); }
.dropdown-signout:hover { color: var(--antique-umber, #5a3a26); }

/* Hide/show by auth state — pairs with the <html data-auth="in|out">
   attribute the pre-paint script sets. */
[data-auth-show="in"]  { display: none; }
[data-auth-show="out"] { display: block; }
html[data-auth="in"]  [data-auth-show="in"]  { display: block; }
html[data-auth="in"]  [data-auth-show="out"] { display: none; }
html[data-auth="out"] [data-auth-show="in"]  { display: none; }
html[data-auth="out"] [data-auth-show="out"] { display: block; }

/* ─── Profile-check pops + incomplete banner ─── */
.pop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}
.pop-card {
  background: var(--chateau-cream, #FAF8F4);
  border: 0.5px solid var(--border, rgba(0,0,0,0.10));
  border-radius: 16px;
  padding: 28px 28px 24px;
  max-width: 520px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(26, 20, 16, 0.26);
}
.pop-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-fg, #7A7570);
  margin: 0 0 8px;
}
.pop-title {
  font-family: var(--font-heading, 'Playfair Display'), Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 3.2vw, 26px);
  color: var(--ink-900, #1A1814);
  margin: 0 0 6px;
  line-height: 1.15;
}
.pop-sub {
  font-family: var(--font-italic, 'Cormorant Garamond'), Georgia, serif;
  font-style: italic;
  font-size: 14.5px;
  color: var(--muted-fg, #7A7570);
  margin: 0 0 20px;
  line-height: 1.5;
}
.pop-section { margin: 0 0 18px; }
.pop-section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-fg, #7A7570);
  margin: 0 0 10px;
}
.pop-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pop-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 0.5px solid var(--border, #D8D2C8);
  background: transparent;
  color: var(--ink-900, #1A1814);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.pop-pill:hover { border-color: var(--ink-900, #1A1814); }
.pop-pill.is-selected {
  background: var(--ink-900, #1A1814);
  color: var(--chateau-cream, #FAF8F4);
  border-color: var(--ink-900, #1A1814);
}
.pop-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.pop-skip {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted-fg, #7A7570);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 0;
}
.pop-skip:hover { color: var(--ink-900, #1A1814); }
.pop-done {
  flex: 1;
  background: var(--ink-900, #1A1814);
  color: var(--chateau-cream, #FAF8F4);
  border: none;
  border-radius: 100px;
  padding: 12px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: opacity .15s ease;
}
.pop-done:hover { opacity: .92; }

/* Incomplete-profile banner — sits below the nav, dismissible. */
.profile-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: rgba(201, 168, 76, 0.12);
  border-bottom: 0.5px solid var(--border-light, #EAE5DC);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-900, #1A1814);
  flex-wrap: wrap;
}
.profile-banner .banner-text { flex: 1; min-width: 220px; color: var(--muted-fg, #7A7570); }
.profile-banner .banner-link {
  color: var(--ink-900, #1A1814);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .02em;
  white-space: nowrap;
}
.profile-banner .banner-link:hover { text-decoration: underline; }
.profile-banner .banner-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-fg, #7A7570);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  -webkit-tap-highlight-color: transparent;
}
.profile-banner .banner-dismiss:hover { color: var(--ink-900, #1A1814); }

/* Phones: the dropdown anchors to the right edge of the viewport (with
   a small inset) instead of the menu button so it doesn't get clipped. */
@media (max-width: 540px) {
  .nav-links { gap: 14px; }
  .nav-links a.nav-link { font-size: 0.62rem; letter-spacing: 0.1em; }
  .nav-dropdown { right: -8px; min-width: 220px; }
}

/* Hamburger button — three bars that morph to ✕ when the drawer opens. */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
  color: var(--vignette-black);
  cursor: pointer;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}
.nav-toggle:focus, .nav-toggle:active { outline: none; background: none; }
.nav-toggle .nav-bar { pointer-events: none; }
.nav-toggle svg { display: none; }
.nav-toggle .nav-bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle .nav-bar:nth-child(1) { top: 15px; }
.nav-toggle .nav-bar:nth-child(2) { top: 21px; }
.nav-toggle .nav-bar:nth-child(3) { top: 27px; }
.nav-toggle.is-open .nav-bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Drawer overlay — fades in over the page when the drawer opens. */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 999;
}
.nav-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
/* Lift the nav stacking context above the overlay when the drawer is open
   — otherwise the overlay (in <body>, z:999) covers the drawer's tap area
   because the drawer (z:1000) is trapped inside the .nav stacking context
   (z:100). Taps would land on the overlay and close the drawer instead of
   navigating. */
body.nav-drawer-open .nav { z-index: 1001; }

/* Dark-nav variant for interior pages with light hero */
.nav--dark {
  background: rgba(26, 20, 16, 0.92);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav--dark .nav-logo,
.nav--dark .nav-links a,
.nav--dark .nav-toggle { color: var(--chateau-cream); }
.nav--dark .nav-links a.active::after { background: var(--chateau-cream); }

/* ======================  HERO (cinematic)  ====================== */
.hero {
  position: relative;
  min-height: 700px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--vignette-black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,7,4,0.25) 0%, rgba(10,7,4,0.45) 60%, rgba(10,7,4,0.65) 100%),
    url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1800&q=85&fit=crop') center/cover no-repeat;
  transform: scale(1.03);
  animation: slowZoom 18s ease-out forwards;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(180, 110, 30, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse at 70% 40%, rgba(140, 80, 20, 0.12) 0%, transparent 60%);
}

@keyframes slowZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 880px;
  animation: fadeUp 1.2s ease 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.82);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero-eyebrow span { margin: 0 10px; opacity: 0.6; }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 22px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: rgba(255,255,255,0.86);
  margin-bottom: 44px;
  letter-spacing: 0.01em;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeUp 1.4s ease 1s both;
}
.scroll-indicator span {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.1); }
}

/* ======================  PAGE HEADERS (interior)  ====================== */
.page-header {
  padding: 140px 40px 72px;
  text-align: center;
  background: var(--chateau-cream);
  border-bottom: 1px solid var(--border);
}
.page-header .eyebrow {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--antique-umber);
  margin-bottom: 18px;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--vignette-black);
  margin-bottom: 16px;
}
.page-header p {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--antique-umber);
  max-width: 620px;
  margin: 0 auto;
}

/* ======================  BUTTONS  ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease), background 0.22s, color 0.22s, border-color 0.22s;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: #fff;
  color: var(--vignette-black);
}
.btn-primary:hover { background: var(--chateau-cream); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn-dark {
  background: var(--vignette-black);
  color: var(--chateau-cream);
}
.btn-dark:hover { background: var(--antique-umber); }

.btn-ghost {
  background: transparent;
  color: var(--vignette-black);
  border-color: var(--vignette-black);
}
.btn-ghost:hover { background: var(--vignette-black); color: var(--chateau-cream); }

.btn-olive {
  background: var(--pressed-olive);
  color: var(--chateau-cream);
}
.btn-olive:hover { background: hsl(90 18% 26%); }

/* ======================  INTRO STRIP  ====================== */
.intro-strip {
  background: var(--warm-white);
  color: var(--vignette-black);
  padding: 88px 40px;
  text-align: center;
}
.intro-strip h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 18px;
}
.intro-strip p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted-fg);
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 0.01em;
}

/* ======================  FEATURES GRID  ====================== */
.features {
  background: var(--card-warm);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
}
.feature {
  padding: 64px 40px;
  border-right: 1px solid rgba(0,0,0,0.07);
  text-align: center;
  transition: background 0.2s;
}
.feature:last-child { border-right: none; }
.feature:hover { background: #e8e1d8; }
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 18px;
}
.feature h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 10px;
}
.feature p {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--muted-fg);
}
.feature a.feature-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--antique-umber);
  border-bottom: 1px solid var(--antique-umber);
  padding-bottom: 3px;
}
.feature a.feature-link:hover { color: var(--pressed-olive); border-color: var(--pressed-olive); }

/* ======================  MANIFESTO / ABOUT SECTIONS  ====================== */
.manifesto {
  background: var(--vignette-black);
  color: var(--chateau-cream);
  padding: 120px 40px;
  text-align: center;
}
.manifesto .eyebrow {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--candelabra);
  margin-bottom: 22px;
}
.manifesto h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 28px;
}
.manifesto p {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(245, 240, 235, 0.78);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ======================  CARD GRIDS (recipes, menus, posts)  ====================== */
.grid-section {
  padding: 80px 40px 120px;
  background: var(--chateau-cream);
}
.grid-section .grid-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.grid-section h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}
.grid-section .grid-header p {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--muted-fg);
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.card-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: var(--muted);
}
.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-eyebrow {
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--antique-umber);
}
.card h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--vignette-black);
  line-height: 1.3;
}
.card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted-fg);
  flex: 1;
}
.card .card-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-fg);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* Save button on cards */
.card-save {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: transform 0.18s var(--ease), background 0.18s;
}
.card-save:hover { transform: scale(1.08); }
.card-save svg { width: 16px; height: 16px; stroke: var(--vignette-black); fill: none; stroke-width: 2; }
.card-save.saved svg { fill: var(--pressed-olive); stroke: var(--pressed-olive); }
.card-media { position: relative; }

/* ======================  CHIPS / FILTERS  ====================== */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 40px;
}
.chip {
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--vignette-black);
  border: 1px solid var(--border);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.chip:hover { border-color: var(--vignette-black); }
.chip.active {
  background: var(--vignette-black);
  color: var(--chateau-cream);
  border-color: var(--vignette-black);
}

/* ======================  FORMS  ====================== */
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 24px; }
.form-row label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--antique-umber);
  margin-bottom: 10px;
}
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=number],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--vignette-black);
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--pressed-olive);
  background: #fff;
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row .hint {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted-fg);
  font-style: italic;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.segmented input { display: none; }
.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  background: var(--warm-white);
  color: var(--vignette-black);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  margin: 0;
}
.segmented label:hover { border-color: var(--vignette-black); }
.segmented input:checked + label {
  background: var(--vignette-black);
  color: var(--chateau-cream);
  border-color: var(--vignette-black);
}

/* ======================  CHEF'S HELP (chat)  ====================== */
.chat-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 40px 120px;
}
.chat-feed {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.msg {
  max-width: 78%;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  line-height: 1.55;
}
.msg-chef {
  background: var(--muted);
  color: var(--vignette-black);
  border-bottom-left-radius: 0;
  align-self: flex-start;
}
.msg-chef .chef-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pressed-olive);
  margin-bottom: 6px;
}
.msg-me {
  background: var(--vignette-black);
  color: var(--chateau-cream);
  border-bottom-right-radius: 0;
  align-self: flex-end;
}
.chat-input {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-soft);
}
.chat-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--vignette-black);
}
.chat-input button {
  border: none;
  background: var(--vignette-black);
  color: var(--chateau-cream);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.suggestion {
  font-family: var(--font-label);
  font-size: 0.7rem;
  padding: 10px 16px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--vignette-black);
  transition: background 0.18s;
}
.suggestion:hover { background: var(--muted); }

/* ======================  MENU BUILDER layout  ====================== */
.builder {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 40px 120px;
}
.builder .builder-main { min-width: 0; }
.builder .builder-side {
  position: sticky;
  top: 96px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}
.builder h3.course-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 28px 0 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.builder h3.course-title small {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
  font-weight: 500;
}
.dish-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.dish-row:last-child { border-bottom: none; }
.dish-row .dish-info { flex: 1; }
.dish-row h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.dish-row p {
  font-size: 0.78rem;
  color: var(--muted-fg);
  line-height: 1.5;
}
.btn-add {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--vignette-black);
  color: var(--chateau-cream);
  border: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-add:hover { background: var(--antique-umber); }
.btn-add.added { background: var(--pressed-olive); }

.menu-preview h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.menu-preview ul { list-style: none; margin-bottom: 18px; }
.menu-preview li {
  font-family: var(--font-italic);
  font-size: 0.98rem;
  font-style: italic;
  padding: 6px 0;
  color: var(--ink-900);
}
.menu-preview .empty {
  font-size: 0.82rem;
  color: var(--muted-fg);
  font-style: italic;
  padding: 14px 0;
}

/* ======================  FOOTER  ====================== */
footer {
  background: #120e0a;
  padding: 64px 40px 44px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
}
footer .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--chateau-cream);
  margin-bottom: 12px;
}
footer .footer-tag {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}
footer .footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 36px;
}
footer .footer-links a {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--candelabra); }
footer p.rights {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.32);
  text-transform: uppercase;
}

/* ======================  NEWSLETTER  ====================== */
.newsletter {
  background: var(--vignette-black);
  color: var(--chateau-cream);
  padding: 100px 40px;
  text-align: center;
}
.newsletter h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}
.newsletter p {
  font-family: var(--font-italic);
  font-style: italic;
  color: rgba(245, 240, 235, 0.7);
  margin-bottom: 30px;
  font-size: 1.05rem;
}
.newsletter form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 22px;
}
.newsletter input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--chateau-cream);
  font-family: var(--font-body);
  outline: none;
  font-size: 0.95rem;
}
.newsletter input::placeholder { color: rgba(245,240,235,0.5); }
.newsletter button {
  border: none;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  background: var(--chateau-cream);
  color: var(--vignette-black);
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.newsletter button:hover { background: #fff; }
.newsletter .disclaimer {
  margin-top: 18px;
  font-size: 0.72rem;
  color: rgba(245,240,235,0.4);
  letter-spacing: 0.05em;
}

/* ======================  UTILITY  ====================== */
.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;
}
.divider {
  height: 1px;
  background: var(--border);
  max-width: 1280px;
  margin: 0 auto;
}

/* ======================  MOBILE  ====================== */
@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  .builder .builder-side { position: static; }
}

@media (max-width: 820px) {
  .nav { padding: 0 20px; }
  /* Legacy slide-out drawer was removed when the nav switched to the
     minimal top bar (Home + Menu Builder + ☰). The hamburger now opens
     the .nav-dropdown overlay positioned via the rules above; .nav-links
     stays a flat flex row at all viewport sizes. */
  body.nav-drawer-open { overflow: hidden; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 220px; }
  .intro-strip, .manifesto, .grid-section, .newsletter, .page-header { padding-left: 20px; padding-right: 20px; }
  .chips { padding-left: 20px; padding-right: 20px; }
  .chat-wrap, .builder { padding-left: 20px; padding-right: 20px; }
  .form-card { padding: 32px 24px; }
  footer { padding: 48px 24px 32px; }
}
