:root {
  --ink: #2c241c;
  --paper: #f4ecdf;
  --card: #fffaf3;
  --leaf: #2f6b45;
  --leaf-deep: #245438;
  --maple: #e07a3d;
  --gold: #e2b15a;
  --snow: #e7eef2;
  --line: #e4d5c0;
  --bark: #5c3b2e;
  --problem: #8d3418;
  --shadow: 4px 4px 0 var(--ink);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 480px at -10% -20%, rgba(224, 161, 74, 0.35), transparent 55%),
    radial-gradient(900px 420px at 110% 0%, rgba(47, 107, 69, 0.16), transparent 50%),
    radial-gradient(700px 380px at 70% 110%, rgba(197, 213, 222, 0.7), transparent 45%);
  overflow-x: clip;
}

img, svg { max-width: 100%; }

h1, h2, h3, .brand-name, .price-num {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h1 { font-size: clamp(3.2rem, 10vw, 5.6rem); margin: 0.1rem 0 0.6rem; }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.45rem; }
h3 { font-size: 1.45rem; margin: 0.85rem 0 0.3rem; }

p { margin: 0.4rem 0; }

a { color: var(--leaf-deep); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 30;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 1.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 236, 223, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(44, 36, 28, 0.12);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  min-height: 64px;
  padding: 0.45rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand svg { width: 36px; height: 36px; display: block; }

.brand-name { font-size: 1.35rem; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover { border-bottom-color: var(--maple); }

.nav a[aria-current="location"] {
  border-bottom-color: var(--ink);
}

.hero { padding: 1.6rem 0 2.2rem; }

.hero-grid, .form-layout, .prices {
  display: grid;
  gap: 1.1rem;
}

.lede {
  font-size: 1.16rem;
  max-width: 38rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 1.15rem;
  list-style: none;
}

.facts li {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn, .text-btn, .slot, .month-btn {
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--leaf);
  color: var(--card);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn.alt { background: var(--card); color: var(--ink); }

.btn:hover { transform: translate(-1px, -1px); }

.hero-art, .scene-art {
  position: relative;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-art svg, .scene-art svg { display: block; width: 100%; height: auto; }

.hero,
.section {
  scroll-margin-top: 5.5rem;
}

.section { padding: 1.2rem 0 2.4rem; }

.section-intro { max-width: 40rem; margin-bottom: 1rem; }

.frame {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0.85rem;
}

.story-count {
  font-weight: 700;
  margin: 0 0 0.55rem;
}

.scene[hidden] { display: none; }

.scene.is-active { animation: rise 0.4s ease; }

.caption { font-size: 1.08rem; max-width: 42rem; }

.scene-actions, .story-controls, .slots, .choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scene-actions { margin-top: 0.7rem; }

.text-btn, .slot {
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  padding: 0.45rem 0.85rem;
}

.slot[aria-pressed="true"], .text-btn:hover, .slot:hover {
  background: var(--leaf);
  color: var(--card);
}

.slot:disabled { opacity: 0.45; cursor: default; background: var(--line); color: var(--ink); }

.story-controls { align-items: center; margin-top: 0.9rem; }

.dots { display: flex; gap: 0.1rem; }

.dot {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.dot::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 16px auto;
  border-radius: 99px;
  border: 2px solid var(--ink);
  background: transparent;
}

.dot[aria-current="true"]::before { background: var(--maple); }

.story-note, .map-note, .hint, .hours {
  color: #5c5148;
  font-size: 0.98rem;
}

.bubble {
  position: absolute;
  z-index: 2;
  max-width: 11rem;
  margin: 0;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 0.4rem 0.65rem;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.scene.is-active .bubble { animation: pop 0.4s ease both; }

.scene[data-scene="2"] .bubble.a { left: 6%; top: 7%; }
.scene[data-scene="2"] .bubble.b { right: 5%; top: 18%; }
.scene[data-scene="3"] .bubble.a { left: 8%; top: 8%; }
.scene[data-scene="3"] .bubble.b { right: 8%; top: 12%; }
.scene[data-scene="4"] .note-card {
  position: absolute;
  right: 4%;
  top: 10%;
  max-width: 11rem;
}

.banner {
  position: absolute;
  left: 4%;
  top: 6%;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 0.15rem 0.55rem;
}

.prices { margin-top: 0.4rem; }

.ticket {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--leaf);
  padding: 1.1rem 1.15rem 1.2rem;
}

.ticket.snow {
  background: #f3f7f9;
  box-shadow: 6px 6px 0 #8aa4b3;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0;
}

.price-num {
  font-size: clamp(3.4rem, 8vw, 5rem);
  margin: 0.2rem 0 0;
}

.price-unit { font-weight: 700; margin: 0 0 0.6rem; }

.price-words {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0.35rem 0 0.7rem;
}

#service-map {
  height: 340px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--snow);
  isolation: isolate;
  z-index: 0;
}

.leaflet-container { font-family: var(--sans); background: #d7e3ea; }

.leaflet-control-attribution {
  font-size: 11px;
  background: rgba(255, 250, 243, 0.92);
}

.inbox-note, .form-result {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  background: #fff4df;
}

.form-result { margin-top: 0.8rem; }

.form-result.is-ready { background: #e5f3e8; }

.form-result.is-problem { background: #fde8df; }

.calendar-card, .fields {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0.9rem;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cal-head h3 { margin: 0; font-size: 1.3rem; }

.month-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
}

.month-btn:disabled { opacity: 0.35; cursor: default; }

.dow, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.dow {
  margin-top: 0.7rem;
  color: #6d6258;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.day {
  min-height: 42px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.day.is-open { background: #fff; border-color: var(--line); cursor: pointer; }
.day.is-morning.is-open { background: #e7f2ea; }
.day.is-afternoon.is-open { background: #e4eef3; }
.day.is-today { box-shadow: inset 0 0 0 2px var(--maple); }
.day[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.day:disabled { color: #b3a89a; cursor: default; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0;
  margin: 0.75rem 0 0.2rem;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 4px;
  border: 2px solid var(--ink);
  margin-right: 0.3rem;
  vertical-align: -1px;
}

.swatch.morning { background: #e7f2ea; }
.swatch.afternoon { background: #e4eef3; }

.slot-label { font-weight: 700; margin-bottom: 0.45rem; }

.slot-summary { font-weight: 700; }

.field { margin: 0 0 0.85rem; }

.field label, .field legend { font-weight: 700; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="time"] {
  width: 100%;
  margin-top: 0.25rem;
  min-height: 48px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.55rem 0.7rem;
}

.field input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  font: inherit;
  font-size: 0.95rem;
}

.choices { margin-top: 0.35rem; }

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.2rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 0.85rem;
}

.error {
  color: var(--problem);
  font-weight: 700;
  margin: 0.3rem 0 0;
}

.field.is-invalid input,
.field.is-invalid .choices {
  outline: 2px solid var(--problem);
  border-radius: 12px;
}

.time-error { color: var(--problem); font-weight: 700; }

.site-footer {
  border-top: 2px solid rgba(44, 36, 28, 0.12);
  padding: 1.3rem 0 2rem;
}

.footer-bar p { max-width: 40rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.leaf, .flake, .burst, .puff { pointer-events: none; }
.burst, .puff { opacity: 0; }

.hero-art .leaf, .scene.is-active .leaf {
  animation: fall 7.5s linear infinite;
}

.scene.is-active .flake, .hero-art .flake {
  animation: drift 6.5s linear infinite;
}

.scene.is-active .bob, .hero-art .bob {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: bob 2.6s ease-in-out infinite;
}

.bob.d2 { animation-delay: -0.7s; }
.bob.d3 { animation-delay: -1.3s; }

.scene.fx-leaves .pile {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: rustle 0.6s ease;
}

.scene.fx-leaves .burst { animation: burst 0.8s ease; }

.scene.fx-snow .puff { animation: puff 0.8s ease; }

.hands, .price-bag { opacity: 0; }

.cartoon-stage.is-highfive .hands { opacity: 1; }

.cartoon-stage.show-price .price-bag { opacity: 1; }

.cartoon-line {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  min-height: 5.5rem;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
}

.cartoon-who { color: var(--leaf-deep); }

.cartoon-script { max-width: 40rem; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  :root { --shadow: 8px 8px 0 var(--ink); }
  .wrap { width: min(1120px, calc(100% - 2.5rem)); }
  .prices { grid-template-columns: 1fr 1fr; }
  #service-map { height: 460px; }
}

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; }
  .form-layout { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover { transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: none; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes fall {
  0% { transform: translateY(-12px) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(210px) rotate(70deg); opacity: 0.15; }
}

@keyframes drift {
  0% { transform: translateY(-16px); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(230px); opacity: 0; }
}

@keyframes rustle {
  0% { transform: rotate(0); }
  35% { transform: rotate(-7deg) translateY(-5px); }
  70% { transform: rotate(6deg); }
  100% { transform: rotate(0); }
}

@keyframes burst {
  0% { opacity: 0; transform: translate(0, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 16px), -28px); }
}

@keyframes puff {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-26px); }
}
