:root {
  --bg: #f8f5ef;
  --surface: #ffffff;
  --ink: #171c2e;
  --muted: #646b80;
  --line: #e4dfd4;
  --accent: #9a6a12;
  --accent-soft: #f3e7cd;
  --night: #121a33;
  --night-2: #1e2b55;
  --on-night: #f3efe4;
  --glow: #e9bd6a;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(23 28 46 / 6%), 0 8px 24px rgb(23 28 46 / 6%);
  /* Netflix Sans is private to Netflix; Hanken Grotesk is the nearest freely licensed face. The rest is Netflix's own fallback list. */
  --sans: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", Roboto, Ubuntu, sans-serif;
  --serif: var(--sans);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1120; --surface: #151c31; --ink: #ebe8df; --muted: #9aa1b5; --line: #262f4a;
    --accent: #e9bd6a; --accent-soft: #2a2a2c; --night: #080c18; --night-2: #17224a;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1120; --surface: #151c31; --ink: #ebe8df; --muted: #9aa1b5; --line: #262f4a;
  --accent: #e9bd6a; --accent-soft: #2a2a2c; --night: #080c18; --night-2: #17224a;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { overflow-wrap: anywhere; font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--surface); padding: .5rem 1rem; }
.eyebrow { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eyebrow a { text-decoration: none; }

/* header: always night-coloured; on the home page it lies over the sky itself */
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(6 9 21 / 92%); backdrop-filter: blur(10px); color: var(--on-night); border-bottom: 1px solid rgb(255 255 255 / 8%); }
.site-header.over-hero { position: absolute; left: 0; right: 0; background: none; backdrop-filter: none; border-bottom: 0; }
.bar { display: flex; align-items: center; gap: 1.25rem; min-height: 3.75rem; }
.brand { font-weight: 600; font-size: 1.05rem; font-style: italic; letter-spacing: .01em; text-decoration: none; white-space: nowrap; color: var(--glow); }
.brand:hover { color: #fff; }
.site-header nav { display: flex; gap: .25rem; margin-right: auto; }
.site-header nav a { padding: .4rem .7rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: rgb(243 239 228 / 72%); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: #fff; background: rgb(255 255 255 / 11%); }
.bar-search { display: flex; align-items: center; gap: .5rem; padding: .4rem .8rem; border: 1px solid rgb(255 255 255 / 18%); border-radius: 999px; background: rgb(255 255 255 / 8%); color: rgb(243 239 228 / 70%); width: 15rem; }
.bar-search input { border: 0; background: none; font: inherit; color: var(--on-night); width: 100%; outline: none; }
.bar-search input::placeholder { color: rgb(243 239 228 / 55%); }
.bar-search:focus-within { border-color: var(--glow); }
.icon-btn { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / 18%); background: rgb(255 255 255 / 8%); color: var(--on-night); cursor: pointer; }

/* hero */
.hero { position: relative; overflow: hidden; color: var(--on-night); padding: calc(clamp(3.5rem, 9vw, 7rem) + 3.75rem) 0 clamp(8rem, 15vw, 12rem); background: var(--bg); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; stroke: none; }
/* the sky and its scrim dissolve into the page colour instead of ending on a hard edge */
.sky, .hero::after { -webkit-mask-image: linear-gradient(#000 58%, transparent 100%); mask-image: linear-gradient(#000 58%, transparent 100%); }
.sky .tw { animation: twinkle 6s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25; } }
/* a scrim keeps the sky dark and still behind the words; the picture opens up to the right */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(4 6 16 / 78%) 0%, rgb(4 6 16 / 62%) 38%, rgb(4 6 16 / 0%) 68%); }
.hero-art { z-index: 2; }
.hero .wrap { position: relative; z-index: 3; }
.hero-art { position: absolute; right: max(4vw, calc(50% - 540px)); top: 44%; translate: 0 -50%; opacity: .55; }
.hero-art::before { content: ""; position: absolute; left: 50%; top: 52%; width: 46rem; height: 46rem; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 190 90 / 42%), rgb(240 138 28 / 16%) 38%, transparent 70%); animation: glow 5s ease-in-out infinite; }
.hero-art img { position: relative; width: clamp(9rem, 17vw, 14.5rem); height: auto; filter: drop-shadow(0 0 28px rgb(255 170 60 / 45%)); }
@keyframes glow { 50% { opacity: .82; } }
.hero .eyebrow { color: var(--glow); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.2rem); font-weight: 700; margin: .5rem 0 1rem; letter-spacing: -0.03em; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40rem; color: rgb(243 239 228 / 82%); }
.hero-search { display: flex; align-items: center; gap: .75rem; margin-top: 2rem; max-width: 38rem; padding: .45rem .45rem .45rem 1.1rem; border-radius: 999px; background: #fff; color: #646b80; box-shadow: 0 10px 40px rgb(0 0 0 / 30%); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.05rem; color: #171c2e; }
.hero-search button { border: 0; border-radius: 999px; padding: .7rem 1.4rem; font: inherit; font-weight: 600; background: var(--night-2); color: #fff; cursor: pointer; }
.hero-search.on-page { box-shadow: none; border: 1px solid var(--line); background: var(--surface); padding: .8rem 1.1rem; margin: 0 0 1rem; }
.hero-search.on-page input { color: var(--ink); }

/* sections */
.block { margin: 3.5rem 0; }
.hero + .wrap > .block:first-child { margin-top: 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.block-head h2, .month h2 { font-size: 1.6rem; }
.block-head a { font-size: .95rem; font-weight: 500; color: var(--accent); text-decoration: none; white-space: nowrap; }
.page-head { padding: 3rem 0 1.5rem; }
.page-head h1, .event h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: .4rem 0 .5rem; }
.facts { color: var(--muted); }
.month { margin: 2.5rem 0; }
.month h2 { padding-bottom: .6rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--night); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.count { position: absolute; right: .6rem; bottom: .6rem; display: flex; align-items: center; gap: .25rem; padding: .15rem .55rem .15rem .35rem; border-radius: 999px; background: rgb(8 12 24 / 82%); color: #fff; font-size: .8rem; font-weight: 600; }
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; }
.card h3 { font-size: 1.25rem; }
.card h3 a { text-decoration: none; }
.place::before { content: " · "; }
.teaser { font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-speakers { font-size: .88rem; color: var(--muted); margin-top: .2rem; }

/* chips and tiles */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters { margin: 1.25rem 0 0; }
.more-by { align-self: center; margin-left: .4rem; font-size: .92rem; font-weight: 500; color: var(--accent); }
.talk[hidden] { display: none; }
.talk[hidden] + .talk { border-top: 0; }
.talks .talk:not([hidden]) ~ .talk:not([hidden]) { border-top: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.tile { display: flex; flex-direction: column; gap: .1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.tile strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.tile span { color: var(--muted); font-size: .88rem; }
.tile:hover { border-color: var(--accent); color: inherit; }
.years { display: flex; gap: .25rem; overflow-x: auto; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.years a { padding: .35rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--muted); }
.years a[aria-current] { background: var(--ink); color: var(--bg); }

/* event page */
.event { padding-top: 2rem; }
.crumbs { font-size: .9rem; color: var(--muted); }
.event .chips { margin-top: 1rem; }
.watch { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2rem; margin: 2rem 0 4rem; align-items: start; }
.player-col { position: sticky; top: 5rem; }
.player { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.player iframe, .poster, .poster img { width: 100%; height: 100%; border: 0; display: block; }
.poster { position: relative; padding: 0; cursor: pointer; background: #000; }
.poster img { object-fit: cover; opacity: .85; }
.play-btn { position: absolute; inset: 0; margin: auto; width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; background: rgb(8 12 24 / 78%); color: #fff; font-size: 1.6rem; }
.poster:hover .play-btn { background: var(--accent); }
.now { margin-top: 1rem; font-size: 1.05rem; }
.event-docs { margin-top: 1.5rem; }
.event-docs h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.talks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.talk + .talk { border-top: 1px solid var(--line); }
.talk-link { display: flex; gap: .9rem; padding: .8rem 1rem; text-decoration: none; align-items: baseline; }
.talk-link:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); color: inherit; }
.num { min-width: 1.6rem; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.talk-text { display: flex; flex-direction: column; }
.talk-title { font-weight: 500; }
.talk-meta { font-size: .85rem; color: var(--muted); }
.talk.is-playing { background: var(--accent-soft); }
.talk.is-playing .num { color: var(--accent); font-weight: 700; }
.talk-extra { display: flex; flex-wrap: wrap; gap: .4rem .9rem; padding: 0 1rem .8rem 3.5rem; font-size: .88rem; }
.doc, .part { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); }
.part { padding: .1rem .6rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }

/* search */
.results { list-style: none; padding: 0; margin: 1.5rem 0 4rem; display: grid; gap: .6rem; }
.results a { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.results img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.results strong { display: block; font-weight: 600; }
.results span { font-size: .88rem; color: var(--muted); }
.link-list { padding-left: 1.2rem; display: grid; gap: .5rem; }

.site-footer { margin-top: 4rem; padding: 2.5rem 0; border-top: 1px solid var(--line); font-size: .92rem; display: grid; gap: .4rem; }
.site-footer p + p { margin-top: .4rem; }

@media (max-width: 860px) {
  .hero-art { right: -2.5rem; opacity: .4; }
  .hero::after { background: rgb(4 6 16 / 62%); }
  .bar { flex-wrap: wrap; gap: .5rem .75rem; padding: .6rem 0; }
  .site-header nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .bar-search { margin-left: auto; width: auto; flex: 1; min-width: 0; }
  .brand { margin-right: auto; }
  .bar-search { order: 2; flex-basis: 100%; }
  .watch { grid-template-columns: 1fr; gap: 1.25rem; }
  .player-col { top: 0; z-index: 5; background: var(--bg); margin-inline: -1rem; padding: 0 1rem .75rem; }
  .site-header { position: static; }
  .site-header.over-hero { position: absolute; }
  .hero { padding-top: 9.5rem; }
  .brand { white-space: normal; }
  .now { font-size: .95rem; margin-top: .6rem; }
  .event-docs { display: none; }
}
@media (max-width: 520px) {
  .hero-art { display: none; }
  .hero-search button { display: none; }
  .results a { grid-template-columns: 88px 1fr; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .hero-art::before, .sky .tw { animation: none; } }
