/* PRIX FIXE · the menu, set properly.
   Cream stock, burgundy ink. The cover is bound in wine; the pages are
   typeset cream sheets with dotted leaders carrying the eye to the price.
   Faces: Cormorant Garamond (display) · Crimson Pro (text) · Jost (labels). */

[hidden] { display: none !important; }

:root {
  --wine: #561A2B;
  --wine-deep: #40121F;
  --wine-ink: #6B2438;
  --cream: #F6EFDD;
  --cream-hi: #FBF6E9;
  --cream-deep: #EAE0C9;
  --cream-on-wine: #F3EAD5;
  --gilt: #C8A566;
  --ink: #2E1E18;
  --ink-soft: #6E5B4E;
  --hair: rgba(46, 30, 24, .28);
  --hair-soft: rgba(46, 30, 24, .14);
  --disp: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --text: "Crimson Pro", Georgia, serif;
  --util: "Jost", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream-deep);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; width: 100%; }

a { color: var(--wine-ink); text-decoration-color: var(--hair); text-underline-offset: 3px; }
a:hover { color: var(--wine-deep); }
:focus-visible { outline: 2px solid var(--wine-ink); outline-offset: 2px; border-radius: 1px; }
.cover :focus-visible { outline-color: var(--cream-on-wine); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 60;
  background: var(--wine); color: var(--cream-on-wine);
  padding: .5rem 1rem; font-family: var(--util); font-size: .8rem;
}
.skip:focus { left: .5rem; top: .5rem; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.linklike {
  font-family: var(--util); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--wine-ink); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px;
}
.linklike:hover { color: var(--wine-deep); }

/* ───────────────────────── top bar ───────────────────────── */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.2rem);
  border-bottom: 1px solid var(--hair-soft);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 5px;
  background: var(--wine); color: var(--cream-on-wine);
  font-family: var(--disp); font-weight: 600; font-size: 1.05rem;
  box-shadow: inset 0 0 0 1px rgba(243, 234, 213, .55), inset 0 0 0 3px var(--wine);
}
.brand-word { font-family: var(--disp); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; color: var(--ink); }
.bar-nav { display: flex; align-items: center; gap: 1.1rem; }
.bar-nav a {
  font-family: var(--util); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--wine-ink); padding-bottom: .15rem;
  border-bottom: 1px solid transparent;
}
.bar-nav a:hover, .bar-nav a[aria-current="page"] { border-bottom-color: var(--wine-ink); }
.who { font-family: var(--util); font-size: .78rem; letter-spacing: .04em; color: var(--ink-soft); }
.bar-out { color: var(--ink-soft); }

