:root {
  /* NFL Brand Colors */
  --nfl-blue: #001D3C;
  --nfl-shield-blue: #003369;
  --nfl-blue-2: #06c;
  --nfl-blue-3: #09c;
  --nfl-impact-blue: #0074EE;
  --nfl-red: #d50a0a;
  --nfl-red-2: #900;
  --nfl-white: #fff;
  --nfl-gold: #b4975a;
  --nfl-silver: #8f8e90;
  --nfl-gridiron-black: #000;
  --nfl-grey-1: #455560;
  --nfl-grey-2: #8b99a1;
  --nfl-grey-3: #dae1e6;
  --nfl-shield-red: #d50A0A;

  /* Semantic tokens */
  --color-background: var(--nfl-blue);
  --color-text: #1a1a1a;
  --color-heading: var(--nfl-blue);
  --link-color: var(--nfl-blue-2);
  --link-hover-color: var(--nfl-blue);

  /* Typography */
  --body-font-family: 'All-Pro Sans', roboto, system-ui, 'Helvetica Neue', helvetica, arial, sans-serif;
  --heading-font-family: 'All-Pro Display', roboto-condensed, roboto, system-ui, 'Helvetica Neue', helvetica, arial, sans-serif;
  --heading-main-font-family: 'All-Pro Display B', roboto-condensed, roboto, system-ui, 'Helvetica Neue', helvetica, arial, sans-serif;  
  --body-font-size-m: 18px;
  --body-font-size-s: 16px;
  --body-font-size-xs: 14px;
  --heading-font-size-xxl: 48px;
  --heading-font-size-xl: 36px;
  --heading-font-size-l: 28px;
  --heading-font-size-m: 24px;
  --heading-font-size-s: 20px;
  --heading-font-size-xs: 16px;

  /* Layout */
  --nav-height: 64px;
  --section-max-width: 1200px;

  /* Motion */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Body */
body {
  display: none;
  margin: 0;
  font-family: var(--body-font-family);
  font-size: var(--body-font-size-m);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

body.appear {
  display: block;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font-family);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
  margin-top: 1em;
  margin-bottom: 0.5em;
  scroll-margin: calc(var(--nav-height) + 16px);
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h3 { font-size: var(--heading-font-size-l); }
h4 { font-size: var(--heading-font-size-m); }
h5 { font-size: var(--heading-font-size-s); }
h6 { font-size: var(--heading-font-size-xs); }

p,
dl,
ol,
ul,
pre,
blockquote {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
}

code,
pre {
  font-size: var(--body-font-size-s);
}

pre {
  padding: 16px;
  border-radius: 8px;
  background-color: #f4f6f8;
  overflow-x: auto;
  white-space: pre;
}

/* Main layout */
main > div {
  margin: 40px 16px;
}

input,
textarea,
select,
button {
  font: inherit;
}

/* Links */
a:any-link {
  color: var(--link-color);
  text-decoration: none;
  overflow-wrap: break-word;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* Buttons */
p.button-wrapper {
  margin: 12px 0;
}

a.button:any-link,
button.button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 14px 32px;
  transition: all var(--transition-fast);
  font-family: var(--body-font-family);
  font-weight: 600;
  font-size: var(--body-font-size-s);
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.button[aria-disabled="true"],
button.button:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

a.button.primary,
button.button.primary {
  background-color: var(--nfl-blue);
  border-color: var(--nfl-blue);
  color: var(--nfl-white);
}

a.button.primary:hover,
a.button.primary:focus-visible,
button.button.primary:hover,
button.button.primary:focus-visible {
  background-color: #024;
  border-color: #024;
}

a.button.secondary,
button.button.secondary {
  background-color: transparent;
  border-color: var(--nfl-blue);
  color: var(--nfl-blue);
}

a.button.secondary:hover,
a.button.secondary:focus-visible,
button.button.secondary:hover,
button.button.secondary:focus-visible {
  background-color: var(--nfl-blue);
  color: var(--nfl-white);
}

a.button.accent,
button.button.accent {
  background-color: var(--nfl-red);
  border-color: var(--nfl-red);
  color: var(--nfl-white);
}

a.button.accent:hover,
a.button.accent:focus-visible,
button.button.accent:hover,
button.button.accent:focus-visible {
  background-color: var(--nfl-red-2);
  border-color: var(--nfl-red-2);
}

/* Images */
main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

/* Header / Nav */
header {
  height: var(--nav-height);
}
header a {
    font-family: var(--heading-font-family);
}
header .header,
footer .footer {
  visibility: hidden;
}

header .header[data-block-status="loaded"],
footer .footer[data-block-status="loaded"] {
  visibility: visible;
}

/* Sections */
main > .section {
  margin: 40px 0;
}

main > .section > div {
  max-width: var(--section-max-width);
  margin: auto;
  padding: 0 24px;
}

main > .section:first-of-type {
  margin-top: 0;
}

main .section.light,
main .section.highlight {
  background-color: #f4f6f8;
  margin: 0;
  padding: 40px 0;
}

/* Footer */
footer {
  background-color: var(--nfl-blue);
  color: var(--nfl-white);
}

footer a:any-link {
  color: rgb(255 255 255 / 80%);
}

footer a:hover {
  color: var(--nfl-white);
}

/* Dark page theme (applied by brand-hero block) */
body.dark-page {
  background-color: var(--nfl-blue);
  color: rgb(255 255 255 / 85%);
}

body.dark-page h1,
body.dark-page h2,
body.dark-page h3,
body.dark-page h4,
body.dark-page h5,
body.dark-page h6 {
  color: #fff;
}

body.dark-page a:any-link {
  color: var(--nfl-impact-blue);
}

body.dark-page a:hover {
  color: #fff;
}

body.dark-page main > .section {
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

body.dark-page main > .section:last-of-type {
  border-bottom: none;
}

body.dark-page .button.primary {
  background-color: var(--nfl-white);
  border-color: var(--nfl-white);
  color: var(--nfl-blue);
}

body.dark-page .button.primary:hover {
  background-color: var(--nfl-grey-3);
  border-color: var(--nfl-grey-3);
}

body.dark-page .button.secondary {
  border-color: rgb(255 255 255 / 40%);
  color: #fff;
}

body.dark-page .button.secondary:hover {
  background-color: rgb(255 255 255 / 15%);
}

/* Focus states for accessibility */
a.button:focus-visible,
button.button:focus-visible {
  outline: 2px solid var(--nfl-impact-blue);
  outline-offset: 3px;
}

/* Dark page refinements */
body.dark-page pre {
  background: rgb(0 0 0 / 30%);
  border: 1px solid rgb(255 255 255 / 10%);
  color: rgb(255 255 255 / 85%);
}

body.dark-page main > .section > div > picture img {
  border-radius: 8px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

@media (width >= 900px) {
  main > .section > div {
    padding: 0 32px;
  }
}
