/* Local fonts keep the site independent of third-party font requests. */
@font-face { font-family: Inter; src: url('../assets/fonts/inter-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('../assets/fonts/inter-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url('../assets/fonts/inter-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url('../assets/fonts/inter-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url('../assets/fonts/inter-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Mystery Quest'; src: url('../assets/fonts/mystery-quest-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Permanent Marker'; src: url('../assets/fonts/permanent-marker-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #180a2a;
  --night: #243b63;
  --ivory: #f5f1e8;
  --cta: #dce955;
  --shadow: #0e1027;
  --font-body: Inter, Arial, sans-serif;
  --font-display: 'Mystery Quest', Georgia, serif;
  --font-accent: 'Permanent Marker', cursive;
  --content-width: 75rem;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--shadow); color: var(--ivory); font: 1rem/1.5 var(--font-body); overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 5px; }
.signup-card :focus-visible, .button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px var(--ivory); }
.container { width: min(var(--content-width), calc(100% - 2rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .75rem 1rem; background: var(--cta); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem; border: 0; border-radius: .5rem; background: var(--cta); color: var(--ink); text-align: center; text-decoration: none; font-size: 1rem; font-weight: 600; line-height: 1.5; transition: box-shadow .18s ease; }
.button[href]:hover { box-shadow: inset 0 0 0 2px var(--ink); }
[aria-disabled='true'] { cursor: not-allowed; }

/* Shared header. Without JavaScript the navigation remains visible. */
.site-header { position: relative; z-index: 2; background: var(--ink); }
.header-inner { min-height: 7rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 4.4375rem; text-decoration: none; }
.brand img { width: 4rem; flex-shrink: 0; }
.brand span { font: 3rem/1.5 var(--font-display); }
.primary-nav ul { display: flex; align-items: center; gap: 2rem; }
.primary-nav a { display: flex; align-items: center; min-height: 3.5rem; font-weight: 500; text-decoration: none; }
.primary-nav a[aria-current] { font-weight: 800; }
.primary-nav a[href]:hover { text-decoration: underline; }
.menu-toggle { width: 3rem; height: 3rem; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--ivory); border-radius: .5rem; color: var(--ivory); background: transparent; }
.menu-icon { display: grid; gap: 3px; width: 24px; }
.menu-icon span { height: 2px; background: currentColor; }
.close-icon { display: none; font-size: 2.25rem; font-weight: 800; line-height: 1; }
.menu-open .menu-icon { display: none; }
.menu-open .close-icon { display: block; }

/* Only decorative artwork is positioned; text and controls stay in flow. */
.hero { position: relative; isolation: isolate; overflow: clip; min-height: 55.125rem; background: url('../assets/images/forest.png') center bottom / cover no-repeat; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(rgb(24 10 42 / 55%) 65%, var(--shadow)); }
.hero-bats { position: absolute; z-index: -1; top: -3.125rem; left: 10.55%; width: 91.32%; max-width: none; }
.motion-toggle { position: absolute; right: 1rem; bottom: 1rem; min-height: 2.75rem; max-width: calc(100% - 2rem); padding: .5rem .75rem; border: 1px solid var(--ivory); border-radius: .5rem; background: var(--ink); color: var(--ivory); font-size: .875rem; line-height: 1.5; }
.hero-content { padding-top: 17.8125rem; padding-bottom: 5rem; text-align: center; }
.hero h1 { font: 400 clamp(4rem, 9.73vw, 8.75rem)/1.075 var(--font-display); }
.hero p { max-width: 36.75rem; margin: 1rem auto 0; font: 400 4.375rem/1.25 var(--font-display); }
.hero .button { margin-top: 8rem; min-width: min(17.25rem, 100%); }
.home-content { background: var(--shadow); }
.experiences { padding-top: 6.25rem; }
.experiences h2 { font-size: 2.25rem; line-height: 1.2223; margin-bottom: .5625rem; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.activity-image { position: relative; aspect-ratio: 384 / 582; overflow: hidden; }
.activity-image img { width: 100%; height: 100%; object-fit: cover; }
/* The house image uses the same crop and source proportions as Figma. */
.house-image img { position: absolute; width: 300.56%; max-width: none; height: auto; left: -25.04%; top: -.02%; }
.activity h3 { margin-top: .1875rem; min-height: 2.375rem; font-size: 1.5rem; font-weight: 600; line-height: 2rem; }
.program-button { display: flex; margin-top: 3.875rem; width: 100%; }
.signup { padding-top: 6.75rem; padding-bottom: 1rem; scroll-margin-top: 2rem; }
.signup > h2 { font-size: 4rem; line-height: 1.15; margin-bottom: 1.5rem; }
.signup-card { color-scheme: light; background: var(--ivory); color: var(--ink); border-radius: .75rem; padding: 2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.signup-card h2, .signup-card h3 { font-size: 2.25rem; line-height: 1.2223; margin-bottom: .5rem; }
.signup-card fieldset { min-width: 0; border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.signup-card input { min-width: 0; width: 100%; min-height: 3.75rem; padding: 1rem .75rem; border: 0; border-radius: .5rem; background: #fff; color: var(--ink); opacity: 1; }
.signup-card input::placeholder { color: var(--ink); opacity: 1; }
.signup-card .button:disabled { opacity: 1; }
.form-note { font-style: italic; font-weight: 600; }
.form-note strong { font-weight: 800; }
.mobile-note-break { display: none; }

.site-footer { background: var(--ink); min-height: 36.125rem; padding: 4.0625rem 1rem 2rem; }
.footer-inner { width: min(58.9375rem, 100%); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 22.8125rem) minmax(0, 1fr); gap: 7.625rem; min-height: 25rem; }
.footer-brand { display: inline-block; text-decoration: none; font: 3rem/1.5 var(--font-display); }
.social-icons { display: flex; gap: .5rem; margin: .25rem 0 1.5rem; }
.social-icons li { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; }
.social-icons img { max-width: none; }
.site-footer address { font-style: normal; font-size: 1.5rem; line-height: 1.5; overflow-wrap: anywhere; }
.footer-nav { padding-top: 1.75rem; }
.footer-nav h2 { font-size: 2.25rem; line-height: 1.3; letter-spacing: -.02em; }
.footer-nav h2 span { font: 400 1em/1.3 var(--font-display); }
.footer-nav ul { margin-top: 1rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 3.75rem; font-size: 1.5rem; text-decoration: none; }
.footer-nav a[href]:hover { text-decoration: underline; }
@keyframes bat-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(.8deg); } }
@media (min-width: 80rem) {
  .footer-inner { margin-left: calc((100% - 46.875rem) / 2); margin-right: 0; }
}

@media (max-width: 63.99rem) {
  .site-header { background: var(--night); }
  .header-inner { min-height: 4.8125rem; flex-wrap: wrap; gap: 0; padding-block: .875rem; }
  .brand img { width: 3rem; }
  .brand span { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { width: 100%; padding: .75rem .9375rem 1.5rem; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 1rem; }
  .primary-nav li:nth-child(3) { order: 4; }
  .primary-nav a { min-height: 3rem; font-size: 1.125rem; }
  .menu-open .primary-nav { position: absolute; top: 4.1875rem; left: 0; background: var(--night); padding: 0 1.9375rem 2.5rem; }
  .hero { min-height: 30.5625rem; background-size: auto 100%; }
  .hero-bats { top: -1.75rem; width: 43.75rem; max-width: none; left: calc(50% + 2.5rem); margin-left: -21.875rem; }
  .hero { overflow: clip; }
  .hero-content { padding-top: 8rem; padding-bottom: 6.4375rem; }
  .hero h1 { font-size: clamp(3rem, 16.41vw, 4rem); line-height: 1.5; }
  .hero p { max-width: 20rem; font-size: 1.5rem; margin-top: 1.5rem; }
  .hero .button { margin-top: 3.25rem; min-width: min(16.3125rem, 100%); max-width: 100%; }
  .experiences { padding-top: 0; }
  .experiences h2 { font-size: 1.5rem; line-height: 2.75rem; margin-bottom: 3.1875rem; }
  .activity-grid { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; max-width: 19.4375rem; margin-inline: auto; }
  .activity-image { aspect-ratio: 311 / 470; }
  .activity h3 { margin-top: .5625rem; }
  .program-button { margin-top: 5.5625rem; }
  .signup { padding-top: 5.5625rem; padding-bottom: .4375rem; }
  .signup > h2 { font-size: 2.25rem; line-height: 2.75rem; text-align: center; margin-bottom: 1.3125rem; }
  .signup-card h2, .signup-card h3 { font-size: 2rem; line-height: 1.375; }
  .site-footer { padding-top: 1rem; }
  .footer-inner { display: block; min-height: 0; }
  .footer-brand { font-size: 2rem; }
  .social-icons { margin-top: 0; margin-left: -.3125rem; margin-bottom: 1.25rem; }
  .site-footer address { font-size: 1.25rem; }
  .footer-nav { padding-top: 2rem; }
  .footer-nav h2 { font-size: clamp(1.5rem, 8.2vw, 2rem); white-space: normal; }
  .footer-nav ul { margin-top: .75rem; }
  .footer-nav a { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
