/* Santa Live 2026 — phone-first. Colours from the 2025/2026 art: velvet red, pine green, parchment, gold. */
@font-face {
  font-family: 'Great Vibes';
  src: url('/fonts/great-vibes.woff2') format('woff2');
  font-display: swap;
}
:root {
  --red: #7a1219;
  --red-2: #b3202a;
  --green: #1d4a35;
  --cream: #fff8ec;
  --parch: #f6ead0;
  --ink: #2b1d12;
  --muted: #5a4634;
  --gold: #c99a2e;
  --script: 'Great Vibes', 'Brush Script MT', cursive;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 1.1875rem; line-height: 1.6; color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-2); }
:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--script); font-weight: 400; font-size: clamp(3rem, 12vw, 5.5rem); color: var(--red); }
h2 { font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 2.2rem); color: var(--green); }
h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .4em; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 44rem); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

/* Header */
.site-header { background: var(--red); color: var(--cream); position: relative; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.logo { color: var(--cream); text-decoration: none; display: inline-flex; align-items: baseline; gap: .4rem; }
.logo:hover { color: #fff; }
.logo-script { font-family: var(--script); font-size: 2.3rem; line-height: 1; }
.logo-year { font-family: var(--serif); font-weight: 700; color: #ffd98a; }
.nav-toggle {
  font: inherit; font-weight: 700; background: var(--cream); color: var(--red); border: 0; border-radius: 999px;
  min-height: 48px; padding: 0 1.25rem; cursor: pointer;
}
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--cream); text-decoration: none; font-weight: 600; display: block; padding: .75rem 1rem; border-radius: 8px; }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: rgba(255, 248, 236, .16); color: #fff; text-decoration: underline; }
.js .nav-list { display: none; position: absolute; right: 1rem; top: 100%; background: var(--red); padding: .5rem; border-radius: 0 0 var(--radius) var(--radius); min-width: 14rem; z-index: 5; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.js .nav-list.open { display: block; }
@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .js .nav-list, .nav-list { display: flex; position: static; background: none; box-shadow: none; padding: 0; min-width: 0; }
  .nav-list a { padding-inline: .6rem; }
}

/* Buttons and notes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .7rem 1.5rem;
  border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #5e0d13; color: #fff; }
.btn-light { background: var(--cream); color: var(--red); }
.btn-light:hover { background: #fff; color: #5e0d13; }
.btn-outline { border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: rgba(255, 248, 236, .15); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.pending { background: #fff3cd; border: 2px dashed #8a6d00; border-radius: var(--radius); padding: .9rem 1.1rem; color: var(--ink); }
.draft-note { background: #fde2e1; border-left: 6px solid var(--red-2); padding: .9rem 1.1rem; border-radius: 6px; }

/* Hero */
.hero { position: relative; color: var(--cream); background: #2a120d url('/img/scene-wide-720.jpg') center / cover no-repeat; }
@media (min-width: 46rem) { .hero { background-image: url('/img/scene-wide-1280.jpg'); } }
.hero-inner { padding: 38vw 0 2rem; }
@media (min-width: 46rem) { .hero-inner { padding: 7rem 0 4rem; } }
.hero-card { background: rgba(43, 13, 10, .86); border-radius: var(--radius); padding: 1.5rem 1.4rem; max-width: 36rem; }
.hero-card h1 { color: #fff; margin-bottom: .1em; }
.hero-card .lead { font-size: 1.25rem; }
.page-hero { background: var(--red); color: var(--cream); padding: 2rem 0 1.5rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.8rem, 10vw, 4.5rem); }
.page-hero p { font-size: 1.2rem; max-width: 40rem; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: rgba(255, 255, 255, .6); }
.steps { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { background: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem 1.1rem 4rem; position: relative; box-shadow: 0 2px 10px rgba(43, 29, 18, .08); margin: 0; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 1rem; top: 1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700;
  display: grid; place-items: center;
}
@media (min-width: 52rem) { .steps.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } }

/* The three lists */
.lists { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .lists { grid-template-columns: repeat(3, 1fr); } }
.list-card { background: #fff; border-radius: var(--radius); padding: 0 1.2rem 1.2rem; box-shadow: 0 2px 10px rgba(43, 29, 18, .08); text-align: center; }
.list-card .scroll-head { position: relative; width: 9rem; margin: -.5rem auto .5rem; }
.list-card .scroll-head span {
  position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--script); font-size: 2.2rem; color: var(--ink);
}
.list-card.nice .scroll-head span { color: var(--green); }
.list-card.naughty .scroll-head span { color: #8a1c10; }
.list-card.bad .scroll-head span { color: var(--red); font-size: 1.9rem; }
.list-card p { text-align: left; }

.actions.center { justify-content: center; margin-top: .6rem; }
.caption { font-size: .95rem; color: var(--muted); text-align: center; margin-top: .6rem; }

.figure-round { border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.callout { background: var(--green); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.4rem .4rem; }
.callout a { color: #ffe6a3; }
.callout h2, .callout h3 { color: #fff; }

/* Long-form pages (privacy, terms, rules) */
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.updated { color: var(--muted); font-size: 1rem; }

.site-footer {
  color: var(--cream); padding: 2.5rem 0 5rem;
  background: linear-gradient(180deg, #241610, #140c08);
}
.site-footer a { color: #ffe6a3; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 2fr 1fr; } }
.footer-logo .logo-script { font-size: 2.6rem; }
.footer-h { font-family: var(--sans); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.footer-links { list-style: none; padding: 0; }
.footer-links a { display: inline-block; padding: .35rem 0; }
.footer-legal { border-top: 1px solid rgba(255, 248, 236, .25); margin-top: 1.5rem; padding-top: 1rem; font-size: .95rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.big-link { font-size: 1.35rem; font-weight: 700; word-break: break-word; }

/* Visit booking, manage page and Santa's dashboard (task 604) */
[hidden] { display: none !important; }
.btn { font: inherit; font-weight: 700; cursor: pointer; }
.btn-secondary { background: #fff; color: var(--red); border-color: var(--red); }
.btn-secondary:hover { background: #fdeceb; color: #5e0d13; }
.btn-danger { background: #8a1c10; color: #fff; }
.btn-danger:hover { background: #5e0d13; color: #fff; }
.btn-small { min-height: 44px; padding: .45rem 1rem; font-size: 1rem; }
.btn:disabled { opacity: .6; cursor: progress; }
.group { border: 0; padding: 0; margin: 0 0 2rem; }
.group > legend { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--green); padding: 0; margin-bottom: .5rem; }
.field { margin-bottom: 1.1rem; }
.field label, .field > legend { display: block; font-weight: 700; margin-bottom: .25rem; }
.hint { display: block; color: var(--muted); font-size: 1rem; margin-bottom: .35rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  font: inherit; width: 100%; padding: .65rem .8rem; border: 2px solid #6b5845; border-radius: 8px; background: #fff; color: var(--ink); min-height: 48px;
}
input.short { max-width: 8rem; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #b3202a; border-width: 3px; }
.field-error { color: #8a1c10; font-weight: 700; margin: .2rem 0 .35rem; }
.error-summary { border: 3px solid #b3202a; background: #fde2e1; border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.error-summary h3 { color: #8a1c10; }
.check { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; align-items: start; margin-bottom: 1rem; }
.check input { width: 1.4rem; height: 1.4rem; margin: .25rem 0 0; accent-color: var(--red); }
.check label { font-weight: 400; }
fieldset.day, fieldset.child { border: 2px solid #e4d3b4; border-radius: var(--radius); padding: .8rem 1rem 1rem; margin: 0 0 1rem; background: #fff; }
fieldset.day legend, fieldset.child legend { font-weight: 700; padding: 0 .4rem; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem; }
.time { position: relative; }
.time input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.time label { display: block; text-align: center; border: 2px solid var(--green); border-radius: 10px; padding: .6rem .4rem; font-weight: 700; color: var(--green); background: #fff; min-height: 48px; cursor: pointer; }
.time .mins { display: block; font-weight: 400; font-size: .95rem; color: var(--muted); }
.time input:checked + label { background: var(--green); color: #fff; }
.time input:checked + label .mins { color: #e8f2ec; }
.time input:focus-visible + label { outline: 3px solid #1a5fb4; outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { font-weight: 700; color: var(--green); min-height: 1.6em; }
.notice { background: #e6f0fa; border-left: 6px solid #1a5fb4; padding: .8rem 1rem; border-radius: 6px; margin-bottom: 1.2rem; }
.lead-ok { font-size: 1.3rem; font-weight: 700; color: var(--green); }
.plain { list-style: none; padding: 0; }
.plain li { margin-bottom: .8rem; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; }
.details dt { font-weight: 700; }
.details dd { margin: 0; word-break: break-word; }
.confirm { border: 3px solid #8a1c10; border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1rem; background: #fff; }
.admin-h1 { font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.6rem); color: var(--red); }
.cards-3 { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: 0 2px 10px rgba(43, 29, 18, .08); margin-bottom: 1rem; }
.card-h { font-family: var(--sans); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .3rem; }
.visit h3 { margin-bottom: .4rem; }
.kids .block { display: block; }
.badge { display: inline-block; background: #8a6d00; color: #fff; font-size: .85rem; font-weight: 700; border-radius: 999px; padding: .05rem .6rem; margin-left: .5rem; vertical-align: middle; font-family: var(--sans); }
.ok { color: var(--green); font-weight: 700; }
.warn { color: #8a1c10; font-weight: 700; }
.small { font-size: 1rem; color: var(--muted); }
.slots .slot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; background: #fff; border-radius: 10px; padding: .6rem .9rem; }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.slot-form { display: grid; gap: 0 1.2rem; }
@media (min-width: 52rem) { .slot-form { grid-template-columns: repeat(3, 1fr); } .slot-form .wide, .slot-form .radios { grid-column: 1 / -1; } }
.radios { border: 0; padding: 0; margin: 0 0 1rem; }
.quote { border-left: 5px solid var(--gold); margin: 0 0 1em; padding: .6rem 1rem; background: #fff; border-radius: 0 8px 8px 0; }
.admin .logo-script { font-size: 1.9rem; white-space: nowrap; }
.admin .logo { white-space: nowrap; }

/* Santa's panel: names on the list */
.lp-names { max-height: 34rem; overflow-y: auto; padding-right: .3rem; }
.lp-names li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; background: #fff; border-radius: 10px; padding: .5rem .9rem; margin-bottom: .5rem; }
.lp-names .tag { font-size: .9rem; color: var(--muted); }
.lp-names .on-nice { color: var(--green); font-weight: 700; }
.lp-names .on-naughty { color: #8a1c10; font-weight: 700; }
.lp-names .on-bad { color: var(--red-2); font-weight: 700; }
code { font-size: .95em; background: #fff; padding: .05rem .3rem; border-radius: 4px; overflow-wrap: anywhere; }

/* Santa's panel: private entry log (task 627) */
.lp-log-tools { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: end; }
.lp-log-tools .field { margin-bottom: .5rem; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 10px; margin-top: .8rem; max-height: 36rem; overflow-y: auto; }
.lp-log { border-collapse: collapse; width: 100%; font-size: .95rem; }
.lp-log th, .lp-log td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid #eadfca; white-space: nowrap; }
.lp-log th { position: sticky; top: 0; background: #f6ead0; }
.lp-log td.gone { color: var(--muted); font-style: italic; }
#lp-pause { margin-bottom: 1.2rem; }

/* Home: the Letters from Santa callout right under Santa's List */
.letters-callout { padding-bottom: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: .6rem 0 1rem; background: #fff; }
.prose th, .prose td { text-align: left; padding: .45rem .7rem; border-bottom: 1px solid rgba(43, 29, 18, .15); }

/* Santa's panel: Letters from Santa (S32) */
.lt-big { font-weight: 700; font-size: 1.15rem; }
#letters-panel h4 { margin: 1rem 0 0; }
