/* ==========================================================================
   CHILDIGIT 2027 — Workshop website
   Plain CSS, no build step. Colours are defined as tokens below; dark mode
   follows the visitor's system preference.
   ========================================================================== */

:root {
  /* Surfaces & text */
  --bg: #fbf7f0;
  --bg-alt: #f3ece0;
  --surface: #ffffff;
  --ink: #16213a;
  --ink-soft: #3f4a60;
  --muted: #5c6477;
  --line: #e6ddce;
  --line-strong: #d3c6b1;

  /* Palette: Siena earth, digital teal, playful sun, sky */
  --sienna: #c65a2e;
  --sienna-tint: #f6e2d6;
  --teal: #1f8079;
  --teal-tint: #dbeeeb;
  --sun: #f2b640;
  --sun-tint: #fbefd0;
  --sky: #6fa6d6;
  --sky-tint: #e1edf8;
  --tile-ink: #16213a;
  --tile-on-ink: #fbf7f0;

  /* Semantic accents */
  --link: #a3441c;
  --teal-text: #17665f;
  --sky-text: #2d628f;
  --sun-text: #8a5a00;
  --btn-bg: #a3441c;
  --btn-bg-hover: #8c3815;
  --btn-ink: #ffffff;
  --focus: #1f8079;
  --mark: #fbe3a4;
  --deadline: #b42318;

  /* Dark band (dates, footer) — same in both modes */
  --band-bg: #16213a;
  --band-ink: #f6f1e8;
  --band-muted: #aab2c5;
  --band-line: #33416a;

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(22 33 58 / 6%);
  --shadow: 0 1px 2px rgb(22 33 58 / 5%), 0 14px 32px -18px rgb(22 33 58 / 28%);
  --shadow-lg: 0 2px 4px rgb(22 33 58 / 5%), 0 28px 56px -24px rgb(22 33 58 / 36%);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1422;
    --bg-alt: #131b2d;
    --surface: #182238;
    --ink: #f3eee6;
    --ink-soft: #c9cdd8;
    --muted: #98a0b4;
    --line: #26314a;
    --line-strong: #36435f;

    --sienna: #d66a3c;
    --sienna-tint: rgb(214 106 60 / 16%);
    --teal: #2a9b92;
    --teal-tint: rgb(42 155 146 / 18%);
    --sun-tint: rgb(242 182 64 / 16%);
    --sky-tint: rgb(111 166 214 / 18%);
    --tile-ink: #e9e2d5;
    --tile-on-ink: #16213a;

    --link: #f3956a;
    --teal-text: #6fd2c6;
    --sky-text: #9cc6ec;
    --sun-text: #f6c867;
    --btn-bg: #e57a4b;
    --btn-bg-hover: #f08d61;
    --btn-ink: #1b0f08;
    --focus: #6fd2c6;
    --mark: rgb(242 182 64 / 30%);
    --deadline: #ff8a80;

    --band-bg: #0a0f1b;
    --band-line: #26314d;

    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 14px 32px -18px rgb(0 0 0 / 60%);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 30%), 0 28px 56px -24px rgb(0 0 0 / 70%);

    color-scheme: dark;
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.band,
.deadline,
.site-footer { --focus: var(--sun); }
main:focus { outline: none; }

mark {
  background: linear-gradient(transparent 55%, var(--mark) 55%);
  color: inherit;
  padding: 0 0.1em;
}


