/* Varsity Park. Colours from the old site's Elementor kit: teal #15988E, lime #A3BF46, deep teal #004742, text #464646. */
@font-face { font-family: "Clegane"; src: url("/fonts/clegane.ttf") format("truetype"); font-display: swap; }
:root {
  --teal: #15988e;
  --teal-deep: #0e7c73;
  --teal-dark: #004742;
  --lime: #a3bf46;
  --lime-bright: #afd136;
  --lime-deep: #8aa534;
  --card: #fafde8;
  --mint: #f3f8ec;
  --ink: #222;
  --text: #464646;
  --ink-soft: #6a6a6a;
  --line: #e1e8d6;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 18px 40px -20px rgba(0, 60, 55, .38);
  --wrap: 1180px;
  --head: "Alata", "Raleway", system-ui, sans-serif;
  --body: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Clegane", "Alata", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.script { font-family: var(--script); font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.2; color: var(--teal); margin: 0 0 .4em; letter-spacing: .01em; }
.lead { font-size: 1.15rem; color: var(--text); }
.center { text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; text-decoration: none; border-radius: 999px; padding: .85em 1.6em; border: 2px solid var(--teal); background: var(--teal); color: var(--white); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--white); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--teal-dark); }
.btn--white:hover { background: var(--card); border-color: var(--card); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Top bar and header */
.topbar { background: var(--lime); color: var(--white); font-size: .9rem; font-weight: 600; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 22px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; }
.header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 80px; }
.brand { position: relative; align-self: flex-start; display: block; background: var(--card); border-radius: 0 0 22px 22px; padding: 10px 18px 12px; margin-bottom: -44px; box-shadow: var(--shadow); z-index: 2; }
.brand img { width: 112px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a[aria-current="page"] { border-color: var(--lime); }
.nav .btn { padding: .6em 1.3em; color: var(--white); border: 2px solid var(--teal); }
.nav .btn:hover { color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--teal); }
.menu-toggle svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .topbar .wrap { justify-content: center; gap: 18px; }
  .topbar .t-email span { display: none; }
  .header .wrap { min-height: 64px; }
  .brand { padding: 7px 12px 9px; margin-bottom: -34px; border-radius: 0 0 16px 16px; }
  .brand img { width: 80px; }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: 44px 24px 24px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.35); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .btn { margin-top: 18px; justify-content: center; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: center; color: var(--white); overflow: hidden; background: #6b8c5a; border-radius: 0 0 40px 40px; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 50% 28%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,50,45,.05) 0%, rgba(0,50,45,.25) 45%, rgba(0,50,45,.55) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 90px; display: flex; justify-content: flex-end; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; width: 640px; max-width: 100%; }
.pill { display: inline-block; font-family: var(--script); font-size: clamp(1.5rem, 2.6vw, 1.9rem); background: var(--lime); color: var(--white); border-radius: 999px; padding: .2em 1em .25em; margin: 0 0 .6em; }
.hero h1 { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.28); margin-bottom: .45em; }
.hero h1 span { display: block; font-size: .62em; }
.hero__scroll { position: absolute; left: 50%; bottom: 20px; z-index: 1; transform: translateX(-50%); color: var(--white); opacity: .85; }
.hero__scroll svg { width: 34px; height: 34px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll svg { animation: none; } }
@media (max-width: 760px) {
  .hero { min-height: 82vh; align-items: flex-end; border-radius: 0 0 28px 28px; }
  .hero picture img { object-position: 38% 30%; }
  .hero::after { background: linear-gradient(180deg, rgba(0,50,45,0) 30%, rgba(0,50,45,.7) 100%); }
  .hero .wrap { padding-bottom: 70px; justify-content: center; }
}

/* Page banner (inner pages) */
.banner { position: relative; background: var(--teal) center / cover no-repeat; color: var(--white); padding: 96px 0 60px; text-align: center; border-radius: 0 0 40px 40px; }
.banner h1 { color: var(--white); margin: 0; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.banner .script { color: var(--card); }
@media (max-width: 760px) { .banner { padding: 78px 0 46px; border-radius: 0 0 28px 28px; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--mint { background: var(--mint); }
.intro { max-width: 780px; margin: 0 auto; text-align: center; }

/* Document cards */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.doc { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--white); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; background: var(--teal-dark); }
.doc:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -22px rgba(0,60,55,.5); }
.doc__img { aspect-ratio: 4 / 3; overflow: hidden; }
.doc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.doc:hover .doc__img img { transform: scale(1.04); }
.doc__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 20px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; background: linear-gradient(180deg, rgba(0,71,66,0) 0%, rgba(0,71,66,.9) 55%); }
.doc__body small { display: block; font-family: var(--script); font-size: 1.6rem; line-height: 1.1; color: var(--lime-bright); text-decoration: underline; text-underline-offset: 3px; }
.doc__body h3 { margin: 0; color: var(--white); font-size: 1.6rem; }
.doc__sub { display: block; font-size: .85rem; opacity: .9; }
.doc__dl { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; color: var(--white); }
.doc__dl svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; gap: 18px; } .doc__img { aspect-ratio: 16 / 10; } }

