:root {
  --plum: #231030;
  --plum-2: #2f1840;
  --violet: #7e4aa8;
  --violet-dark: #6a3a92;
  --orchid: #c29bdd;
  --lilac: #eee5f5;
  --petal: #fbf8fd;
  --ink: #1d1322;
  --muted: #6b5c74;
  --line: #dccbe8;

  --display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --script: "Pinyon Script", cursive;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--petal);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--orchid); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  background: var(--violet); color: #fff;
  font: 600 1rem/1 var(--body); text-decoration: none;
  transition: background .2s;
}
.btn:hover { background: var(--violet-dark); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter);
  color: #fff;
  transition: padding .3s, background-color .3s, box-shadow .3s;
}
.top.is-scrolled {
  padding-top: 10px; padding-bottom: 10px;
  background: rgba(35, 16, 48, .96);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.top.is-scrolled .brand-script { font-size: 2.1rem; }
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.brand-script { font: 400 2.6rem/0.9 var(--script); transition: font-size .3s; }
.brand-sub { font: 600 .62rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; margin-top: 4px; opacity: .85; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; opacity: .85; }
.nav a:not(.btn):hover { opacity: 1; }

/* Hero: text on plum, photo fills the right half edge to edge */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: min(100svh, 820px);
  background: var(--plum); color: #fff;
}
.hero-text {
  align-self: center;
  padding: 150px clamp(24px, 5vw, 72px) 96px var(--gutter);
  max-width: 640px;
}
.eyebrow { font-size: .95rem; letter-spacing: .04em; color: var(--orchid); margin-bottom: 20px; }
.hero h1 { font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1; }
.hero h1 em { font-style: italic; color: var(--orchid); }
.hero-line { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 32ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-photo { margin: 0; position: relative; min-height: 420px; }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 40%;
}

/* keeps the header links legible where they sit over the photo */
.hero-photo::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 160px;
  background: linear-gradient(rgba(35,16,48,.55), rgba(35,16,48,0));
}

/* A small threading loop under the headline, drawn once on load */
.thread { display: block; width: 220px; height: 18px; margin: 28px 0 24px; overflow: visible; }
.thread path {
  fill: none; stroke: var(--orchid); stroke-width: 1.2;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.8s cubic-bezier(.6,.1,.2,1) .3s forwards;
}
.thread path + path { animation-delay: .4s; opacity: .7; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Offer */
.offer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px var(--gutter);
  background: var(--lilac);
  font-size: 1.15rem;
}
.offer strong { font: italic 600 1.5rem var(--display); color: var(--violet-dark); margin-right: 4px; }
.offer-link { font-weight: 600; color: var(--violet-dark); text-underline-offset: 4px; }

/* Menu */
.menu { padding: clamp(72px, 10vw, 128px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.menu { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.menu-head { position: sticky; top: 120px; }
.menu-head h2, .visit h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; }
.menu-head p { color: var(--muted); margin: 20px 0 32px; max-width: 30ch; }

.menu-grid { columns: 2; column-gap: 64px; }
.menu-cat { break-inside: avoid; margin-bottom: 52px; }
.menu-cat:last-child { margin-bottom: 0; }
.menu-cat h3 {
  margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--ink);
  font: 600 .8rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase;
}
.menu-cat ul { list-style: none; margin: 0; padding: 0; }
.menu-item { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; }
.menu-name { font-weight: 500; }
.menu-note { display: block; font-size: .9rem; color: var(--muted); font-weight: 400; }
.menu-offer { display: block; margin-top: 4px; font-size: .8rem; font-weight: 600; color: var(--violet); }
/* leader: a fine thread between name and price */
.menu-lead { flex: 1; min-width: 24px; height: 1px; background: var(--line); transform: translateY(-5px); }
.menu-price { font: 500 1.6rem/1 var(--display); font-variant-numeric: lining-nums; }
.menu-price.ask { font: 500 .95rem var(--body); color: var(--muted); }

/* Photo strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.strip img { width: 100%; height: clamp(240px, 32vw, 440px); object-fit: cover; border-radius: 4px; }

/* Visit */
.visit {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px);
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
}
.visit dl { margin: 40px 0 0; display: grid; gap: 28px; }
.visit dt { font: 600 .8rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.visit dd { margin: 0; font-size: 1.15rem; }
.visit dd a { color: var(--violet-dark); text-underline-offset: 4px; }
.hours { display: flex; justify-content: space-between; max-width: 340px; }
.visit-map { background: var(--lilac); border-radius: 4px; }
.visit-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: 4px; filter: saturate(.7); }

