@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Colours. --deep is the always-dark surface (header, hero, footer); --ink is body text. */
:root {
  color-scheme: light dark;
  --paper: #fbf6ef;
  --paper-2: #f3eadf;
  --card: #ffffff;
  --ink: #24102e;
  --ink-2: #3a2245;
  --muted: #6a5672;
  --line: #e2d5c8;
  --field-line: #b9a8bf;
  --deep: #24102e;
  --deep-2: #3a2245;
  --orange: #f26b1d;
  --orange-ink: #b8440a;
  --on-orange: #24102e;
  --danger: #a3123a;
  --ok: #0b5c3a;
  /* Block colours: --bN is a solid fill (white text on it), --tN is the same hue used as text. */
  --b1: #c2500d;
  --b2: #6b2f86;
  --b3: #a61e4d;
  --b4: #0b6b7a;
  --t1: #c2500d;
  --t2: #6b2f86;
  --t3: #a61e4d;
  --t4: #0b6b7a;
  --b1-soft: #fde6d3;
  --b2-soft: #ecdff3;
  --b3-soft: #f9dbe5;
  --b4-soft: #d6eef1;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #150a1b;
    --paper-2: #1c0e24;
    --card: #22122b;
    --ink: #f4ecf7;
    --ink-2: #dccfe3;
    --muted: #b3a0bd;
    --line: #3b2647;
    --field-line: #6a5672;
    --deep: #0e0613;
    --deep-2: #22122b;
    --orange-ink: #ff9a57;
    --danger: #ff8fa8;
    --ok: #6fd6a4;
    --t1: #ff9a57;
    --t2: #cfa3e8;
    --t3: #ff86ab;
    --t4: #5fcbd9;
    --b1-soft: #33190b;
    --b2-soft: #2a1837;
    --b3-soft: #381223;
    --b4-soft: #0d2c32;
  }
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 560; line-height: 1.06; letter-spacing: -0.022em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 22ch; }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--deep); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--deep) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; text-decoration: none; white-space: nowrap; }
.wordmark .hash { color: var(--orange); }
/* The nav doubles as the phone menu (a popover), so the browser's popover defaults are reset here. */
.site-nav {
  display: flex; gap: 20px; margin: 0 0 0 auto; font-size: 0.92rem;
  position: static; inset: auto; width: auto; height: auto;
  border: 0; padding: 0; background: none; color: inherit; overflow: visible;
}
.site-nav a { text-decoration: none; opacity: 0.85; padding: 6px 0; }
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.site-nav a[aria-current] { opacity: 1; color: var(--orange); }
/* Reading progress along the bottom edge of the header. Invisible where scroll timelines are unsupported. */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); transform-origin: 0 50%; scale: 0 1; }
@keyframes grow { to { scale: 1 1; } }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
.menu-btn {
  display: none; align-items: center; gap: 8px;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: #fff; cursor: pointer;
  background: transparent; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 999px; padding: 6px 14px;
}
.menu-btn::before { content: ""; width: 14px; height: 10px; border-top: 2px solid; border-bottom: 2px solid; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--orange); color: var(--on-orange); font-weight: 700; text-decoration: none;
  border: 2px solid var(--orange); transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: #ff8a45; border-color: #ff8a45; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(242, 107, 29, 0.35); }
.btn-small { padding: 8px 18px; font-size: 0.92rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; box-shadow: none; }

