/* The Border is a Story — public site
   Palette taken from the wordmark gradient; type is Archivo, a grotesque close to the program's. */

:root {
  --paper: #ffffff;
  --ink: #1c1426;
  --muted: #5f5670;
  --line: #e7e2ef;
  --wash: #f6f3fc;
  --magenta: #c400e6;
  --violet: #7412f5;
  --blue: #5a62ff;
  --stage: #140a22;
  --stage-ink: #f3eefc;
  --stage-muted: #b9aecd;
  --gradient: linear-gradient(90deg, var(--magenta), var(--violet) 40%, var(--blue) 65%, var(--violet) 85%, var(--magenta));

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.topbar__logo img { height: 22px; width: auto; }
.topbar__nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 15px; font-weight: 600; }
.topbar__nav a { text-decoration: none; }
.home .topbar__logo { opacity: 0; pointer-events: none; transition: opacity .25s; }
.home.scrolled .topbar__logo { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
  .topbar__inner { height: 56px; }
  .topbar__nav { gap: 16px; font-size: 14px; }
  .topbar__nav a:nth-child(4) { display: none; }
  .home .topbar__logo { opacity: 1; pointer-events: auto; }
  .topbar__logo img { height: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  background: var(--violet); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: #5b08c9; color: #fff; }
.btn--light { background: #fff; color: var(--stage); }
.btn--light:hover { background: var(--stage-ink); color: var(--stage); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--violet); }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 52px); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero__logo { margin: 0; }
.hero__logo img { width: 100%; }
.hero__lede { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.35; font-weight: 500; letter-spacing: -0.005em; margin-bottom: 1.1em; max-width: 32ch; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .hero__logo img { max-width: 360px; }
  .hero__lede { max-width: 36ch; }
}

/* ---------- Stage band (dark) ---------- */
.stage {
  background:
    radial-gradient(60% 90% at 8% 0%, rgba(196,0,230,.28), transparent 60%),
    radial-gradient(50% 80% at 95% 100%, rgba(90,98,255,.26), transparent 60%),
    var(--stage);
  color: var(--stage-ink);
  padding: clamp(36px, 6vw, 80px) 0;
}
.stage a:hover { color: #fff; }
.feature { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature__media:hover img { transform: scale(1.02); }
.play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.play svg { width: 34px; height: 34px; fill: var(--violet); margin-left: 4px; }
.feature__ed { font-weight: 700; color: var(--stage-muted); margin-bottom: .6em; font-variant-numeric: tabular-nums; }
.feature__title { font-size: clamp(28px, 3vw, 42px); margin-bottom: .45em; }
.feature__title a { text-decoration: none; }
.feature__speaker { font-size: 18px; font-weight: 600; margin-bottom: .8em; }
.feature__summary { color: var(--stage-muted); margin-bottom: 1.5em; max-width: 42ch; }
.feature--empty .feature__media img { opacity: .8; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .play svg { width: 26px; height: 26px; } }

/* ---------- Carousel ---------- */
.stage--carousel { position: relative; }
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform .5s cubic-bezier(.22,.7,.2,1); will-change: transform; }
.carousel__slide { flex: 0 0 100%; min-width: 0; }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28);
  background: rgba(20,10,34,.55); color: #fff; cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: background .15s, border-color .15s;
}
.carousel__arrow:hover { background: #fff; color: var(--stage); border-color: #fff; }
.carousel__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carousel__arrow--prev { left: -80px; }
.carousel__arrow--next { right: -80px; }
.carousel__count { margin: 20px 0 0; font-size: 14px; font-weight: 600; color: var(--stage-muted); font-variant-numeric: tabular-nums; text-align: center; }
/* When there's no room in the margins, the arrows sit beside the counter below the slide. */
@media (max-width: 1339px) {
  .carousel { padding-bottom: 64px; }
  .carousel__arrow { top: auto; bottom: 0; transform: none; }
  .carousel__arrow--prev { left: calc(50% - 110px); }
  .carousel__arrow--next { right: calc(50% - 110px); }
  .carousel__count { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; line-height: 52px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section__title { font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.03em; line-height: .95; font-variation-settings: "wdth" 108; }
.section__title--sm { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 32px; }
.section__intro { font-size: 19px; color: var(--muted); max-width: 52ch; margin: 0; }
#talks > .wrap > .section__title { margin-bottom: clamp(28px, 4vw, 48px); }
@media (max-width: 760px) { .section__head { grid-template-columns: 1fr; } }

/* ---------- Editions + talk grid ---------- */
.edition + .edition { margin-top: clamp(56px, 7vw, 96px); }
.edition__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.edition__year {
  margin: 0; font-size: clamp(44px, 6vw, 80px); font-weight: 800; line-height: .85; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: var(--gradient); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.edition__theme { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: .35em; }
.edition__blurb { color: var(--muted); margin: 0; max-width: 60ch; }
.edition__head .edition__blurb:only-child { font-size: 19px; color: var(--ink); padding-top: .35em; }
.edition__empty { color: var(--muted); margin: 0; padding: 28px; background: var(--wash); border-radius: var(--radius); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--stage); margin-bottom: 14px; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card__thumb:hover img { transform: scale(1.03); }
.card__dur { position: absolute; right: 8px; bottom: 8px; background: rgba(20,10,34,.85); color: #fff; font-size: 13px; font-weight: 600; padding: 2px 7px; border-radius: 2px; font-variant-numeric: tabular-nums; }
.card__title { font-size: 20px; font-weight: 700; line-height: 1.2; margin-bottom: 6px; letter-spacing: -0.01em; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__speaker { font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--violet); }
.card__summary { font-size: 15px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- About ---------- */
.section--about { background: var(--wash); }
.section + .section--about { border-top: 0; }
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); }
.about__heading { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -0.03em; line-height: .98; font-variation-settings: "wdth" 104; }
.about__sub { font-size: 22px; }
.about--format { margin-top: clamp(40px, 5vw, 64px); }
.prose { font-size: 19px; line-height: 1.6; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.photos { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(12px, 2vw, 24px); margin-top: clamp(40px, 6vw, 80px); }
.photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 3 / 2; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .photos { grid-template-columns: 1fr; } .photos__tall { display: none; } }

/* ---------- Presenters roster ---------- */
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 40px); }
.roster + .roster__year { margin-top: clamp(48px, 6vw, 80px); }
.roster__year {
  font-size: clamp(36px, 4.4vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: .9; font-variant-numeric: tabular-nums;
  margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
  background: var(--gradient); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.roster__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; }
.roster__name { font-weight: 700; font-size: 18px; line-height: 1.2; margin: 4px 0 4px; }
.roster__name a { text-decoration: none; }
.roster__cred { font-size: 14.5px; line-height: 1.4; color: var(--muted); margin: 0; }
.face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--wash); }
.face--blank, .host__face--blank, .speaker__face--blank { display: grid; place-items: center; font-weight: 700; color: var(--violet); background: var(--wash); }
@media (max-width: 960px) { .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .roster { grid-template-columns: 1fr; } }

/* ---------- Host and supporter logos ---------- */
.logos { padding: clamp(36px, 5vw, 60px) 0; border-top: 1px solid var(--line); background: var(--paper); }
.logos + .section { border-top: 1px solid var(--line); }
.logos__group + .logos__group { margin-top: 40px; }
.logos__label { font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.3; color: var(--muted); margin: 0 0 22px; text-align: center; }
.logos__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px clamp(32px, 6vw, 88px); }
.logos__item a { display: block; transition: opacity .15s; }
.logos__item a:hover { opacity: .65; }
.logos__item img { width: var(--w); height: auto; }
@media (max-width: 760px) {
  .logos__row { gap: 26px 36px; }
  .logos__item img { width: calc(var(--w) * .72); }
}

