/* Libre Caslon Text and Schibsted Grotesk, self-hosted (SIL Open Font License 1.1, see /licenses in the repo). */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-caslon-text-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-caslon-text-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/libre-caslon-text-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/libre-caslon-text-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Base */
:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}
:root {
  --bg: #FFFFFF;
  --alt: #F3F4F8;
  --fg: #14152B;
  --muted: #4E5068;
  --accent: #4F46E5;
  --accent-ink: #FFFFFF;
  --navy: #14152B;
  --navy-fg: #FFFFFF;
  --navy-muted: #B9BBD0;
  --line: #E1E3EB;
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101122; --alt: #17182E; --fg: #F2F2F6; --muted: #AFB1C6; --accent: #A39DFF; --accent-ink: #101122;
    --navy: #0A0B18; --navy-muted: #B3B5CB; --line: #2A2C46; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101122; --alt: #17182E; --fg: #F2F2F6; --muted: #AFB1C6; --accent: #A39DFF; --accent-ink: #101122;
  --navy: #0A0B18; --navy-muted: #B3B5CB; --line: #2A2C46; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.15; text-wrap: balance; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
img { display: block; max-width: 100%; }
:root { --band: #4F46E5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --band: #3A33B5; } }
:root[data-theme="dark"] { --band: #3A33B5; }
.announce { background: var(--band); color: #fff; font-size: 0.9rem; }
.announce .wrap { display: flex; gap: 6px 18px; align-items: center; justify-content: center; flex-wrap: wrap; min-height: 42px; padding-block: 6px; text-align: center; }
.announce a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.student { background: var(--band); color: #fff; }
.student .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px 48px; align-items: center; padding-block: clamp(36px, 5vw, 56px); }
.student .label { color: #D6D3FF; }
.student h2 { margin-top: 10px; max-width: 24ch; }
.student p.t { margin-top: 12px; color: #E6E4FF; max-width: 58ch; }
.student .acts { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.student .acts span { font-size: 0.9rem; color: #E6E4FF; }
.btn.big { font-size: 1.1rem; padding: 17px 30px; background: #fff; color: #2B2680; border-color: #fff; font-weight: 600; }
.btn.big:hover { filter: none; background: #F1F0FF; }
.livenote { display: flex; align-items: center; gap: 8px; padding-block: 12px 0; font-size: 0.82rem; color: var(--muted); }
.livenote[hidden] { display: none; }
.livenote i { width: 8px; height: 8px; border-radius: 50%; background: #2FB67C; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .livenote i { animation: none; } }
.fb { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.small { margin-top: 14px; color: var(--muted); font-size: 0.88rem; }
form.fbf { display: grid; gap: 18px; }
form.fbf fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
form.fbf legend, form.fbf label.l { font-weight: 600; font-size: 0.93rem; margin-bottom: 8px; display: block; padding: 0; }
.rate { display: flex; gap: 8px; flex-wrap: wrap; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label { min-width: 48px; text-align: center; padding: 10px 14px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 500; }
.rate input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rate input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.rscale { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-top: 6px; max-width: 290px; }
form.fbf select, form.fbf textarea { width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; }
form.fbf textarea { min-height: 140px; resize: vertical; }
form.fbf select:focus-visible, form.fbf textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hpw { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fbf .row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fbf button.btn { cursor: pointer; font: inherit; font-weight: 500; }
.fbf button.btn:disabled { opacity: .6; cursor: default; }
#fbstatus { font-size: 0.93rem; color: var(--muted); }
#fbstatus.ok { color: #16784F; font-weight: 600; }
@media (max-width: 900px) { .student .wrap, .fb { grid-template-columns: 1fr; } }

/* nav */
header.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; flex-wrap: wrap; }
.mark { font-family: var(--serif); font-size: 1.55rem; text-decoration: none; }
.links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; flex-wrap: wrap; }
.links a.l { text-decoration: none; color: var(--muted); }
.links a.l:hover { color: var(--fg); }
.btn { display: inline-block; text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 12px 22px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); border: 1.5px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn.line { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.light { background: #fff; color: #14152B; border-color: #fff; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(640px, 82vh); border-bottom: 1px solid var(--line); }
.hero .txt { padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 72px) max(20px, calc((100vw - 1180px) / 2 + 20px)); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-top: 18px; }
.lede { margin-top: 22px; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 50ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.backed { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); max-width: 50ch; }
.backed b { color: var(--fg); font-weight: 600; }
.hero figure { margin: 0; position: relative; min-height: 360px; }
.hero figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
figcaption { position: absolute; right: 12px; bottom: 10px; font-size: 0.75rem; color: rgba(255,255,255,.9); text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* stats */
.stats .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 34px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.4rem); line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.stats { border-bottom: 1px solid var(--line); }

/* sections */
section { padding-block: clamp(60px, 8vw, 104px); }
section.alt { background: var(--alt); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 12px; max-width: 24ch; }
.sub { margin-top: 16px; color: var(--muted); max-width: 62ch; font-size: 1.05rem; }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.three.sec { row-gap: 44px; }
.three > div { border-top: 2px solid var(--fg); padding-top: 18px; min-width: 0; }
.three h3 { font-size: 1.4rem; }
.three p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.formats { margin-top: 36px; color: var(--muted); max-width: 70ch; font-size: 0.98rem; }
.formats b { color: var(--fg); font-weight: 600; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.box { background: var(--bg); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 36px); min-width: 0; }
section.alt .box { background: var(--bg); }
.box h3 { font-size: 1.45rem; }
.box p { margin-top: 12px; color: var(--muted); }
.box ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }

/* oxbridge */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split figure { margin: 0; position: relative; }
.split figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }
.list { margin-top: 28px; display: grid; gap: 20px; }
.list div { border-left: 2px solid var(--accent); padding-left: 18px; }
.list b { display: block; font-weight: 600; }
.list span { color: var(--muted); font-size: 0.97rem; }

/* world */
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 44px; }
.nums div { border-top: 2px solid var(--fg); padding-top: 18px; }
.nums b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4.4vw, 3.1rem); line-height: 1; color: var(--accent); }
.nums span { display: block; margin-top: 12px; color: var(--muted); font-size: 0.95rem; }

/* steps */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; min-width: 0; }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.steps b { display: block; font-weight: 600; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 0.96rem; }

/* about */
.banner { position: relative; height: clamp(260px, 38vw, 460px); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about p.body { margin-top: 18px; color: var(--muted); font-size: 1.04rem; max-width: 58ch; }
.backers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.backer { border: 1px solid var(--line); padding: 20px; }
.backer small { display: block; font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.backer b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-top: 6px; line-height: 1.25; }
.backer span { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.tlhead { font-size: 0.8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline small { display: block; font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.timeline b { display: block; font-weight: 600; margin-top: 2px; }
.timeline span { display: block; color: var(--muted); font-size: 0.95rem; }

/* contact */
.close { background: var(--navy); color: var(--navy-fg); }
.close .three > div { border-top-color: rgba(255,255,255,.35); }
.close .three p { color: var(--navy-muted); }
.close h3 { color: #fff; }
.seclast { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); color: var(--navy-muted); max-width: 78ch; font-size: 0.98rem; }
#contact .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.close h2 { margin-top: 0; }
#security h2 { margin-top: 12px; }
.close p { color: var(--navy-muted); margin-top: 14px; max-width: 54ch; }
.close .acts { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mailrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.93rem; color: var(--navy-muted); }
.mailrow code { font-family: inherit; font-weight: 600; color: #fff; user-select: all; }
.mailrow button { font: inherit; font-size: 0.82rem; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; padding: 3px 12px; cursor: pointer; }

footer { background: var(--navy); color: var(--navy-muted); border-top: 1px solid rgba(255,255,255,.1); font-size: 0.88rem; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-block: 48px 32px; }
footer .fm { font-family: var(--serif); font-size: 1.45rem; color: #fff; }
footer h5 { margin: 0 0 12px; font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--navy-muted); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px 36px; font-size: 0.8rem; display: grid; gap: 4px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero .txt { padding-inline: 20px; }
  .hero figure { min-height: 300px; order: -1; }
  .stats .wrap, .three, .nums, .two, .split, .about, #contact .wrap { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-block: 22px; }
  .stat:first-child { border-top: 0; }
  .three, .nums { gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .links a.l { display: none; }
  .steps, .backers { grid-template-columns: 1fr; }
}

/* Previously inline style attributes (moved here so the CSP needs no 'unsafe-inline'). */
#security .wrap.secwrap { display: block; }
#security p.seclabel { color: #A39DFF; }
#security h2.sech2 { max-width: 26ch; }
.close p.secsub { color: var(--navy-muted); }
footer p.ftag { margin-top: 10px; max-width: 34ch; }

/* Privacy page */
.doc { padding-block: clamp(48px, 7vw, 88px); }
.doc .inner { max-width: 760px; overflow-wrap: anywhere; }
.doc h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); margin-top: 12px; }
.doc .updated { margin-top: 14px; color: var(--muted); font-size: 0.93rem; }
.doc .intro { margin-top: 22px; color: var(--muted); font-size: 1.05rem; }
.doc h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); max-width: none; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc a { text-underline-offset: 3px; }