/* Hero */
.hero {
  background:
    radial-gradient(55% 75% at 88% 0%, rgba(107, 47, 134, 0.6), transparent 62%),
    radial-gradient(45% 60% at 0% 100%, rgba(242, 107, 29, 0.2), transparent 60%),
    var(--deep);
  color: #fff; padding: 72px 0 0; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { color: var(--orange); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.1rem, 1.1rem + 5vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; }
.hero h1 em { font-style: italic; color: var(--orange); }
.lede { margin-top: 24px; font-size: 1.12rem; color: #e6dbec; max-width: 56ch; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.facts dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #bda9c7; }
.facts dd { font-weight: 600; }
.local-time { display: block; font-weight: 400; font-size: 0.88rem; color: #bda9c7; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.daygrid-card {
  background: color-mix(in srgb, var(--deep-2) 78%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 22px; padding: 24px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.daygrid-status { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 16px; }
.daygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.daygrid a {
  display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 1; padding: 10px; border-radius: 12px; text-decoration: none;
  background: var(--c); color: #fff; transition: transform 0.15s ease;
}
.daygrid a:hover { transform: translateY(-2px); }
.daygrid b { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.daygrid span { font-size: 0.72rem; opacity: 0.9; }
.daygrid a.is-past { opacity: 0.45; }
.daygrid a.is-today { box-shadow: 0 0 0 3px var(--deep-2), 0 0 0 6px #fff; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 18px; font-size: 0.82rem; color: #e6dbec; }
.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 8px; }
.motto { margin-top: 64px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-family: var(--serif); font-size: 1.15rem; color: #e6dbec; }
.motto i { color: var(--orange); font-style: normal; margin: 0 10px; }

/* Live card: the next or current session, filled in by app.js. Hidden without JavaScript. */
.live { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.live[hidden] { display: none; }
.live-label { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.live-label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.live.is-live .live-label { color: #ff6b6b; }
.live-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; margin-top: 8px; }
.live-prompt { margin-top: 8px; font-size: 0.95rem; color: #e6dbec; }
.live-count { margin-top: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; font-size: 0.92rem; }
.live-actions a:not(.btn) { text-underline-offset: 4px; }

/* Block colours */
.b1 { --c: var(--b1); --ct: var(--t1); --soft: var(--b1-soft); --on-c: #fff; }
.b2 { --c: var(--b2); --ct: var(--t2); --soft: var(--b2-soft); --on-c: #fff; }
.b3 { --c: var(--b3); --ct: var(--t3); --soft: var(--b3-soft); --on-c: #fff; }
.b4 { --c: var(--b4); --ct: var(--t4); --soft: var(--b4-soft); --on-c: #fff; }

/* Sections */
.section { padding: 96px 0; }
.tint { background: var(--paper-2); }
.dark { background: var(--deep); color: #fff; }
.kicker { color: var(--orange-ink); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.dark .kicker { color: var(--orange); }
.section-lede { margin-top: 18px; max-width: 64ch; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col h2 + p { margin-top: 20px; }
.sub { font-family: var(--serif); font-size: 1.3rem; margin: 64px 0 20px; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillars li { background: var(--soft); border-radius: 22px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pillars li:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px var(--c); }
.pillars a { display: flex; flex-direction: column; height: 100%; min-height: 210px; padding: 24px; text-decoration: none; border-radius: 22px; }
.pill-num { font-family: var(--serif); font-size: 3rem; font-weight: 500; line-height: 1; color: var(--ct); margin-bottom: auto; padding-bottom: 28px; }
.pillars h4 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; color: var(--ct); }
.pillars p { margin-top: 6px; }
.pill-days { margin-top: 16px; font-size: 0.9rem; font-weight: 700; color: var(--ct); }
.pill-days::after { content: " \2192"; display: inline-block; margin-left: 4px; transition: translate 0.2s ease; }
.pillars li:hover .pill-days::after { translate: 4px 0; }

.examples { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.examples li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font-weight: 600; }

/* Split layout: heading stays in view on the left while the content scrolls on the right. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.split-head { position: sticky; top: 100px; }

.steps { counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 30px 68px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--card); border: 2px solid var(--orange-ink);
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--orange-ink);
}
.steps li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-family: var(--serif); font-size: 1.35rem; padding-top: 6px; }
.steps .when { float: right; margin-top: 8px; font-size: 0.78rem; font-weight: 700; background: var(--paper-2); padding: 4px 12px; border-radius: 999px; }
.steps p { margin-top: 4px; color: var(--muted); max-width: 52ch; }

/* Schedule */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin: 36px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; background: var(--paper);
  border: 2px solid var(--c, var(--ink)); color: var(--ct, var(--ink));
}
.chip[aria-pressed="true"] { background: var(--c, var(--ink)); color: var(--on-c, var(--paper)); }
.tools { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.link-btn { font: inherit; font-size: 0.92rem; font-weight: 600; background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.block { margin-top: 40px; }
.block[hidden] { display: none; }
.block h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--ct); margin-bottom: 14px; }
.block h3 span { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; display: block; color: var(--muted); }

.day { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: var(--radius); }
.day + .day { margin-top: 10px; }
.day, .block { scroll-margin-top: 90px; }
.day summary:hover .title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--c); }
.day-tools { margin-top: 16px; }
.day summary { display: grid; grid-template-columns: 70px 100px 1fr 24px; gap: 12px; align-items: baseline; padding: 18px 20px; cursor: pointer; list-style: none; }
.day summary::-webkit-details-marker { display: none; }
.day summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ct); text-align: right; }
.day[open] summary::after { content: "\2212"; }
.day .num { font-weight: 700; color: var(--ct); }
.day .date { font-size: 0.9rem; color: var(--muted); }
.day .title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.day.is-today { box-shadow: 0 0 0 3px var(--orange); }
.day.is-today .date::after { content: " · today"; color: var(--orange-ink); font-weight: 700; }
.day-body { padding: 4px 20px 24px 202px; }
.angle { max-width: 68ch; }
.day blockquote { margin: 20px 0; padding: 18px 22px; background: var(--soft); border-radius: 12px; font-family: var(--serif); font-size: 1.22rem; line-height: 1.4; max-width: 60ch; }
.day blockquote span, .tasks h4 { display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ct); margin-bottom: 6px; }
.tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.tasks p { font-size: 0.97rem; }
.note { margin-top: 18px; font-weight: 600; color: var(--ct); }

/* Criteria, principles, mentors */
.criteria { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.criteria { counter-reset: crit; }
.criteria article { counter-increment: crit; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.criteria article::before { content: "0" counter(crit); display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--orange-ink); margin-bottom: 8px; }
.criteria h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 12px; }
.criteria li { padding-left: 22px; position: relative; color: var(--ink-2); }
.criteria li + li { margin-top: 8px; }
.criteria li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 2px; background: var(--orange); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); overflow: hidden; counter-reset: p; }
.principles li { counter-increment: p; background: var(--deep); padding: 28px; }
.principles li::before { content: "0" counter(p); font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--orange); }
.principles h3 { font-family: var(--serif); font-size: 1.3rem; margin: 6px 0 8px; }
.principles p { color: #d8cbe0; font-size: 0.97rem; }

.mentors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.mentors li { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.avatar { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 50%; background: var(--soft); color: var(--ct); font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.mentors h3 { font-family: var(--serif); font-size: 1.3rem; }
.mentors p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

.register { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.register h2 + p { margin: 20px 0 28px; max-width: 52ch; }
.register .btn { color: var(--on-orange); }
.register .sub { margin-top: 0; }
.contact a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.contact a::after { content: "\2197"; color: var(--orange-ink); transition: translate 0.2s ease; }
.contact a:hover::after { translate: 2px -2px; }

/* Registration form */
.reg-form { max-width: 600px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 30px 60px -44px rgba(36, 16, 46, 0.5); }
.choices { display: grid; gap: 8px; }
.choices legend { margin-bottom: 10px; }
.choices .choice { align-items: center; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; transition: border-color 0.15s ease, background 0.15s ease; }
.choices .choice input { margin: 0; }
.choices .choice:hover { border-color: var(--field-line); }
.choices .choice:has(input:checked) { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, var(--card)); }
.choices .choice:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.choices .choice input:focus-visible { outline: none; }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.opt { display: block; font-weight: 400; font-size: 0.88rem; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field textarea, .admin-row input {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--field-line); border-radius: 10px; padding: 12px 14px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .admin-row input:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--ink); }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 6px 0; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--orange); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--danger); font-size: 0.9rem; font-weight: 600; margin-top: 4px; }
.err:empty { display: none; }
.reg-form .btn { cursor: pointer; font: inherit; font-weight: 700; }
.reg-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin-top: 16px; font-weight: 600; min-height: 1.6em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--danger); }
.what-happens { margin-top: 8px; font-size: 0.93rem; color: var(--ink-2); }
.what-happens summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.what-happens ul { list-style: disc; padding-left: 20px; margin-top: 10px; }
.what-happens li + li { margin-top: 6px; }
.form-next { margin-top: 12px; }
.form-next[hidden] { display: none; }

/* Thanks and organiser pages */
.plain-h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 20ch; }
.admin-form { margin-top: 28px; max-width: 520px; }
.admin-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.admin-row { display: flex; gap: 12px; }
.admin-row .btn { cursor: pointer; font: inherit; font-weight: 700; padding: 10px 22px; }
.hint { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
.admin-table { border-collapse: collapse; width: 100%; font-size: 0.93rem; background: var(--card); }
.admin-table th, .admin-table td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.admin-table th { background: var(--paper-2); white-space: nowrap; }

.site-footer { background: var(--deep); color: #d8cbe0; padding: 56px 0 36px; font-size: 0.92rem; }
.site-footer .wordmark { color: #fff; font-size: 1.25rem; margin-bottom: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-grid nav, .footer-links { display: grid; gap: 10px; align-content: start; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer strong { color: #fff; }
.fine { color: #a892b3; font-size: 0.85rem; }

/* FAQ */
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--orange-ink); }
.qa[open] summary::after { content: "\2212"; }
.qa summary:hover { color: var(--orange-ink); }
.qa > div { padding: 0 0 20px; max-width: 62ch; color: var(--ink-2); }

/* Quick exit */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.quick-exit { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: #b3261e; color: #fff; font-weight: 700; text-decoration: none; padding: 12px 18px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.quick-exit:hover, .quick-exit:focus-visible { background: #8c1d18; }

@media (min-width: 901px) {
  .toolbar { position: sticky; top: 61px; z-index: 5; margin: 28px -16px 0; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--paper-2) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  #schedule .day, #schedule .block { scroll-margin-top: 150px; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header .btn-small { margin-left: auto; }
  /* Phone menu: the nav opens as a popover from the Menu button. No script needed. */
  @supports selector(:popover-open) {
    .menu-btn { display: inline-flex; margin-left: auto; }
    .site-header .btn-small { margin-left: 0; }
    .site-nav:popover-open {
      display: grid; gap: 0; position: fixed; inset: 64px 12px auto 12px; margin: 0;
      padding: 10px; font-size: 1.05rem; color: #fff;
      background: var(--deep-2); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    }
    .site-nav:popover-open a { padding: 14px 12px; border-radius: 10px; opacity: 1; }
    .site-nav:popover-open a + a { border-top: 1px solid rgba(255, 255, 255, 0.1); }
    .site-nav::backdrop { background: rgba(0, 0, 0, 0.5); }
  }
  .hero { padding-top: 48px; }
  .hero-grid, .two-col, .register { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; }
  .criteria { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
  .day summary { grid-template-columns: auto 1fr 24px; }
  .day .title { grid-column: 1 / 3; grid-row: 2; }
  .day summary::after { grid-column: 3; grid-row: 1; }
  .day-body { padding-left: 20px; }
  .tasks { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; padding-bottom: 50px; }
  .wrap { padding: 0 16px; }
  .site-header { padding: 10px 16px; gap: 10px; }
  .wordmark .hash { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillars a { min-height: 0; }
  .pill-num { font-size: 2.2rem; padding-bottom: 14px; }
  .reg-form { padding: 20px; border-radius: 18px; }
  .steps .when { float: none; display: inline-block; margin: 6px 0 0; }
  .steps li { padding-left: 60px; }
  .daygrid-card { padding: 16px; }
  .daygrid a { padding: 8px; }
  .daygrid b { font-size: 1.2rem; }
  /* On phones Quick exit is a bar along the bottom edge, so it never sits on top of a button. */
  .quick-exit {
    left: 0; right: 0; bottom: 0; text-align: center; border-radius: 0;
    border: 0; border-top: 2px solid #fff; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
}

/* Motion. Everything here is decoration: it is skipped for people who ask for reduced motion,
   and browsers without scroll-driven animation simply show the page as it is. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; translate: 0 28px; } }
  @keyframes pop { from { opacity: 0; scale: 0.8; } }
  @keyframes pulse { 50% { opacity: 0.35; } }

  .hero-grid > div > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-grid > div > :nth-child(2) { animation-delay: 0.06s; }
  .hero-grid > div > :nth-child(3) { animation-delay: 0.12s; }
  .hero-grid > div > :nth-child(4) { animation-delay: 0.18s; }
  .hero-grid > div > :nth-child(5) { animation-delay: 0.24s; }
  .daygrid-card { animation: rise 0.8s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .daygrid li { animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; animation-delay: calc(0.3s + var(--i, 0) * 0.03s); }
  .daygrid li:nth-child(4n + 2) { --i: 1; }
  .daygrid li:nth-child(4n + 3) { --i: 2; }
  .daygrid li:nth-child(4n + 4) { --i: 3; }
  .daygrid li:nth-child(n + 5) { animation-delay: calc(0.42s + var(--i, 0) * 0.03s); }
  .daygrid li:nth-child(n + 9) { animation-delay: calc(0.54s + var(--i, 0) * 0.03s); }
  .daygrid li:nth-child(n + 13) { animation-delay: calc(0.66s + var(--i, 0) * 0.03s); }
  .live.is-live .live-label::before { animation: pulse 1.4s ease-in-out infinite; }

  @supports (animation-timeline: view()) {
    .section .wrap > *:not(.split-head), .pillars li, .steps li, .criteria article, .mentors li {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }

  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .day::details-content, .qa::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete; }
    .day[open]::details-content, .qa[open]::details-content { block-size: auto; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  @view-transition { navigation: none; }
}
@media print {
  * { animation: none !important; }
  .site-header, .toolbar, .cta-row, .quick-exit, .live { display: none; }
  .hero, .dark, .site-footer { background: #fff; color: #000; }
}