/* ---------- Organizers ---------- */
.hosts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px); }
.host__face { width: 100%; max-width: 220px; aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; margin-bottom: 20px; font-size: 40px; }
.host__name { font-size: 22px; margin-bottom: 6px; }
.host__name a { text-decoration: none; }
.host__cred { font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--violet); margin-bottom: 12px; }
.host__bio { font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (max-width: 1000px) { .hosts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hosts { grid-template-columns: 1fr; } .host__face { max-width: 160px; } }

/* ---------- Talk page ---------- */
.stage--player { padding: clamp(20px, 4vw, 48px) 0; }
.player-wrap { max-width: 1280px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 80px rgba(0,0,0,.45); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.talkinfo { padding-top: clamp(32px, 5vw, 64px); }
.talkinfo__inner { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); }
.talkinfo__ed { font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.talkinfo__ed a { text-decoration: none; }
.talkinfo__ed a:hover { text-decoration: underline; }
.talkinfo__title { font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px; font-variation-settings: "wdth" 104; }
.talkinfo__speaker { font-size: 21px; font-weight: 600; color: var(--violet); margin-bottom: 28px; }
.talkinfo__actions { display: flex; gap: 24px; margin-top: 32px; font-weight: 600; font-size: 15px; }
.talkinfo__people { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 40px); }
.speaker + .speaker { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.speaker__face { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; font-size: 22px; }
.speaker__name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.speaker__name a { text-decoration: none; }
.speaker__cred { font-weight: 600; font-size: 15px; line-height: 1.4; margin-bottom: 12px; }
.speaker__bio { font-size: 15px; color: var(--muted); }
.section--more { background: var(--wash); }
@media (max-width: 860px) {
  .talkinfo__inner { grid-template-columns: 1fr; }
  .talkinfo__people { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--stage); color: var(--stage-ink); padding: clamp(48px, 6vw, 80px) 0; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.footer__logo { width: 100%; max-width: 360px; opacity: .95; }
.footer__line { font-size: 16px; margin-bottom: .8em; }
.footer__k { display: block; font-weight: 700; color: var(--stage-muted); font-size: 14px; margin-bottom: 2px; }
.footer a { text-decoration-color: rgba(255,255,255,.35); }
.footer a:hover { color: #fff; text-decoration-color: #fff; }
.footer__note { color: var(--stage-muted); font-size: 15px; max-width: 60ch; margin-top: 1.6em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--stage-muted); margin: 1.6em 0 0; }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; } .footer__logo { max-width: 240px; } }
