:root {
  --red: #e00122;
  --ink: #080808;
  --white: #ffffff;
  --paper: #f6f1e8;
  --paper-2: #eee5d5;
  --soft-red: #f6dce0;
  --blue: #243b4a;
  --green: #4e6354;
  --muted: #5f5a53;
  --line: rgba(8, 8, 8, 0.16);
  --line-light: rgba(255, 255, 255, 0.22);
  --page-pad: clamp(20px, 5vw, 76px);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-170%);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--line);
}

.donate-strip {
  display: flex;
  justify-content: flex-end;
  padding: 8px var(--page-pad);
  background: var(--ink);
  color: var(--white);
}

.donate-strip a {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 5vw, 74px);
  align-items: center;
  padding: 18px var(--page-pad);
}

.brand img {
  display: block;
  width: min(280px, 42vw);
  height: auto;
}

.primary-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(14px, 2.4vw, 32px);
  flex-wrap: wrap;
}

.primary-nav a {
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.hero,
.program-index,
.program-section,
.news-digest,
.donate-callout {
  scroll-margin-top: 170px;
}

.hero {
  display: grid;
  align-items: center;
  min-height: clamp(520px, 64vh, 720px);
  padding: clamp(70px, 10vw, 130px) var(--page-pad);
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 8, 8, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(224, 1, 34, 0.14), transparent 34%),
    var(--paper);
  background-size: 46px 46px, 46px 46px, auto, auto;
}

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

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 960px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 102px);
  font-weight: 400;
  line-height: 0.98;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: #3c3832;
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions a,
.section-link,
.donate-callout a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 2px solid currentColor;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-actions a:first-child,
.donate-callout a {
  background: var(--ink);
  color: var(--white);
}

.hero-cases {
  display: none;
}

.program-index {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) 1fr;
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  padding: clamp(48px, 7vw, 86px) var(--page-pad);
  background: var(--ink);
  color: var(--white);
}

.index-intro h2 {
  max-width: 460px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.pathways {
  display: grid;
  gap: 12px;
}

.pathway {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(160px, 0.5fr);
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
  text-decoration: none;
}

.pathway:first-child {
  border-top: 1px solid var(--line-light);
}

.pathway span {
  color: #ffb8c0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pathway strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.3vw, 36px);
  font-weight: 400;
  line-height: 1.08;
}

.pathway em {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.program-section {
  display: grid;
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  min-height: auto;
  padding: clamp(62px, 8vw, 112px) var(--page-pad);
  border-top: 1px solid var(--line);
}

.section-copy {
  max-width: 680px;
}

.section-copy h2,
.k12-panel h2,
.news-digest h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 400;
  line-height: 1;
}

.section-copy p,
.k12-panel p {
  max-width: 630px;
  color: #3f3a34;
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.52;
}

.section-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 28px;
}

.section-chips span {
  padding: 9px 11px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-photo,
.community-photo {
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.section-photo {
  aspect-ratio: 4 / 3;
}

.section-photo img,
.community-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-section--dragons {
  grid-template-columns: minmax(280px, 0.4fr) minmax(0, 0.6fr);
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 8, 8, 0.035) 1px, transparent 1px),
    var(--paper-2);
  background-size: 40px 40px;
}

.dragon-system {
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  align-content: center;
  padding: clamp(26px, 4vw, 50px);
  background: rgba(255, 255, 255, 0.58);
  border: 2px solid var(--ink);
  box-shadow: 16px 16px 0 rgba(224, 1, 34, 0.14);
}

.dragon-system::before {
  content: none;
}

.dragon-system img {
  width: min(420px, 90%);
}

.dragon-system ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dragon-system li {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 900;
}

.dragon-system li::before {
  content: counter(list-item, decimal-leading-zero);
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.dragon-system li span {
  display: block;
  padding-top: 38px;
  font-size: 14px;
  line-height: 1.22;
  text-transform: uppercase;
}

.program-section--bowl,
.program-section--pd {
  grid-template-columns: minmax(0, 0.54fr) minmax(300px, 0.46fr);
}

.program-section--bowl {
  background: var(--white);
}

.program-section--bowl .section-photo {
  aspect-ratio: 16 / 10;
}

.program-section--bowl .section-photo::after {
  content: none;
}

.program-section--bowl .section-photo img {
  object-position: 48% 50%;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 26px 0 28px;
  max-width: 620px;
}

.case-grid span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.program-section--k12 {
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  background: var(--paper);
}

.k12-panel {
  max-width: 650px;
}

.program-section--k12 .section-photo {
  aspect-ratio: 4 / 3;
}

.program-section--k12 .section-photo img {
  object-position: 52% 44%;
}

.format-board {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.format-board article {
  min-height: 160px;
  padding: 26px;
  background: var(--white);
}

.format-board span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.format-board h3 {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.3vw, 36px);
  font-weight: 400;
  line-height: 1.08;
}

.program-section--community {
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  background: var(--blue);
  color: var(--white);
}

.program-section--community .section-label {
  color: #ffc0c8;
}

.program-section--community .section-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.conversation-board {
  display: grid;
  gap: 12px;
  align-self: end;
}

.conversation-board p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.15;
}

.community-photo {
  grid-column: 2;
  aspect-ratio: 16 / 9;
  align-self: start;
}

.community-photo img {
  object-position: 50% 38%;
}

.program-section--community .section-link {
  justify-self: start;
}

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

.program-section--pd .section-photo {
  aspect-ratio: 4 / 3;
}

.program-section--pd .section-photo img {
  object-position: 48% 48%;
}

.takeaway-list {
  display: grid;
  gap: 0;
  max-width: 620px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.takeaway-list li {
  position: relative;
  padding: 18px 0 18px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.takeaway-list li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 13px;
  height: 13px;
  background: var(--red);
}

.news-digest {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) 1fr;
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(68px, 9vw, 112px) var(--page-pad);
  background: var(--white);
}

.news-digest h2 {
  margin: 0;
}

.news-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.news-list a {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.7vw, 42px);
  line-height: 1.12;
  text-decoration: none;
}

.donate-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: clamp(54px, 8vw, 96px) var(--page-pad);
  color: var(--white);
  background: var(--red);
}

.donate-callout p {
  margin: 0;
  max-width: 940px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.02;
}

.donate-callout a {
  border-color: var(--white);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: clamp(42px, 6vw, 72px) var(--page-pad);
  color: var(--white);
  background: var(--ink);
}

.site-footer strong {
  display: block;
  margin-bottom: 12px;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.site-footer div:last-child {
  display: grid;
  gap: 12px;
  align-content: start;
}

@media (max-width: 980px) {
  .brand-row,
  .program-index,
  .program-section--dragons,
  .program-section--bowl,
  .program-section--k12,
  .program-section--community,
  .program-section--pd,
  .news-digest,
  .donate-callout,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .program-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .community-photo {
    grid-column: auto;
  }

  .format-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: min(238px, 78vw);
  }

  .hero,
  .program-index,
  .program-section,
  .news-digest,
  .donate-callout {
    scroll-margin-top: 250px;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 70px);
  }

  .section-copy h2,
  .k12-panel h2,
  .news-digest h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .pathway {
    grid-template-columns: 36px 1fr;
  }

  .pathway em {
    grid-column: 2;
  }

  .dragon-system ol,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .donate-callout a {
    justify-self: start;
  }
}
