/* =====================================================================
   Lilongwe Demonstration School — site styles
   Colours come from the campus itself: uniform blue, the yellow painted
   walls with their blue triangle frieze, and Lilongwe's red earth.
   Change a colour once here (the tokens) and it updates everywhere.
   ===================================================================== */

:root {
  --ground: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eaf0f7;
  --ink: #14223a;
  --ink-2: #475872;
  --ink-3: #6b7a91;
  --line: #d8e0ea;
  --blue: #1f57a4;          /* school blue — links, buttons */
  --blue-ink: #ffffff;
  --sky: #4a8fd6;           /* uniform blue */
  --earth: #a9471f;         /* red earth — dates, small accents */
  --wall: #f0cd5e;          /* yellow wall paint */
  --wall-ink: #3b2f05;
  --hero-shade: rgba(9, 20, 40, 0.78);

  --tag-term: #1f57a4;  --tag-term-bg: #e1ebf8;
  --tag-exam: #8a3a17;  --tag-exam-bg: #f8e6dc;
  --tag-event: #2d6a3e; --tag-event-bg: #e0f1e5;
  --tag-meeting: #6a4a9a; --tag-meeting-bg: #ece5f6;
  --tag-holiday: #5c6573; --tag-holiday-bg: #e9ecf0;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem);

  --radius: 10px;
  --wrap: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0e1522; --surface: #162033; --surface-2: #1c2940;
    --ink: #e9eef6; --ink-2: #aab7cb; --ink-3: #8595ad; --line: #2a3853;
    --blue: #86b4f0; --blue-ink: #0b1526; --sky: #86b4f0;
    --earth: #e49068; --wall: #e6c45a; --wall-ink: #2b2204;
    --hero-shade: rgba(4, 9, 18, 0.82);
    --tag-term: #a9c8f3; --tag-term-bg: #1d3253;
    --tag-exam: #f0b193; --tag-exam-bg: #432419;
    --tag-event: #9bd6ab; --tag-event-bg: #1b3a25;
    --tag-meeting: #cbb6ef; --tag-meeting-bg: #33294a;
    --tag-holiday: #b9c2cf; --tag-holiday-bg: #273245;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0e1522; --surface: #162033; --surface-2: #1c2940;
  --ink: #e9eef6; --ink-2: #aab7cb; --ink-3: #8595ad; --line: #2a3853;
  --blue: #86b4f0; --blue-ink: #0b1526; --sky: #86b4f0;
  --earth: #e49068; --wall: #e6c45a; --wall-ink: #2b2204;
  --hero-shade: rgba(4, 9, 18, 0.82);
  --tag-term: #a9c8f3; --tag-term-bg: #1d3253;
  --tag-exam: #f0b193; --tag-exam-bg: #432419;
  --tag-event: #9bd6ab; --tag-event-bg: #1b3a25;
  --tag-meeting: #cbb6ef; --tag-meeting-bg: #33294a;
  --tag-holiday: #b9c2cf; --tag-holiday-bg: #273245;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.prose > * + * { margin-top: 1em; }
.prose { max-width: 65ch; }
.muted { color: var(--ink-2); }
.eyebrow {
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--earth);
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tint { background: var(--surface-2); }
.section-head { display: grid; gap: 0.5rem; margin-bottom: 2rem; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }

/* The triangle frieze painted along the classroom blocks */
.frieze {
  height: 14px;
  background-color: var(--wall);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpolygon points='0,14 14,0 28,14' fill='%231f57a4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 28px 14px;
  background-position: 0 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem; border-radius: 999px;
  font: 600 var(--step-0)/1 var(--font-body);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn--primary { background: var(--blue); color: var(--blue-ink); }
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--light { background: #fff; color: #14223a; }
.btn--outline-light { border-color: rgba(255,255,255,.8); color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand svg { width: 42px; height: 48px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.15; }
.brand__name small { display: block; font-family: var(--font-body); font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.04em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a {
  display: block; padding: 0.55rem 0.85rem; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--wall); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 0.5rem 0.9rem; font: 600 0.9rem var(--font-body); cursor: pointer;
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); }
  .nav[data-open="false"] { display: none; }
  .nav ul { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; }
  .brand__name small { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; color: #fff; background: #14223a; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--hero-shade) 0%, rgba(9,20,40,.45) 55%, rgba(9,20,40,.05) 100%);
}
.hero__in { position: relative; z-index: 1; padding-block: clamp(4rem, 12vw, 8.5rem) clamp(3rem, 8vw, 5rem); display: grid; gap: 1.25rem; }
.hero h1 { max-width: 14ch; }
.hero__lede { max-width: 46ch; font-size: var(--step-1); color: rgba(255,255,255,.92); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--wall); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

/* Term progress strip */
.term-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.term-strip__in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-block: 1rem; }
.term-strip__label { font-weight: 600; }
.term-bar { flex: 1 1 220px; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; min-width: 0; }
.term-bar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.term-strip__note { color: var(--ink-2); font-size: var(--step--1); font-variant-numeric: tabular-nums; }

/* Page header (inner pages) */
.page-head { position: relative; background: #14223a; color: #fff; overflow: hidden; }
.page-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-head__in { position: relative; padding-block: clamp(2.5rem, 7vw, 4.5rem); display: grid; gap: 0.75rem; }
.page-head .eyebrow { color: var(--wall); }
.page-head p { max-width: 58ch; color: rgba(255,255,255,.9); font-size: var(--step-1); }

/* ---------- Home blocks ---------- */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--surface); padding: 1.1rem 1.2rem; display: grid; gap: 0.15rem; }
.fact b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.fact span { color: var(--ink-2); font-size: var(--step--1); }

.sections-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 820px) { .sections-grid { grid-template-columns: 1fr; } }
.section-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .5rem; align-content: start; }
.section-card .std { font-family: var(--font-display); font-size: var(--step-2); color: var(--blue); }