/* Footer */
.foot { background: var(--plum); color: rgba(255,255,255,.78); padding: 72px var(--gutter) 28px; }
.foot-cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  max-width: var(--max); margin: 0 auto; padding-bottom: 56px;
}
.foot h3 { margin: 0 0 16px; font: 600 .75rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--orchid); }
.foot p { line-height: 1.7; }
.foot p + p { margin-top: 6px; }
.foot a:not(.btn):not(.brand) { color: #fff; text-decoration: none; }
.foot a:not(.btn):not(.brand):hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.foot .brand { color: #fff; }
.foot-bar {
  max-width: var(--max); margin: 0 auto; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* Small screens */
@media (max-width: 860px) {
  .nav a:not(.btn):not(.nav-phone) { display: none; }
  .nav { gap: 16px; }
  .nav-phone { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 120px var(--gutter) 56px; }
  .hero-photo { min-height: 340px; }
  .visit { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip img:last-child { display: none; }
  .menu { grid-template-columns: 1fr; }
  .menu-head { position: static; }
  .menu-grid { columns: 1; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .brand-script { font-size: 2.1rem; }
  .actions .btn { flex: 1 1 100%; }
  .offer { font-size: 1.05rem; }
  .foot-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thread path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Inner pages: solid header ---------- */
.top.is-solid { position: sticky; background: var(--plum); padding-top: 12px; padding-bottom: 12px; }
.top.is-solid .brand-script { font-size: 2.1rem; }
.muted { color: var(--muted); }
.error { color: #a3264b; font-weight: 500; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-line { background: transparent; color: var(--violet-dark); box-shadow: inset 0 0 0 1px var(--violet); }
.btn-line:hover { background: var(--lilac); }
.btn-wide { width: 100%; }

/* ---------- Shop (home) ---------- */
.shop { padding: 0 var(--gutter) clamp(72px, 10vw, 128px); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.shop-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.shop-head h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; }
.shop-head p { color: var(--muted); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.shop-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; margin-bottom: 16px; background: var(--lilac); }
.shop-card h3 { margin: 0 0 6px; font: 500 1.05rem/1.3 var(--body); }
.shop-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }

/* menu rows that link to booking */
a.menu-item { text-decoration: none; color: inherit; border-radius: 4px; transition: background-color .15s; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
a.menu-item:hover { background: var(--lilac); }
a.menu-item:hover .menu-name { color: var(--violet-dark); }

/* ---------- Booking page ---------- */
.book { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 120px; }
.book-intro h1 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.book-intro p { color: var(--muted); margin-top: 12px; }
.held {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 32px; padding: 18px 20px; border-radius: 8px; background: var(--lilac);
}
.book-steps { min-width: 0; }
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: 48px; }

.step { padding: 32px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step h2 { display: flex; align-items: center; gap: 14px; font-size: 1.9rem; line-height: 1.1; margin-bottom: 24px; }
.step-n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: var(--violet); color: #fff; font: 600 .9rem/1 var(--body);
}
.step-locked-note { display: none; color: var(--muted); }
.step.is-locked h2 { color: var(--muted); }
.step.is-locked .step-n { background: var(--line); color: var(--muted); }
.step.is-locked .step-body { display: none; }
.step.is-locked .step-locked-note { display: block; }

.svc-group { border: 0; margin: 0 0 28px; padding: 0; }
.svc-group legend { font: 600 .75rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.svc {
  display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 16px;
  padding: 14px 12px; margin: 0 -12px; border-radius: 6px; cursor: pointer;
}
.svc:hover { background: var(--lilac); }
.svc input { width: 20px; height: 20px; accent-color: var(--violet); margin: 0; }
.svc-name { font-weight: 500; }
.svc-name small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.svc-min { color: var(--muted); font-size: .92rem; white-space: nowrap; }
.svc-price { font: 500 1.35rem/1 var(--display); white-space: nowrap; text-align: right; min-width: 72px; }
.svc-price s { color: var(--muted); font-size: 1rem; margin-right: 2px; }
.svc.is-off { cursor: default; opacity: .6; }
.svc.is-off:hover { background: none; }
.svc.is-off .svc-price { font: 500 .9rem var(--body); }
.svc-promo { font-size: .92rem; }

.days { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: thin; }
.day {
  flex: 0 0 auto; display: grid; justify-items: center; gap: 2px; width: 64px; padding: 10px 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  font: inherit; cursor: pointer;
}
.day:hover:not(:disabled) { border-color: var(--violet); }
.day[aria-selected="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.day:disabled { opacity: .35; cursor: default; }
.day-dow, .day-mon { font-size: .75rem; letter-spacing: .04em; }
.day-num { font: 500 1.5rem/1.1 var(--display); }

.times { margin-top: 20px; min-height: 60px; }
.time-group + .time-group { margin-top: 20px; }
.time-group h3 { margin: 0 0 10px; font: 600 .75rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.time-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot {
  min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: 500 .95rem var(--body); color: var(--ink); cursor: pointer;
}
.slot:hover { border-color: var(--violet); color: var(--violet-dark); }
.slot[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-weight: 500; font-size: .95rem; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font: inherit; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--orchid); outline-offset: 0; border-color: var(--violet); }
.field [aria-invalid="true"] { border-color: #a3264b; }
.field-error { color: #a3264b; font-size: .88rem; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--violet); flex: none; }
.check small { display: block; color: var(--muted); font-size: .9rem; }

.pay-options { display: grid; gap: 12px; margin-bottom: 20px; }
.pay-card {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.pay-card:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.pay-card input { width: 20px; height: 20px; margin: 0; accent-color: var(--violet); }
.pay-text small { display: block; color: var(--muted); font-size: .9rem; }
.pay-amount { font: 500 1.6rem/1 var(--display); }
.fine { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.fine a { color: var(--violet-dark); }
#form-error { margin-bottom: 14px; }

.summary {
  position: sticky; top: 100px;
  padding: 28px; border-radius: 12px; background: var(--lilac);
}
.summary h2 { font-size: 1.6rem; margin-bottom: 18px; }
.summary-lines { list-style: none; margin: 0; padding: 0 0 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; }
.summary-meta { margin: 16px 0; display: grid; gap: 10px; }
.summary-meta div { display: flex; justify-content: space-between; gap: 12px; }
.summary-meta dt { color: var(--muted); }
.summary-meta dd { margin: 0; text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
.summary-total span:last-child { font: 500 2rem/1 var(--display); }
.summary-promo { margin-top: 12px; font-size: .9rem; color: var(--violet-dark); }

.mobile-bar { display: none; }

/* ---------- Confirmation and policy pages ---------- */
.plain { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 120px; min-height: 60vh; }
.confirm h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1.02; margin-bottom: 16px; }
.confirm > p { font-size: 1.1rem; margin-top: 10px; }
.confirm-details { margin: 32px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.confirm-details div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.confirm-details dt { color: var(--muted); }
.confirm-details dd { margin: 0; font-weight: 500; }
.demo-flag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--lilac); color: var(--violet-dark); font-weight: 600; font-size: .9rem; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.05; margin-bottom: 24px; }
.prose h2 { font-size: 1.7rem; margin: 36px 0 10px; }
.prose p { margin-top: 10px; }
.prose a { color: var(--violet-dark); }

@media (max-width: 960px) {
  .book-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; order: -1; display: none; }
  .mobile-bar:not([hidden]) {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--plum); color: #fff; font-weight: 500;
  }
}
@media (max-width: 600px) {
  .svc { grid-template-columns: 22px 1fr auto; }
  .svc-min { grid-column: 2; grid-row: 2; margin-top: -10px; }
  .svc-price { grid-row: 1 / span 2; grid-column: 3; }
  .fields { grid-template-columns: 1fr; }
  .confirm-details div { grid-template-columns: 1fr; gap: 4px; }
}
