@font-face {
  font-family: "News Cycle";
  src: url("/assets/fonts/NewsCycle-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "News Cycle";
  src: url("/assets/fonts/NewsCycle-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "League Gothic";
  src: url("/assets/fonts/LeagueGothic-wdth.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --paper: #0a0a0a;
  --ink: #f4f2ed;
  --rule: rgba(244, 242, 237, 0.26);
  --accent: #4b73ff;
  --header-height: 3.5rem;
  --header-pad: clamp(1.25rem, 2.6vw, 2.6rem);
  --brand-size: clamp(2.1rem, 2.6vw, 2.6rem);
  color-scheme: dark;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease;
}

a:focus-visible {
  text-decoration: none;
  outline: 1px solid currentColor;
  outline-offset: 0.22rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--header-pad);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 2.75rem;
  align-items: center;
  font-family: "League Gothic", "Arial Narrow", sans-serif;
  font-size: var(--brand-size);
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  font-family: "News Cycle", "Arial Narrow", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.nav-symbol {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  align-items: center;
  justify-content: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.8rem, 2.2vw, 2.15rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

/* Home */

.home-page {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.home-page .site-header {
  border-bottom: 0;
  background: rgba(10, 10, 10, 0.97);
}

.marquee-stage {
  position: relative;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));
  gap: 0;
  overflow: hidden;
  background: #000;
}

.noscript-message {
  position: absolute;
  z-index: 5;
  inset: 50% auto auto 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.marquee-row {
  --phase-offset: 0px;
  min-height: 0;
  overflow: hidden;
  background: #111;
  opacity: 0;
  transition: opacity 180ms ease;
}

.marquee-row:last-of-type {
  --phase-offset: clamp(-7rem, -6vw, -2.5rem);
}

.artwork-ready .marquee-row {
  opacity: 1;
}

.marquee-track {
  display: flex;
  width: max-content;
  height: 100%;
  transform: translateX(var(--phase-offset));
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex: none;
  height: 100%;
  gap: 0;
  padding-right: 0;
}

.cover {
  position: relative;
  flex: none;
  width: calc((100svh - var(--header-height)) / 3);
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
  user-select: none;
}

.cover:hover img {
  transform: scale(1.018);
}

.artwork-moving .marquee-row[data-direction="left"] .marquee-track {
  animation: marquee-left var(--duration) linear infinite;
}

.artwork-moving .marquee-row[data-direction="right"] .marquee-track {
  animation: marquee-right var(--duration) linear infinite;
}

.marquee-row:hover .marquee-track,
.marquee-row:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-left {
  from {
    transform: translateX(var(--phase-offset));
  }
  to {
    transform: translateX(calc(-50% + var(--phase-offset)));
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(calc(-50% + var(--phase-offset)));
  }
  to {
    transform: translateX(var(--phase-offset));
  }
}

/* About */

.about-page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.about-main {
  flex: 1 0 auto;
  padding: clamp(3.8rem, 5vw, 5rem) clamp(2.5rem, 4.3vw, 4.4rem) 1.25rem;
}

.about-heading h1,
.legal-main h1 {
  margin: 0;
  font-size: clamp(5rem, 9.2vw, 9.15rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.about-heading h1 {
  font-size: clamp(3.75rem, 6.9vw, 6.85rem);
}

.about-heading span {
  display: block;
  width: 4.5rem;
  height: 2px;
  margin-top: clamp(2.75rem, 3.2vw, 3.25rem);
  background: var(--accent);
}

.about-copy {
  max-width: 72rem;
  margin-top: clamp(3.2rem, 3.5vw, 3.75rem);
}

.about-copy p {
  margin: 0;
  font-size: clamp(1.3rem, 2.15vw, 2.15rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.022em;
}

.about-copy p + p {
  margin-top: 2.2rem;
}

.credits {
  margin-top: clamp(2.8rem, 3.2vw, 3.5rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.credits h2 {
  margin: 0;
  padding: 1.7rem 0 0;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  font-weight: 500;
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0;
  padding: clamp(2rem, 2.8vw, 2.8rem) 0 clamp(2.7rem, 3.4vw, 3.4rem);
}

.credit-grid > div {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.credit-grid dt {
  font-size: clamp(2.8rem, 4.5vw, 4.55rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.045em;
}

.credit-grid dd {
  margin: 0;
  font-size: clamp(1.1rem, 1.65vw, 1.65rem);
  line-height: 1.15;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.8rem var(--header-pad) 2.1rem;
  font-size: clamp(0.9rem, 1.05vw, 1.05rem);
}

.site-footer > :last-child {
  justify-self: end;
}

.instagram-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.65rem;
}

.instagram-link svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.instagram-link .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.footer-domain {
  letter-spacing: 0.01em;
}

/* Privacy */

.legal-main {
  width: min(70rem, 100%);
  padding: clamp(4rem, 8vw, 8rem) var(--header-pad);
}

.legal-main h1 {
  margin-bottom: clamp(3.5rem, 6vw, 6rem);
}

.legal-main p {
  max-width: 48rem;
  margin: 0 0 1.5rem;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

@media (max-width: 760px) {
  :root {
    --header-height: 3.25rem;
  }

  .home-page {
    overflow: hidden;
  }

  .cover {
    width: calc((100svh - var(--header-height)) / 3);
  }

  .about-main {
    padding: 3.5rem 1.25rem 1rem;
  }

  .about-heading h1,
  .legal-main h1 {
    font-size: clamp(4.2rem, 23vw, 7rem);
  }

  .about-heading h1 {
    font-size: clamp(3.15rem, 17.25vw, 5.25rem);
  }

  .about-heading span {
    margin-top: 2.75rem;
  }

  .about-copy {
    margin-top: 3.25rem;
  }

  .about-copy p {
    font-size: 1.35rem;
  }

  .credit-grid {
    grid-template-columns: 1fr;
    gap: 2.1rem;
  }

  .credit-grid > div {
    justify-content: space-between;
    gap: 1rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    row-gap: 1.4rem;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .footer-domain {
    display: none;
  }
}

@media (hover: hover) {
  a:hover {
    text-decoration: none;
    opacity: 0.68;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-row {
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .marquee-track {
    animation: none !important;
    transform: none !important;
  }

  .cover {
    scroll-snap-align: start;
  }

  .cover img {
    transition: none;
  }
}
