:root {
  color-scheme: light;
  --paper: #fff9f2;
  --blush: #f5dfdc;
  --berry: #8f4339;
  --berry-dark: #76332c;
  --fir: #3d5448;
  --ink: #402c29;
  --muted: #69524c;
  --line: #e5cac1;
  --display: "Explora", "Georgia", cursive;
  --body: "DM Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--body); }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--fir); outline-offset: 4px; }
.skip-link { position: absolute; top: 0; left: 1rem; z-index: 10; padding: .75rem; background: var(--paper); transform: translateY(-120%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: #fcf4ed; border-bottom: 1px solid #f5e4da; }
.site-nav { min-height: 73px; max-width: 1160px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: auto; padding: .5rem 2.25rem; }
.wordmark { font: 400 2.35rem/.9 var(--display); text-decoration: none; }
.site-nav nav { display: flex; gap: clamp(1rem, 4vw, 3rem); align-items: center; }
.site-nav nav a { text-decoration: none; font-weight: 600; white-space: nowrap; font-size: .9rem; padding: .5rem 0; }
.site-nav nav a:hover, .site-nav nav a[aria-current] { color: var(--berry); text-decoration: underline; text-underline-offset: .4em; }
.hero {
  display: grid;
  place-items: center;
  min-height: 545px;
  padding: 8.5rem 1.4rem;
  background: url("/assets/christmas-trees.png") center top / auto 105px repeat-x,
    url("/assets/christmas-trees.png") center bottom / auto 105px repeat-x, #fbe3f0;
}
.gift-tag {
  position: relative;
  width: min(100%, 450px);
  padding: 3.5rem 1.7rem 2.45rem;
  text-align: center;
  color: var(--berry);
  background: radial-gradient(ellipse at top, #fffdf8, #f9eae1);
  border: 1px solid #fffdf4;
  border-radius: 1.6rem .55rem 1.6rem .55rem;
  box-shadow: 0 1.2rem 3rem #4b242f44;
}
.gift-tag::before { content: ""; position: absolute; inset: .62rem; border: 1px solid #b46c5f73; border-radius: 1.15rem .3rem 1.15rem .3rem; pointer-events: none; }
.tag-hole { position: absolute; left: calc(50% - 7px); top: 1rem; width: 14px; height: 14px; border: 3px solid #c9c0b5; border-radius: 50%; background: #f0e7de; box-shadow: 0 1px 2px #56454260 inset; }
.tag-hole::before { content: ""; width: 3.2rem; height: .75rem; position: absolute; right: 3px; bottom: 2px; transform: rotate(37deg); transform-origin: right; background: linear-gradient(0deg, #b5b2ad, #f6f5f2 53%, #cbc9c3); border-radius: 75% 12%; }
.tag-date { font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--fir); margin: 0 0 .6rem; }
h1, h2 { font: 400 4rem/.9 var(--display); margin: 0; }
h1 { font-size: clamp(4.2rem, 8vw, 6rem); line-height: .78; }
h1 span { display: block; }
.host-name { margin-bottom: .12em; font-size: .57em; line-height: .95; color: var(--fir); }
.hero-note { max-width: 18rem; margin: 1.35rem auto 1.25rem; color: var(--ink); font-size: .93rem; }
.primary, button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: .64rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  font-weight: 600;
}
button:not(:disabled):hover { border-color: var(--berry); }
.primary { border: 1px solid var(--berry); border-radius: 999px; background: var(--berry); color: white; padding-inline: 1.65rem; }
.primary:not(:disabled):hover { background: var(--berry-dark); }
.primary:disabled { opacity: .63; }
.delivery { background: radial-gradient(ellipse at 50% 15%, #faeee5, #f5dfdc 130%); padding: 3.2rem 1.4rem 3.7rem; border-top: 5px solid var(--paper); }
#reservation { width: min(100%, 820px); margin: auto; }
.section-title { text-align: center; margin-bottom: 1.65rem; }
.section-title p { color: var(--muted); margin: .45rem 0 0; font-size: .95rem; }
.schedule { display: grid; grid-template-columns: 1.06fr 1fr; gap: 1rem; }
.calendar-card, .time-card, .paper {
  min-width: 0;
  background: #fff9f3;
  border: 1px solid var(--line);
  border-radius: .95rem;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 .35rem 1.1rem #683f3710;
}
.calendar-head, .dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.calendar-head button { width: 42px; padding: 0; border-color: transparent; background: transparent; font-size: 1.4rem; }
.weekdays, .calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .2rem; text-align: center; }
.weekdays { font-size: .73rem; color: var(--muted); margin: .55rem 0 .3rem; }
.calendar button { padding: 0; border-color: transparent; min-height: 39px; font-size: .83rem; }
.calendar button:disabled { background: transparent; color: #8c7069; }
.calendar button.available { background: #f3d8d2; color: var(--ink); }
.calendar button[aria-pressed="true"], .times button[aria-pressed="true"] { background: var(--berry); color: white; }
.time-card h3, .admin-section h3 { margin: 0; font-size: 1.05rem; color: var(--fir); }
#selected-date { color: var(--muted); margin: .14rem 0 .65rem; font-size: .85rem; }
.times { max-height: 220px; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: .45rem; padding: .25rem .35rem .25rem .25rem; scrollbar-color: #c08d80 #f9e9e2; }
.times button { min-height: 38px; padding: .35rem .2rem; font-size: .78rem; white-space: nowrap; }
.times p { grid-column: 1/-1; color: var(--muted); margin: .25rem 0; }
#booking-form { margin-top: 1.25rem; text-align: center; }
.booking-fields { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; text-align: left; margin-bottom: 1.35rem; align-items: start; }
.delivery-notes { grid-column: 1 / -1; }
label { display: block; font-size: .9rem; font-weight: 700; }
input, textarea, select { display: block; width: 100%; margin-top: .35rem; border: 1px solid #cda99d; border-radius: .45rem; color: var(--ink); background: var(--paper); min-height: 44px; padding: .55rem .7rem; font-weight: 400; }
textarea { resize: vertical; }
.optional { font-weight: 400; color: var(--muted); }
.message { margin: 1rem 0 0; color: var(--berry-dark); font-weight: 600; text-align: center; }
.message:empty { margin: 0; }
#retry-slots { display: flex; margin: .65rem auto 0; }
.confirmation {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  text-align: center;
  overflow-wrap: anywhere;
  padding: clamp(1.5rem, 6vw, 2.8rem);
  border: 4px double #b67668;
  background: radial-gradient(ellipse at top, #fffdf8, #f8e5df);
  box-shadow: 0 1rem 3rem #402c293a;
  color: var(--ink);
}
.confirmation::backdrop { background: #402c297a; backdrop-filter: blur(2px); }
.confirmation h2 { font-size: clamp(2.8rem, 8vw, 4.4rem); color: var(--berry); }
.confirmation-seal {
  display: grid;
  place-items: center;
  width: 3.5rem;
  aspect-ratio: 1;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 4px dotted #a46758;
  background: #efc3b6;
  color: var(--berry-dark);
  font-size: 1.5rem;
}
#confirmed-time { margin: 1rem 0 .25rem; }
#confirmed-address { margin: 0 0 1.25rem; font-weight: 700; }
.village { height: 150px; background: #8c3233 url("/assets/christmas-village.png") center / auto 100% repeat-x; border-block: 5px solid var(--paper); }
.site-footer { display: flex; justify-content: center; padding: 1.65rem; color: var(--berry); text-align: center; }
.admin { max-width: 920px; margin: auto; padding: 3rem 1.4rem; min-height: 65vh; }
.login { max-width: 365px; margin: auto; display: grid; gap: 1rem; }
.dashboard-head { padding-block: .6rem; }
.admin-section { margin-top: 1rem; }
.admin-section p { margin: .45rem 0 1rem; color: var(--muted); }
#availability-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .65rem; }
.availability-actions { grid-column: 1 / -1; display: flex; gap: .55rem; flex-wrap: wrap; }
.day-select { margin-top: 1.25rem; }
#slot-day { width: auto; max-width: 100%; }
.admin-slots { display: flex; flex-wrap: wrap; gap: .45rem; max-height: 235px; overflow: auto; margin-top: .65rem; padding: .25rem; }
.admin-slots button { font-size: .8rem; }
.admin-slots button[data-open="true"] { background: #e6ece4; color: #33493a; }
.booking { padding: .8rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.booking:first-child { margin-top: .65rem; }
.booking p { margin: .3rem 0; }
.booking-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.help-button { flex: none; width: 44px; min-height: 44px; padding: 0; border-radius: 50%; color: var(--berry-dark); background: var(--blush); font-size: 1.1rem; }
.help-dialog {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: clamp(1.35rem, 5vw, 2.25rem);
  border: 6px solid transparent;
  background: linear-gradient(140deg, #fffcf7, #f9ece5) padding-box,
    repeating-linear-gradient(135deg, #fbefe6 0 8px, #b56558 8px 11px, #f4d8cf 11px 16px) border-box;
  box-shadow: 0 1rem 3rem #402c293a;
  color: var(--ink);
}
.help-dialog::backdrop { background: #402c297a; backdrop-filter: blur(2px); }
.help-dialog h2 { font-size: clamp(2.65rem, 7vw, 3.75rem); color: var(--berry); text-align: center; }
.help-dialog ol, .help-dialog ul { padding-inline-start: 1.5rem; }
.help-dialog li + li { margin-top: .55rem; }
.help-dialog form { display: flex; justify-content: flex-end; }
@media (max-width: 650px) {
  .site-nav { padding-inline: 1rem; }
  .wordmark { font-size: 1.95rem; max-width: 13rem; }
  .site-nav nav { gap: clamp(.45rem, 2.5vw, .9rem); }
  .site-nav nav a { font-size: .8rem; }
  .hero { min-height: 435px; padding-block: 7rem; background-size: auto 85px, auto 85px; }
  .delivery { padding: 2.5rem .95rem; }
  .schedule, .booking-fields { grid-template-columns: 1fr; }
  h2 { font-size: 3.6rem; }
  .calendar-card, .time-card { padding: .8rem; }
  .village { height: 110px; }
}
@media (max-width: 380px) {
  .site-nav .wordmark { max-width: 9rem; }
  .gift-tag { padding-inline: .75rem; }
  h1 { font-size: 3.85rem; }
  #availability-form { grid-template-columns: 1fr 1fr; }
  #availability-form label:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
