/* "Stage" look — the site's main design, loaded after site.css on every public page.
   1. The whole site sits in the dark of the room where the talks happen.
   2. The big transitions are cut on a slight angle, with a lit line along the cut.
   3. Gold (marigold) is the one action color: it sits opposite the violet on the color wheel. */

:root {
  --paper: #140a22;
  --ink: #f3eefc;
  --muted: #b9aecd;
  --line: rgba(243, 238, 252, .12);
  --wash: #1d1131;
  --accent-text: #c9a8ff;      /* violet that reads on dark */
  --deep: #0c0616;
  --gold: #ffb020;
  --gold-hi: #ffc858;
  --cut-h: clamp(16px, 2.8vw, 48px);   /* how far the cut rises across the page */
}

body { background: var(--paper); }
::selection { background: rgba(196, 0, 230, .45); color: #fff; }
a:hover, .linkbtn:hover { color: var(--accent-text); }
:focus-visible { outline-color: var(--accent-text); }
.skip { background: #fff; color: var(--paper); }

/* Top bar */
.topbar { background: rgba(20, 10, 34, .82); border-bottom: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }

/* Hero and featured talks read as one lit stage */
.hero {
  background:
    radial-gradient(55% 120% at 0% 0%, rgba(196, 0, 230, .22), transparent 60%),
    radial-gradient(45% 90% at 100% 20%, rgba(90, 98, 255, .16), transparent 60%),
    var(--paper);
}
.hero__lede { color: var(--ink); }
.stage { background: radial-gradient(50% 80% at 95% 100%, rgba(90, 98, 255, .22), transparent 60%), var(--paper); }
.btn, .btn--light { background: var(--gold); color: var(--paper); padding: 10px 20px; font-size: 15px; }
.btn:hover, .btn--light:hover { background: var(--gold-hi); color: var(--paper); }

/* Sections: no grey rules; the border line does the separating where it matters */
.section + .section, .logos + .section { border-top: 0; }
.section--about, .section--more { background: var(--wash); }
.edition__empty { background: var(--wash); }
.card__thumb { background: var(--wash); }
.card__speaker, .host__cred, .talkinfo__speaker { color: var(--accent-text); }
.face, .face--blank, .host__face--blank, .speaker__face--blank { background: var(--wash); color: var(--accent-text); }

/* Host logos: a light "credits card" in the dark, since the logos themselves are dark */
.logos { background: #f3eefc; border-top: 0; }
.logos__label { color: #5f5670; }

/* Footer drops into deeper dark */
.footer { background: var(--deep); }

/* ---------- The cut ----------
   Each marked section starts with an angled edge: its own background fills a wedge that
   cuts into the section above, and a lit line runs along the cut.
   1st (About) rises to the right, 2nd (Presenters) falls to the right, 3rd (footer) rises again. */
.section--about, #presenters, .footer { position: relative; }
.section--about::before, #presenters::before, .footer::before,
.section--about::after,  #presenters::after,  .footer::after {
  content: ""; position: absolute; left: 0; right: 0; pointer-events: none;
}
/* the wedge, in the section's own background */
.section--about::before, #presenters::before, .footer::before {
  top: calc(-1 * var(--cut-h)); height: calc(var(--cut-h) + 1px);
  background: inherit; z-index: 1;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
#presenters::before { clip-path: polygon(0 0, 100% 100%, 0 100%); }
/* the line along the cut */
.section--about::after, #presenters::after, .footer::after {
  top: calc(-1 * var(--cut-h) - 3px); height: calc(var(--cut-h) + 6px);
  background: url("cut-line.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 6px rgba(196, 0, 230, .6));
  z-index: 2;
}
#presenters::after { transform: scaleX(-1); }
.section--about, #presenters { padding-top: calc(clamp(56px, 8vw, 112px) + var(--cut-h) / 2); }

/* Talk page */
.talkinfo__people { border-left-color: var(--line); }

/* Preview switch (only shown while previewing) */
.look-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  display: flex; gap: 12px; align-items: center;
  padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--paper); font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}
.look-switch a { color: var(--violet); }
.look-switch a:hover { color: var(--magenta); }
