@font-face {
  font-family: "Bebas Neue";
  src: url("/fonts/bebas-neue.woff2") format("woff2");
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --surface: #171717;
  --surface-2: #232323;
  --line: #3a3a3a;
  --white: #f7f5f0;
  --muted: #b3aea3;
  --gold: #e0b955;
  --gold-dark: #b8922f;
  --danger: #ff8a7a;
  --ok: #8ad6a0;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}

.pole {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 12px, var(--white) 12px 24px, var(--black) 24px 36px);
}

.masthead { text-align: center; padding: 26px 16px 14px; }
.wordmark {
  margin: 0;
  font: 400 clamp(52px, 17vw, 76px)/0.95 "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.handle { color: var(--muted); font-size: 14px; text-decoration: none; display: inline-block; padding: 6px; }

main { max-width: 480px; margin: 0 auto; padding: 0 16px 40px; }

h2 {
  font: 400 24px/1.1 "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.06em;
  margin: 24px 0 10px;
}

button, .button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }

.service-note { color: var(--muted); text-align: center; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.chip[aria-pressed="true"] { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 650; }

.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 3px 16px 10px;
  scroll-snap-type: x proximity;
  scroll-padding-left: 16px;
  scrollbar-width: none;
}
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 62px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.day b { font-size: 22px; line-height: 1.2; color: var(--white); font-weight: 650; }
.day:disabled { opacity: 0.38; cursor: default; }
.day[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--black); }
.day[aria-pressed="true"] b { color: var(--black); }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  min-height: 50px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-dark);
  background: var(--surface);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.slot:active { background: var(--gold); color: var(--black); }

.empty { color: var(--muted); padding: 14px 0; }

.primary, .secondary {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.primary { background: var(--gold); color: var(--black); }
.primary:disabled { opacity: 0.6; cursor: default; }
.secondary { border: 1px solid var(--line); background: var(--surface); color: var(--white); }
.danger { border-color: var(--danger); color: var(--danger); }

.text-button { color: var(--gold); text-decoration: underline; padding: 8px 0; min-height: 40px; }
.back { color: var(--muted); padding: 10px 0; min-height: 44px; }

.summary {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.summary strong { display: block; font-size: 19px; }
.summary span { color: var(--muted); }

.saved-card { background: var(--surface); border-radius: var(--radius); padding: 14px; margin-bottom: 8px; }
.saved-card p { margin: 0 0 2px; overflow-wrap: anywhere; }
.saved-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

label.field { display: block; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], select {
  display: block;
  width: 100%;
  margin-top: 5px;
  min-height: 50px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--white);
  font: inherit;
  font-size: 16px; /* Below 16px, iPhones zoom in on the field. */
}
input:focus { border-color: var(--gold); }

.check { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; min-height: 44px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }
.check small { display: block; color: var(--muted); font-size: 13px; }

.error { color: var(--danger); margin: 10px 0; }
.notice { background: var(--surface-2); border-radius: var(--radius); padding: 12px 14px; margin: 14px 0; }

.confirm-area { margin-top: 16px; }

.done { text-align: center; padding-top: 10px; }
.done .when { font: 400 44px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: 0.03em; color: var(--gold); margin: 16px 0 4px; }
.done p { margin: 6px 0; }
.done .primary { margin-top: 22px; }
.address { color: var(--muted); margin: 16px 0 0; }
.stack { display: grid; gap: 10px; margin-top: 16px; }

.site-foot { max-width: 480px; margin: 0 auto; padding: 8px 16px 32px; text-align: center; color: var(--muted); font-size: 13px; }
.site-foot p { margin: 0 0 4px; }
.site-foot a, .legal a { color: var(--gold); }
.site-foot a { display: inline-block; padding: 8px; }
.wordmark-link { text-decoration: none; }
.wordmark-link .wordmark { display: block; }
.legal { max-width: 640px; line-height: 1.55; }
.legal h1 { font: 400 40px/1.05 "Bebas Neue", Impact, sans-serif; letter-spacing: 0.04em; margin: 12px 0 4px; }
.legal h2 { margin-top: 30px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: 14px; margin-top: 0; }
.legal-back { margin-top: 30px; }
.soon { text-align: center; }
.soon h2 { margin-top: 12px; }

/* Admin */
.admin-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.admin-bar .wordmark { font-size: 32px; }
.tabs { display: flex; overflow-x: auto; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs button { padding: 12px; min-height: 46px; white-space: nowrap; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--gold); border-color: var(--gold); }
.admin-main { max-width: 640px; }
.row { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; }
.row h3 { margin: 0 0 2px; font-size: 16px; }
.row p { margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.row-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.date-head { color: var(--gold); margin: 20px 0 8px; font-weight: 650; }
.contact { display: flex; gap: 8px; margin-top: 10px; }
.contact a { flex: 1; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--white); text-decoration: none; }
.hours-row { display: grid; grid-template-columns: 74px 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.hours-row input[type="time"] { margin: 0; padding: 8px; }
.hours-row .check { padding: 0; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 18px; max-width: 448px; margin: auto; padding: 13px 15px; border-radius: 10px; background: var(--white); color: var(--black); font-weight: 600; text-align: center; }
.login { max-width: 360px; }
.banner { background: var(--gold); color: var(--black); font-weight: 600; padding: 11px 16px; text-align: center; }
.admin-main.wide { max-width: 1240px; }
.who { color: var(--white) !important; font-size: 16px !important; }
.row.off { border-left: 3px solid var(--line); }
.date-head span { float: right; color: var(--muted); font-weight: 400; font-size: 13px; }
.sched-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.segment { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.segment button { min-height: 44px; padding: 8px 20px; color: var(--muted); }
.segment button[aria-pressed="true"] { background: var(--gold); color: var(--black); font-weight: 650; }
.secondary.small { width: auto; min-height: 44px; padding: 9px 16px; }
.sched-nav { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin: 12px 0 4px; }
.sched-nav button { min-height: 44px; font-size: 16px; }
.sched-nav button[aria-label] { font-size: 28px; line-height: 1; color: var(--gold); }
.add-form { margin: 12px 0; }
.add-form h3 { margin-bottom: 12px; }
.connect { margin-top: 12px; }
.status { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.status-sent { color: var(--ok); }
.status-failed { color: var(--danger); }
.message-error { color: var(--danger) !important; }
select { appearance: auto; }
@media (min-width: 1000px) {
  .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .week .date-head span { float: none; display: block; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
