/* Victorroti Private Secondary School, option 2: "The Report Card".
   Archivo (one variable family, expanded for headlines). White paper, ink, royal blue from the school's sign, a red marking pen and a yellow highlighter.
   The page reads like a school report: ruled paper, ticks, a stamp, and a "confirmed" column left empty for the school to tick. */
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #eef2fb;
  --ink: #0b1530; --muted: #48556f; --line: rgba(11, 21, 48, .16); --line-strong: rgba(11, 21, 48, .5);
  --accent: #1a46c8; --accent-ink: #ffffff; --danger: #b3261e;
  --blue: #1a46c8; --blue-deep: #0f2f8f; --red: #d4232a; --hl: #ffe14d;
  --display: "Archivo", system-ui, sans-serif; --body: "Archivo", system-ui, sans-serif;
  --r: 10px; --max: 1240px; --gutter: clamp(20px, 4vw, 56px); --bar: 76px;
  --spring: cubic-bezier(.32, .72, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.08rem/1.65 var(--body); -webkit-font-smoothing: antialiased; caret-color: var(--blue); overflow-x: clip; }
::selection { background: var(--hl); color: var(--ink); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-stretch: 118%; margin: 0; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.8vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.8vw, 4.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.08; letter-spacing: -.02em; font-stretch: 108%; }
mark { background: linear-gradient(transparent 52%, var(--hl) 52%, var(--hl) 92%, transparent 92%); color: inherit; padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
p { margin: 0 0 1rem; max-width: 62ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 4px; }
section { padding-block: clamp(64px, 9vw, 130px); }
.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: 800; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.tag { font: 800 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 20px; display: inline-block; padding: 8px 12px; border: 2px solid var(--blue); border-radius: 6px; }
.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: 54px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 12px; font: 800 1.02rem var(--body); text-decoration: none; cursor: pointer; background: #fff; color: var(--ink); transition: background .4s var(--spring), color .4s var(--spring), transform .4s var(--spring), box-shadow .4s var(--spring); }
.btn:active { transform: translate(2px, 2px); }
.btn:has(.btn__i) { padding: 0 0 0 24px; overflow: hidden; }
.btn__i { display: grid; place-items: center; width: 52px; align-self: stretch; border-left: 2px solid currentColor; }
.btn .i { width: 22px; height: 22px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 5px 5px 0 var(--ink); } .btn--primary:hover { background: var(--ink); box-shadow: 5px 5px 0 var(--hl); } .btn--primary:active { box-shadow: 2px 2px 0 var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--paper { background: #fff; color: var(--blue-deep); border-color: #fff; box-shadow: 5px 5px 0 rgba(11, 21, 48, .35); } .btn--paper:hover { background: var(--hl); color: var(--ink); }
.btn--ghost { background: transparent; border-color: #fff; color: #fff; } .btn--ghost:hover { background: #fff; color: var(--blue-deep); }
.btn--lg { min-height: 62px; font-size: 1.06rem; } .btn--lg .btn__i { width: 60px; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--blue); text-decoration-thickness: 2px; text-decoration-color: rgba(26, 70, 200, .4); }
.textlink:hover { text-decoration-color: currentColor; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 2px solid var(--ink); padding-top: env(safe-area-inset-top); }
.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: 42px; height: 42px; }
.logo__words { display: grid; line-height: 1; } .logo__words b { font: 800 1.4rem/1 var(--display); font-stretch: 118%; letter-spacing: -.03em; text-transform: uppercase; }
.logo__words small { font: 700 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.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(--red); }
.nav .nav__cta { background: var(--blue); color: #fff; padding: 12px 20px; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); transition: transform .3s var(--spring), box-shadow .3s var(--spring); }
.nav .nav__cta:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.menu-btn { display: none; }

/* hero: ruled paper and a taped print */
.hero { padding-block: clamp(36px, 5vw, 84px) clamp(56px, 7vw, 110px); overflow: clip; background: var(--surface-2); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.sheet { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: clamp(26px, 4vw, 56px) clamp(22px, 4vw, 56px) clamp(30px, 4vw, 56px) clamp(54px, 7vw, 92px); box-shadow: 10px 10px 0 var(--ink);
  background-image: linear-gradient(to right, transparent clamp(38px, 5.4vw, 70px), var(--red) clamp(38px, 5.4vw, 70px), var(--red) calc(clamp(38px, 5.4vw, 70px) + 2px), transparent calc(clamp(38px, 5.4vw, 70px) + 2px)), repeating-linear-gradient(to bottom, transparent 0 35px, rgba(26, 70, 200, .18) 35px 36px); }
.sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font: 800 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 26px; max-width: none; }
.sheet h1 { margin-bottom: 26px; }
.hero__sub { font-size: 1.2rem; color: #2b3856; margin-bottom: 30px; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.print { position: relative; margin: 0; background: #fff; padding: 14px 14px 18px; border: 2px solid var(--ink); border-radius: 4px; box-shadow: 10px 10px 0 rgba(11, 21, 48, .85); transform: rotate(2.2deg); justify-self: center; width: min(100%, 520px); }
.print img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 46% 45%; }
.print figcaption { padding-top: 12px; font-size: .9rem; color: var(--muted); }
.tape { position: absolute; width: 96px; height: 28px; background: rgba(255, 225, 77, .85); top: -14px; border: 1px solid rgba(11, 21, 48, .2); }
.tape--a { left: 14%; transform: rotate(-6deg); } .tape--b { right: 12%; transform: rotate(5deg); }
.stamp { position: absolute; right: -26px; bottom: -34px; width: 150px; transform: rotate(-14deg); opacity: .92; mix-blend-mode: multiply; }

/* the school as reported: a table with an empty tick column */
.report { background: #fff; }
.report__head { max-width: 44em; margin-bottom: clamp(30px, 5vw, 56px); } .report__head h2 { margin-bottom: 20px; } .report__head p { color: var(--muted); }
.table { border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.trow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 7.5rem; gap: 18px; align-items: center; padding: 18px clamp(16px, 2.4vw, 30px); border-bottom: 1.5px solid var(--ink); }
.trow:last-child { border-bottom: 0; }
.trow--h { background: var(--ink); color: #fff; font: 800 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; padding-block: 14px; }
.trow span:first-child { display: flex; align-items: center; gap: 14px; } .trow b { font: 800 1.12rem/1.25 var(--display); font-stretch: 105%; letter-spacing: -.01em; }
.tk { flex: none; width: 26px; height: 26px; }
.trow span:nth-child(2) { color: var(--muted); }
.box { justify-self: start; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.trow--h span:last-child { justify-self: start; }

/* classes */
.classes { background: var(--surface-2); border-block: 2px solid var(--ink); }
.classes__head { max-width: 40em; margin-bottom: clamp(30px, 5vw, 56px); } .classes__head h2 { margin-bottom: 20px; } .classes__head p { color: var(--muted); }
.reg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 30px); }
.reg__stage { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: clamp(22px, 3vw, 36px); box-shadow: 6px 6px 0 var(--blue); }
.reg__stage--s { box-shadow: 6px 6px 0 var(--red); }
.reg__stage h3 { margin-bottom: 18px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.reg ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.reg a { display: grid; place-items: center; min-height: 72px; border: 2px solid var(--ink); border-radius: 10px; font: 800 1.5rem/1 var(--display); font-stretch: 112%; text-decoration: none; background: #fff; transition: background .3s var(--spring), transform .3s var(--spring), color .3s var(--spring); }
.reg a:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.subj { margin-top: clamp(28px, 4vw, 48px); } .subj__lab { font: 800 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.subj ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; } .subj li { padding: 11px 18px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; background: #fff; }
.subj li:nth-child(odd) { background: var(--hl); }

/* day or boarding: tear-off tickets */
.ways__head { margin-bottom: clamp(28px, 4vw, 48px); } .ways__head h2 { margin-bottom: 0; }
.ways__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 36px); }
.way { padding: clamp(26px, 3.4vw, 44px); border: 2.5px dashed var(--ink); border-radius: 12px; display: grid; gap: 12px; align-content: start; position: relative; }
.way::after { content: ""; position: absolute; right: 22px; top: -2px; width: 30px; height: 14px; background: #fff; border: 2.5px solid var(--ink); border-top: 0; border-radius: 0 0 16px 16px; }
.way--b { background: var(--blue); border-color: var(--ink); color: #fff; } .way--b .textlink { color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
.way h3 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); } .way p { margin: 0; color: inherit; opacity: .9; }

/* safeguarding */
.safe { background: var(--hl); border-block: 2px solid var(--ink); }
.safe__head { max-width: 46em; margin-bottom: clamp(30px, 5vw, 56px); } .safe h2 { margin-bottom: 20px; font-size: clamp(3rem, 8vw, 7.4rem); } .safe__head p { font-size: 1.15rem; color: #2b2a10; }
.safe__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); }
.safe__list li { background: #fff; padding: clamp(20px, 2.4vw, 30px); border: 2px solid var(--ink); border-radius: 10px; display: grid; gap: 10px; align-content: start; box-shadow: 5px 5px 0 var(--ink); }
.safe__list h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); } .safe__list p { margin: 0; color: #2b3856; font-size: 1rem; }

/* parents ask */
.parents__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 100px); align-items: start; }
.parents h2 { margin-bottom: 20px; } .parents__grid > div:first-child p { color: var(--muted); }
.ask { margin: 0; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.ask > div { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 22px; padding: 20px 24px; border-bottom: 1.5px solid var(--ink); background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(26, 70, 200, .12) 33px 34px); }
.ask > div:last-child { border-bottom: 0; }
.ask dt { font: 800 1.05rem/1.3 var(--display); font-stretch: 108%; color: var(--blue-deep); } .ask dd { margin: 0; }

/* steps */
.steps { background: var(--surface-2); border-block: 2px solid var(--ink); }
.steps h2 { margin-bottom: clamp(30px, 5vw, 60px); 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__n { display: grid; place-items: center; width: 62px; height: 58px; border: 3px solid var(--red); border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; color: var(--red); font: 800 1.7rem/1 var(--display); margin-bottom: 20px; transform: rotate(-4deg); }
.steps__row h3 { margin-bottom: 8px; } .steps__row p { color: #2b3856; font-size: 1rem; }
.steps__note { margin: clamp(24px, 4vw, 44px) 0 0; color: var(--muted); font-size: .98rem; }

/* tour band */
.tour { background: var(--blue); color: #fff; overflow: clip; }
.tour__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.tour h2 { font-size: clamp(3.2rem, 8.4vw, 7.6rem); } .tour mark { color: var(--ink); } .tour__side p { font-size: 1.15rem; color: #dbe5ff; } .tour__links { display: grid; gap: 14px; justify-items: start; margin-top: 22px; }

/* footer */
.foot { background: var(--ink); color: #b8c3dc; padding: clamp(46px, 6vw, 84px) 0 0; overflow: clip; }
.foot__head { display: flex; align-items: center; gap: 20px; margin-bottom: clamp(30px, 4vw, 52px); } .foot__head img { width: 72px; height: 72px; }
.foot__head p { font: 800 clamp(1.8rem, 4vw, 3.2rem)/1 var(--display); font-stretch: 118%; letter-spacing: -.03em; color: #fff; margin: 0; text-transform: uppercase; max-width: none; }
.foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.foot h2 { font: 800 .76rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--hl); 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: 26px 0 78px; font-size: .94rem; }
.foot__base p { margin: 0; } .foot__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; } .foot__legal a { color: #b8c3dc; }

/* 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; background: #1a9b52; color: #fff; font-weight: 800; text-decoration: none; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); transition: transform .3s var(--spring), box-shadow .3s var(--spring); }
.wa:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); } .wa:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); } .wa .i { width: 26px; height: 26px; }

/* school page */
.vhead { padding-block: clamp(36px, 6vw, 80px) clamp(24px, 4vw, 48px); background: var(--surface-2); border-bottom: 2px solid var(--ink); overflow: clip; }
.vhead__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.vhead h1 { font-size: clamp(2.8rem, 6.6vw, 5.6rem); } .vhead .lede { margin: 20px 0 28px; }
.vhead__art { justify-self: end; width: min(100%, 190px); } .vhead__art img { width: 100%; height: auto; transform: rotate(8deg); }
.vlayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 90px); align-items: start; padding-block: clamp(36px, 5vw, 72px) clamp(72px, 10vw, 130px); }
.vmain h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 18px; }
.bsec { padding: clamp(24px, 3.4vw, 40px) 0 0; margin-top: clamp(24px, 3.4vw, 40px); border-top: 2px solid var(--ink); } .bsec:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.rows { margin: 0; } .rows > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line-strong); }
.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(--blue); font-weight: 800; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.slots li { padding: 14px 18px; border: 2px dashed var(--line-strong); border-radius: var(--r); display: grid; gap: 2px; } .slots b { font-weight: 800; } .slots span { color: var(--muted); }
.vmain .ask { margin-bottom: 4px; } .vmain .ask > div { padding: 16px 18px; }
address { font-style: normal; font-weight: 800; margin-bottom: 8px; }
.map { background: var(--surface-2); border: 2px solid var(--ink); 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: 376px; } .map__ph p { margin: 0; color: var(--muted); }
.glance { position: sticky; top: 100px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.glance h2 { font: 800 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .16em; background: var(--blue); color: #fff; padding: 14px 20px; margin: 0; }
.glance dl { margin: 0; padding: 4px 20px 0; } .glance dl > div { padding: 14px 0; border-bottom: 1px solid var(--line-strong); }
.glance dt { font: 800 .72rem/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: 6px; } .glance dd { margin: 0; font-weight: 700; }
.glance .btn { margin: 20px; } .glance a:not(.btn) { color: var(--blue); font-weight: 800; }

/* admissions */
.rsvp { padding-block: clamp(36px, 6vw, 84px) clamp(72px, 10vw, 130px); }
.rsvp__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.rsvp h1 { font-size: clamp(2.8rem, 6.2vw, 5.4rem); margin-bottom: 22px; }
.contact { list-style: none; padding: 0; margin: 26px 0 0; display: grid; border-top: 2px solid var(--ink); } .contact li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-strong); } .contact a { font-weight: 800; color: var(--blue); } .contact .i { width: 24px; height: 24px; flex: none; }
.rsvp__card { background: #fff; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 10px 10px 0 var(--ink); padding: clamp(22px, 4vw, 48px); }
.form .btn--primary { justify-self: start; }
.consent { font-size: .88rem; color: var(--muted); margin: 0; } .consent a { color: var(--blue); 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-width: 2px; border-color: var(--ink); border-radius: 8px; }
.radio span { border-width: 2px; border-color: var(--ink); border-radius: 8px; } .radio input:checked + span { background: var(--blue); border-color: var(--ink); color: #fff; }

/* policy and 404 */
.legal { padding-block: clamp(40px, 6vw, 84px) clamp(72px, 10vw, 120px); }
.legal__wrap { max-width: 780px; } .legal h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin-bottom: 18px; }
.legal__meta { color: var(--muted); } .legal h2 { font-size: 1.6rem; margin: 40px 0 12px; } .legal p, .legal li { color: #25324f; } .legal a { color: var(--blue); 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, .parents__grid, .tour__grid, .vhead__grid, .rsvp__grid, .vlayout { grid-template-columns: minmax(0, 1fr); }
  .print { transform: rotate(1.2deg); margin-inline: auto; width: min(100%, 460px); } .stamp { right: -10px; bottom: -28px; width: 118px; }
  .vhead__art { justify-self: start; width: 100px; } .glance { position: static; }
  .trow { grid-template-columns: minmax(0, 1fr) 5.5rem; row-gap: 4px; } .trow span:nth-child(2) { grid-column: 1; grid-row: 2; font-size: .94rem; } .trow span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; } .trow--h span:nth-child(2) { display: none; }
  .reg, .ways__grid { grid-template-columns: minmax(0, 1fr); }
  .safe__list, .steps__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* menu: a drawer from the right */
  .menu-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; box-shadow: 3px 3px 0 var(--ink); position: relative; z-index: 40; }
  .burger { position: relative; width: 22px; height: 16px; } .burger i { position: absolute; left: 0; right: 0; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--spring), top .45s var(--spring), opacity .25s; }
  .burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 7px; } .burger i:nth-child(3) { top: 14px; }
  .menu-btn[aria-expanded="true"] .burger i:nth-child(1) { top: 7px; transform: rotate(45deg); } .menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; } .menu-btn[aria-expanded="true"] .burger i:nth-child(3) { top: 7px; transform: rotate(-45deg); }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 35; width: min(88%, 400px); background: #fff; border-left: 2px solid var(--ink); flex-direction: column; align-items: flex-start; gap: 0; padding: calc(var(--bar) + 18px + env(safe-area-inset-top)) 26px max(34px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; transform: translateX(104%); visibility: hidden; transition: transform .45s var(--spring), visibility 0s .45s; }
  .nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { font: 800 clamp(2rem, 8vw, 2.6rem)/1.1 var(--display); font-stretch: 112%; letter-spacing: -.03em; padding: 14px 0; width: 100%; border-bottom: 2px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--red); }
  .nav .nav__cta { font: 800 1.05rem var(--body); margin-top: 22px; padding: 16px 24px; width: auto; border: 2px solid var(--ink); color: #fff; }
  html.nav-open { overflow: hidden; } html.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(11, 21, 48, .55); z-index: 34; }
  .top { z-index: 36; }
}
@media (max-width: 640px) {
  .sheet { box-shadow: 6px 6px 0 var(--ink); } .print { box-shadow: 6px 6px 0 rgba(11, 21, 48, .85); }
  .safe__list, .steps__row { grid-template-columns: minmax(0, 1fr); } .reg ul { gap: 8px; } .reg a { min-height: 64px; font-size: 1.25rem; }
  .ask > div, .rows > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } .row { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); } .foot__head { align-items: flex-start; flex-direction: column; }
  .wa span { display: none; } .wa { padding: 0; width: 54px; justify-content: center; }
  .logo__words small { letter-spacing: .06em; }
}
@media (hover: none) { .btn:hover, .wa:hover, .reg a: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; }
}