/* ---------- Event list (shared by home + calendar) ---------- */
.events { list-style: none; margin: 0; padding: 0; display: grid; }
.event {
  display: grid; grid-template-columns: 5.5rem minmax(0,1fr); gap: 1rem;
  padding-block: 1rem; border-top: 1px solid var(--line);
}
.event:last-child { border-bottom: 1px solid var(--line); }
.event__date { font-variant-numeric: tabular-nums; line-height: 1.1; }
.event__date .d { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--earth); }
.event__date .m { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--ink-2); }
.event__date .w { display: block; font-size: 0.75rem; color: var(--ink-3); margin-top: .2rem; }
.event__body { display: grid; gap: .3rem; }
.event__title { font-weight: 600; font-size: 1.05rem; }
.event__desc { color: var(--ink-2); font-size: 0.95rem; max-width: 62ch; }
.event__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.event.is-past { opacity: .55; }
.event.is-now .event__title::before {
  content: "Happening now"; display: inline-block; margin-right: .5rem; vertical-align: 2px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--wall); color: var(--wall-ink); padding: .15rem .45rem; border-radius: 4px;
}

.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 99px; }
.tag--term { color: var(--tag-term); background: var(--tag-term-bg); }
.tag--exam { color: var(--tag-exam); background: var(--tag-exam-bg); }
.tag--event { color: var(--tag-event); background: var(--tag-event-bg); }
.tag--meeting { color: var(--tag-meeting); background: var(--tag-meeting-bg); }
.tag--holiday { color: var(--tag-holiday); background: var(--tag-holiday-bg); }
.tag--tbc { color: var(--ink-2); background: transparent; border: 1px dashed var(--ink-3); }
.tag--sample { color: var(--wall-ink); background: var(--wall); }

/* ---------- Calendar page ---------- */
.cal-layout { display: grid; grid-template-columns: 15rem minmax(0,1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .cal-layout { grid-template-columns: 1fr; } }
.cal-side { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); display: grid; gap: 1.5rem; }
@media (max-width: 820px) { .cal-side { position: static; } }
.filter-group { display: grid; gap: .4rem; }
.filter-group h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 99px; padding: .4rem .8rem; font: 500 .88rem var(--font-body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.toggle { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.toggle input { width: 1.05rem; height: 1.05rem; accent-color: var(--blue); }
.next-up { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: grid; gap: .35rem; }
.next-up .count { font-family: var(--font-display); font-size: var(--step-3); color: var(--blue); font-variant-numeric: tabular-nums; line-height: 1; }
.month { display: grid; gap: .25rem; }
.month + .month { margin-top: 2.25rem; }
.month__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; }
.month__head h2 { font-size: var(--step-2); }
.month__head span { color: var(--ink-3); font-size: var(--step--1); }
.term-band { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.empty { padding: 2rem; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Alumni ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.75rem; }
.search { flex: 1 1 260px; display: flex; }
.search input {
  width: 100%; padding: .75rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 1rem var(--font-body);
}
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.25rem; }
.class-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); display: grid; grid-template-rows: auto 1fr;
  transition: transform .15s ease, box-shadow .15s ease;
}
.class-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(20,34,58,.45); }
.class-card__img { position: relative; aspect-ratio: 16/9; background: var(--surface-2); }
.class-card__img img { width: 100%; height: 100%; object-fit: cover; }
.class-card__year {
  position: absolute; left: 0; bottom: 0; background: var(--wall); color: var(--wall-ink);
  font-family: var(--font-display); font-size: 1.6rem; padding: .25rem .8rem .1rem; border-top-right-radius: 8px;
}
.class-card__body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .4rem; align-content: start; }
.class-card__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: var(--step--1); color: var(--ink-2); }
.class-card--add {
  border-style: dashed; place-content: center; text-align: center; padding: 2rem 1.5rem; grid-template-rows: none; gap: .6rem;
  background: transparent;
}

