:root {
  --bg: #09090b;
  --surface: #141419;
  --surface-strong: #1b1b23;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f1ea;
  --muted: #b0ada6;
  --accent: #df7240;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(223, 114, 64, 0.12), transparent 30%),
    linear-gradient(180deg, #0d0d10 0%, #070709 100%);
}

img {
  display: block;
  max-width: 100%;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 52px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 9, 11, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-shell,
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-shell {
  padding: 18px 0;
}

.brand img {
  width: auto;
  height: 28px;
}

.site-nav,
.footer-links,
.featured-actions,
.archive-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a,
.footer-links a,
.channel-link {
  color: var(--muted);
}

.nav-button,
.button,
.channel-link,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
}

.nav-button-primary,
.button-primary {
  color: #fff5ef;
  background: var(--accent);
}

.nav-button-secondary,
.button-secondary,
.channel-link,
.filter-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1,
h2 {
  font-family: "Newsreader", serif;
  font-weight: 700;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.talks-hero p:last-child {
  max-width: 62ch;
  margin-top: 22px;
}

.talks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.featured-talk,
.archive-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(17, 17, 22, 0.88);
  overflow: hidden;
}

.featured-player {
  aspect-ratio: 16 / 9;
  background: #040404;
}

.featured-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.featured-copy,
.archive-panel {
  padding: 24px;
}

.featured-meta {
  margin-top: 12px;
  color: var(--text);
  font-weight: 600;
}

.featured-copy p:last-of-type {
  margin-top: 16px;
}

.sponsor-note {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(223, 114, 64, 0.2);
  background: rgba(223, 114, 64, 0.08);
}

.sponsor-note strong {
  color: var(--text);
}

.featured-actions {
  margin-top: 22px;
}

.archive-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.archive-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.filter-chip {
  color: var(--muted);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.filter-chip.is-active {
  color: var(--text);
  border-color: rgba(223, 114, 64, 0.45);
  background: rgba(223, 114, 64, 0.12);
}

.archive-list {
  display: grid;
  gap: 12px;
  max-height: 880px;
  overflow-y: auto;
  padding-right: 6px;
}

.archive-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 10px;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.archive-item:hover,
.archive-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(223, 114, 64, 0.35);
  background: rgba(223, 114, 64, 0.08);
}

.archive-item-media {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: #0b0b0d;
}

.archive-item-copy {
  min-width: 0;
}

.archive-item-copy span {
  display: block;
}

.archive-item-index {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.archive-item-title {
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

.archive-item-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.archive-empty {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.site-footer {
  padding: 24px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 1080px) {
  .talks-layout {
    grid-template-columns: 1fr;
  }

  .archive-list {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .header-shell,
  .footer-shell,
  .archive-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .archive-item {
    grid-template-columns: 1fr;
  }

  .archive-item-media {
    max-width: 220px;
  }
}
