/* Trinity School Fall Fest 2026 */

:root {
  --parchment: #F7EFE1;
  --card: #FFFCF6;
  --brown: #4A3A2C;
  --brown-hover: #33281E;
  --orange: #E4701E;
  --orange-hover: #CF6317;
  --gold: #EFB93B;
  --sage: #7E9152;
  --rust: #B4432F;
  --line: #E4D6BE;
  --track: #EFE3CE;
  --muted: #8A7862;
  --err-bg: #FBE3D5;
  --err-line: #EFC3A8;
  --err-text: #8C3B12;
  --serif: Cinzel, Georgia, serif;
  --display: Montserrat, Arial, sans-serif;
  --script: Parisienne, cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--brown);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { max-width: 100%; }
a { color: var(--orange); }
a:hover { color: var(--orange-hover); }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
button:disabled { cursor: default !important; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

svg[viewBox="0 0 24 24"] {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Page ---------- */

.page { position: relative; z-index: 1; box-sizing: content-box; max-width: 880px; margin: 0 auto; padding: 28px 20px 48px; }

.leaf-layer { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 0; pointer-events: none; }
.leaf-layer img { position: absolute; height: auto; max-width: none; opacity: .8; }

.bunting { display: block; width: calc(100% + 40px); max-width: none; height: auto; margin: -28px -20px 8px; }
.stripe {
  height: 10px; border-radius: 5px; margin-bottom: 26px;
  background: repeating-linear-gradient(90deg, #E4701E 0 32px, #EFB93B 32px 64px, #7E9152 64px 96px, #B4432F 96px 128px);
}

/* ---------- Masthead ---------- */

.masthead { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-bottom: 30px; }
.masthead-text { flex: 1 1 320px; min-width: 0; text-align: center; }
.masthead p, .mh-title { margin: 0; }
.mh-school { font-family: var(--serif); font-size: clamp(15px, 2.4vw, 20px); font-weight: 600; letter-spacing: .24em; }
.mh-title { font-weight: normal; }
.mh-fall { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(54px, 11vw, 82px); color: var(--orange); line-height: .92; margin-top: 10px; }
.mh-festival { display: block; font-family: var(--script); font-size: clamp(46px, 9.5vw, 70px); color: var(--gold); line-height: .88; margin: -12px 0 18px; }
.masthead .mh-date { font-size: 17px; letter-spacing: .03em; }
.masthead .mh-place { font-size: 14px; color: var(--muted); margin-top: 6px; }
.mh-leo { flex: 0 1 300px; width: 100%; max-width: 300px; min-width: 200px; height: auto; display: block; }

/* ---------- Tabs ---------- */

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 720px; margin: 0 auto 26px; scroll-margin-top: 16px; }
.tab {
  flex: 1 1 150px; min-width: 0; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: clamp(13px, 3.5vw, 15px);
  padding: 9px 10px; min-height: 44px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--brown);
}
.tab:hover { border-color: var(--brown); }
.tab[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: #fff; }

/* ---------- Form panel ---------- */

.panel { max-width: 660px; margin: 0 auto; }

.intro {
  background: var(--card); border: 2px solid var(--orange); border-radius: 12px;
  padding: 18px 22px; font-size: 15px; line-height: 1.55; margin: 0 0 26px;
  display: grid; gap: 10px;
}
.intro p { margin: 0; }

.h-form { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 0 0 14px; color: var(--brown); }
.sub { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.question { font-size: 17px; margin: 0 0 16px; text-align: center; }
.note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.privacy { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; text-align: center; }

label { display: block; font-size: 13.5px; color: var(--brown); margin: 14px 0 5px; }
.opt { color: var(--muted); font-size: 12.5px; }
input, select {
  display: block; width: 100%; margin-top: 5px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 16px; background-color: #fff; color: var(--brown);
}
input:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(228,112,30,.15); outline: none; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #8A7862 50%), linear-gradient(135deg, #8A7862 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 22px; padding: 14px; min-height: 48px;
  background: var(--brown); color: #fff; border: none; border-radius: 9px;
  font: inherit; font-size: 16px; cursor: pointer; text-decoration: none;
}
.btn-primary:hover { background: var(--brown-hover); color: #fff; }
.btn-primary:disabled { opacity: .85; }
a.btn-primary { display: inline-flex; width: auto; padding-inline: 24px; }

.btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 10px; padding: 13px; min-height: 48px;
  background: none; border: 1px solid var(--line); color: var(--brown); border-radius: 8px;
  font: inherit; font-size: 16px; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--brown); color: var(--brown); background: var(--card); }
.btn-ghost.inline { display: inline-flex; width: auto; padding: 11px 20px; margin-top: 22px; min-height: 44px; font-size: 15px; }

.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; font: inherit; font-size: 14.5px; color: var(--orange);
  cursor: pointer; padding: 0; margin-bottom: 8px; min-height: 44px;
}
.btn-back:hover { text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; }