.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.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;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.4em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: 0 10px 22px -12px var(--btn-bg);
}
.btn-primary:hover { background: var(--btn-bg-hover); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-light {
  background: var(--band-ink);
  color: #16213a;
}
.btn-light:hover { background: #ffffff; }

.btn-sm { padding: 0.55em 1.1em; font-size: 0.92rem; }
.btn-block { width: 100%; }


/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; }
.brand-mark-ink { fill: var(--tile-ink); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100;
}
.brand-year {
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
}
.nav-links a:not(.btn) {
  position: relative;
  padding-block: 6px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="true"] { color: var(--ink); }
.nav-links a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--sienna);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.menu-open .nav-toggle-bars { background: transparent; }
.menu-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 4px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .menu-open .nav-links { display: flex; }

  .nav-links a:not(.btn) {
    display: block;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav-links a[aria-current="true"]::after { display: none; }
  .nav-links a[aria-current="true"] { color: var(--link); }
  .nav-cta { width: 100%; margin-top: 16px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(36px, 6vw, 88px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.hero::before {
  /* digital dot grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--line-strong) 1.2px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 78% 35%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 75% at 78% 35%, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.eyebrow a { color: var(--ink); font-weight: 500; }
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sienna);
  box-shadow: 0 0 0 4px var(--sienna-tint);
}

.hero-heading { margin: 0; font-weight: inherit; line-height: inherit; }
.hero-title,
.hero-subtitle { display: block; }

.hero-title {
  margin: 0.28em 0 0.22em;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100;
}

/* The shared "D" of CHILD + DIGIT, drawn as a toy block */
.d-tile {
  display: inline-block;
  margin: 0 0.04em;
  padding: 0.02em 0.09em 0.04em;
  border-radius: 0.16em;
  background: var(--sienna);
  color: #fff;
  line-height: 0.95;
  transform: rotate(-6deg) translateY(-0.03em);
  box-shadow: 0 0.07em 0 color-mix(in srgb, var(--sienna) 70%, #000);
}

.hero-subtitle {
  max-width: 34ch;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  font-weight: 400;
  line-height: 1.35;
  font-variation-settings: "SOFT" 50;
}
.hero-subtitle-strong { color: var(--ink); font-weight: 600; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-top: 30px;
}
.hero-meta li { display: flex; align-items: center; gap: 12px; }
.meta-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--link);
}
.meta-label {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.meta-value { display: block; font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Mosaic: toy blocks + pixels, one tile per topic */
.hero-art { position: relative; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 14px);
  width: min(100%, 440px);
  margin-inline: auto;
}
.tile {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 24%;
  animation: tile-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.2) both, tile-float 2.2s ease-in-out 2;
  animation-delay: calc(var(--i) * 45ms), calc(var(--i) * -0.13s);
}
.tile .icon { width: 46%; height: 46%; stroke-width: 1.6; }

.tile--sienna { background: var(--sienna); color: #fff; }
.tile--teal { background: var(--teal); color: #fff; }
.tile--sun { background: var(--sun); color: #16213a; }
.tile--ink { background: var(--tile-ink); color: var(--tile-on-ink); }
.tile--paper {
  background: var(--surface);
  color: var(--link);
  box-shadow: var(--shadow);
}
.tile--outline { border: 2px dashed var(--line-strong); background: transparent; }
.tile--pixels {
  background:
    conic-gradient(var(--teal) 25%, transparent 0 50%, var(--teal) 0 75%, transparent 0) 0 0 / 33.34% 33.34%,
    var(--teal-tint);
}
.tile--pixels-sienna {
  background:
    conic-gradient(var(--sienna) 25%, transparent 0 50%, var(--sienna) 0 75%, transparent 0) 0 0 / 25% 25%,
    var(--sienna-tint);
}
.icon--teal { color: var(--teal-text); }

.tile--circle { border-radius: 50%; }
.tile--q-tl { border-radius: 100% 12% 12% 12%; }
.tile--q-tr { border-radius: 12% 100% 12% 12%; }
.tile--q-br { border-radius: 12% 12% 100% 12%; }
.tile--half { border-radius: 50% 50% 12% 12% / 100% 100% 12% 12%; }
.tile--half-b { border-radius: 12% 12% 50% 50% / 12% 12% 100% 100%; }

@keyframes tile-in {
  from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}
@keyframes tile-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile { animation: none; }
}

/* Deadline strip */
.deadline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px 40px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 22px 22px 22px 30px;
  border-radius: var(--radius-lg);
  background: var(--band-bg);
  color: var(--band-ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.deadline::after {
  /* decorative quarter circle, echoes the dates band */
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 220px;
  height: 220px;
  border-radius: 0 0 0 100%;
  background: var(--teal);
  opacity: 0.22;
  pointer-events: none;
}
.deadline > * { position: relative; z-index: 1; }
.deadline-label {
  display: block;
  color: var(--band-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.deadline-date {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.deadline-count { display: flex; align-items: baseline; gap: 10px; }
.deadline-num {
  color: var(--sun);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.deadline-unit { color: var(--band-muted); font-size: 0.98rem; }
.deadline.is-closed .deadline-num { color: var(--band-muted); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }

.section-head { margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head h2,
.tbd h2 {
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 60;
}

.kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sub-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 60;
}
.sub-intro { margin-top: 8px; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Call for participation
   -------------------------------------------------------------------------- */

.call-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.prose { max-width: 68ch; }
.prose p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.75; }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 650; }

.glance {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.glance-title {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.glance-list { margin: 0 0 24px; }
.glance-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.glance-list dt { color: var(--muted); font-size: 0.92rem; }
.glance-list dd { margin: 0; font-weight: 600; line-height: 1.4; }
.glance-list .is-deadline dt,
.glance-list .is-deadline dd { color: var(--deadline); }
.glance-list .is-deadline dd { font-weight: 700; }
.glance-list dd span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

/* Topics */
.topics { margin-top: clamp(56px, 8vw, 96px); }
.topics-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 28px;
}
.topics-head p { color: var(--ink-soft); }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: topic;
}
.topic {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  counter-increment: topic;
}
.topic::after {
  content: counter(topic, decimal-leading-zero);
  content: counter(topic, decimal-leading-zero) / "";
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.topic:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.topic-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.topic-icon .icon { width: 24px; height: 24px; }
.topic-text { font-size: 1.06rem; font-weight: 600; line-height: 1.4; }

.topic--sienna .topic-icon { background: var(--sienna-tint); color: var(--link); }
.topic--teal .topic-icon { background: var(--teal-tint); color: var(--teal-text); }
.topic--sun .topic-icon { background: var(--sun-tint); color: var(--sun-text); }
.topic--sky .topic-icon { background: var(--sky-tint); color: var(--sky-text); }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--sun-tint);
  color: var(--ink);
}
.notice .icon { margin-top: 0.15em; color: var(--sun-text); }

/* --------------------------------------------------------------------------
   Important dates (dark band)
   -------------------------------------------------------------------------- */

.band {
  position: relative;
  overflow: hidden;
  background: var(--band-bg);
  color: var(--band-ink);
}
.band::before,
.band::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.band::before {
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  border-radius: 0 0 0 100%;
  background: var(--teal);
  opacity: 0.16;
}
.band::after {
  bottom: 48px;
  right: 9%;
  width: 92px;
  height: 92px;
  border-radius: 24%;
  background:
    conic-gradient(var(--sun) 25%, transparent 0 50%, var(--sun) 0 75%, transparent 0) 0 0 / 33.34% 33.34%;
  opacity: 0.22;
}
.band .container { position: relative; z-index: 1; }
.band .kicker { color: var(--band-muted); }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--band-line);
}
.tl-item { position: relative; padding-top: 48px; }
.tl-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--band-muted);
  border-radius: 50%;
  background: var(--band-bg);
}
.tl-date { display: flex; align-items: flex-end; gap: 14px; }
.tl-day {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 7.5vw, 5.4rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
}
.tl-month {
  padding-bottom: 2px;
  color: var(--band-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tl-item h3 {
  margin-top: 20px;
  font-size: 1.18rem;
  font-weight: 600;
}
.tl-item p { margin-top: 4px; color: var(--band-muted); font-size: 0.96rem; }
.tl-status {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 11px;
  border: 1px solid var(--band-line);
  border-radius: 999px;
  color: var(--band-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tl-status:empty { display: none; }

.tl-item.is-next .tl-dot {
  border-color: var(--sun);
  background: var(--sun);
  box-shadow: 0 0 0 7px rgb(242 182 64 / 20%);
}
.tl-item.is-next .tl-status { border-color: var(--sun); background: var(--sun); color: #16213a; }
.tl-item.is-past .tl-day { color: var(--band-muted); }
.tl-item.is-past .tl-dot { border-color: var(--band-muted); background: var(--band-muted); }

@media (prefers-reduced-motion: no-preference) {
  .tl-item.is-next .tl-dot { animation: pulse 2.4s ease-out 2; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(242 182 64 / 45%); }
  70%, 100% { box-shadow: 0 0 0 14px rgb(242 182 64 / 0%); }
}

/* --------------------------------------------------------------------------
   Submission
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tile-ink);
  color: var(--tile-on-ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.step h3 { font-size: 1.3rem; }
.step p { color: var(--ink-soft); line-height: 1.7; }
.step p strong { color: var(--ink); }
.step > .btn { margin-top: auto; }
.step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.subject {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
}
.subject code {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  border-left: 1.5px dashed var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { color: var(--ink); background: var(--surface); }
.copy-btn .icon { width: 1.05em; height: 1.05em; }
.copy-btn.is-done { color: var(--teal-text); }

/* Submission types */
.types-block { margin-top: clamp(56px, 7vw, 88px); }
.types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.type {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.type::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--type-color);
}
.type--sun { --type-color: var(--sun); --type-text: var(--sun-text); }
.type--sienna { --type-color: var(--sienna); --type-text: var(--link); }
.type--teal { --type-color: var(--teal); --type-text: var(--teal-text); }
.type--sky { --type-color: var(--sky); --type-text: var(--sky-text); }

.type-letter {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.type-limit { order: -1; display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.type-num {
  color: var(--type-text);
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.type-unit { color: var(--muted); font-size: 0.92rem; }
.type h4 { font-size: 1.12rem; line-height: 1.3; }
.type p { color: var(--ink-soft); font-size: 0.97rem; }
.type .type-note {
  margin-top: auto;
  padding-top: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Selection & participation */
.selection {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--teal-tint);
}
.selection-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--teal);
  color: #fff;
}
.selection-icon .icon { width: 26px; height: 26px; }
.selection p {
  max-width: 72ch;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.7;
}
.selection strong { color: var(--ink); }
.selection u { text-decoration-thickness: 2px; text-underline-offset: 0.18em; }

/* --------------------------------------------------------------------------
   Organising committee
   -------------------------------------------------------------------------- */

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.person {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: box-shadow 0.25s;
}
.person:hover { box-shadow: var(--shadow); }
.person-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 28%;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  object-fit: cover;
}
.avatar--sienna { --avatar-accent: var(--sienna); background: var(--sienna); color: #fff; border-radius: 50% 28% 28% 28%; }
.avatar--teal { --avatar-accent: var(--teal); background: var(--teal); color: #fff; border-radius: 50%; }
.avatar--sun { --avatar-accent: var(--sun); background: var(--sun); color: #16213a; border-radius: 28% 50% 28% 28%; }
.avatar--ink { --avatar-accent: var(--tile-ink); background: var(--tile-ink); color: var(--tile-on-ink); border-radius: 28% 28% 50% 28%; }

/* Photos (black & white) sit on a coloured block, like the D tile */
img.avatar {
  box-shadow: 6px 6px 0 var(--avatar-accent);
  margin: 0 6px 6px 0;
}

.person-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.person-role {
  margin-top: 6px;
  color: var(--link);
  font-size: 0.94rem;
  font-weight: 600;
}
.person-aff { margin-top: 2px; color: var(--muted); font-size: 0.94rem; line-height: 1.45; }

.bio {
  position: relative;
  max-height: calc(1.7em * 4);
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
}
.bio p + p { margin-top: 0.9em; }
.bio.is-open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.bio.fits { max-height: none; -webkit-mask-image: none; mask-image: none; }

.bio-toggle {
  align-self: flex-start;
  margin-top: 14px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}
.bio-toggle::after { content: " ↓"; content: " ↓" / ""; }
.bio-toggle[aria-expanded="true"]::after { content: " ↑"; content: " ↑" / ""; }
.bio-toggle:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* --------------------------------------------------------------------------
   TPC & Program
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.tbd {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.tbd h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 28px; }

.placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1.2px, transparent 0) 0 0 / 18px 18px,
    var(--bg);
}
.placeholder p { color: var(--ink-soft); }
.placeholder-badge {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sun);
  color: #16213a;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.placeholder-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.placeholder-meta .icon { color: var(--link); }

/* Committee list and (later) agenda */
.committee {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 24px;
}
.committee li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.committee-name { display: block; font-weight: 600; }
.committee-aff { display: block; color: var(--muted); font-size: 0.92rem; }

.agenda li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.agenda-time { color: var(--link); font-family: var(--font-mono); font-weight: 500; }
.agenda-title { font-size: 1.08rem; font-weight: 600; }
.agenda-meta { margin-top: 2px; color: var(--muted); font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: clamp(56px, 7vw, 80px) 0 28px;
  background: var(--band-bg);
  color: var(--band-muted);
}
.site-footer a { color: var(--band-ink); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  margin-bottom: 14px;
  color: var(--band-ink);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100;
}
.footer-brand p:not(.footer-logo) { max-width: 40ch; }
.footer-title {
  margin-bottom: 12px;
  color: var(--band-ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-muted { margin-top: 6px; font-size: 0.94rem; }
.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  font-size: 0.88rem;
}
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--band-line);
}
.footer-bottom a { text-decoration: none; }
.credit { white-space: nowrap; }
.credit a { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-bottom a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 601px) {
  .hero-title { white-space: nowrap; }
}

@media (max-width: 1080px) {
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-title { font-size: clamp(3rem, 12.5vw, 6.2rem); }
  .hero-art { order: -1; }
  .mosaic {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    width: 100%;
    max-width: 560px;
    margin-inline: 0;
  }
  .tile:nth-child(n + 9) { display: none; }

  .deadline { grid-template-columns: 1fr auto; padding: 22px 24px; }
  .deadline .btn { grid-column: 1 / -1; }

  .call-grid { grid-template-columns: 1fr; }
  .glance { position: static; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .steps,
  .people,
  .split { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 40px; padding-left: 44px; }
  .timeline::before { top: 4px; bottom: 4px; left: 10px; right: auto; width: 2px; height: auto; }
  .tl-item { padding-top: 0; }
  .tl-dot { top: 6px; left: -44px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .deadline { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .topic-grid,
  .types { grid-template-columns: 1fr; }
  .glance-list > div { grid-template-columns: 96px 1fr; }
  .step,
  .person { padding: 24px 20px; }
  .person-head { gap: 16px; }
  .avatar { width: 68px; height: 68px; font-size: 1.35rem; }
  .selection { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .credit { display: block; margin-top: 4px; }
  .credit-sep { display: none; }
  .subject { flex-direction: column; }
  .copy-btn {
    justify-content: center;
    padding: 10px 14px;
    border-left: 0;
    border-top: 1.5px dashed var(--line-strong);
  }
}

/* --------------------------------------------------------------------------
   Accessibility preferences
   -------------------------------------------------------------------------- */

/* Large zoom or landscape phones: don't let the header eat the screen */
@media (max-height: 520px) {
  .site-header { position: relative; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: var(--ink-soft);
    --line: var(--line-strong);
    --band-muted: var(--band-ink);
  }
  .bio:not(.is-open) { -webkit-mask-image: none; mask-image: none; }
}

@media (forced-colors: active) {
  .d-tile,
  .tile,
  .avatar,
  .tl-dot,
  .placeholder-badge,
  .tl-status { border: 2px solid CanvasText; }
  .tile .icon { color: CanvasText; }
  .nav-links a[aria-current="true"]::after { background: Highlight; }
  .bio { -webkit-mask-image: none; mask-image: none; }
}

@media print {
  .site-header, .hero-art, .deadline .btn, .bio-toggle, .copy-btn { display: none !important; }
  .band, .site-footer, .deadline { background: none; color: #000; box-shadow: none; }
  .bio { max-height: none; -webkit-mask-image: none; mask-image: none; }
}