/* ───────────────────────── the cover ───────────────────────── */
.cover {
  min-height: 100dvh;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(243, 234, 213, .06), transparent 60%),
    var(--wine);
  color: var(--cream-on-wine);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.cover-frame {
  position: relative;
  width: min(620px, 100%);
  border: 1px solid rgba(243, 234, 213, .8);
  padding: clamp(2.2rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3.4rem);
  text-align: center;
}
.cover-frame::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(243, 234, 213, .38);
}
.cover-eyebrow, .cover-label {
  font-family: var(--util); font-weight: 500; font-size: .72rem;
  letter-spacing: .34em; text-transform: uppercase; text-indent: .34em;
  color: var(--gilt);
}
.cover-word {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(3.2rem, 10vw, 5.4rem);
  letter-spacing: .06em;
  line-height: 1.04;
  margin-top: 1.1rem;
  color: var(--cream-on-wine);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.cover-line {
  font-family: var(--text); font-style: italic; font-size: 1.12rem;
  color: rgba(243, 234, 213, .85);
  margin-top: .35rem;
}
.cover-rule { display: flex; align-items: center; gap: .8rem; margin: 1.9rem auto 1.7rem; width: min(340px, 80%); }
.rule-line { flex: 1; border-top: 1px solid rgba(243, 234, 213, .5); }
.rule-orn { font-size: .55rem; color: var(--gilt); }

.houses { margin: 1.4rem auto 0; width: min(430px, 100%); text-align: left; }
.house {
  display: flex; align-items: baseline; gap: .6em;
  padding: .55rem 0;
  text-decoration: none; color: var(--cream-on-wine);
}
.house + .house { border-top: 1px solid rgba(243, 234, 213, .14); }
.house-name { font-family: var(--disp); font-weight: 600; font-size: 1.45rem; letter-spacing: .015em; }
.house-lead { flex: 1 1 2ch; min-width: 2ch; border-bottom: 2px dotted rgba(243, 234, 213, .4); transform: translateY(-5px); }
.house-where {
  font-family: var(--util); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(243, 234, 213, .75);
}
.house:hover .house-name { color: var(--gilt); }
.house:hover .house-lead { border-bottom-color: rgba(200, 165, 102, .7); }

.cover-foot { margin-top: 2.4rem; font-family: var(--util); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.cover-foot a { color: rgba(243, 234, 213, .85); text-decoration-color: rgba(243, 234, 213, .4); }
.cover-foot a:hover { color: var(--gilt); }
.cover-foot .cf-who { color: rgba(243, 234, 213, .6); letter-spacing: .04em; text-transform: none; }

/* cover empty/error text sits on wine */
.cover .empty { background: transparent; border-color: rgba(243, 234, 213, .3); color: var(--cream-on-wine); }
.cover .empty p { color: rgba(243, 234, 213, .8); }
.cover .wait { color: rgba(243, 234, 213, .8); }
.cover .btn-ghost { border-color: rgba(243, 234, 213, .6); color: var(--cream-on-wine); }
.cover .btn-ghost:hover { background: rgba(243, 234, 213, .1); }

/* ───────────────────────── the sheet (public menu) ───────────────────────── */
.sheet-wrap { width: min(780px, 100%); margin: 0 auto; padding: 1.2rem clamp(.8rem, 3vw, 1.4rem) 3rem; }
.crumbs { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem .2rem .9rem; }
.crumb {
  font-family: var(--util); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
}
.crumb:hover { color: var(--wine-ink); }
.manage-link {
  font-family: var(--util); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--wine-ink);
}

.sheet {
  background: var(--cream);
  border: 1px solid var(--hair-soft);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(46, 30, 24, .07), 0 12px 34px rgba(46, 30, 24, .1);
  padding: clamp(2rem, 6vw, 4.2rem) clamp(1.2rem, 5.5vw, 4rem) clamp(2rem, 5vw, 3rem);
}

.m-head { text-align: center; }
.m-eyebrow {
  font-family: var(--util); font-weight: 500; font-size: .68rem;
  letter-spacing: .3em; text-transform: uppercase; text-indent: .3em;
  color: var(--wine-ink);
}
.m-name {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 3.7rem);
  line-height: 1.06; letter-spacing: .015em;
  margin-top: .5rem;
}
.m-address {
  font-family: var(--util); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .8rem;
}
.dbl-rule { height: 5px; border-top: 2px solid var(--wine-ink); border-bottom: 1px solid var(--wine-ink); margin: 1.5rem auto 0; width: min(360px, 78%); }

