/* Fourth & 312 | Chicago Bears Stats & Storylines
   Palette sampled from the logo artwork:
   navy #111A2B · cream #F7EADB · burnt orange #D4582A */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #111A2B;
  --navy-deep: #0B1220;
  --navy-raised: #18243A;
  --cream: #F7EADB;
  --cream-muted: #CFC4B6;
  --orange: #D4582A;
  --orange-hover: #E2662F;
  --orange-text: #E8723F; /* brighter tint for small text on navy (AA contrast) */

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 40px);
  --max: 1120px;
  --chamfer: 12px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(40px, 8vw, 96px);
  background:
    radial-gradient(ellipse 38% 34% at 0% 0%, rgba(247, 234, 219, 0.10), transparent 70%),
    radial-gradient(ellipse 38% 34% at 100% 0%, rgba(247, 234, 219, 0.10), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(212, 88, 42, 0.16), transparent 75%),
    var(--navy);
}

/* Yard lines and hash marks, faded at the edges */
.hero__field {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(247, 234, 219, 0.055) 0 2px, transparent 2px 100%) 50% 0 / clamp(72px, 12vw, 140px) 100%,
    repeating-linear-gradient(0deg, rgba(247, 234, 219, 0.04) 0 2px, transparent 2px 100%) 50% 0 / 100% 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 55%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 55%, #000 30%, transparent 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: calc(880px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(56px, 9vw, 112px);
}

.hero__logo {
  display: block;
  width: min(100%, 520px);
}
.hero__logo img { width: 100%; }

.hero__title {
  margin-top: clamp(28px, 5vw, 44px);
  font-family: var(--display);
  font-weight: 900;
  /* sized so "Stats & Storylines" holds one line down to 320px screens */
  font-size: clamp(2rem, 9.6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero__title .line { display: block; }

/* Short orange marker above the headline */
.hero__title::before {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin: 0 auto clamp(18px, 3vw, 26px);
  background: var(--orange);
}

.amp { color: var(--orange); }

.hero__lede {
  max-width: 34ch;
  margin-top: clamp(16px, 2.5vw, 22px);
  color: var(--cream-muted);
  font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  line-height: 1.5;
}

.hero__actions {
  margin-top: clamp(28px, 4vw, 36px);
}

/* ---------- Button (chamfered like the logo letterforms) ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 30px;
  color: var(--navy-deep);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange);
  clip-path: polygon(
    var(--chamfer) 0, calc(100% - var(--chamfer)) 0,
    100% var(--chamfer), 100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%, var(--chamfer) 100%,
    0 calc(100% - var(--chamfer)), 0 var(--chamfer)
  );
  transition: background-color 0.15s ease;
}

.btn:hover::before { background: var(--orange-hover); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__icon {
  width: 20px;
  height: 20px;
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before { transition: none; }
  .btn:hover { transform: none; }
}

/* Sleeve stripes between hero and the cream section */
.stripes { display: flex; flex-direction: column; }
.stripes span { display: block; }
.stripes span:nth-child(1) { height: 4px; background: var(--cream); }
.stripes span:nth-child(2) { height: 6px; background: var(--navy); }
.stripes span:nth-child(3) { height: 10px; background: var(--orange); }

/* ---------- What you'll get ---------- */
.coverage {
  background: var(--cream);
  color: var(--navy);
  padding-block: clamp(56px, 9vw, 112px);
}

.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.5rem, 1.8rem + 3.2vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin-top: 16px;
  background: var(--orange);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: clamp(32px, 5vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  padding: 28px 24px 30px;
  background: var(--navy);
  color: var(--cream);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.card__num {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 3.25rem;
  line-height: 0.9;
  color: var(--orange);
}

.card__title {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.875rem, 1.6rem + 0.9vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.card__text {
  margin-top: 12px;
  color: var(--cream-muted);
  text-wrap: pretty;
}

@media (min-width: 820px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .card { padding: 34px 30px 38px; }
  .card__num { font-size: 4rem; }
}

/* ---------- Featured fan debate ---------- */
.debate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 11vw, 136px);
  background:
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(212, 88, 42, 0.14), transparent 70%),
    var(--navy);
  scroll-margin-top: 0;
}

.debate__ghost {
  position: absolute;
  right: -0.06em;
  bottom: -0.2em;
  z-index: -1;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(11rem, 42vw, 30rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(247, 234, 219, 0.08);
  user-select: none;
  pointer-events: none;
}

.debate__inner {
  position: relative;
}

.debate__inner > * {
  max-width: 820px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--orange-text);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 4px;
  background: var(--orange);
  flex: none;
}

.debate__title {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 1.9rem + 5.2vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.accent { color: var(--orange); }

.debate__lead {
  margin-top: clamp(24px, 4vw, 36px);
  padding-left: 18px;
  border-left: 6px solid var(--orange);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.375rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.debate__question {
  max-width: 38ch;
  margin-top: clamp(18px, 3vw, 24px);
  color: var(--cream-muted);
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  border-top: 4px solid var(--orange);
  padding-block: 36px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__logo { display: block; width: 128px; }
.footer__logo img { width: 100%; }

.footer__text {
  color: var(--cream-muted);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
