:root {
  --bg: #FFFFFF;
  --bg-alt: #1d1d1d;
  --bg-bad: #C62D45;
  --fg: #494749;
  --muted: #C9C7C9;
  --rule: #E2E2E2;

  --accent: #C62D45;
  --accent-fg: #FDFF74;

  --font-body: "league-gothic", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body-weight: 400;
  --font-display: "adobe-aldine", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display-weight: 700;

  --measure: 34ch;
  --gap: 1.5rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: var(--font-body-weight);
  font-style: normal;
  font-size: 1.125rem;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 4rem 1.25rem;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  color: var(--fg);
  font-size: 3rem;
  line-height: 1.25;
  margin: 0;
  text-wrap: wrap;
}

h1 span {
  color: var(--bg);
  background-color: var(--accent);
  white-space: nowrap;
  padding: 0 15px 3px 15px;
  margin-top: 30px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero {
  background-color: var(--bg-alt);
  padding: 6rem 0;
  border-bottom: 1rem solid var(--accent-fg);
}

.hero h1 {
  color: var(--bg);
}

@media (max-width: 640px) {
  .hero {
    padding: 4rem 0;
  }

  .hero .container {
    max-width: none;
  }

  .hero h1 {
    font-size: 2.75rem;
  }
}

.spot {
  padding-top: 3rem;
}

.spot .container {
  max-width: 900px;
}

.narrative {
  padding-top: 2rem;
}

.narrative--good {
  padding-bottom: 0;
}

.narrative--good .media {
  border: solid 8px #abc8e2;
}

.narrative--bad {
  background: var(--bg-bad);
  padding-top: 0;
}

.narrative--bad .beat .beat__copy {
  color: var(--bg);
  text-shadow: 2px 2px 2px black;
}

.beat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
}

.narrative .col-8:first-child .beat {
  border-top: 0;
}

.narrative .col-8:nth-child(even) .beat__copy {
  order: 2;
}

.beat__copy p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  max-width: var(--measure);
  text-wrap: balance;
}

.beat__copy span {
  color: var(--accent-fg);
  white-space: nowrap;
}

.beat__media {
  margin: 0;
}

@media (max-width: 768px) {
  .beat {
    grid-template-columns: 1fr;
  }

  .narrative .col-8:nth-child(even) .beat__copy {
    order: 0;
  }
}

.close {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  text-align: center;
}

.close .container {
  max-width: 760px;
}

.close__line {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 auto 2.5rem;
  max-width: 28ch;
  text-wrap: balance;
}

.close__media {
  margin: 0 auto;
  max-width: 420px;
}

.media {
  width: 100%;
  box-shadow: 6px 8px 16px rgba(0, 0, 0, 0.65);
}

img.media {
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: auto;
  max-height: 80vh;
  min-height: 450px;
}

img.media.legislation {
  filter: grayscale(70%) contrast(110%);
  object-position: 75% 50%;
}

img.media.money {
  filter: contrast(110%);
  object-position: 45% 50%;
}

img.media.family {
  filter: grayscale(70%) contrast(110%);
  object-position: 70% 50%;
}

.media--video {
  aspect-ratio: 16 / 9;
}

.media--video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.media--portrait {
  aspect-ratio: 4 / 5;
  border: solid 8px #abc8e2;
}

.media.media--receipt {
  aspect-ratio: 4 / 3;
  object-position: 85% 50%;
  filter: grayscale(50%) contrast(120%);
}

.media:not([class*="media--"]) {
  aspect-ratio: 3 / 2;
}

.error-404 {
  min-height: 55vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-404 .container {
  max-width: 44ch;
}

.error-404 h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.error-404 p {
  margin: 0 auto 2rem;
}

.error-404 a {
  color: var(--fg);
  text-decoration: underline;
}

.site-footer {
  background-color: var(--bg-alt);
  padding: 5rem 1.25rem;
  border-top: 1px solid var(--rule);
}

.site-footer__disclaimer {
  max-width: 500px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 1rem 3rem;
  border: 1px solid var(--muted);
}