:root {
  --black: #0a0a09;
  --black-2: #161411;
  --orange: #f05223;
  --paper: #eee5d5;
  --paper-2: #d3c4af;
  --lime: #d8ff29;
  --line: rgba(238, 229, 213, 0.24);
  --serif: "Newsreader", serif;
  --sans: "Source Sans 3", sans-serif;
  --cond: "Archivo Narrow", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font: 17px/1.55 var(--sans);
}
a {
  color: inherit;
}
a,
button {
  cursor: pointer;
}
a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 5px;
}
::selection {
  background: var(--orange);
  color: var(--black);
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--lime);
  color: var(--black);
  padding: 0.7rem 1rem;
}
.skip-link:focus {
  top: 1rem;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.055;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}
.library-header {
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font: 500 1.7rem/1 var(--serif);
  text-decoration: none;
  letter-spacing: -0.04em;
}
.wordmark i {
  color: var(--orange);
  font-weight: 400;
}
.archive-status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font: 600 0.68rem var(--mono);
  letter-spacing: 0.05em;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(240, 82, 35, 0.13);
}
.latest-link {
  justify-self: end;
  color: var(--paper-2);
  font: 600 0.72rem var(--cond);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.library-hero {
  min-height: 740px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  align-items: center;
  gap: 5vw;
  padding: 8rem 7vw 9rem;
  overflow: hidden;
  background: radial-gradient(
    circle at 75% 38%,
    rgba(240, 82, 35, 0.14),
    transparent 30%
  );
}
.library-hero::after {
  content: "ARCHIVE";
  position: absolute;
  right: -1.5rem;
  bottom: -4.5rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 229, 213, 0.12);
  font: 500 13rem/1 var(--cond);
  letter-spacing: -0.05em;
}
.archive-code {
  color: var(--orange);
  font: 600 0.65rem var(--mono);
  letter-spacing: 0.09em;
}
.hero-copy h1 {
  max-width: 1100px;
  margin: 1.2rem 0 2rem;
  font: 500 clamp(4.7rem, 8.5vw, 8.5rem) / 0.82 var(--serif);
  letter-spacing: -0.055em;
}
.hero-copy h1 i {
  color: var(--orange);
  font-weight: 400;
}
.hero-intro {
  max-width: 610px;
  color: var(--paper-2);
  font-size: 1.2rem;
}
.hero-reel {
  justify-self: center;
  width: 250px;
  aspect-ratio: 1;
  border: 1px solid var(--orange);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  animation: reelIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-reel::before,
.hero-reel::after {
  content: "";
  position: absolute;
  inset: 19%;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.hero-reel::after {
  inset: 43%;
  background: var(--orange);
  border: 0;
}
.hero-reel b {
  font: 500 4rem var(--serif);
  z-index: 1;
}
.hero-reel span {
  position: absolute;
  font: 600 0.57rem var(--mono);
  color: var(--orange);
}
.hero-reel span:first-child {
  top: 15%;
}
.hero-reel span:last-child {
  bottom: 15%;
}
.hero-note {
  position: absolute;
  right: 5vw;
  bottom: 3rem;
  width: 300px;
  transform: rotate(-2deg);
  color: var(--orange);
  border-bottom: 1px solid var(--orange);
}
.hero-note span {
  font: 600 0.57rem var(--mono);
}
.hero-note p {
  margin: 0.35rem 0 0.7rem;
  font: italic 1.08rem var(--serif);
}
@keyframes reelIn {
  from {
    transform: rotate(-18deg) scale(0.85);
    opacity: 0;
  }
  to {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}
.archive {
  background: var(--paper);
  color: var(--black);
  padding: 8rem 5vw 10rem;
}
.archive-heading {
  max-width: 1380px;
  margin: 0 auto 5rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
  border-bottom: 1px solid var(--black);
  padding-bottom: 1.4rem;
}
.archive-heading span {
  color: #a33417;
  font: 700 0.65rem var(--mono);
  letter-spacing: 0.08em;
}
.archive-heading h2 {
  margin: 0.5rem 0 0;
  font: 500 clamp(3.5rem, 6vw, 6rem) / 0.9 var(--serif);
  letter-spacing: -0.05em;
}
.archive-heading p {
  max-width: 330px;
  margin: 0;
  font-size: 0.85rem;
}
.class-library {
  max-width: 1380px;
  margin: auto;
}
.loading {
  font: 500 1.3rem var(--serif);
}
.class-entry {
  display: grid;
  grid-template-columns: 90px minmax(380px, 1.1fr) minmax(320px, 0.9fr);
  min-height: 620px;
  border-bottom: 1px solid var(--black);
  padding-bottom: 6rem;
  gap: 3vw;
}
.class-entry + .class-entry {
  padding-top: 6rem;
}
.entry-index {
  border-right: 1px solid var(--black);
  padding-top: 0.8rem;
}
.entry-index span {
  display: block;
  font: 700 0.62rem var(--mono);
  writing-mode: vertical-rl;
}
.entry-index b {
  display: block;
  margin-top: 1rem;
  color: var(--orange);
  font: 500 3rem var(--serif);
}
.entry-visual {
  display: block;
  position: relative;
  align-self: start;
  height: 540px;
  overflow: hidden;
  background: var(--black);
  border: 1px solid var(--black);
  color: white;
}
.entry-visual .poster {
  width: 100%;
  height: 72%;
  display: block;
  object-fit: cover;
  opacity: 0.88;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s;
}
.entry-visual:hover .poster {
  transform: scale(1.025);
  opacity: 1;
}
.frame-sequence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 28%;
  gap: 2px;
  padding: 2px;
}
.frame-sequence img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72);
}
.film-holes {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 10px;
  z-index: 2;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 11px,
    var(--paper) 12px 23px,
    transparent 24px 35px
  );
  opacity: 0.7;
}
.film-holes.bottom {
  top: auto;
  bottom: 10px;
}
.play-seal {
  position: absolute;
  left: calc(50% - 56px);
  top: calc(43% - 56px);
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--orange);
  color: var(--black);
  border-radius: 50%;
  font: 700 0.72rem/1.1 var(--cond);
  letter-spacing: 0.08em;
}
.play-seal i {
  display: block;
  font: 400 1.2rem var(--sans);
}
.entry-copy {
  padding: 1rem 0 0;
}
.entry-meta {
  display: flex;
  gap: 1.2rem;
  color: #a33417;
  font: 600 0.61rem var(--mono);
}
.entry-copy h3 {
  margin: 1.2rem 0 1.5rem;
  font: 500 clamp(3rem, 5vw, 5.3rem) / 0.88 var(--serif);
  letter-spacing: -0.05em;
}
.entry-copy h3 a {
  text-decoration: none;
}
.entry-copy blockquote {
  margin: 0 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  font: italic 1.35rem/1.2 var(--serif);
}
.entry-copy > p {
  max-width: 52ch;
}
.entry-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  list-style: none;
  margin: 2rem 0 3rem;
  padding: 0;
  font: 700 0.68rem var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.entry-copy li::before {
  content: "/";
  color: var(--orange);
  margin-right: 0.4rem;
}
.entry-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.entry-actions a {
  font: 700 0.72rem var(--cond);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.entry-actions .primary {
  display: inline-flex;
  justify-content: space-between;
  min-width: 190px;
  padding: 0.85rem 1rem;
  background: var(--black);
  color: var(--paper);
}
.entry-actions .primary span {
  color: var(--lime);
}
.next-reel {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6vw;
  padding: 6rem 8vw;
  background: var(--orange) url("assets/tape-grain.png");
  background-blend-mode: soft-light;
  color: var(--black);
  overflow: hidden;
}
.next-reel .perforations {
  position: absolute;
  left: 0;
  right: 0;
  top: 1rem;
  height: 15px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 18px,
    var(--black) 19px 32px,
    transparent 33px 50px
  );
  opacity: 0.7;
}
.next-reel .perforations.bottom {
  top: auto;
  bottom: 1rem;
}
.next-copy > span {
  font: 700 0.62rem var(--mono);
}
.next-copy h2 {
  margin: 0.8rem 0 1rem;
  font: 500 clamp(3.2rem, 6vw, 6rem) / 0.88 var(--serif);
  letter-spacing: -0.05em;
}
.next-copy p {
  max-width: 520px;
}
.empty-frame {
  justify-self: center;
  width: min(100%, 520px);
  height: 230px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--black);
  position: relative;
  background: rgba(238, 229, 213, 0.12);
}
.empty-frame span {
  font: 500 8rem/1 var(--serif);
  opacity: 0.18;
}
.empty-frame b {
  position: absolute;
  transform: rotate(-4deg);
  padding: 0.7rem 1rem;
  background: var(--paper);
  font: 700 0.75rem var(--mono);
}
footer {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 5vw;
  border-top: 1px solid var(--line);
}
footer p {
  color: var(--paper-2);
  font-size: 0.8rem;
}
footer > span {
  color: var(--orange);
  font: 600 0.62rem var(--mono);
}
@media (max-width: 950px) {
  .library-hero {
    grid-template-columns: 1fr;
    padding-bottom: 11rem;
  }
  .hero-reel {
    position: absolute;
    right: 5vw;
    bottom: 3rem;
    width: 150px;
  }
  .hero-note {
    left: 6vw;
    right: auto;
  }
  .class-entry {
    grid-template-columns: 65px 1fr;
  }
  .entry-copy {
    grid-column: 2;
  }
  .entry-visual {
    height: 480px;
  }
  .next-reel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  body {
    font-size: 16px;
  }
  .library-header {
    height: 68px;
    grid-template-columns: 1fr auto;
    padding: 0 1rem;
  }
  .archive-status {
    display: none;
  }
  .latest-link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .wordmark {
    font-size: 1.45rem;
  }
  .library-hero {
    min-height: 690px;
    padding: 5rem 1.2rem 11rem;
  }
  .hero-copy h1 {
    font-size: clamp(4rem, 18vw, 5.8rem);
  }
  .hero-intro {
    font-size: 1.05rem;
  }
  .hero-note {
    left: 1.2rem;
    bottom: 2.5rem;
    width: 230px;
  }
  .hero-reel {
    right: -1rem;
    bottom: 2rem;
    width: 120px;
  }
  .library-hero::after {
    font-size: 7rem;
  }
  .archive {
    padding: 5rem 1rem 6rem;
  }
  .archive-heading {
    display: block;
    margin-bottom: 3rem;
  }
  .archive-heading p {
    margin-top: 1.5rem;
  }
  .class-entry {
    display: block;
    min-height: 0;
    padding-bottom: 5rem;
  }
  .entry-index {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    border: 0;
    padding: 0 0 0.7rem;
  }
  .entry-index span {
    writing-mode: initial;
  }
  .entry-index b {
    margin: 0;
    font-size: 2rem;
  }
  .entry-visual {
    height: 390px;
  }
  .entry-copy h3 {
    font-size: 3.2rem;
  }
  .entry-actions a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }
  .next-reel {
    padding: 5rem 1rem;
  }
  .empty-frame {
    height: 190px;
  }
  .empty-frame span {
    font-size: 6rem;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 2.5rem 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