.class-hero { display: grid; gap: 1rem; }
.class-hero .year { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 6vw, 6rem); line-height: .9; color: var(--wall); }
.back { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.back::before { content: "← "; }
.notice {
  display: flex; gap: .75rem; align-items: start; background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--wall); border-radius: 6px; padding: .9rem 1rem; font-size: .95rem; color: var(--ink-2);
}
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.update { display: grid; grid-template-columns: 7rem minmax(0,1fr); gap: 1.25rem; }
@media (max-width: 600px) { .update { grid-template-columns: 1fr; gap: .4rem; } }
.update__date { color: var(--earth); font-weight: 600; font-size: var(--step--1); letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; padding-top: .3rem; }
.update__body { display: grid; gap: .6rem; }
.update__body h3 { font-size: var(--step-2); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; margin-top: .4rem; }
.photos figure { margin: 0; display: grid; gap: .35rem; }
.photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.photos figcaption { font-size: .82rem; color: var(--ink-3); }

.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.member { display: grid; justify-items: center; text-align: center; gap: .5rem; padding: 1.1rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.avatar--initials {
  display: grid; place-items: center; background: var(--surface-2); color: var(--blue);
  font-family: var(--font-display); font-size: 1.8rem; border: 3px solid var(--wall);
}
.member b { font-weight: 600; line-height: 1.3; }
.member span { font-size: .85rem; color: var(--ink-2); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,12,24,.92); display: grid; place-items: center; padding: 16px; }
.lightbox figure { margin: 0; display: grid; gap: .75rem; max-width: min(1100px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 6px; }
.lightbox figcaption { color: #dfe6f0; text-align: center; }
.lightbox button { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; background: #fff; color: #14223a; border: 0; border-radius: 99px; padding: .5rem .9rem; font: 600 .9rem var(--font-body); cursor: pointer; }

/* ---------- About ---------- */
.about-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.about-nav a { text-decoration: none; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .6rem; align-content: start; }
.pillar p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 720px) { .cols-2 { grid-template-columns: 1fr; } }
.list { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.list li::marker { color: var(--earth); }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { background: var(--surface); border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 99px; font-size: .92rem; }
.org { display: grid; gap: .75rem; }
.org__row { display: flex; flex-wrap: wrap; gap: .75rem; }
.org__box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; display: grid; gap: .1rem; flex: 1 1 12rem; }
.org__box b { font-weight: 600; }
.org__box span { font-size: .85rem; color: var(--ink-2); }
.org__box--lead { border-top: 3px solid var(--blue); }
.org__box--community { border-top: 3px solid var(--earth); }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .75rem; }
.gallery figure { margin: 0; grid-column: span 2; }
.gallery figure:nth-child(1), .gallery figure:nth-child(2) { grid-column: span 3; }
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } .gallery figure, .gallery figure:nth-child(1), .gallery figure:nth-child(2) { grid-column: auto; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 1.5rem; }
.contact-item { display: grid; gap: .25rem; }
.contact-item .big { font-family: var(--font-display); font-size: var(--step-2); text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--ground); color: var(--ink); font: 1rem var(--font-body);
}
.field textarea { min-height: 8rem; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.form__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.form__hint { font-size: .85rem; color: var(--ink-3); }

/* ---------- Footer ---------- */
.footer { background: #111c2f; color: #c8d3e3; margin-top: 0; }
.footer a { color: #fff; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
@media (max-width: 820px) { .footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__in { grid-template-columns: 1fr; } }
.footer h3 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #f0cd5e; font-weight: 600; margin-bottom: .6rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer__brand { display: grid; gap: .75rem; }
.footer__brand b { font-family: var(--font-display); font-weight: 400; color: #fff; font-size: 1.2rem; }
.footer__base { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.1rem 1.5rem; font-size: .82rem; color: #93a2ba; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
code { font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
