@font-face {
  font-family: "Swerve Baskervville";
  src: url("./assets/Baskervville-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Swerve Inter";
  src: url("./assets/Inter-Latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Swerve Caveat";
  src: url("./assets/Caveat-650.ttf") format("truetype");
  font-weight: 650;
  font-display: swap;
}

.sections-preview {
  margin: 0;
  background: #faf8f3;
}

.swerve-sections {
  --swerve-ink: #222621;
  --swerve-muted: #555851;
  --swerve-line: #dbd7cc;
  --swerve-accent: #974d2a;
  --swerve-serif: "Swerve Baskervville", Georgia, serif;
  --swerve-sans: "Swerve Inter", system-ui, sans-serif;
  color: var(--swerve-ink);
  font-family: var(--swerve-sans);
  font-weight: 400;
  max-width: 1136px;
  margin-inline: auto;
  padding: clamp(42px, 6.5vw, 88px) clamp(22px, 5vw, 66px) clamp(58px, 7vw, 94px);
}

.swerve-sections * {
  box-sizing: border-box;
}

.swerve-sections h2 {
  margin: 0;
  font: 500 clamp(33px, 4vw, 45px)/1.04 var(--swerve-serif);
  letter-spacing: -.045em;
  text-align: center;
}

.swerve-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.5fr) minmax(0, 1fr);
  grid-template-rows: 34px 1fr auto auto 1fr;
  column-gap: clamp(19px, 2.5vw, 34px);
  margin-top: clamp(38px, 6vw, 68px);
  padding-top: clamp(24px, 4vw, 41px);
  border-top: 1px solid var(--swerve-line);
}

.swerve-intro__film {
  grid-area: 1 / 2 / -1;
  align-self: center;
  min-width: 0;
}

.swerve-intro__film h2 {
  margin-bottom: 20px;
}

.swerve-intro__player {
  position: relative;
  isolation: isolate;
  border-radius: 5px;
  overflow: hidden;
  background: #1d252b;
}

.swerve-intro__player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: contain;
}

.swerve-intro__play {
  position: absolute;
  inset: auto auto 18px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 10px 13px;
  border: 1px solid #f9f3e366;
  border-radius: 4px;
  background: #1b2424f2;
  color: #fffaf1;
  font: 500 13px/1.25 var(--swerve-sans);
  cursor: pointer;
  transition: background-color 150ms;
}

.swerve-intro__play:hover {
  background: #293735;
}

.swerve-intro__play:focus-visible {
  outline: 2px solid #ffd7a1;
  outline-offset: 4px;
}

.swerve-sections [hidden] {
  display: none;
}

.swerve-intro__play-icon {
  width: 0;
  height: 0;
  border-block: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.swerve-intro__duration {
  margin-left: 1px;
  padding-left: 9px;
  border-left: 1px solid #fffaf15c;
  color: #f3d2a6;
  font-variant-numeric: tabular-nums;
}

.swerve-intro__media-error {
  position: absolute;
  inset: 12px 12px auto;
  margin: 0;
  padding: 10px 14px;
  background: #202626;
}

.swerve-intro__media-error a {
  color: #fffaf1;
}

.swerve-feature-rail {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 3 / span 2;
  margin: 0;
}

.swerve-feature-rail--left {
  grid-column: 1;
}

.swerve-feature-rail--right {
  grid-column: 3;
}

.swerve-feature-rail > div {
  padding: 17px 0;
  border-top: 1px solid var(--swerve-line);
}

.swerve-feature-rail dt {
  margin-bottom: 5px;
  color: var(--swerve-accent);
  font: 650 clamp(24px, 2.3vw, 30px)/1.04 "Swerve Caveat", cursive;
}

.swerve-feature-rail dd {
  margin: 0;
  color: var(--swerve-muted);
  font-size: 14px;
  line-height: 1.58;
}

.swerve-abstract h2 {
  margin-bottom: clamp(18px, 2.5vw, 27px);
}

.swerve-abstract__text {
  max-width: 1000px;
  margin-inline: auto;
  text-align: left;
  color: var(--swerve-muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.7;
}

.swerve-abstract__text p {
  margin: 0;
}

.swerve-abstract__text p + p {
  margin-top: 13px;
}

.swerve-abstract__text strong {
  color: var(--swerve-accent);
  font-weight: 650;
}

@media (max-width: 930px) {
  .swerve-intro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    column-gap: 22px;
  }

  .swerve-intro__film {
    grid-area: 1 / 1 / 2 / -1;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 22px;
  }

  .swerve-feature-rail {
    grid-row: 2 / span 2;
  }

  .swerve-feature-rail--right {
    grid-column: 2;
  }

  .swerve-feature-rail > div {
    padding: 13px 0;
  }
}

@media (max-width: 430px) {
  .swerve-feature-rail dt {
    overflow-wrap: anywhere;
  }

  .swerve-intro__play {
    bottom: 12px;
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swerve-intro__play {
    transition: none;
  }
}