.course { margin-top: clamp(2.2rem, 5vw, 3rem); }
.course-head { display: flex; align-items: center; gap: 1rem; }
.course-head::before, .course-head::after { content: ""; flex: 1; border-top: 1px solid var(--hair); }
.course-name {
  font-family: var(--disp); font-weight: 600; font-size: 1.2rem;
  letter-spacing: .22em; text-transform: uppercase; text-indent: .22em;
  color: var(--wine-ink); text-align: center;
}
.course-note {
  text-align: center; font-style: italic; font-size: 1.02rem; color: var(--ink-soft);
  margin-top: .45rem;
}
.dishes { list-style: none; margin-top: 1.3rem; }
.dish { padding: .55rem 0; }
.dish-line { display: flex; align-items: baseline; gap: .55em; }
.dish-name { font-family: var(--disp); font-weight: 600; font-size: 1.32rem; line-height: 1.25; letter-spacing: .01em; }
.marks { margin-left: .45em; white-space: nowrap; }
.marks i {
  font-style: normal; font-family: var(--util); font-weight: 600; font-size: .56rem;
  letter-spacing: .1em; color: var(--wine-ink);
  border: 1px solid var(--hair); border-radius: 2px;
  padding: .1em .3em; margin-right: .3em;
  vertical-align: .45em;
}
.dish-lead { flex: 1 1 2ch; min-width: 2ch; border-bottom: 2px dotted var(--hair); transform: translateY(-5px); }
.dish:hover .dish-lead { border-bottom-color: var(--wine-ink); }
.dish-price {
  font-family: var(--disp); font-weight: 600; font-size: 1.22rem;
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1;
  color: var(--ink);
}
.dish-desc { font-size: 1.02rem; font-style: italic; color: var(--ink-soft); max-width: 52ch; margin-top: .1rem; }
.dish--out .dish-name, .dish--out .dish-desc, .dish--out .dish-price { opacity: .48; }
.dish--out .dish-name { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--wine-ink); }
.out-tag {
  font-family: var(--util); font-weight: 500; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wine-ink); margin-left: .5em; vertical-align: .35em; white-space: nowrap;
}
.course-tba { text-align: center; font-style: italic; color: var(--ink-soft); margin-top: 1.2rem; letter-spacing: .04em; }