.error {
  background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err-text);
  padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-top: 16px;
}

.success {
  background: var(--card); border: 2px solid var(--orange); border-top: 5px solid var(--sage);
  border-radius: 12px; padding: 28px 24px; text-align: center;
}
.success h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 10px; color: var(--sage); }
.success p { margin: 0; }
.success .big { font-size: 17px; margin: 14px 0 6px; }
.success .code { font-size: 13px; color: var(--muted); }

/* Station list */
.station {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--card); border: 2px solid var(--orange); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer; font: inherit; color: inherit;
}
.station:hover { border-color: var(--brown); }
.station:disabled { opacity: .62; }
.station:disabled:hover { border-color: var(--orange); }
.st-icon { font-size: 26px; line-height: 1; flex: none; }
.st-main { flex: 1; min-width: 0; }
.st-name { font-size: 16px; display: block; margin-bottom: 7px; }
.bar { display: block; height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--orange); border-radius: 3px; }
.st-count { flex: none; font-size: 13px; color: var(--muted); text-align: right; min-width: 76px; }
.st-count b { display: block; font-weight: normal; font-size: 19px; color: var(--orange); }
.station.full .bar > span { background: var(--sage); }
.station.full .st-count b { font-size: 15px; color: var(--sage); }

/* Slots */
.slot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 48px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px; margin-bottom: 9px; font: inherit; color: var(--brown); cursor: pointer;
}
.slot:hover { border-color: var(--orange); }
.slot-label { font-size: 15.5px; }
.slot-left { font-size: 13px; flex: none; color: var(--muted); }
.slot-left.last { color: var(--rust); }
.slot:disabled { background: transparent; border-style: dashed; color: var(--muted); }
.slot:disabled:hover { border-color: var(--line); }
.slot:disabled .slot-label { text-decoration: line-through; }

/* ---------- Featured attraction ---------- */

.featured {
  position: relative; box-sizing: content-box; background: var(--card); border: 2px solid var(--orange); border-radius: 12px;
  padding: 22px clamp(18px, 4vw, 30px) 24px; margin: 64px auto 0; max-width: 820px; text-align: center;
}
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brown); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 12.5px;
  letter-spacing: .18em; padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.featured-script { font-family: var(--script); font-size: clamp(34px, 6vw, 44px); color: var(--gold); line-height: 1; margin: 10px 0 2px; }
.featured-title { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 5vw, 36px); color: var(--orange); line-height: 1.05; margin: 0 0 12px; letter-spacing: .01em; }
.featured-copy { font-size: 15.5px; margin: 0 auto 16px; max-width: 52ch; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 18px; }
.chips li {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px;
  background: var(--parchment); border: 1px solid var(--line); font-size: 13px; white-space: nowrap;
}
.chips li span { font-size: 16px; line-height: 1; }
.zoo-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.zoo-photo { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--parchment); }
.zoo-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footnote { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- Plan your visit ---------- */

.visit { position: relative; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.section-title { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0 0 16px; color: var(--brown); letter-spacing: .02em; text-align: center; }
.card { background: var(--card); border: 2px solid var(--orange); border-radius: 12px; }
.parking { box-sizing: content-box; padding: 28px clamp(20px, 4vw, 40px); margin: 8px auto 0; max-width: 720px; }
.subhead { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 0 0 14px; color: var(--brown); text-align: center; }
.parking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px 28px; font-size: 15px; align-items: center; }
.parking-grid p { margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.4; }
.steps li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.steps li > span:last-child { padding-top: 2px; }
.num {
  font-family: var(--serif); font-weight: 600; font-size: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--parchment); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--orange);
}
.bring-title { margin: 32px 0 6px; }
.bring-sub { font-size: 14.5px; color: var(--muted); text-align: center; margin: 0 0 16px; }
.bring { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.tile { padding: 20px; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; }
.tile-icon { font-size: 30px; line-height: 1; }
.tile strong { font-size: 15.5px; }
.tile span:last-child { font-size: 13.5px; color: var(--muted); }

/* ---------- Memories ---------- */

.memories {
  position: relative; margin-top: 56px; padding-top: 40px; padding-bottom: 8px; border-top: 1px solid var(--line);
  background: var(--parchment); box-shadow: 0 0 0 100vmax var(--parchment); clip-path: inset(0 -100vmax);
}
.memories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 8px; }
.memories figure { margin: 0; background: var(--card); border-radius: 12px; padding: 8px; aspect-ratio: 4 / 3; }
.memories img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

/* ---------- Footer ---------- */

.footer {
  position: relative; text-align: center; font-size: 12.5px; color: var(--muted);
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
}
