/* De-Gifted Private School, option 1: "The Arcade".
   Young Serif (display) + Mulish (text). The palette and the shape language come from the school's own building render:
   red roofs, apricot walls, arched verandas, blue sky, green grounds. Arches are the one repeated shape. */
@font-face { font-family: "Young Serif"; src: url("assets/fonts/youngserif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("assets/fonts/mulish.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f8e4d2; --sky: #dcecf8;
  --ink: #17281f; --muted: #4a5a50; --line: rgba(23, 40, 31, .16); --line-strong: rgba(23, 40, 31, .45);
  --accent: #a82a25; --accent-ink: #ffffff; --danger: #b3261e;
  --roof: #b3302a; --roof-deep: #8f2420; --green: #1d4b35; --green-2: #12311f;
  --display: "Young Serif", Georgia, serif; --body: "Mulish", system-ui, sans-serif;
  --r: 14px; --max: 1220px; --gutter: clamp(20px, 4.4vw, 56px); --bar: 76px;
  --spring: cubic-bezier(.32, .72, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.1rem/1.65 var(--body); -webkit-font-smoothing: antialiased; caret-color: var(--roof); overflow-x: clip; }
::selection { background: var(--roof); color: #fff; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.012em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.6vw, 6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); }
h3 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.1; }
p { margin: 0 0 1rem; max-width: 62ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 4px; }
section { padding-block: clamp(68px, 9.5vw, 140px); }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--roof); outline-offset: 3px; }
.eyebrow { font: 800 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; }
.lede { font-size: 1.28rem; color: var(--muted); max-width: 36em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: 800 1rem var(--body); text-decoration: none; cursor: pointer; transition: background .5s var(--spring), color .5s var(--spring), transform .5s var(--spring), border-color .5s var(--spring); }
.btn:active { transform: scale(.98); }
.btn:has(.btn__i) { padding: 5px 5px 5px 26px; }
.btn__i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: transform .5s var(--spring); }
.btn:hover .btn__i { transform: translate(2px, -2px); }
.btn--primary { background: var(--roof); color: #fff; } .btn--primary:hover { background: var(--green); }
.btn--light { background: #fff; color: var(--roof-deep); } .btn--light .btn__i { background: var(--roof); color: #fff; } .btn--light:hover { background: var(--surface-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .65); color: #fff; } .btn--ghost:hover { background: #fff; color: var(--green); }
.btn--lg { min-height: 62px; font-size: 1.06rem; } .btn--lg .btn__i { width: 52px; height: 52px; }
.btn .i { width: 22px; height: 22px; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--accent); text-decoration-thickness: 2px; text-decoration-color: rgba(168, 42, 37, .35); transition: text-decoration-color .3s; }
.textlink:hover { text-decoration-color: currentColor; }

/* header: a red note, then the bar */
.top { position: sticky; top: 0; z-index: 30; background: #fff; box-shadow: 0 1px 0 var(--line); }
.top__note { margin: 0; max-width: none; background: var(--roof); color: #fff; font-size: .9rem; font-weight: 700; text-align: center; padding: 8px 0; }
.top__note a { color: #fff; margin-left: 8px; text-decoration-thickness: 2px; }
.top__in { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; min-height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.logo img { width: 44px; height: 47px; object-fit: contain; }
.logo__words { display: grid; line-height: 1; } .logo__words b { font: 400 1.5rem/1 var(--display); }
.logo__words small { font: 800 .7rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a { text-decoration: none; font-weight: 700; padding: 8px 0; border-bottom: 3px solid transparent; transition: border-color .3s; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--roof); }
.nav .nav__cta { background: var(--roof); color: #fff; padding: 12px 22px; border-radius: 999px; border-bottom: 0; transition: background .4s var(--spring), transform .4s var(--spring); }
.nav .nav__cta:hover { background: var(--green); } .nav .nav__cta:active { transform: scale(.97); }
.menu-btn { display: none; }

/* hero */
.hero { padding-block: clamp(36px, 5vw, 76px) clamp(48px, 7vw, 96px); overflow: clip; background: linear-gradient(180deg, #fff 0, #fff 60%, var(--surface-2) 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 84px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--roof); }
.hero__sub { font-size: 1.24rem; color: var(--muted); margin: 26px 0 32px; max-width: 29em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.hero__open { margin: 22px 0 0; font-weight: 800; color: var(--green); display: flex; align-items: center; gap: 10px; }
.hero__open::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #2fa05c; box-shadow: 0 0 0 4px rgba(47, 160, 92, .2); }
.hero__art { margin: 0; position: relative; max-width: 520px; justify-self: end; width: 100%; }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; overflow: hidden; background: var(--sky); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 24% 78%; }
.hero__art::before { content: ""; position: absolute; inset: 0; transform: translate(16px, 16px); border: 3px solid var(--roof); border-radius: 999px 999px 22px 22px; z-index: -1; }
.hero__crest { position: absolute; left: -34px; bottom: 34px; width: 112px; height: auto; filter: drop-shadow(0 14px 22px rgba(18, 49, 31, .35)); background: #fff; padding: 10px 10px 4px; border-radius: 50% 50% 18px 18px; }
.hero__art figcaption { margin-top: 14px; font-size: .88rem; color: var(--muted); text-align: right; }
.arcade { height: 44px; background: url("assets/img/arcade.svg") repeat-x bottom / 120px 44px; margin-top: -1px; }

/* the school */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.about h2 { margin-bottom: 22px; } .about__src { color: var(--muted); font-size: .98rem; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.offers li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 18px; padding: 22px 0; border-top: 1px solid var(--line-strong); }
.offers li:last-child { border-bottom: 1px solid var(--line-strong); }
.offers li::before { content: ""; grid-row: 1 / 3; width: 26px; height: 34px; border-radius: 999px 999px 4px 4px; background: var(--roof); box-shadow: inset 0 0 0 7px var(--surface-2); margin-top: 4px; }
.offers b { font: 400 1.4rem/1.15 var(--display); } .offers span { color: var(--muted); grid-column: 2; }

/* classes: three bays of an arcade, rising */
.stages { background: var(--surface-2); }
.stages__head { max-width: 40em; margin-bottom: clamp(36px, 6vw, 72px); } .stages__head h2 { margin-bottom: 20px; } .stages__head p { color: var(--muted); }
.bays { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); align-items: end; }
.bay { background: #fff; border-radius: 999px 999px 18px 18px; padding: clamp(80px, 9vw, 120px) clamp(22px, 2.6vw, 38px) 34px; display: grid; align-content: end; gap: 6px; box-shadow: 0 30px 50px -36px rgba(143, 36, 32, .55); }
.bay--1 { min-height: 330px; } .bay--2 { min-height: 400px; } .bay--3 { min-height: 470px; }
.bay__age { font: 800 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.bay h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 8px; } .bay p { color: var(--muted); }

/* safeguarding */
.safe { background: var(--roof); color: #fff; }
.safe .eyebrow { color: #ffd9b8; }
.safe__head { max-width: 44em; margin-bottom: clamp(32px, 5vw, 64px); } .safe h2 { margin-bottom: 22px; font-size: clamp(3rem, 7vw, 6rem); } .safe__head p { color: #ffe6d6; font-size: 1.15rem; }
.windows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 30px); }
.windows li { border: 2.5px solid #fff; border-radius: 999px 999px 18px 18px; padding: clamp(64px, 7vw, 96px) clamp(22px, 2.6vw, 36px) 32px; display: grid; gap: 10px; align-content: start; }
.windows h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); } .windows p { margin: 0; color: #ffe6d6; }

/* parents ask */
.parents__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.parents h2 { margin-bottom: 20px; } .parents__grid > div:first-child p { color: var(--muted); }
.ask { margin: 0; display: grid; gap: 14px; }
.ask > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 22px; padding: 22px 26px; background: var(--surface-2); border-radius: 22px 22px 22px 6px; }
.ask dt { font: 400 1.35rem/1.15 var(--display); color: var(--roof-deep); } .ask dd { margin: 0; }

/* steps */
.steps { background: var(--sky); }
.steps h2 { margin-bottom: clamp(32px, 5vw, 64px); max-width: 12em; }
.steps__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.steps__row li { padding-right: 8px; }
.steps__n { display: grid; place-items: end center; width: 58px; height: 70px; border-radius: 999px 999px 8px 8px; background: var(--green); color: #fff; font: 400 1.6rem/1 var(--display); padding-bottom: 12px; margin-bottom: 22px; }
.steps__row h3 { margin-bottom: 8px; font-size: 1.7rem; } .steps__row p { color: #344a3e; font-size: 1rem; }
.steps__note { margin: clamp(26px, 4vw, 46px) 0 0; color: #344a3e; font-size: .98rem; }

/* come and see */
.come { background: var(--green); color: #fff; }
.come__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.come h2 { font-size: clamp(2.7rem, 6vw, 5.2rem); margin-bottom: 22px; } .come__addr { font-size: 1.15rem; color: #d3e4d9; max-width: 28em; }
.come__links { display: grid; gap: 14px; justify-items: start; }

/* footer */
.foot { background: var(--green-2); color: #cfe0d5; padding-block: 0 40px; overflow: clip; }
.foot__arcade { height: 44px; background: url("assets/img/arcade.svg") repeat-x bottom / 120px 44px; transform: scaleY(-1); margin-bottom: clamp(36px, 5vw, 64px); opacity: .9; }
.foot__top { display: flex; align-items: center; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.foot__top img { width: 96px; height: auto; } .foot__motto { font: 400 clamp(1.5rem, 3vw, 2.4rem)/1.15 var(--display); color: #fff; margin: 0; max-width: 16em; }
.foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 44px; border-bottom: 1px solid rgba(207, 224, 213, .22); }
.foot h2 { font: 800 .76rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #ffb89a; margin-bottom: 14px; }
.foot p { margin: 0 0 8px; } .foot a { color: #fff; text-underline-offset: 4px; }
.foot__nav { display: grid; gap: 6px; } .foot__nav a { text-decoration: none; } .foot__nav a:hover { text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-top: 26px; font-size: .94rem; color: #a9c0b2; padding-bottom: 70px; }
.foot__base p { margin: 0; } .foot__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; } .foot__legal a { color: #cfe0d5; }

/* WhatsApp */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 999px; background: #1a9b52; color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 28px rgba(18, 49, 31, .34); transition: transform .4s var(--spring); }
.wa:hover { transform: translateY(-2px); } .wa:active { transform: scale(.98); } .wa .i { width: 26px; height: 26px; }

/* school page */
.vhead { padding-block: clamp(36px, 6vw, 84px) clamp(28px, 4vw, 56px); overflow: clip; background: linear-gradient(180deg, #fff, var(--surface-2)); }
.vhead__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.vhead__art { justify-self: end; width: min(100%, 230px); } .vhead__art img { width: 100%; height: auto; }
.vhead h1 { font-size: clamp(3.2rem, 7vw, 6rem); } .vhead .lede { margin: 22px 0 28px; }
.hero__cta .btn { margin-right: 0; }
.vlayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(40px, 6vw, 80px) clamp(72px, 10vw, 140px); }
.vmain h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 18px; }
.bsec { padding: clamp(28px, 4vw, 48px) 0 0; margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); } .bsec:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.rows { margin: 0; } .rows > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 800; } .rows dd { margin: 0; color: var(--muted); }
.note { color: var(--muted); font-size: .96rem; max-width: 62ch; } .note a { color: var(--accent); font-weight: 800; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.slots li { padding: 16px 20px; border-radius: var(--r); border: 1.5px dashed var(--line-strong); display: grid; gap: 2px; } .slots b { font: 400 1.25rem var(--display); } .slots span { color: var(--muted); }
.vmain .ask { margin-bottom: 8px; } .vmain .ask > div { padding: 18px 20px; }
address { font-style: normal; font-weight: 700; margin-bottom: 8px; }
.map { background: var(--surface-2); border-radius: var(--r); min-height: 380px; overflow: hidden; margin-top: 14px; } .map iframe { width: 100%; height: 420px; border: 0; display: block; }
.map__ph { padding: clamp(22px, 4vw, 44px); display: grid; gap: 18px; align-content: center; min-height: 380px; } .map__ph p { margin: 0; color: var(--muted); }
.glance { position: sticky; top: 130px; padding: 28px; border-radius: 160px 160px 22px 22px; background: var(--surface-2); padding-top: 70px; }
.glance h2 { font-size: 1.7rem; margin-bottom: 18px; text-align: center; } .glance dl { margin: 0 0 22px; } .glance dt { font: 800 .74rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 16px 0 5px; } .glance dd { margin: 0; }
.glance a:not(.btn) { font-weight: 800; color: var(--accent); }

/* admissions */
.rsvp { padding-block: clamp(40px, 6vw, 90px) clamp(72px, 10vw, 140px); }
.rsvp__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.rsvp h1 { font-size: clamp(3rem, 6.2vw, 5.4rem); margin-bottom: 22px; }
.contact { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; } .contact li { display: flex; align-items: center; gap: 12px; } .contact a { font-weight: 800; color: var(--accent); } .contact .i { width: 24px; height: 24px; color: var(--green); flex: none; }
.rsvp__card { background: #fff; border-radius: 160px 160px 22px 22px; padding: clamp(60px, 9vw, 110px) clamp(22px, 4vw, 48px) clamp(28px, 4vw, 48px); border: 2px solid var(--roof); box-shadow: 14px 14px 0 var(--surface-2); }
.form .btn--primary { justify-self: start; }
.consent { font-size: .88rem; color: var(--muted); margin: 0; } .consent a { color: var(--accent); font-weight: 800; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form input[type="number"], .form select, .form textarea { border-color: var(--line-strong); }
.radio input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }

/* policy and 404 */
.legal { padding-block: clamp(40px, 6vw, 90px) clamp(72px, 10vw, 130px); }
.legal__wrap { max-width: 760px; } .legal h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin-bottom: 18px; }
.legal__meta { color: var(--muted); } .legal h2 { font-size: 1.7rem; margin: 40px 0 12px; } .legal p, .legal li { color: #2a3a30; } .legal a { color: var(--accent); font-weight: 700; }

/* phone polish */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, select, label, input { touch-action: manipulation; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.wa { right: max(18px, calc(env(safe-area-inset-right) + 12px)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px)); }
.foot__base { padding-bottom: max(78px, calc(env(safe-area-inset-bottom) + 70px)); }

@media (max-width: 1000px) {
  .hero__grid, .about__grid, .parents__grid, .come__grid, .vhead__grid, .rsvp__grid, .vlayout { grid-template-columns: minmax(0, 1fr); }
  .hero__art { justify-self: center; max-width: 440px; margin-top: 10px; order: -1; } .hero__art::before { transform: translate(10px, 10px); }
  .hero__crest { left: -6px; width: 92px; bottom: 22px; }
  .vhead__art { justify-self: start; width: 140px; } .glance { position: static; border-radius: 22px; padding-top: 28px; } .glance h2 { text-align: left; }
  .bays, .windows { grid-template-columns: minmax(0, 1fr); } .bay--1, .bay--2, .bay--3 { min-height: 0; } .bay { padding-top: 84px; }
  .windows li { padding-top: 70px; }
  .steps__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rsvp__card { border-radius: 120px 120px 22px 22px; padding-top: 80px; }
  /* menu */
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; }
  .burger { position: relative; width: 26px; height: 16px; } .burger i { position: absolute; left: 0; right: 0; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--spring), top .5s var(--spring); }
  .burger i:first-child { top: 1px; } .burger i:last-child { top: 12px; }
  .menu-btn[aria-expanded="true"] .burger i:first-child { top: 7px; transform: rotate(45deg); } .menu-btn[aria-expanded="true"] .burger i:last-child { top: 7px; transform: rotate(-45deg); }
  .nav { position: fixed; left: 0; right: 0; top: calc(var(--bar) + 36px); bottom: 0; z-index: 29; background: #fff; flex-direction: column; align-items: flex-start; gap: 4px; padding: 26px var(--gutter) max(40px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .35s var(--spring), transform .35s var(--spring), visibility 0s .35s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { font: 400 clamp(2.3rem, 10vw, 3.2rem)/1.1 var(--display); padding: 10px 0; border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--roof); }
  .nav .nav__cta { font: 800 1.05rem var(--body); margin-top: 18px; padding: 16px 28px; }
  html.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .ask > div, .rows > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } .row { grid-template-columns: minmax(0, 1fr); }
  .steps__row { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); } .foot__top { flex-direction: column; align-items: flex-start; }
  .wa span { display: none; } .wa { padding: 0; width: 54px; justify-content: center; }
  .top__note { font-size: .82rem; padding: 7px var(--gutter); } .top__note a { display: inline-block; }
  .hero__art figcaption { text-align: left; }
}
@media (hover: none) { .btn:hover, .wa:hover { transform: none; } }
@media (max-height: 460px) and (orientation: landscape) { :root { --bar: 60px; } section { padding-block: 40px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }

/* Shared components for both Havilah options: RSVP form, gallery grid, lightbox, reveal.
   Relies on tokens defined by each option: --bg --ink --muted --line --line-strong --accent --accent-ink --surface --surface-2 --r */

[hidden] { display: none !important; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* RSVP form */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 650; font-size: .95rem; padding: 0; }
.field .opt, .hint { color: var(--muted); font-weight: 400; font-size: .88rem; }
.hint { margin: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form input[type="number"], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 12px 14px; min-height: 48px;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.field.has-error input, .field.has-error select { border-color: var(--danger, #c0261c); }
.err { margin: 0; color: var(--danger, #c0261c); font-size: .9rem; font-weight: 600; }
.field--radios, .field--branch { gap: 8px; }
.field--radios, .field--branch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.field--radios legend, .field--branch legend { width: 100%; margin-bottom: 2px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); font-weight: 600; font-size: .95rem; cursor: pointer; }
.radio input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.radio input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-strong); font-weight: 550; }
.status a { text-underline-offset: 3px; font-weight: 700; }
.form button:disabled { opacity: .6; cursor: progress; }
.done { display: grid; gap: 10px; }
.done h2 { font-size: 1.7rem; }
.done p { margin: 0; color: var(--muted); }
.done a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* Gallery grid */
.all__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 600; font-size: .92rem; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.masonry { columns: 3 260px; column-gap: 18px; }
.tile { break-inside: avoid; margin: 0 0 18px; }
.tile__open { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.tile__open img { width: 100%; height: auto; display: block; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.tile__open:hover img, .tile__open:focus-visible img { transform: scale(1.04); }
.tile__open:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tile figcaption { padding-top: 8px; display: grid; gap: 1px; font-size: .95rem; }
.tile figcaption small { color: var(--muted); font-size: .8rem; }
.note { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.note a { color: var(--ink); text-underline-offset: 3px; }

/* Lightbox */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; color: #fff; }
.lb::backdrop { background: rgba(8, 10, 12, .92); }
.lb[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb__fig { margin: 0; display: grid; gap: 10px; justify-items: center; max-height: 100dvh; padding: 24px 0; }
.lb__fig img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: var(--r); }
.lb__fig figcaption { color: #dfe5e8; font-size: .95rem; text-align: center; padding-inline: 12px; }
.lb__nav, .lb__x { background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; justify-self: center; }
.lb__nav:hover, .lb__x:hover { background: rgba(255, 255, 255, .24); }
.lb__nav:focus-visible, .lb__x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb__x { position: absolute; top: 16px; right: 16px; z-index: 2; }
.lb .i { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; }
  .masonry { columns: 2 150px; column-gap: 12px; }
  .lb[open] { grid-template-columns: 1fr; }
  .lb__nav { position: absolute; bottom: 16px; }
  .lb__nav--prev { left: 16px; }
  .lb__nav--next { right: 16px; }
}

/* Picture wrappers must not break layouts that size the image from its parent */
picture { display: contents; }

/* Policy and 404 pages */
.legal { padding-top: clamp(32px, 5vw, 64px); }
.legal__wrap { max-width: 760px; }
.legal h1 { margin-bottom: 8px; }
.legal__meta { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; margin: 30px 0 10px; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--ink); max-width: 68ch; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 0 0 1rem; }
.legal a { text-underline-offset: 3px; font-weight: 600; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.foot__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.consent { margin: 0; font-size: .88rem; color: var(--muted); }
.consent a { color: var(--ink); text-underline-offset: 3px; font-weight: 600; }

/* Click-to-load map */
.map__ph { height: 100%; min-height: 380px; display: grid; align-content: center; justify-items: start; gap: 6px; padding: clamp(20px, 4vw, 40px); }
.map__ph p { max-width: 30em; color: var(--muted); margin: 0; }
.map__ph a:not(.btn) { color: var(--ink); text-underline-offset: 3px; font-weight: 600; }

/* Tap targets: links in lists and footers are at least 44px tall */
.foot__col a, .contact a, .foot a { display: inline-flex; align-items: center; min-height: 44px; }
.contact { gap: 0 !important; }
.foot__col { gap: 0 !important; }

/* Floating WhatsApp collapses to an icon on phones so it never covers content */
@media (max-width: 700px) {
  .wa { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wa .i { width: 26px; height: 26px; }
}
