/* Candlelit glass. Every colour and size comes from spec/business.json (theme); these are fallbacks. */
:root {
  --bg: #1a1014; --glass: rgb(255 244 230 / 0.08); --glass-strong: rgb(255 244 230 / 0.14);
  --glass-border: rgb(255 236 210 / 0.22); --blur: 18px;
  --text: #fbf3ea; --muted: #d9c7b8; --accent: #e8a25c; --accent-2: #d9735b; --accent-text: #24140c;
  --radius: 22px; --font-heading: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --hero-image: none;
  --error: #ffb4a6;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 16px/1.55 var(--font-body);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgb(232 162 92 / 0.28), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgb(160 60 100 / 0.30), transparent 60%),
    linear-gradient(rgb(20 11 15 / 0.35), rgb(20 11 15 / 0.85)),
    var(--hero-image) center / cover fixed,
    var(--bg);
}
h1, h2 { font-family: var(--font-heading); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
main { max-width: 620px; margin: 0 auto; padding: 0 16px 56px; }

/* Glass */
.glass, .card, .site-header {
  background: linear-gradient(140deg, var(--glass-strong), var(--glass));
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 24px 60px rgb(0 0 0 / 0.35);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
}

.site-header {
  display: flex; align-items: center; gap: 12px; max-width: 620px; margin: 16px auto 0;
  padding: 10px 16px; border-radius: 999px; width: calc(100% - 32px);
}
.logo { width: 34px; height: 34px; }
.brand { font-family: var(--font-heading); font-size: 1.15rem; letter-spacing: 0.02em; }

.hero { padding: 56px 8px 28px; text-align: center; }
.hero h1 { margin: 0 0 10px; font-size: clamp(2.2rem, 9vw, 3.4rem); text-shadow: 0 2px 30px rgb(0 0 0 / 0.4); }
.hero p { margin: 0 auto; max-width: 30ch; color: var(--muted); font-size: 1.05rem; }

.card { border-radius: var(--radius); padding: 24px 20px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 12px; padding: 0; }
label { display: block; margin: 0 0 14px; font-size: 0.92rem; color: var(--muted); }
legend label { display: inline; margin: 0; font: inherit; color: inherit; }
input, textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font: inherit; color: var(--text);
  background: rgb(255 255 255 / 0.06); border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) / 2); transition: border-color 0.2s, background 0.2s;
}
input:hover, textarea:hover { background: rgb(255 255 255 / 0.09); }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
input::placeholder, textarea::placeholder { color: rgb(251 243 234 / 0.45); }
[aria-invalid="true"] { border-color: var(--error); }
.optional { color: rgb(251 243 234 / 0.5); font-size: 0.82rem; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  min-width: 52px; min-height: 46px; padding: 8px 16px; font: inherit; color: var(--text); cursor: pointer;
  background: rgb(255 255 255 / 0.06); border: 1px solid var(--glass-border); border-radius: 999px;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.choice:hover { background: rgb(255 255 255 / 0.12); transform: translateY(-1px); }
.choice[aria-checked="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent;
  color: var(--accent-text); font-weight: 600; box-shadow: 0 8px 24px rgb(232 162 92 / 0.35);
}
.hint { color: var(--muted); margin: 0; }

.primary {
  width: 100%; min-height: 54px; font: inherit; font-weight: 600; letter-spacing: 0.02em; cursor: pointer;
  border: 0; border-radius: 999px; color: var(--accent-text);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgb(232 162 92 / 0.35); transition: transform 0.15s, box-shadow 0.2s;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgb(232 162 92 / 0.45); }
.primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.error { color: var(--error); min-height: 1.5em; margin: 0 0 12px; }
.fine { color: var(--muted); font-size: 0.82rem; text-align: center; margin: 14px 0 0; }

.success { text-align: center; }
.success:focus { outline: none; } /* focused only so screen readers announce it */
.success h2 { font-size: 2rem; margin: 4px 0 12px; }
.ref { margin: 18px 0; }
.ref strong {
  display: inline-block; margin-top: 6px; padding: 8px 18px; border-radius: 999px; font-size: 1.25rem;
  letter-spacing: 0.12em; background: rgb(255 255 255 / 0.08); border: 1px dashed var(--glass-border);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-footer { text-align: center; color: var(--muted); font-size: 0.82rem; padding: 8px 16px 32px; }

/* Admin */
.admin main { max-width: 1120px; padding-top: 20px; }
.admin .site-header { max-width: 1120px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.toolbar label { margin: 0; }
.toolbar input, .toolbar select { width: auto; }
.stats { color: var(--muted); margin: 0 0 12px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
th, td { padding: 12px 10px; border-bottom: 1px solid rgb(255 236 210 / 0.1); vertical-align: top; font-size: 0.9rem; }
td input, td select { margin: 0; padding: 7px 9px; width: auto; }
.secondary {
  min-height: 42px; padding: 9px 16px; font: inherit; cursor: pointer; color: var(--text); text-decoration: none;
  display: inline-block; border-radius: 999px; background: rgb(255 255 255 / 0.07); border: 1px solid var(--glass-border);
}
.secondary:hover { background: rgb(255 255 255 / 0.13); }
.danger { color: var(--error); }
.walkin { margin-bottom: 16px; padding: 16px 20px; }
.walkin summary { cursor: pointer; font-family: var(--font-heading); font-size: 1.1rem; }
.walkin form { margin-top: 14px; }

/* Reservation layout: a calm welcome beside a clear, tactile booking form. */
.booking-page {
  background:
    linear-gradient(110deg, rgb(25 18 17 / .87), rgb(32 24 22 / .66)),
    var(--hero-image) center / cover fixed, var(--bg);
}
.booking-page .site-header {
  max-width: 1240px; margin: 24px auto 0; width: calc(100% - 64px);
  padding: 0 0 18px; border: 0; border-bottom: 1px solid rgb(255 244 230 / .22);
  border-radius: 0; background: none; box-shadow: none; backdrop-filter: none;
}
.booking-page .brand { font: 600 .92rem var(--font-body); letter-spacing: .04em; }
.booking-page .logo { width: 38px; height: 38px; }
.booking-page main {
  max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 510px);
  column-gap: clamp(48px, 8vw, 120px); align-items: start; padding: 54px 32px 64px;
}
.booking-page .hero { position: sticky; top: 48px; text-align: left; padding: clamp(40px, 8vw, 110px) 0 0; }
.booking-page .hero-eyebrow, .form-kicker {
  margin: 0 0 22px; color: var(--accent); font: 600 .72rem var(--font-body);
  letter-spacing: .16em; text-transform: uppercase;
}
.booking-page .hero h1 { max-width: 9ch; font-size: clamp(3.2rem, 6vw, 5.6rem); letter-spacing: -.045em; }
.booking-page .hero p:not(.hero-eyebrow) { margin: 22px 0 0; max-width: 32ch; line-height: 1.7; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 64px; color: var(--muted); font-size: .85rem; }
.hero-note span:first-child { width: 32px; height: 1px; background: var(--accent); }
.booking-page .card { padding: clamp(24px, 3vw, 38px); border-radius: 24px; }
.booking-page #bookingForm { background: linear-gradient(145deg, var(--glass-strong), var(--glass)), rgb(40 32 29 / .72); }
.form-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 24px; margin-bottom: 25px; border-bottom: 1px solid var(--glass-border); }
.form-kicker { display: block; margin: 0 0 8px; font-size: .65rem; }
.form-heading h2 { margin: 0; font-size: 1.9rem; }
.form-mark { width: 28px; height: 28px; border: 1px solid var(--accent); border-radius: 50%; position: relative; }
.form-mark::after { content: ''; position: absolute; inset: 8px; border: 1px solid var(--accent); border-radius: 50%; }
.booking-page fieldset { margin-bottom: 25px; }
.booking-page legend { font: 600 .93rem var(--font-body); letter-spacing: .01em; margin-bottom: 12px; }
.booking-page label { color: var(--text); font-size: .86rem; }
.booking-page input, .booking-page textarea { background: rgb(255 255 255 / .07); border-radius: 10px; }
.booking-page .choice { border-radius: 10px; min-width: 48px; min-height: 46px; }
.booking-page .choice[aria-checked="true"] { background: var(--accent); box-shadow: none; }
.booking-page .primary { background: var(--accent); border-radius: 12px; box-shadow: none; }
.booking-page .primary:hover { box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.booking-page .site-footer { max-width: 1240px; margin: auto; padding: 0 32px 28px; text-align: left; }
@media (max-width: 760px) {
  .booking-page .site-header { margin-top: 16px; width: calc(100% - 40px); }
  .booking-page main { display: block; padding: 0 20px 40px; }
  .booking-page .hero { position: static; padding: 46px 2px 32px; }
  .booking-page .hero h1 { font-size: clamp(3rem, 12vw, 4.2rem); }
  .booking-page .hero p:not(.hero-eyebrow) { margin-top: 14px; }
  .hero-note { margin-top: 25px; }
  .booking-page .site-footer { padding: 0 20px 24px; }
}

/* Browsers without backdrop-filter get a solid tinted panel, still readable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .card, .site-header { background: rgb(40 24 30 / 0.94); }
  .booking-page .site-header { background: none; }
}
/* biome-ignore lint/complexity/noImportantStyles: reduced motion must beat every component transition. */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* biome-ignore lint/correctness/noUnknownMediaFeatureName: prefers-reduced-transparency is in Media Queries 5; browsers without it skip the block. */
@media (prefers-reduced-transparency: reduce) {
  .glass, .card, .site-header { background: rgb(40 24 30 / 0.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .booking-page #bookingForm { background: rgb(40 32 29); }
  .booking-page .site-header { background: none; }
}

/* Light theme: warm frosted daylight. Applies when <html data-theme="light">. */
:root[data-theme="light"] { color-scheme: light; --error: #a43123; }
:root[data-theme="light"] body { background: var(--bg); }
:root[data-theme="light"] .glass, :root[data-theme="light"] .card, :root[data-theme="light"] .site-header {
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 12px 30px rgb(52 42 36 / .08);
}
:root[data-theme="light"] input, :root[data-theme="light"] textarea, :root[data-theme="light"] select { background: rgb(237 239 246 / .72); }
:root[data-theme="light"] input:hover, :root[data-theme="light"] textarea:hover { background: rgb(229 231 239 / .9); }
:root[data-theme="light"] input::placeholder, :root[data-theme="light"] textarea::placeholder { color: #716861; }
:root[data-theme="light"] .optional { color: var(--muted); }
:root[data-theme="light"] .choice { background: rgb(231 234 242 / .75); }
:root[data-theme="light"] .choice:hover, :root[data-theme="light"] .secondary:hover { background: rgb(221 225 235 / .9); }
:root[data-theme="light"] .choice[aria-checked="true"], :root[data-theme="light"] .primary { background: var(--accent); box-shadow: none; }
:root[data-theme="light"] .secondary { background: rgb(255 255 255 / .75); }
:root[data-theme="light"] .ref strong { background: rgb(231 234 242 / .7); }
:root[data-theme="light"] th, :root[data-theme="light"] td { border-bottom-color: var(--glass-border); }
:root[data-theme="light"] .booking-page { background: var(--bg); }
:root[data-theme="light"] .booking-page .site-header { border-bottom-color: var(--glass-border); background: none; box-shadow: none; }
:root[data-theme="light"] .booking-page main { grid-template-columns: minmax(0, .85fr) minmax(380px, 1.15fr); }
:root[data-theme="light"] .booking-page .hero { padding-top: 26px; }
:root[data-theme="light"] .booking-page .hero h1 { max-width: 12ch; font-size: clamp(2.7rem, 4.5vw, 4.5rem); text-shadow: none; }
:root[data-theme="light"] .booking-page .hero p:not(.hero-eyebrow) { max-width: 38ch; }
:root[data-theme="light"] .booking-page .hero::after {
  content: ''; display: block; height: 210px; margin-top: 40px; border-radius: 14px;
  background: var(--hero-image) center / cover, #eadbd1; border: 1px solid var(--glass-border);
}
:root[data-theme="light"] .booking-page #bookingForm { background: linear-gradient(145deg, var(--glass-strong), var(--glass)); }
:root[data-theme="light"] .booking-page input, :root[data-theme="light"] .booking-page textarea { background: rgb(231 234 242 / .65); }
:root[data-theme="light"] .booking-page .choice { background: rgb(231 234 242 / .75); }
:root[data-theme="light"] .booking-page .choice[aria-checked="true"] { background: var(--accent); }
:root[data-theme="light"] .booking-page .primary { background: var(--accent); }
:root[data-theme="light"] .booking-page .site-footer { border-top: 1px solid var(--glass-border); padding-top: 22px; }
@media (max-width: 760px) {
  :root[data-theme="light"] .booking-page .hero { padding: 46px 2px 32px; }
  :root[data-theme="light"] .booking-page .hero h1 { font-size: clamp(3rem, 12vw, 4.2rem); }
  :root[data-theme="light"] .booking-page .hero::after { height: 150px; margin-top: 24px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root[data-theme="light"] .glass, :root[data-theme="light"] .card, :root[data-theme="light"] .site-header { background: #fff; }
  :root[data-theme="light"] .booking-page .site-header { background: none; }
}
/* biome-ignore lint/correctness/noUnknownMediaFeatureName: prefers-reduced-transparency is in Media Queries 5; browsers without it skip the block. */
@media (prefers-reduced-transparency: reduce) {
  :root[data-theme="light"] .glass, :root[data-theme="light"] .card, :root[data-theme="light"] .site-header, :root[data-theme="light"] .booking-page #bookingForm { background: #fff; }
  :root[data-theme="light"] .booking-page .site-header { background: none; }
}

/* Light and dark switch in the header. */
.theme-toggle {
  margin-left: auto; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: transparent; color: var(--text);
  font: 600 .8rem var(--font-body); cursor: pointer;
}
.theme-toggle:hover { background: var(--glass-strong); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