/* All boxes ticked */
.ticks { list-style: none; margin: 42px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tick { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--teal-dark); }
.tick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tick span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font-family: var(--head); font-size: 1.2rem; line-height: 1.2; color: var(--white); background: linear-gradient(180deg, rgba(0,71,66,0) 0%, rgba(0,71,66,.88) 60%); }
@media (max-width: 900px) { .ticks { grid-template-columns: repeat(2, 1fr); gap: 14px; } .tick span { font-size: 1.02rem; padding: 30px 12px 11px; } }

/* Thriving community band */
.thriving { background: var(--lime); color: var(--white); text-align: center; padding: clamp(70px, 10vw, 120px) 0; border-radius: 120px 0 0 0; }
.thriving .script { color: var(--white); }
.thriving h2 { color: var(--white); max-width: 860px; margin: 0 auto .9em; font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
@media (max-width: 760px) { .thriving { border-radius: 60px 0 0 0; } }

/* Highlights (Living page) */
.highlight { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.highlight + .highlight { margin-top: clamp(64px, 9vw, 110px); }
.highlight--flip .highlight__img { order: 2; }
.highlight__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.highlight__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.highlight h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.stats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats li { background: var(--white); border-top: 4px solid var(--lime); border-radius: 0 0 12px 12px; padding: 14px 14px; line-height: 1.3; box-shadow: 0 10px 24px -18px rgba(0,60,55,.45); }
.stats strong { display: block; font-family: var(--head); font-weight: 400; font-size: 1.4rem; color: var(--teal); }
.stats span { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 860px) { .highlight { grid-template-columns: 1fr; } .highlight--flip .highlight__img { order: 0; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* Register / form */
.register { position: relative; overflow: hidden; background: var(--teal-dark); }
.register > picture, .register > picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.register > picture img { object-fit: cover; object-position: center 40%; }
.register::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,71,66,.78) 0%, rgba(0,71,66,.35) 100%); z-index: 1; }
.register .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.register__intro { color: var(--white); }
.register__intro p.script { color: var(--lime-bright); font-size: clamp(1.7rem, 3vw, 2.2rem); }
.register__intro h2 { color: var(--white); }
.register__intro p { color: rgba(255,255,255,.95); font-size: 1.12rem; }
.card { background: var(--teal); border-radius: 28px; padding: clamp(24px, 4vw, 42px); box-shadow: 0 30px 60px -25px rgba(0,0,0,.55); color: var(--white); }
.card h3 { margin-bottom: 18px; color: var(--white); font-size: 1.35rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--head); font-size: 1rem; color: var(--white); }
.field input { font: inherit; font-size: 1rem; padding: 13px 14px; border: 2px solid transparent; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--lime-bright); box-shadow: 0 0 0 4px rgba(175,209,54,.35); }
.field input[aria-invalid="true"] { border-color: #ffb4a8; box-shadow: 0 0 0 3px rgba(179,38,30,.45); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: rgba(255,255,255,.95); line-height: 1.45; }
.consent a { color: var(--white); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lime-deep); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { grid-column: 1 / -1; justify-self: center; background: var(--lime); border-color: var(--lime); color: var(--white); font-size: 1rem; padding: .85em 2.4em; }
.form .btn:hover { background: var(--lime-deep); border-color: var(--lime-deep); }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form-msg { grid-column: 1 / -1; margin: 0; font-weight: 700; min-height: 1.2em; text-align: center; }
.form-msg.err { color: #ffe1dc; }
.form-done { text-align: center; padding: 26px 6px; }
.form-done svg { width: 64px; height: 64px; color: var(--lime-bright); margin: 0 auto 10px; }
.form-done h3 { color: var(--white); }
@media (max-width: 860px) { .register .wrap { grid-template-columns: 1fr; } .register::before { background: rgba(0,71,66,.6); } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* Note */

/* Prose (privacy) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* Footer */
.footer { color: rgba(255,255,255,.88); font-size: .95rem; }
.footer__contact { background: var(--teal) center / cover no-repeat; padding: 34px 0; }
.footer__contact .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer__contact a { display: flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; font-weight: 600; }
.footer__contact a:hover span:last-child { text-decoration: underline; }
.footer__contact small { display: block; font-family: var(--head); font-weight: 400; font-size: 1.05rem; }
.footer__contact .ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.footer__contact .ico svg { width: 21px; height: 21px; }
@media (max-width: 860px) { .footer__contact .wrap { grid-template-columns: 1fr; gap: 16px; } }
.footer__main { background: var(--teal-dark); padding: 50px 0 36px; }
.footer__main .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.footer h4 { font-family: var(--head); font-weight: 400; color: var(--lime-bright); font-size: 1.05rem; margin: 0 0 14px; }
.footer a { color: rgba(255,255,255,.92); text-decoration: none; }
.footer__main a:hover { color: var(--lime-bright); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__brand img.vp { width: 120px; background: var(--card); border-radius: 16px; padding: 10px 14px; }
.footer__brand p { margin-top: 16px; max-width: 32ch; }
.footer__devs { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer__devs h4 { margin-bottom: 0; }
.footer__devs img { width: 150px; }
.footer__devs img.wdev { width: 96px; }
@media (max-width: 860px) { .footer__main .wrap { grid-template-columns: 1fr; gap: 30px; } }
.footer__base { background: var(--lime-bright); color: var(--teal-dark); font-size: .9rem; font-weight: 600; }
.footer__base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.footer__base a { color: var(--teal-dark); text-decoration: underline; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
