:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --max: 1100px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 48px; width: auto; display: block; }
.nav ul { display: flex; gap: 28px; list-style: none; }
.nav ul a {
  text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.nav ul a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-size: clamp(40px, 9.5vw, 128px); white-space: nowrap;
  font-weight: 900; line-height: 0.92; letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero p {
  margin-top: 24px; max-width: 520px;
  font-size: 18px; color: var(--muted);
}
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 12px 22px;
  border: 2px solid var(--fg); border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background .15s, color .15s;
}
.btn.solid { background: var(--fg); color: var(--bg); }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.solid:hover { background: var(--bg); color: var(--fg); }

/* Sections */
section.block { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 900;
  letter-spacing: -0.03em; text-transform: uppercase;
}
.section-head a { font-size: 14px; font-weight: 500; white-space: nowrap; }

.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: 12px; overflow: hidden;
}
.video-frame iframe, .podcast-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.podcast-frame {
  position: relative; width: 100%; height: 352px;
  border-radius: 12px; overflow: hidden;
}
.note { margin-top: 12px; font-size: 13px; color: var(--muted); }

.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 24px;
  width: 100%; height: 100%;
  border: 2px dashed var(--line); border-radius: 12px;
  color: var(--muted); font-size: 14px;
  position: absolute; inset: 0; background: var(--bg);
}
.placeholder strong { color: var(--fg); font-size: 16px; }
.placeholder code { background: #f4f4f4; padding: 1px 6px; border-radius: 4px; }

footer { padding: 40px 0; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 600px) {
  .nav ul { gap: 14px; }
  .nav ul a { font-size: 13px; }
  .nav { gap: 16px; }
  .logo img { height: 40px; }
  .hero { padding: 48px 0 48px; }
  section.block { padding: 48px 0; }
}

/* About page */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 {
  font-size: clamp(40px, 9.5vw, 96px);
  font-weight: 900; line-height: 0.92; letter-spacing: -0.045em;
  text-transform: uppercase;
}
.prose { max-width: 640px; padding: 48px 0 80px; }
.prose p { font-size: 18px; line-height: 1.7; margin-bottom: 1.4em; }
.prose > p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.4em; margin-bottom: 1.4em; }
.prose li { font-size: 18px; line-height: 1.7; margin-bottom: 0.8em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.nav ul a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
/* Videos beside their paragraphs: a side column on wide screens,
   below the paragraph on narrow ones */
.with-video { display: flex; flex-direction: column-reverse; }
.side-video { margin: 0 0 2em; }
.side-video figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (min-width: 1080px) {
  .with-video { display: block; }
  .side-video {
    float: right; clear: right;
    width: 340px; margin: 6px -388px 24px 0;
  }
}

@media (max-width: 600px) {
  .page-head { padding: 48px 0 28px; }
  .prose { padding: 32px 0 56px; }
  .prose p, .prose li { font-size: 17px; }
}

@media (max-width: 380px) {
  .nav { gap: 10px; }
  .nav ul { gap: 8px; }
  .logo img { height: 32px; }
  .nav ul a { font-size: 12px; }
}