.m-foot { margin-top: clamp(2.4rem, 6vw, 3.4rem); text-align: center; }
.m-foot .dbl-rule { margin-bottom: 1.2rem; }
.m-legend { font-family: var(--util); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.m-legend b { color: var(--wine-ink); font-weight: 600; }
.m-set { font-style: italic; font-size: .92rem; color: var(--ink-soft); margin-top: .9rem; }

/* ───────────────────────── staff entrance ───────────────────────── */
.gate { display: grid; place-items: start center; padding: clamp(1.5rem, 6vw, 4rem) 1rem 3rem; }
.gate-card {
  width: min(460px, 100%);
  background: var(--cream);
  border: 1px solid var(--hair-soft);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(46, 30, 24, .07), 0 12px 34px rgba(46, 30, 24, .1);
  padding: clamp(1.6rem, 5vw, 2.6rem);
  text-align: center;
}
.g-eyebrow {
  font-family: var(--util); font-weight: 500; font-size: .68rem;
  letter-spacing: .3em; text-transform: uppercase; text-indent: .3em;
  color: var(--wine-ink);
}
.g-h { font-family: var(--disp); font-weight: 600; font-size: 2rem; margin-top: .5rem; }
.g-lede { font-size: 1rem; color: var(--ink-soft); margin: .7rem 0 1.4rem; }
.gate-card form { text-align: left; }

.demo-slot { border-top: 1px solid var(--hair-soft); margin-top: 1.5rem; padding-top: 1.2rem; }
.ds-tag { font-family: var(--util); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.ds-rows { margin: .7rem 0 .9rem; }
.ds-rows div { display: flex; justify-content: center; gap: .7em; align-items: baseline; padding: .12rem 0; }
.ds-rows dt { font-family: var(--util); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ds-rows dd { font-size: .98rem; }
.g-alt { margin-top: 1.4rem; font-size: .95rem; color: var(--ink-soft); }
#signupForm { margin-top: 1rem; border-top: 1px solid var(--hair-soft); padding-top: 1.2rem; }

/* ───────────────────────── the pass / manage ───────────────────────── */
.board { width: min(820px, 100%); margin: 0 auto; padding: 1.4rem clamp(.8rem, 3vw, 1.4rem) 3rem; }
.cap { margin-bottom: 1.6rem; }
.k-eyebrow {
  font-family: var(--util); font-weight: 500; font-size: .68rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--wine-ink);
}
.cap-h { font-family: var(--disp); font-weight: 600; font-size: clamp(2rem, 5vw, 2.7rem); margin-top: .3rem; }
.cap-sub { color: var(--ink-soft); max-width: 56ch; margin-top: .5rem; }

.owned { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.owned-row {
  background: var(--cream);
  border: 1px solid var(--hair-soft);
  border-radius: 2px;
  padding: 1.1rem 1.3rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  box-shadow: 0 1px 2px rgba(46, 30, 24, .06);
}
.or-main { flex: 1 1 240px; }
.or-name { font-family: var(--disp); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.or-name a { text-decoration: none; color: var(--ink); }
.or-name a:hover { color: var(--wine-ink); }
.or-where { font-family: var(--util); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: .25rem; }
.or-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* manage sections */
.mg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.mg-name { font-family: var(--disp); font-weight: 600; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; }
.mg-view { font-family: var(--util); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.mg-sec { background: var(--cream); border: 1px solid var(--hair-soft); border-radius: 2px; padding: 1.3rem 1.4rem 1.5rem; margin-bottom: 1.1rem; box-shadow: 0 1px 2px rgba(46, 30, 24, .06); }
.mg-sec-h {
  font-family: var(--util); font-weight: 600; font-size: .72rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--wine-ink);
  border-bottom: 1px solid var(--hair-soft); padding-bottom: .55rem; margin-bottom: 1rem;
}
.mg-note { font-size: .95rem; font-style: italic; color: var(--ink-soft); margin-top: .9rem; max-width: 62ch; }

.mg-course { display: flex; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--hair-soft); }
.mg-course:first-of-type { border-top: 0; padding-top: .2rem; }
.mc-ord {
  font-family: var(--disp); font-weight: 600; font-size: 1.7rem; line-height: 1;
  color: var(--hair); min-width: 1.6ch; text-align: right;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.mc-body { flex: 1; min-width: 0; }
.mc-name { font-family: var(--disp); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.mc-desc { font-style: italic; font-size: .96rem; color: var(--ink-soft); }
.mc-dishes { list-style: none; margin-top: .5rem; display: grid; gap: .25rem; }
.mc-dish { display: flex; align-items: center; gap: .55em; font-size: .96rem; color: var(--ink-soft); }
.mc-thumb { width: 30px; height: 30px; object-fit: cover; border-radius: 3px; border: 1px solid var(--hair-soft); flex: none; }
.mc-dish-name { color: var(--ink); }
.mc-dish .dish-lead { transform: translateY(-4px); }
.mc-price { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1; }
.mc-none { font-style: italic; font-size: .95rem; color: var(--ink-soft); margin-top: .35rem; }

.danger-copy { font-size: .98rem; color: var(--ink-soft); max-width: 58ch; margin-bottom: 1rem; }
.confirm {
  border: 1px solid var(--wine-ink); border-radius: 2px;
  background: rgba(107, 36, 56, .06);
  padding: 1rem 1.1rem; margin-top: 1rem;
}
.confirm p { font-size: .98rem; margin-bottom: .8rem; }
.confirm-row { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ───────────────────────── forms, buttons, folds ───────────────────────── */
.field { margin-bottom: .95rem; }
.field label {
  display: block;
  font-family: var(--util); font-weight: 500; font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .3rem;
}
.field label small { text-transform: none; letter-spacing: .02em; opacity: .8; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--text); font-size: 1.02rem; color: var(--ink);
  background: var(--cream-hi);
  border: 1px solid var(--hair);
  border-radius: 2px;
  padding: .55rem .7rem;
}
.field input:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--wine-ink);
  box-shadow: 0 0 0 2px rgba(107, 36, 56, .18);
}
.field ::placeholder { color: rgba(110, 91, 78, .55); font-style: italic; }

.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.gf-wide { grid-column: 1 / -1; }

.form-err {
  font-size: .95rem; color: var(--wine-deep);
  background: rgba(107, 36, 56, .08);
  border-left: 2px solid var(--wine-ink);
  padding: .5rem .7rem; margin-bottom: .9rem;
}

.btn {
  display: inline-block;
  font-family: var(--util); font-weight: 500; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; text-indent: .16em;
  padding: .68rem 1.25rem;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-wine { background: var(--wine); color: var(--cream-on-wine); }
.btn-wine:hover { background: var(--wine-deep); color: var(--cream-on-wine); }
.btn-ghost { border-color: var(--hair); color: var(--wine-ink); background: transparent; }
.btn-ghost:hover { border-color: var(--wine-ink); }
.btn-wide { width: 100%; }
.btn-sm { padding: .5rem .9rem; font-size: .68rem; }
.btn:disabled { opacity: .55; cursor: default; }

.fold { border: 1px solid var(--hair-soft); border-radius: 2px; background: var(--cream); box-shadow: 0 1px 2px rgba(46, 30, 24, .06); }
.fold summary {
  cursor: pointer; list-style: none;
  font-family: var(--util); font-weight: 500; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--wine-ink);
  padding: .95rem 1.3rem;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: "+"; margin-right: .6em; font-size: .9rem; }
.fold[open] summary::before { content: "−"; }
.fold-body { padding: .2rem 1.3rem 1.3rem; }

/* ───────────────────────── shared states ───────────────────────── */
.empty {
  text-align: center;
  border: 1px dashed var(--hair);
  border-radius: 2px;
  padding: 1.8rem 1.2rem;
  margin: 1rem 0;
}
.empty strong { font-family: var(--disp); font-weight: 600; font-size: 1.25rem; display: block; }
.empty p { color: var(--ink-soft); font-size: .98rem; max-width: 46ch; margin: .4rem auto .9rem; }
.empty .btn { margin-top: .2rem; }

.wait {
  text-align: center;
  font-family: var(--util); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; text-indent: .26em;
  color: var(--ink-soft);
  padding: 2.4rem 0;
}
.wait-orn { display: inline-block; color: var(--wine-ink); margin-right: .6em; }
@media (prefers-reduced-motion: no-preference) {
  .wait-orn { animation: settle 1.2s ease-in-out infinite alternate; }
  @keyframes settle { from { opacity: .25; } to { opacity: 1; } }
  .btn, .bar-nav a, .house-name, .house-lead, .dish-lead, .fold summary, a { transition: color .15s ease, background-color .15s ease, border-color .15s ease, opacity .15s ease; }
}

.toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 50;
  background: var(--wine); color: var(--cream-on-wine);
  font-family: var(--util); font-size: .82rem; letter-spacing: .05em;
  padding: .65rem 1.2rem; border-radius: 2px;
  box-shadow: 0 8px 26px rgba(46, 30, 24, .35);
  max-width: min(92vw, 480px); text-align: center;
}
.toast--err { background: var(--wine-deep); outline: 1px solid rgba(243, 234, 213, .4); outline-offset: -4px; }

.foot {
  text-align: center;
  font-family: var(--util); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 1.2rem 1rem 1.6rem;
}

/* ───────────────────────── small screens ───────────────────────── */
@media (max-width: 700px) {
  .grid-form { grid-template-columns: 1fr; }
  .bar { flex-wrap: wrap; row-gap: .4rem; }
  .bar-nav { gap: .8rem; }
  .who { display: none; }
  .dish-name { font-size: 1.18rem; }
  .m-eyebrow { letter-spacing: .2em; }
  .owned-row { align-items: flex-start; flex-direction: column; }
}

/* ───────────────────────── print: the sheet alone ───────────────────────── */
@media print {
  body { background: #fff; }
  .bar, .crumbs, .foot, .toast, .skip { display: none !important; }
  .sheet { border: 0; box-shadow: none; padding: 0; }
  .sheet-wrap { padding: 0; width: 100%; }
}
