/* ==========================================================================
   In Dialogue with AI
   One stylesheet shared by every page. Plain CSS, no build step.
   Read CLAUDE.md before changing colour, type, or the poster hero.
   ========================================================================== */

/* ---------- fonts (self-hosted, variable, OFL) ---------- */
@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter-var.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
/* real italics, so the poster's "with" and body emphasis are not
   synthesized obliques */
@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter-italic-var.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-var.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-italic-var.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- tokens ----------
   Light is the base. Dark redefines tokens only, never component rules,
   and is declared twice so an explicit choice wins over the OS in both
   directions. Never declare a colour only inside a media/[data-theme] block. */
:root {
  --navy: #0F1A3C;
  --paper: #E7E7E0;
  --paper-2: #DEDED5;
  --ink: #0F1A3C;
  --ink-soft: #4A5473;
  --saffron: #E0A028;
  --saffron-deep: #7F5713;  /* accent as text on light: 5.2:1 (was 3.26, failed AA) */
  --signal: #C1432B;        /* button fill; white on it is 4.70:1 */
  --signal-text: #A63A25;   /* same idea as text: 5.2:1 on paper */

  --ground: var(--paper);
  --ground-2: var(--paper-2);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --rule: rgba(15, 26, 60, .22);
  --rule-strong: #0F1A3C;
  --accent: var(--saffron-deep);

  --slab: "Bitter", "Bookman Old Style", Rockwell, Georgia, serif;
  --sans: "Figtree", "Avenir Next", Avenir, system-ui, sans-serif;

  --maxw: 1180px;
  --pad: clamp(18px, 4.5vw, 52px);

  /* logo masters swap by surface: UP forbids recolouring or deriving marks */
  --show-light: inline-block;
  --show-dark: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F1A3C;
    --ground-2: #152144;
    --text: #E7E7E0;
    --text-soft: #A3ACC7;
    --rule: rgba(231, 231, 224, .22);
    --rule-strong: #E7E7E0;
    --accent: #E0A028;
    --signal-text: #E07257;   /* lifted for the navy ground: 5.4:1 */
    --show-light: none;
    --show-dark: inline-block;
  }
}
:root[data-theme="dark"] {
  --ground: #0F1A3C;
  --ground-2: #152144;
  --text: #E7E7E0;
  --text-soft: #A3ACC7;
  --rule: rgba(231, 231, 224, .22);
  --rule-strong: #E7E7E0;
  --accent: #E0A028;
  --signal-text: #E07257;   /* lifted for the navy ground: 5.4:1 */
  --show-light: none;
  --show-dark: inline-block;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(16px, 1.02vw, 17.5px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--slab);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.02;
  text-wrap: balance;
}

.label {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--saffron);
  color: #1A1206;
  padding: .7rem 1.1rem;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- credit bar ---------- */
.credits {
  background: var(--navy);
  color: var(--paper);
  border-bottom: 1px solid rgba(231, 231, 224, .2);
}
.credits .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.6rem;
  padding-top: 11px;
  padding-bottom: 11px;
}
.credits .label { color: rgba(231, 231, 224, .72); }
.credits .label b { color: var(--saffron); font-weight: 700; }

/* ---------- poster hero ---------- */
.poster {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
  padding-block: clamp(40px, 6vw, 76px) clamp(44px, 6.5vw, 82px);
}
/* the chorus: many voices drifting behind the title, gathering toward the middle */
#chorus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(15, 26, 60, .5) 0%, rgba(15, 26, 60, .14) 46%, rgba(15, 26, 60, .72) 100%);
}
.poster > .wrap { position: relative; z-index: 2; }

.poster .kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  align-items: baseline;
  padding-bottom: clamp(20px, 2.6vw, 30px);
  border-bottom: 3px solid var(--saffron);
}
.poster .kicker .label { color: var(--saffron); }
.poster .kicker .label.dim { color: rgba(231, 231, 224, .66); }

.poster h1 {
  font-size: clamp(2.6rem, 10vw, 8rem);
  line-height: .92;
  letter-spacing: -.032em;
  margin: clamp(24px, 3.4vw, 42px) 0 0;
  text-transform: uppercase;
}
.poster h1 .with {
  display: block;
  margin: .12em 0;
  color: var(--saffron);
  font-size: .46em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: .02em;
  text-transform: none;
}

.poster .sub {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(22px, 3.4vw, 54px);
  margin-top: clamp(30px, 4.2vw, 52px);
  padding-top: clamp(22px, 2.8vw, 32px);
  border-top: 1px solid rgba(231, 231, 224, .28);
}
.poster .sub p {
  margin: 0;
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  color: rgba(231, 231, 224, .84);
}
.poster .sub p em { color: var(--paper); font-style: italic; }
@media (max-width: 820px) {
  .poster .sub { grid-template-columns: 1fr; gap: 1.4rem; }
}

.stamp { align-self: start; display: grid; gap: .7rem; }
.stamp div {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(231, 231, 224, .18);
}
.stamp .k { color: var(--saffron); min-width: 9em; flex: none; }
.stamp .v { font-family: var(--slab); font-weight: 500; font-size: 1.02rem; }

/* ---------- presented by ---------- */
.presented {
  background: var(--ground);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.presented .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding-top: clamp(20px, 2.6vw, 30px);
  padding-bottom: clamp(20px, 2.6vw, 30px);
}
.presented .by { color: var(--text-soft); flex: none; }

.lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3.2vw, 42px);
}
.lockup a {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  transition: opacity .2s;
}
.lockup a:hover { opacity: .68; }

.up-mark { display: inline-flex; align-items: center; flex: none; }
.up-mark img { height: clamp(34px, 4vw, 46px); width: auto; }
.up-mark .up-2c { display: var(--show-light); }
.up-mark .up-rev { display: var(--show-dark); }

.aipdx { height: clamp(12px, 1.45vw, 16px); width: auto; display: block; }

/* ---------- sections ---------- */
section { padding: clamp(54px, 7.5vw, 96px) 0; }
.alt { background: var(--ground-2); }

.head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 3px solid var(--rule-strong);
}
.head .label { color: var(--accent); }

h2 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); max-width: 18ch; }

.intro {
  max-width: 62ch;
  margin: clamp(24px, 3vw, 34px) 0 0;
  color: var(--text-soft);
  font-size: clamp(1.03rem, 1.38vw, 1.16rem);
}

/* ---------- the program ---------- */
.program { margin-top: clamp(30px, 3.8vw, 44px); }

.row {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) 13.5rem;
  gap: clamp(14px, 2.4vw, 32px);
  align-items: baseline;
  padding: clamp(18px, 2.3vw, 26px) 0;
  border-bottom: 1px solid var(--rule);
}
.row:first-child { border-top: 1px solid var(--rule); }
.row .rn {
  font-family: var(--slab);
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: var(--accent);
  letter-spacing: 0;
}
.row h3 {
  font-size: clamp(1.28rem, 2.5vw, 1.85rem);
  letter-spacing: -.018em;
  margin-bottom: .35rem;
}
.row p {
  margin: 0;
  max-width: 52ch;
  color: var(--text-soft);
  font-size: .98rem;
  line-height: 1.5;
}
.row .date {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.row .date.tbc { color: var(--signal-text); }
@media (max-width: 800px) {
  .row { grid-template-columns: 2.6rem 1fr; }
  .row .date { grid-column: 2; text-align: left; margin-top: .6rem; }
}

/* ---------- details panel ---------- */
.panel {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(30px, 4.2vw, 52px);
  margin-top: clamp(32px, 4vw, 46px);
}
.panel .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 42px);
}
@media (max-width: 760px) {
  .panel .grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
.panel dt { color: var(--saffron); margin-bottom: .5rem; }
.panel dd {
  margin: 0;
  font-family: var(--slab);
  font-weight: 500;
  font-size: clamp(1.12rem, 1.9vw, 1.4rem);
  line-height: 1.2;
}
.panel dd.tbc { color: var(--saffron); }

/* accessibility notice travels with the event details */
.panel .ada-note {
  margin: clamp(22px, 3vw, 30px) 0 0;
  padding-top: clamp(16px, 2vw, 20px);
  border-top: 1px solid rgba(231, 231, 224, .22);
  font-size: .92rem;
  color: rgba(231, 231, 224, .74);
}
.panel .ada-note a {
  color: var(--saffron);
  text-decoration: none;
  border-bottom: 1px solid var(--saffron);
}
.panel .ada-note a:hover { opacity: .75; }

/* ---------- statement ---------- */
.statement { background: var(--saffron); color: var(--navy); }
.statement blockquote {
  margin: 0;
  max-width: 17ch;
  font-family: var(--slab);
  font-weight: 800;
  font-size: clamp(1.9rem, 5.6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.statement blockquote .q {
  display: block;
  max-width: 26ch;
  margin-bottom: .5em;
  font-weight: 400;
  font-style: italic;
  font-size: .52em;
  line-height: 1.18;
  letter-spacing: -.015em;
}
.statement .attrib { margin: 1.9rem 0 0; color: rgba(15, 26, 60, .72); }

/* ---------- hosts ---------- */
.hosts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(32px, 4vw, 46px);
}
@media (max-width: 760px) { .hosts { grid-template-columns: 1fr; } }

/* min-height keeps both columns' body copy on one baseline, mascot or not */
.host-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: clamp(44px, 5vw, 56px);
  margin-bottom: .5rem;
}
.host-head h3 { margin: 0; font-size: clamp(1.24rem, 2.2vw, 1.6rem); }

.mascot { flex: none; width: clamp(44px, 5vw, 56px); }
.mascot img { width: 100%; height: auto; display: block; }
.mascot .m-light { display: var(--show-light); }
.mascot .m-dark { display: var(--show-dark); }

.host p {
  margin: 0 0 .8rem;
  color: var(--text-soft);
  font-size: .98rem;
  line-height: 1.55;
}
.host .ada { font-size: .92rem; }
.host .ada a,
.host .site {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.host .site {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.host .ada a:hover, .host .site:hover { opacity: .7; }

/* ---------- calls to action ---------- */
.acts {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.1rem;
  margin-top: clamp(26px, 3.2vw, 38px);
}
.btn {
  display: inline-block;
  padding: 1rem 1.9rem;
  background: var(--signal);
  color: #FFF3EE;
  border: 2px solid var(--signal);
  font-family: var(--sans);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: transparent; color: var(--signal-text); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn-quiet:hover { background: var(--rule-strong); color: var(--ground); }

/* ---------- footer ---------- */
footer {
  background: var(--navy);
  color: rgba(231, 231, 224, .72);
  padding: clamp(36px, 5vw, 58px) 0;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
footer a { color: var(--saffron); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
