:root {
  --bg: #000;
  --ink: #fff;
  --dim: #a6a6a6;
  --rule: #2b2b2b;
  --hot: #ff7a3d;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Jost", Futura, "Century Gothic", system-ui, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.5;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 4px;
}

.page {
  max-width: 66rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem);
}

/* Logo */

.mark {
  display: block;
  width: clamp(5rem, 9vw, 6.5rem);
}

.mark img {
  display: block;
  width: 100%;
  height: auto;
}

.mark .on-paper { display: none; }

/* Home: headline and why */

.why h1 {
  margin: clamp(4rem, 13vw, 9rem) 0 0;
  font-size: clamp(3rem, 10.5vw, 7.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.why p {
  max-width: 35rem;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  font-size: clamp(1.1875rem, 2.2vw, 1.4375rem);
  line-height: 1.4;
}

/* Event block */

.event {
  margin-top: clamp(4rem, 12vw, 8rem);
}

.event-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-bottom: 1.25rem;
}

.event-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.event-head p {
  margin: 0;
  color: var(--dim);
}

.talks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.talk {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr auto;
  align-items: center;
  gap: 0.75rem 1.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}

.talks li:last-child .talk {
  border-bottom: 1px solid var(--rule);
}

.talk img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.talk-title {
  display: block;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.talk-by {
  display: block;
  margin-top: 0.4rem;
  color: var(--dim);
}

.talk-length {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.talk:hover .talk-title,
.talk:focus-visible .talk-title {
  color: var(--hot);
}

.onepager {
  margin: 2rem 0 0;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  font-weight: 700;
}

.onepager a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.onepager a:hover { color: var(--hot); }

.credits {
  margin-top: clamp(4rem, 12vw, 7rem);
  color: var(--dim);
  font-size: 1rem;
}

.credits p { margin: 0; }

@media (max-width: 40rem) {
  .talk {
    grid-template-columns: 1fr;
    padding: 1.5rem 0;
  }
}

/* One-pager: speakers and talks */

.sheet h1 {
  margin: clamp(2.5rem, 7vw, 4rem) 0 0;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.sheet .when {
  margin: 1rem 0 0;
  color: var(--dim);
}

.entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin: clamp(2rem, 6vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.entry {
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--rule);
  break-inside: avoid;
}

.entry.wide { grid-column: 1 / -1; }

.entry h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.entry .who {
  margin: 0.35rem 0 0;
  color: var(--dim);
}

.entry .gist {
  margin: 0.85rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.entry ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.entry li + li { margin-top: 0.3rem; }

.entry .watch {
  margin: 0.9rem 0 0;
  font-weight: 700;
}

.entry .watch a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.entry .watch a:hover { color: var(--hot); }

.entry .watch span {
  margin-left: 0.5rem;
  color: var(--dim);
  font-weight: 400;
}

@media (max-width: 48rem) {
  .entries { grid-template-columns: 1fr; }
}

@media print {
  @page { size: letter; margin: 0.5in; }

  html {
    --bg: #fff;
    --ink: #000;
    --dim: #444;
    --rule: #bbb;
    background: #fff;
    color: #000;
  }

  body { font-size: 9.5pt; line-height: 1.35; }

  .page { max-width: none; padding: 0; }

  .mark { width: 0.7in; }
  .mark .on-screen { display: none; }
  .mark .on-paper { display: block; }

  .sheet h1 { margin-top: 0.18in; font-size: 20pt; }
  .sheet .when { margin-top: 0.06in; }

  .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 0.35in; margin-top: 0.16in; }
  .entry { padding: 0.1in 0 0.12in; }
  .entry h2 { font-size: 12pt; }
  .entry .who { margin-top: 2pt; }
  .entry .gist, .entry ul { margin-top: 5pt; font-size: 9.5pt; line-height: 1.32; }
  .entry li + li { margin-top: 2pt; }
  .entry .watch { margin-top: 5pt; }

  .credits { margin-top: 0.14in; font-size: 8.5pt; }
}
