/* Tokens and base styles match the marketing site. */
:root {
  --ivory: #F8F4EE;
  --plaster: #EFE8DD;
  --stone: #D9CFC1;
  --espresso: #231C16;
  --gold-ink: #8C6420;
  --gold-ink-2: #7E5A1C;
  --gold-light: #E8CE8A;
  --gold-btn: linear-gradient(135deg, #B88A3B 0%, #E8CE8A 45%, #C79A48 70%, #F3DFA6 100%);
  --ink-soft: #5A4F44;
  --ivory-soft: #CFC6B8;
  --danger: #8E2F24;
  --ok: #3F5B36;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ivory); scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1:focus { outline: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--gold-light); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--espresso); color: var(--ivory); padding: 12px 18px; border-radius: 2px;
}
.skip:focus { top: 12px; }

.label {
  font: 500 .72rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink);
}
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; line-height: 1.55; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: .85em 1.6em; border-radius: 2px;
  font: 500 .76rem/1.25 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; text-align: center; transition: background-color .25s, box-shadow .25s, opacity .25s;
}
.btn--dark { background: var(--espresso); color: var(--ivory); }
.btn--dark:hover { background: #3A2E23; }
.btn--gold { background: var(--gold-btn); color: var(--espresso); box-shadow: 0 12px 30px -18px rgba(140,100,32,.9); }
.btn--ghost { color: var(--espresso); box-shadow: inset 0 0 0 1px rgba(35,28,22,.42); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold-ink); }
.btn--danger { color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.btn--small { min-height: 44px; padding: .6em 1.1em; font-size: .7rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-ink-2);
  text-decoration: underline; text-underline-offset: 3px; font-weight: 500;
}
/* A link inside a sentence. The padding gives a 44px target without changing the line height. */
.link--inline { display: inline; min-height: 0; padding-block: 13px; }

/* Fields */
.field { display: grid; gap: 6px; }
.field > label, .field > .field__label { font-weight: 500; font-size: .9rem; }
.field__hint { font-size: .85rem; color: var(--ink-soft); }
.input {
  width: 100%; min-height: 50px; padding: 11px 14px; background: #FFFDF9;
  border: 1px solid #8E8171; border-radius: 2px;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus-visible { outline-offset: 0; border-color: var(--gold-ink); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .88rem; font-weight: 500; }
.check {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  min-height: 44px; padding: 10px 0; cursor: pointer;
}
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--espresso); }

/* Messages */
.notice { padding: 12px 14px; border-left: 3px solid var(--gold-ink); background: var(--plaster); font-size: .92rem; }
.notice--error { border-left-color: var(--danger); background: #F6E9E4; }
.notice--ok { border-left-color: var(--ok); background: #EDEFE3; }
.preview-bar { background: var(--espresso); color: var(--ivory); font-size: .85rem; line-height: 1.45; padding: 10px var(--gutter); }
.preview-bar a { color: var(--gold-light); padding-block: 13px; }

/* Page frame */
.bar {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 60px; padding: 4px var(--gutter); background: rgba(248,244,238,.96); border-bottom: 1px solid var(--stone);
}
.bar__mark { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; text-decoration: none; }
.bar__mark img { width: 24px; height: 24px; }
.bar__name { font: 500 1.2rem/1 var(--serif); letter-spacing: .01em; }
.bar__side { display: flex; align-items: center; }
.bar__side--end { justify-content: flex-end; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; font-size: .9rem; font-weight: 500; text-decoration: none; }

.page { width: min(100%, 620px); margin-inline: auto; padding: 22px var(--gutter) 64px; }
.page__head { display: grid; gap: 8px; margin-bottom: 20px; }
.page__head h1 { font-size: clamp(2.1rem, 1.7rem + 2vw, 2.9rem); font-weight: 300; }
.progress { display: flex; gap: 6px; }
.progress span { height: 2px; flex: 1; background: var(--stone); }
.progress span.on { background: var(--gold-ink); }

/* Arch shape, shared with the marketing site */
.arch { border-radius: 999px 999px 0 0; }

/* Service list */
.cat { border-top: 1px solid var(--stone); }
.cat:last-child { border-bottom: 1px solid var(--stone); }
.cat > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px;
  padding: 10px 0; cursor: pointer; list-style: none; font: 400 1.55rem/1.15 var(--serif);
}
.cat > summary::-webkit-details-marker { display: none; }
.cat > summary .chev { flex: none; transition: transform .25s var(--ease); }
.cat[open] > summary .chev { transform: rotate(180deg); }
.svc-list { display: grid; padding-bottom: 8px; }
.svc {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; width: 100%; min-height: 64px; padding: 12px 10px;
  margin-inline: -10px; width: calc(100% + 20px); text-align: left; border-radius: 2px;
  border-top: 1px solid rgba(217,207,193,.6);
}
.svc:first-child { border-top: 0; }
button.svc:hover { background: var(--plaster); }
.svc__name { font: 500 1.28rem/1.2 var(--serif); }
.svc__price { font-weight: 500; white-space: nowrap; text-align: right; }
.svc__desc { grid-column: 1 / -1; font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }
.svc__meta { grid-column: 1 / -1; font-size: .82rem; color: var(--gold-ink-2); font-weight: 500; }
.svc--call { padding-bottom: 6px; }
.svc--call .link { grid-column: 1 / -1; font-size: .88rem; }

/* Add-ons */
.addon { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--stone); cursor: pointer; }
.addon:last-of-type { border-bottom: 1px solid var(--stone); }
.addon input { width: 22px; height: 22px; margin: 0; accent-color: var(--espresso); }

