/* William — site styles. Colors and type are set once here; change them in :root. */
:root {
  --walnut: #17100e;      /* the room */
  --booth: #251815;       /* raised surfaces */
  --oxblood: #4a1f1c;     /* leather accents */
  --brass: #c9a24b;
  --brass-hi: #e6c878;
  --zest: #f28c28;
  --paper: #f1e4c8;       /* the menu card */
  --paper-edge: #dccba4;
  --ink: #2a1a14;         /* text on paper */
  --cream: #f3e9d6;       /* text on dark */
  --dim: #b9a68c;
  --green: #7fb69a;
  --red: #e0796b;
  --display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(60rem 30rem at 50% -8rem, rgba(201, 162, 75, .16), transparent 70%),
    radial-gradient(40rem 26rem at 88% 22rem, rgba(74, 31, 28, .55), transparent 70%),
    var(--walnut);
  background-repeat: no-repeat;
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--brass-hi); text-underline-offset: .18em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--zest); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 9vw, 5.6rem); font-style: italic; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 5vw, 3rem); font-style: italic; }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.lede { font-size: 1.2rem; color: var(--dim); max-width: 34rem; }

/* ── Top bar ─────────────────────────────────────────────── */
.bar { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--cream); text-decoration: none;
         font-family: var(--display); font-size: 1.5rem; font-style: italic; }
.brand img { width: 2.6rem; height: 2.6rem; border-radius: 50%; box-shadow: 0 0 0 2px var(--brass); background: var(--booth); }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.bar nav a.link { color: var(--dim); text-decoration: none; font-size: .98rem; }
.bar nav a.link:hover { color: var(--cream); }
.tab { display: flex; align-items: center; gap: .65rem; padding: .35rem .45rem .35rem .4rem; border-radius: 999px;
       background: var(--booth); border: 1px solid rgba(201, 162, 75, .35); }
