* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}
a {
  color: var(--primary);
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a.button {
  min-height: 44px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
button,
a,
summary {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3 {
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
h1 {
  font-size: 36px;
  max-width: 850px;
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 21px;
  font-weight: 700;
}
p {
  margin: 0 0 20px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.8;
}
small,
.meta {
  font-size: 14px;
  color: var(--muted);
}
.site-header {
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px max(24px, calc((100% - 1280px) / 2));
}
.brand {
  font-weight: 900;
  font-size: 23px;
  text-decoration: none;
  line-height: 1.15;
}
.brand span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 8px;
}
.private {
  font-size: 14px;
  color: var(--muted);
}
main {
  max-width: 1328px;
  margin: auto;
  padding: 40px 24px 64px;
  min-height: 65vh;
}
footer {
  border-top: 1px solid var(--rule);
  padding: 32px max(24px, calc((100% - 1280px) / 2));
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.credits {
  display: flex;
  gap: 40px;
}
.credits strong,
.credits small {
  display: block;
}
.credits strong {
  color: var(--primary);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px;
}
.eyebrow {
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.count,
.inventory {
  color: var(--muted);
  font-size: 14px;
}
.episode-list {
  display: grid;
  gap: 48px;
}
.episode-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.cover-link {
  position: relative;
  align-self: start;
  display: block;
}
.cover-link img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.play-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  font-size: 14px;
}
.episode-info h2 {
  margin: 12px 0 16px;
}
.episode-info h2 a {
  text-decoration: none;
}
.episode-info h2 a:hover {
  text-decoration: underline;
}
.episode-info .button {
  margin-top: 24px;
}
.meta span {
  margin: 0 6px;
}
.status {
  font-size: 14px;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.primary {
  background: var(--primary);
  color: var(--paper);
  border: 1px solid var(--primary);
}
.primary:hover {
  background: #26325f;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
}
.quiet {
  background: transparent;
  border: 1px solid transparent;
  color: var(--primary);
  padding: 8px;
}
.quiet:hover {
  background: var(--surface);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 28px;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 760px;
  margin: 0;
}
.episode-heading {
  margin-bottom: 24px;
}
.review-status {
  background: var(--surface);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 24px;
}
.section-nav {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-nav a {
  padding: 8px 0 16px;
  text-decoration: none;
  font-weight: 700;
}
.section-nav a:hover {
  text-decoration: underline;
}
.section-nav span {
  font-size: 12px;
  margin-left: 4px;
  color: var(--muted);
}
section {
  scroll-margin-top: 24px;
}
.main-episode {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 48px;
}
.wide-player {
  display: block;
  aspect-ratio: 16/9;
  width: 100%;
  background: #111;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading span {
  font-size: 14px;
  color: var(--muted);
}
aside .section-heading {
  display: block;
}
aside .section-heading span {
  display: block;
  margin-top: 8px;
}
.download {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-size: 14px;
}
.download:hover span {
  text-decoration: underline;
}
.download span {
  flex: 1;
  overflow-wrap: anywhere;
}
.download small {
  white-space: nowrap;
  font-size: 12px;
}
.downloads {
  margin-bottom: 16px;
}
details {
  border-bottom: 1px solid var(--rule);
}
summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  min-height: 48px;
}
summary span {
  float: right;
  color: var(--muted);
  font-weight: 400;
}
.text-body {
  padding-bottom: 16px;
}
.copy-row {
  display: flex;
  justify-content: flex-end;
}
.copy-text {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.chapters ol {
  list-style: none;
  margin: 0;
  padding: 0 0 16px;
}
.chapters button {
  display: flex;
  text-align: left;
  justify-content: flex-start;
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  padding: 8px;
}
.chapters button:hover {
  background: var(--surface);
}
.chapters time {
  min-width: 48px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.clip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
}
.clip video {
  width: 100%;
  aspect-ratio: 9/16;
  display: block;
  background: #111;
  object-fit: contain;
  margin-bottom: 16px;
}
.clip .meta {
  margin-bottom: 8px;
}
.clip h3 {
  min-height: 76px;
}
.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 16px;
}
.thumbnail-grid figure {
  margin: 0;
  min-width: 0;
}
.thumbnail-grid img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #f4f6f7;
}
.thumbnail-grid .download {
  font-size: 12px;
  flex-wrap: wrap;
  gap: 6px;
}
.thumbnail-grid .download small {
  display: none;
}
#clips {
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.pamflet {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 220px minmax(0, 550px);
  gap: 48px;
  align-items: center;
  margin-top: 56px;
  padding: 40px 0;
}
.pamflet img {
  width: 220px;
  border: 1px solid var(--rule);
}
.pamflet h2 {
  font-size: 30px;
}
.actions {
  margin: 24px 0 12px;
}
#files {
  padding-top: 32px;
}
.shared-files {
  max-width: 720px;
}
.login {
  max-width: 440px;
  margin: 40px auto 80px;
}
.login h1 {
  font-size: 36px;
}
.login form {
  margin-top: 32px;
}
.login label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.login input:not([type="hidden"]) {
  width: 100%;
  height: 48px;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: white;
  color: var(--text);
  padding: 8px 12px;
  margin-bottom: 24px;
}
.login button {
  width: 100%;
}
.error {
  color: #9b2323;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 8px;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  max-width: calc(100% - 32px);
  border-radius: 4px;
  display: none;
}
#toast.visible {
  display: block;
}
.empty {
  padding: 40px 0;
}
@media (min-width: 1100px) {
  .clip video {
    width: min(100%, 304px);
    margin-inline: auto;
  }
  .clip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .episode-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .main-episode {
    grid-template-columns: 1fr;
  }
  .clip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-header {
    padding: 20px 24px;
  }
  .private {
    display: none;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  main {
    padding: 28px 20px 48px;
  }
  .site-header {
    padding: 20px;
    gap: 12px;
  }
  .brand {
    font-size: 20px;
  }
  .brand span {
    font-size: 12px;
    max-width: 230px;
  }
  .site-header .quiet {
    font-size: 12px;
    padding: 4px;
  }
  .site-header .quiet svg {
    display: none;
  }
  h1,
  .login h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 24px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .count {
    white-space: nowrap;
  }
  .clip-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .clip video {
    max-height: 620px;
  }
  .clip h3 {
    min-height: 0;
  }
  .section-nav {
    gap: 12px 24px;
  }
  .section-nav a {
    font-size: 14px;
  }
  .pamflet {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pamflet img {
    width: 180px;
  }
  .pamflet h2 {
    font-size: 26px;
  }
  .credits {
    gap: 24px;
    flex-wrap: wrap;
  }
  .login {
    margin: 24px auto 48px;
  }
  .review-status {
    align-items: flex-start;
  }
  .lead {
    font-size: 17px;
  }
  .section-heading span {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