/* Artists */
.artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.artist { display: grid; justify-items: center; gap: 10px; padding: 14px 8px 12px; background: #FFFDF9; box-shadow: inset 0 0 0 1px var(--stone); border-radius: 2px; }
.artist:hover { box-shadow: inset 0 0 0 1px var(--gold-ink); }
.artist__arch {
  display: grid; place-items: center; width: 64px; height: 84px; background: var(--plaster);
  font: 400 1.9rem/1 var(--serif); color: var(--gold-ink-2); padding-top: 8px;
}
.artist--any { grid-column: 1 / -1; grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; padding: 12px 16px; }
.artist--any .artist__arch { background: var(--espresso); color: var(--gold-light); width: 50px; height: 66px; font-size: 1.3rem; padding-top: 6px; }
.artist__name { font: 500 1.25rem/1.15 var(--serif); }

/* Date strip */
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scroll-snap-type: x proximity; scrollbar-width: thin; }
.date {
  flex: none; display: grid; justify-items: center; align-content: end; gap: 1px; width: 62px; min-height: 86px; padding: 18px 4px 9px;
  background: #FFFDF9; box-shadow: inset 0 0 0 1px var(--stone); scroll-snap-align: start;
}
.date:hover { box-shadow: inset 0 0 0 1px var(--gold-ink); }
.date__day { font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.date__num { font: 400 1.65rem/1.05 var(--serif); }
.date__mon { font-size: .68rem; color: var(--ink-soft); }
.date[aria-disabled="true"] { background: transparent; color: #756A5D; box-shadow: inset 0 0 0 1px rgba(217,207,193,.6); cursor: default; text-decoration: line-through; }
.date[aria-pressed="true"] { background: var(--espresso); color: var(--ivory); box-shadow: none; }
.date[aria-pressed="true"] .date__mon { color: var(--ivory-soft); }
.date--more { display: grid; place-items: center; align-content: center; font-size: .78rem; font-weight: 500; line-height: 1.3; text-align: center; }

/* Time slots */
.slots-block { display: grid; gap: 8px; margin-top: 16px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { min-height: 50px; padding: 8px 4px; background: #FFFDF9; box-shadow: inset 0 0 0 1px var(--stone); border-radius: 2px; font-weight: 500; font-size: .95rem; font-variant-numeric: tabular-nums; }
.slot:hover { box-shadow: inset 0 0 0 1px var(--gold-ink); background: var(--plaster); }
.slot:active { background: var(--espresso); color: var(--ivory); }

/* Summary */
.summary { background: var(--plaster); padding: 16px; display: grid; gap: 6px; }
.summary__name { font: 500 1.4rem/1.2 var(--serif); }
.summary__row { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; }
.form { display: grid; gap: 18px; margin-top: 22px; }
.policy { font-size: .88rem; line-height: 1.55; padding: 14px; background: #FFFDF9; box-shadow: inset 0 0 0 1px var(--stone); }
.stack { display: grid; gap: 14px; }

/* Done */
.done { display: grid; justify-items: center; gap: 16px; text-align: center; padding-top: 6px; }
.done__arch {
  display: grid; place-items: center; width: 100%; max-width: 360px; padding: 74px 22px 30px; gap: 8px;
  background: var(--espresso); color: var(--ivory);
}
.done__arch .label { color: var(--gold-light); }
.done__arch h1 { font-size: 2.5rem; font-weight: 300; }
.done__time { font: 400 1.4rem/1.25 var(--serif); }
.actions { display: grid; gap: 10px; width: 100%; }

.foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--stone); font-size: .86rem; line-height: 1.6; color: var(--ink-soft); }

.loading { min-height: 120px; display: grid; place-items: center; color: var(--ink-soft); }
.spin { width: 22px; height: 22px; border: 2px solid var(--stone); border-top-color: var(--gold-ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

dialog {
  width: min(92vw, 460px); max-height: 90dvh; padding: 22px; border: 0; border-radius: 2px;
  background: var(--ivory); color: var(--espresso); box-shadow: 0 30px 80px -30px rgba(35,28,22,.6);
}
dialog::backdrop { background: rgba(35,28,22,.5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
