:root {
  /* Video section (dark) */
  --bg: #17100c;
  --fg: #fbf3e8;
  --muted: #c9b8a6;
  --accent: #e3a97c;

  /* Page (light) */
  --cream: #fbf5ec;
  --cream-2: #f3e8d8;
  --ink: #2b1d15;
  --ink-soft: #6b5546;
  --line: #e4d4bf;
  --berry: #a3304a;
  --cocoa: #4a2c1d;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 500; }

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 14px;
}

/* Header ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px var(--gutter);
  color: #fff;
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.site-header.is-solid {
  background: rgba(251, 245, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}
.site-nav { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; font-size: 14px; opacity: 0.85; }
.site-nav a:hover { opacity: 1; }
.cta {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}

/* Hero video ---------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%; /* keep the cake stand in view on narrow screens */
}

/* Soft gradients so captions and header stay readable on any frame */
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0) 18%),
    linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0) 50%);
}

.caption, .hero__end {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14vh;
  margin-inline: auto;
  width: min(90vw, 900px);
  text-align: center;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  filter: blur(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease, visibility 0s linear 0.4s;
}
.caption.is-on, .hero__end.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition-delay: 0s;
}
.hero__end h2 { margin-bottom: 24px; }

.script {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
  font-size: clamp(44px, 8vw, 108px);
  line-height: 1.1;
}
.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero .btn--light { background: var(--cream); color: var(--cocoa); text-shadow: none; }
.hero .btn--light:hover { background: #fff; color: var(--berry); }

.hero__replay {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 13px var(--sans);
  color: var(--fg);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__replay[hidden] { display: none; }
.hero__replay:hover { background: rgba(0,0,0,0.55); }
.hero__replay:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Shared section layout --------------------------------------------- */
.intro, .menu, .cakes, .about, .community, .visit {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
}

.btn {
  display: inline-block;
  background: var(--cocoa);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font: 500 15px var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--berry); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--cocoa); border: 1px solid var(--cocoa); }
.btn--ghost:hover { background: var(--cocoa); color: var(--cream); }

.link { color: var(--berry); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* Intro ------------------------------------------------------------- */
.intro { text-align: center; }
.intro h1 { font-size: clamp(40px, 6.4vw, 76px); font-style: italic; font-weight: 300; max-width: 16ch; margin: 0 auto 24px; }
.lede { max-width: 58ch; margin: 0 auto; color: var(--ink-soft); font-size: 18px; }

.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(56px, 8vw, 88px);
  text-align: left;
}
.pillars li { border-top: 1px solid var(--line); padding-top: 20px; }
.pillars h3 { margin-bottom: 8px; }
.pillars p { color: var(--ink-soft); }

/* Sunday sale ------------------------------------------------------- */
.sale {
  background: var(--berry);
  color: #fff;
  text-align: center;
  padding: 18px var(--gutter);
  font-size: 17px;
}
.sale strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; margin-right: 6px; }

/* Menu -------------------------------------------------------------- */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p:last-child { color: var(--ink-soft); }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tabs button {
  font: 500 15px var(--sans);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.tabs button:hover { border-color: var(--cocoa); }
.tabs button[aria-selected="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
.tabs button:focus-visible, .btn:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }

.panel__note { color: var(--ink-soft); margin-bottom: 20px; max-width: 60ch; }

.items { list-style: none; columns: 2; column-gap: clamp(32px, 6vw, 80px); }
.items li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  break-inside: avoid;
  font-size: 17px;
}
.items span { flex: 1; }
.items em { font-style: normal; color: var(--ink-soft); font-size: 14px; margin-left: 4px; }
.items b { font-family: var(--serif); font-weight: 500; font-variant-numeric: tabular-nums; }

.items-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.items-split h3 { margin-bottom: 8px; }
.items-split .items { columns: 1; }

/* Gallery ----------------------------------------------------------- */
.gallery {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(72px, 10vw, 128px);
}
.gallery__head { display: flex; flex-direction: column; margin-bottom: 28px; }
.gallery__grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr; /* tall photo on the left, 2x2 beside it */
  grid-auto-rows: clamp(180px, 22vw, 280px);
  gap: 12px;
}
.gallery__grid li { border-radius: 16px; overflow: hidden; background: var(--cream-2); }
.gallery__grid .g-tall { grid-row: span 2; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery__grid li:hover img { transform: scale(1.04); }
.gallery__more { margin-top: 20px; color: var(--ink-soft); }

/* Cakes ------------------------------------------------------------- */
.cakes {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: none;
  background: var(--cream-2);
  padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2);
}
.cakes__photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; }
.cakes__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.cakes__body h2 { margin-bottom: 16px; }
.cakes__body > p { color: var(--ink-soft); margin-bottom: 28px; }
.cakes__body h3 { font-size: 13px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 24px 0 12px; }

.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sizes div { background: var(--cream); border-radius: 14px; padding: 16px; text-align: center; }
.sizes dt { font-family: var(--serif); font-size: 34px; line-height: 1; }
.sizes dd { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--cocoa); color: var(--cream); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.chips--quiet li { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cakes .btn { margin-top: 32px; }

/* About ------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about h2 { margin-bottom: 20px; }
.about p + p { margin-top: 14px; }
.about__text p:not(.kicker) { color: var(--ink-soft); font-size: 17px; }
.about__photo { border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 4; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; }

/* Community --------------------------------------------------------- */
.community {
  text-align: center;
  max-width: 760px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.community h2 { font-style: italic; font-weight: 300; margin-bottom: 16px; }
.community p:not(.kicker) { color: var(--ink-soft); margin-bottom: 28px; }

/* Visit + order ----------------------------------------------------- */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.visit__info h2 { margin-bottom: 32px; }
.info-block { margin-bottom: 28px; }
.info-block h3 { font-size: 13px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.info-block p { font-size: 18px; }
.info-block .note { font-size: 15px; color: var(--berry); margin-top: 6px; }

.socials { list-style: none; display: flex; gap: 20px; }
.socials a { text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.socials a:hover { border-color: var(--berry); color: var(--berry); }

.order {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 16px;
}
.order h2 { font-size: clamp(28px, 3.4vw, 38px); }
.order > p { color: var(--ink-soft); margin-top: -6px; }
.order label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.order .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order input, .order select, .order textarea {
  font: 16px var(--sans);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.order input:focus, .order select:focus, .order textarea:focus { outline: 2px solid var(--berry); outline-offset: 1px; border-color: transparent; }
.order .btn { justify-self: start; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--ink-soft); }
.form-note a { color: var(--berry); }

/* Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--bg);
  color: var(--muted);
  text-align: center;
  padding: 56px var(--gutter);
  display: grid;
  gap: 8px;
}
.site-footer .logo { color: var(--fg); margin: 0; font-size: 28px; }
.site-footer .small { font-size: 13px; opacity: 0.7; }

/* Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .cakes, .about, .visit { grid-template-columns: 1fr; }
  .cakes__photo { aspect-ratio: 4 / 3; }
  .about__photo { order: -1; }
}

@media (max-width: 767px) {
  .caption, .hero__end { bottom: 16vh; }
  .site-nav { display: none; }
  .site-header { gap: 12px; }
  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .items { columns: 1; }
  .items-split { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 8px; }
  .order .row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caption, .hero__end { transition: none; }
}

/* Hours table (Visit section) */
.hours { border-collapse: collapse; font-size: 18px; }
.hours th { text-align: left; font-weight: 400; padding: 2px 24px 2px 0; }
.hours td { font-family: var(--serif); font-variant-numeric: tabular-nums; }
