/*
 * Rate the Slop studio theme. Shared by the static site, the jury desk and
 * the API-rendered verdict pages, so it lives at a stable public URL.
 */
@font-face {
  font-family: "Bungee";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bungee-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Shrikhand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/shrikhand-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-400-italic.woff2")
    format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "DSEG7 Classic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dseg7-classic-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --stage: #140b14;
  --stage-raised: #211220;
  --stage-edge: #3a2134;
  --velvet: #b0142f;
  --velvet-deep: #5e0a1a;
  --bulb: #ffd166;
  --bulb-glow: rgba(255, 209, 102, 0.45);
  --cream: #fff4dc;
  --cream-dim: #d9c7ad;
  --paper: #f6e9cc;
  --ink: #140b14;
  --clean: #fff4dc;
  --mild: #ffd166;
  --premium: #ff8a3d;
  --full: #a6e22e;
  --danger: #ff6b6b;
  --font-display: "Bungee", "Arial Black", Impact, sans-serif;
  --font-script: "Shrikhand", "Brush Script MT", cursive;
  --font-body:
    "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI",
    sans-serif;
  --font-digits: "DSEG7 Classic", ui-monospace, Menlo, monospace;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--stage);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font:
    400 1.0625rem/1.6 var(--font-body),
    sans-serif;
  background:
    var(--grain),
    radial-gradient(
      ellipse 70% 55% at 50% -10%,
      rgba(255, 209, 102, 0.16),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 40% at 0% 100%,
      rgba(176, 20, 47, 0.22),
      transparent 70%
    ),
    var(--stage);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--bulb);
  outline-offset: 3px;
}

.wrap {
  width: min(1240px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Marquee: the lit sign at the top of every public page. */
.marquee {
  position: relative;
  border-bottom: 3px solid var(--bulb);
  background: linear-gradient(180deg, #2a0d1b, var(--velvet-deep));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 10px;
  background: radial-gradient(
      circle,
      var(--bulb) 0 2.6px,
      rgba(255, 209, 102, 0.25) 3.4px,
      transparent 4.5px
    )
    0 50% / 22px 10px repeat-x;
  /* Three chases (about 4s), so the motion stops on its own (WCAG 2.2.2). */
  animation: bulb-chase 1.4s steps(2) 3;
}
.marquee::before {
  top: 4px;
}
.marquee::after {
  bottom: 4px;
  animation-direction: reverse;
}
@keyframes bulb-chase {
  to {
    background-position: 11px 50%;
  }
}
.marquee__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.6rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  line-height: 1;
}
.brand__rate {
  color: var(--cream);
  font: 400 clamp(1rem, 2.4vw, 1.35rem) / 1 var(--font-display);
  letter-spacing: 0.04em;
}
.brand__slop {
  color: var(--full);
  font: 400 clamp(2rem, 5vw, 2.9rem) / 0.9 var(--font-script);
  text-shadow:
    0 0 18px rgba(166, 226, 46, 0.45),
    3px 3px 0 var(--ink);
  transform: rotate(-4deg);
}

.marquee__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font: 400 0.85rem/1 var(--font-display);
  letter-spacing: 0.04em;
}
.marquee__nav a {
  text-decoration: none;
  color: var(--bulb);
}
.marquee__nav a:hover {
  text-decoration: underline;
}

/* The gauge housing used by the homepage and verdict meters. */
.meter-housing {
  border-radius: 999px 999px 18px 18px;
  padding: 1rem 1rem 0.25rem;
  background: radial-gradient(ellipse at 50% 100%, #2e1828, #0f080f 75%);
  box-shadow: inset 0 0 0 2px var(--stage-edge);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--bulb);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

blockquote.twitter-tweet {
  margin: 0;
  border: 2px dashed var(--stage-edge);
  border-radius: 10px;
  padding: 2rem 1rem;
  text-align: center;
  font-weight: 700;
}
.curtain {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 3px solid var(--velvet);
  padding: 2.5rem 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.22) 0 18px,
      transparent 18px 40px
    ),
    linear-gradient(180deg, var(--velvet-deep), #1b0710);
  color: var(--cream-dim);
  font-size: 0.92rem;
}
.curtain__inner p {
  margin: 0 0 0.6rem;
  max-width: 62ch;
}
.curtain__sign {
  color: var(--cream);
  font: 400 1.6rem/1.1 var(--font-script);
}
.curtain__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 1rem;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
