:root {
  --homer-green: #ade73a;
  --spring-green: #80c51f;
  --homer-yellow: #fbd800;
  --ink: #171511;
  --ink-soft: #373228;
  --paper: #fff9dc;
  --cream: #f7edbf;
  --red: #e53935;
  --blue: #2f80c9;
  --shadow: 0 24px 60px rgba(23, 21, 17, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--homer-green);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  background: var(--homer-green);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: #115d91;
}

a:hover,
a:focus {
  color: #0b3d60;
}

img,
iframe {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(23, 21, 17, 0.92);
  box-shadow: 0 8px 26px rgba(23, 21, 17, 0.24);
  backdrop-filter: blur(10px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  min-height: 64px;
  margin: 0 auto;
}

.site-nav .brand {
  color: var(--homer-yellow);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-links a {
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(251, 216, 0, 0.16);
  color: var(--homer-yellow);
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100svh - 150px);
  padding: clamp(2.25rem, 6vw, 4.5rem) 0;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.panel h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(3.35rem, 10.5vw, 7.6rem);
  text-transform: uppercase;
}

.lede {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  font-weight: 700;
}

.hero-note {
  max-width: 39rem;
  margin: 1rem 0 0;
  border-left: 5px solid var(--red);
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 1.25vw, 1.04rem);
  font-weight: 800;
  line-height: 1.4;
  padding-left: 1rem;
}

.hero-actions,
.panel-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 0.72rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus {
  color: var(--ink);
  text-decoration: none;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button.primary {
  background: var(--homer-yellow);
}

.button.secondary {
  background: #ffffff;
}

.hero-art {
  display: grid;
  place-items: center;
  min-height: 360px;
}

.homer-portrait {
  width: 235px;
  height: 333px;
  transform: rotate(-2deg);
}

.homer-portrait #homer {
  position: relative;
  margin: 0;
  transform: scale(2.5);
  transform-origin: top left;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 clamp(3rem, 7vw, 5rem);
}

.quick-facts > div,
.panel,
.build-card {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 249, 220, 0.92);
  box-shadow: 8px 8px 0 rgba(23, 21, 17, 0.9);
}

.quick-facts > div {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.fact-label,
.team-list span {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-facts strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.quick-facts span:last-child {
  color: var(--ink-soft);
  font-weight: 700;
}

.feature-section,
.garage,
.feature-grid {
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.section-heading h2,
.panel h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.video-frame {
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.accent-panel {
  background: #ffffff;
}

.panel p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 700;
}

.team-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.team-list li {
  border-top: 2px solid rgba(23, 21, 17, 0.14);
  padding-top: 1rem;
}

.team-list strong {
  display: block;
  margin: 0.18rem 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.garage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.build-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.build-card img {
  width: 100%;
  height: 220px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  object-fit: cover;
  background: var(--cream);
}

.build-card h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.build-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 700;
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem);
}

.subpage-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.4rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

.subpage-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(23, 21, 17, 0.9);
  padding: 1rem;
}

.subpage-card img {
  width: 78px;
  height: auto;
}

.subpage-card strong,
.subpage-card span {
  display: block;
}

.subpage-card strong {
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.subpage-card span:last-child {
  color: var(--ink-soft);
  font-weight: 800;
}

.media-section {
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.compact-heading {
  margin-bottom: 1rem;
}

.press-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
}

.press-feature-stack {
  display: grid;
  gap: 1rem;
}

.press-feature-card,
.coverage-list a {
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.press-feature-card {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  justify-content: flex-end;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(23, 21, 17, 0.9);
  padding: clamp(1rem, 3vw, 1.6rem);
}

.press-feature-card:hover,
.press-feature-card:focus,
.coverage-list a:hover,
.coverage-list a:focus {
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 rgba(23, 21, 17, 0.9);
}

.press-feature-card-large {
  min-height: 370px;
  background:
    linear-gradient(rgba(23, 21, 17, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 17, 0.08) 1px, transparent 1px),
    var(--homer-yellow);
  background-size: 28px 28px;
}

.press-feature-stack .press-feature-card:nth-child(2) {
  background: #d9f2ff;
}

.press-feature-stack .press-feature-card:nth-child(3) {
  background: #ffffff;
}

.press-feature-card span,
.coverage-list span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.press-feature-card strong {
  display: block;
  max-width: 780px;
  margin-top: 0.45rem;
  font-size: clamp(1.35rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.02;
}

.press-feature-card-large strong {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.press-feature-card p {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  font-weight: 800;
}

.press-feature-card em,
.coverage-list em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 1rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--ink);
  color: #115d91;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  padding: 0.45rem 0.65rem;
  text-transform: uppercase;
}

.coverage-list {
  display: grid;
  gap: 0;
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 249, 220, 0.94);
  box-shadow: 8px 8px 0 rgba(23, 21, 17, 0.9);
  overflow: hidden;
  padding: 0;
  list-style: none;
}

.coverage-list li + li {
  border-top: 2px solid rgba(23, 21, 17, 0.16);
}

.coverage-list a {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 76px;
  padding: 0.9rem 1rem;
}

.coverage-list strong {
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 900;
  line-height: 1.12;
}

.coverage-list em {
  margin-top: 0;
  white-space: nowrap;
}

@media (max-width: 840px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    padding-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 2.5rem;
  }

  .hero-art {
    min-height: 240px;
    order: -1;
  }

  .homer-portrait {
    width: 150px;
    height: 213px;
  }

  .homer-portrait #homer {
    transform: scale(1.6);
  }

  .quick-facts,
  .feature-grid,
  .garage-grid,
  .subpage-hero,
  .press-feature-grid {
    grid-template-columns: 1fr;
  }

  .coverage-list a {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    align-items: start;
  }

  .coverage-list em {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  main,
  .site-nav {
    width: min(100% - 1rem, 1120px);
  }

  .site-header {
    position: static;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .nav-links a {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.5rem 0;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.5rem);
  }

  .button {
    width: 100%;
  }

  .quick-facts > div,
  .panel,
  .build-card,
  .subpage-card,
  .press-feature-card,
  .coverage-list {
    box-shadow: 5px 5px 0 rgba(23, 21, 17, 0.9);
  }

  .subpage-hero h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .subpage-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .subpage-card img {
    width: 64px;
  }

  .press-feature-card-large {
    min-height: 300px;
  }

  .press-feature-card {
    min-height: 150px;
  }

  .build-card {
    grid-template-columns: 1fr;
  }

  .build-card img {
    height: auto;
    max-height: 360px;
    object-fit: contain;
  }
}
