:root {
  --green: #076633;
  --green-dark: #04401f;
  --text: #111111;
  --muted: #444444;
  --white: #ffffff;
  --gray: #ededed;
  --card: #f1f1f1;
  --soft: #f5f5f5;
  --label-on-green: #cfe5d6;
  --on-green-body: #e3efe7;

  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --varsity: 'Graduate', Georgia, serif;

  --band-radius: 28px;
  --card-radius: 20px;
  --max: 1160px;
  --gutter: 24px;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

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

h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.band-green :focus-visible { outline-color: var(--white); }

[id] { scroll-margin-top: 16px; }

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

/* Shared pieces */

.label {
  font-family: var(--varsity);
  color: var(--label-on-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.pill-green { background: var(--green); color: var(--white); }
.pill-green:hover { background: var(--green-dark); color: var(--white); }
.pill-white { background: var(--white); color: var(--green); padding: 16px 30px; font-size: 1.05rem; }
.pill-white:hover { background: var(--gray); color: var(--green-dark); }
.pill-big { padding: 18px 34px; font-size: 1.15rem; max-width: 100%; }

.band { border-radius: var(--band-radius); }
.band-green { background: var(--green); color: var(--white); }

.section { padding-block: 88px; }
.section-tight-bottom { padding-bottom: 0; }

h2 {
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.h2-small { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); margin-bottom: 28px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card { background: var(--card); border-radius: var(--card-radius); padding: 32px; }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card p { color: var(--muted); line-height: 1.65; }
.card-outline { background: none; border: 2px solid var(--green); padding: 28px; }

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
}
.brand img { width: 120px; height: 120px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 8px; font-weight: 600; }
.site-header nav a:not(.pill) {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
}
.site-header nav a:not(.pill):hover { color: var(--green); }

/* On a phone the page is one scroll: keep the logo and Contact on one row. */
@media (max-width: 599px) {
  .site-header { flex-wrap: nowrap; padding-block: 12px; }
  .site-header nav a:not(.pill) { display: none; }
  .brand { font-size: 1.05rem; gap: 10px; }
  .brand img { width: 88px; height: 88px; }
  .hero-outer { padding-top: 16px; }
}

/* Hero */

.hero-outer { padding-top: 40px; padding-bottom: 88px; }
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 48px);
}
.hero-text { flex: 999 1 480px; min-width: 0; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--on-green-body);
  max-width: 580px;
  margin-bottom: 32px;
}
.hero-photo { flex: 1 1 300px; display: flex; justify-content: center; }
.hero-photo img {
  width: min(300px, 70vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid var(--white);
  box-shadow: 0 0 0 4px var(--text);
}

/* Program */

#program { padding-top: 0; }
.intro {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 40px;
}
.num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--varsity);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Joel's rule */

.rule { padding-block: 80px; }
.rule-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.rule-quote { flex: 1 1 460px; }
.rule-quote h2 {
  font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3rem);
  line-height: 1.08;
  margin: 0;
}
.rule-body {
  flex: 999 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--on-green-body);
}

/* About */

.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about-text { flex: 999 1 480px; min-width: 0; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { font-size: 1.1rem; line-height: 1.75; }
.about-text p + p { margin-top: 16px; }
.stats {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.stat { background: var(--soft); border-radius: var(--card-radius); padding: 24px; text-align: center; }
.stat dt { font-family: var(--varsity); font-size: 2.6rem; color: var(--green); line-height: 1.2; }
.stat dd { margin: 0; color: var(--muted); }

/* Schools */

.schools { background: var(--soft); padding-block: 72px; text-align: center; }
.pills { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pills li {
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.more { margin-top: 24px; font-size: 1.15rem; font-weight: 600; color: var(--muted); }

/* Contact */

.contact {
  background: var(--gray);
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 48px);
  text-align: center;
}
.contact p { font-size: 1.15rem; line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }
.contact-label { overflow-wrap: anywhere; }
@media (max-width: 399px) {
  .pill-big { padding: 16px 22px; font-size: 1rem; }
}
.contact noscript p { margin: 24px auto 0; font-weight: 600; }

/* Footer */

.site-footer { padding: 24px; text-align: center; color: var(--muted); font-size: 0.9rem; }
