:root {
  color: #191815;
  background: #f7f5ef;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(222, 110, 42, 0.12), transparent 28rem),
    #f7f5ef;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

header {
  max-width: 810px;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25, 24, 21, 0.07);
  color: #65615a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #c45317;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: #66615a;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
}

.player-card {
  padding: 10px;
  border: 1px solid rgba(25, 24, 21, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 80px rgba(48, 38, 27, 0.14);
}

.switcher {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin: 2px 2px 10px;
  padding: 4px;
  border-radius: 12px;
  background: #efede7;
}

.version {
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #69645d;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.version.active {
  background: #191815;
  color: white;
  box-shadow: 0 2px 7px rgba(25, 24, 21, 0.22);
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  border-radius: 16px;
  background: #111;
}

video {
  display: block;
  width: 100%;
  height: 100%;
  background: #111;
}

.video-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #191815;
  color: white;
  text-align: center;
}

.video-error[hidden] {
  display: none;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  padding: 13px 8px 5px;
  color: #777169;
  font-size: 12px;
}

.meta span:first-child {
  color: #292722;
  font-weight: 700;
}

.chapters {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  gap: 52px;
  padding: 72px 4px 0;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chapter-grid button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid rgba(25, 24, 21, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.62);
  color: #292722;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}

.chapter-grid button:hover {
  border-color: rgba(196, 83, 23, 0.5);
  background: white;
}

time {
  color: #c45317;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 700px) {
  main {
    width: min(100% - 20px, 1180px);
    padding-top: 28px;
  }

  .brand {
    margin-bottom: 32px;
  }

  .player-card {
    padding: 7px;
    border-radius: 18px;
  }

  .video-shell {
    border-radius: 12px;
  }

  .chapters {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 52px;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
  }
}