.tab img { width: 2rem; height: 2rem; border-radius: 50%; }
.tab .who { line-height: 1.15; font-size: .9rem; }
.tab .who b { display: block; font-weight: 600; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab .who span { color: var(--zest); font-variant-numeric: tabular-nums; }
.tab a { font-size: .82rem; color: var(--dim); padding: .3rem .6rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer;
       font: 600 1rem/1 var(--body); padding: .85rem 1.3rem; border-radius: 999px; text-decoration: none;
       border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn.brass { background: var(--brass); color: #1c120c; }
.btn.brass:hover { background: var(--brass-hi); color: #1c120c; }
.btn.ghost { border-color: rgba(243, 233, 214, .35); color: var(--cream); background: transparent; }
.btn.ghost:hover { border-color: var(--cream); }
.btn.ink { background: var(--ink); color: var(--paper); padding: .6rem 1.05rem; font-size: .95rem; min-width: 5.4rem; }
.btn.ink:hover { background: var(--oxblood); color: #fff; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.ink[disabled]:hover { background: var(--ink); color: var(--paper); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: clamp(2rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 2.5rem; align-items: end; }
.hero .lede { margin-top: 1.25rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
@media (min-width: 56rem) { .hero { grid-template-columns: 1.15fr 1fr; } }

/* the back bar: relics lined up like bottles on brass shelves */
.backbar { display: grid; gap: 1.6rem; }
.shelf { display: flex; justify-content: space-around; align-items: flex-end; gap: .4rem; padding: 0 .75rem;
         border-bottom: 3px solid var(--brass); position: relative; }
.shelf::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1.4rem; margin-top: 3px;
                background: linear-gradient(rgba(201, 162, 75, .18), transparent); pointer-events: none; }
.shelf img { width: clamp(2.6rem, 11vw, 4.1rem); aspect-ratio: 1; object-fit: contain; margin-bottom: -2px;
             filter: drop-shadow(0 .5rem .6rem rgba(0, 0, 0, .55)); }
.shelf img:nth-child(even) { width: clamp(2.2rem, 9vw, 3.4rem); }

/* ── The menu card ───────────────────────────────────────── */
.menu-section { padding: 1rem 0 clamp(3rem, 8vw, 5.5rem); scroll-margin-top: 1rem; }
.card { background: var(--paper); color: var(--ink); border-radius: 6px; padding: clamp(1.25rem, 4vw, 3rem);
        box-shadow: 0 0 0 1px var(--paper-edge), 0 2.5rem 4rem -1.5rem rgba(0, 0, 0, .8); position: relative; }
.card::before { content: ""; position: absolute; inset: .55rem; border: 1px solid rgba(42, 26, 20, .38);
                outline: 1px solid rgba(42, 26, 20, .16); outline-offset: 3px; border-radius: 3px; pointer-events: none; }
.card > * { position: relative; }
.card a { color: var(--oxblood); }
.card-head { text-align: center; padding: .75rem 0 1.5rem; }
.card-head p { color: #6b5443; margin-top: .6rem; }
.account { margin: 0 auto 1.75rem; max-width: 40rem; text-align: center; padding: .9rem 1rem; border-radius: 4px;
           background: rgba(42, 26, 20, .07); font-size: 1rem; }
.account .btn { margin-top: .6rem; }
.account.warn { background: rgba(160, 60, 40, .13); }
.columns { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .columns { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.col h3 { font-style: italic; font-size: 1.6rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }
.col > p { color: #6b5443; font-size: .95rem; margin-top: .55rem; }
.lines { list-style: none; margin: .5rem 0 0; padding: 0; }
.line { display: grid; grid-template-columns: 2.4rem 1fr auto; column-gap: .8rem; align-items: center;
        padding: 1rem 0; border-bottom: 1px solid rgba(42, 26, 20, .16); }
.line:last-child { border-bottom: 0; }
.line > img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.line .top { display: flex; align-items: baseline; gap: .5rem; }
.line .name { font-family: var(--display); font-size: 1.3rem; font-weight: 600; white-space: nowrap; }
.line .dots { flex: 1; border-bottom: 2px dotted rgba(42, 26, 20, .4); transform: translateY(-.28em); min-width: 1rem; }
.line .price { font-family: var(--display); font-size: 1.3rem; font-variant-numeric: lining-nums tabular-nums; }
.line .sub { font-size: .93rem; color: #6b5443; margin-top: .15rem; }
.line .sub b { color: var(--ink); font-weight: 600; }
.line .save { display: inline-block; margin-left: .35rem; font-size: .78rem; font-weight: 700; color: #7a2a1e;
              border: 1px solid currentColor; border-radius: 999px; padding: .05rem .5rem; white-space: nowrap; }
.line .state { grid-column: 2 / -1; font-size: .88rem; margin-top: .4rem; color: #2f6b55; }
.line .state.err { color: #9a2f22; }
/* phones: the Buy button drops under the description so names and prices keep the full width */
@media (max-width: 36rem) {
  .line { grid-template-columns: 2.1rem 1fr; align-items: start; }
  .line > img { width: 2.1rem; height: 2.1rem; margin-top: .15rem; }
  .line .btn { grid-column: 2; justify-self: start; margin-top: .7rem; }
  .line .state { grid-column: 2; }
  .line .name, .line .price { font-size: 1.2rem; }
}
.fine { text-align: center; color: #6b5443; font-size: .88rem; margin-top: 1.75rem; }

/* ── Sections on the dark room ───────────────────────────── */
.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.section > .wrap > h2 { margin-bottom: 1.75rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: s; padding-top: 1rem; border-top: 1px solid rgba(201, 162, 75, .45); }
.steps li::before { content: counter(s); font: italic 500 2.6rem/1 var(--display); color: var(--brass); display: block; margin-bottom: .6rem; }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--dim); }

.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; margin: 0; }
@media (min-width: 48rem) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figures dt { color: var(--dim); font-size: .98rem; order: 2; }
.figures dd { margin: 0; font: 500 clamp(2.1rem, 6vw, 3.2rem)/1 var(--display); color: var(--cream); font-variant-numeric: lining-nums; }
.figures div { display: flex; flex-direction: column; gap: .4rem; }

.faq { max-width: 44rem; }
.faq details { border-top: 1px solid rgba(243, 233, 214, .16); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid rgba(243, 233, 214, .16); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; }
.faq summary::marker { color: var(--brass); }
.faq details p { color: var(--dim); margin-top: .6rem; }
.faq code, .prose code { background: rgba(243, 233, 214, .1); padding: .08em .4em; border-radius: 4px; font-size: .92em; }

/* ── Payment result panel ────────────────────────────────── */
.result { padding: clamp(2.5rem, 9vw, 6rem) 0; text-align: center; }
.result .card { max-width: 34rem; margin-inline: auto; padding-block: 2.75rem; }
.result h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); color: var(--ink); }
.result p { margin-top: .9rem; color: #5c4636; }
.result .btn { margin-top: 1.6rem; }
.pulse { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--zest); margin-right: .5rem;
         animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }

/* ── Footer ──────────────────────────────────────────────── */
.foot { border-top: 1px solid rgba(201, 162, 75, .3); padding: 2rem 0 3rem; color: var(--dim); font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; align-items: baseline; }
.foot a { color: var(--cream); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot small { margin-left: auto; font-size: .88rem; }
@media (max-width: 40rem) { .foot small { margin-left: 0; width: 100%; } .bar nav a.link { display: none; } }

/* ── Legal page ──────────────────────────────────────────── */
.prose { max-width: 42rem; padding: 2rem 0 4rem; }
.prose h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); margin-bottom: 1rem; }
.prose h2 { font-size: 1.9rem; margin: 3rem 0 .9rem; scroll-margin-top: 1rem; }
.prose p, .prose li { color: #d9cbb3; }
.prose p + p { margin-top: .9rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .4rem 0; }
.prose .note { color: var(--dim); font-size: .95rem; }
.card code { background: rgba(42, 26, 20, .1); padding: .08em .4em; border-radius: 4px; font-size: .92em; }
