/* American Higher Education Barometer: single-page site */

:root {
  --ink: #1c2226;
  --ink-soft: #4a555e;
  --rule: #dcd8d2;
  --paper: #ffffff;
  --paper-warm: #f5f2ee;
  --deep: #0e2c38;
  --deep-2: #134050;
  --coral: #c94430;
  --coral-hover: #ad3624;
  --coral-light: #f39a87;
  --on-dark: #ffffff;
  --on-dark-soft: #c6d6dc;

  --font-brand: "Fjalla One", "Arial Narrow", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Open Sans", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--coral);
}

a:hover {
  color: var(--coral-hover);
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--deep);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  flex-wrap: wrap;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.wordmark {
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark);
  text-decoration: none;
  line-height: 1.2;
}

.wordmark:hover {
  color: var(--on-dark);
}

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-brand);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--on-dark);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep-2);
  color: var(--on-dark);
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 100%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(14, 44, 56, 0.94) 0%,
    rgba(14, 44, 56, 0.82) 38%,
    rgba(14, 44, 56, 0.15) 66%,
    rgba(14, 44, 56, 0) 80%
  );
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 72px;
}

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

.kicker {
  font-family: var(--font-brand);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.hero .kicker {
  color: var(--coral-light);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin: 0;
}

.hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 28px 0 24px;
  background: var(--coral-light);
}

.hero-lead {
  font-size: 18px;
  color: var(--on-dark-soft);
  margin: 0 0 32px;
  max-width: 34em;
}

/* Buttons */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 4px;
  border: 2px solid var(--coral);
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
  color: #fff;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.button-meta {
  font-weight: 400;
  opacity: 0.85;
}

/* Sections */

.section {
  padding: 88px 0;
}

.section-warm {
  background: var(--paper-warm);
}

.section-dark {
  background: var(--deep);
  color: var(--on-dark);
}

.section-title {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 32px;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 16px;
  background: var(--coral);
}

.section-dark .section-title::after {
  background: var(--coral-light);
}

.centered {
  text-align: center;
}

.centered .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* Key insights */

.insight-quote {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--on-dark);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.stats li {
  padding: 4px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.stats li:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-value {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.05;
  color: var(--on-dark);
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-dark-soft);
}

.stats-note {
  margin: 40px 0 0;
  font-size: 13px;
  color: var(--on-dark-soft);
  text-align: left;
}

/* Report */

.report {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.report-cover {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(14, 44, 56, 0.12), 0 12px 32px rgba(14, 44, 56, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-cover:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(14, 44, 56, 0.12), 0 18px 40px rgba(14, 44, 56, 0.22);
}

.report .kicker {
  color: var(--coral);
}

.report h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 20px;
}

.report p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.findings {
  margin: 28px 0 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
}

.findings h4 {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.findings ol {
  margin: 0;
  padding-left: 1.4em;
}

.findings li {
  margin: 4px 0;
  padding-left: 4px;
}

.findings li::marker {
  color: var(--coral);
  font-weight: 700;
}

/* About */

.about {
  max-width: 820px;
}

.about p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 28px 0 0;
}

.facts div {
  border-top: 2px solid var(--deep);
  padding-top: 10px;
}

.facts dt {
  font-family: var(--font-brand);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
}

/* Footer */

.site-footer {
  background: var(--deep);
  color: var(--on-dark-soft);
  font-size: 14px;
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer p {
  margin: 0;
}

/* Responsive */

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 0;
  }

  .stats li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .report {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 36px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    position: static;
  }

  .site-header .wrap {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .wordmark {
    font-size: 19px;
  }

  .site-nav ul {
    gap: 20px;
  }

  .hero {
    min-height: 0;
    align-items: flex-start;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(14, 44, 56, 0.94) 0%,
      rgba(14, 44, 56, 0.86) 52%,
      rgba(14, 44, 56, 0.2) 78%,
      rgba(14, 44, 56, 0) 100%
    );
  }

  .hero .wrap {
    padding-top: 48px;
    padding-bottom: 62vw;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .report {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-cover {
    max-width: 220px;
  }

  .stat-value {
    font-size: 42px;
  }

  .stats li {
    padding: 4px 16px;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .report-cover,
  .button {
    transition: none;
  }
}
