:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #5d6b61;
  --line: #dce5de;
  --paper: #fbfcf8;
  --panel: #ffffff;
  --green: #24543a;
  --green-2: #2f7650;
  --blue: #1f6f8b;
  --sun: #e1a832;
  --clay: #bd6b3d;
  --shadow: 0 18px 46px rgba(28, 46, 34, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(36, 84, 58, 0.05), transparent 360px),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  font-size: 0.96rem;
  font-weight: 700;
}

nav a {
  color: var(--ink);
}

nav a[aria-current="page"] {
  color: var(--green-2);
}

main {
  min-height: calc(100vh - 148px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  padding: clamp(52px, 9vw, 110px) clamp(18px, 5vw, 72px) 44px;
}

.hero-copy,
.section,
.page-title {
  max-width: 1120px;
}

.hero h1,
.page-title h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p,
.page-title p,
.section p {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-actions,
.admin-actions,
.resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--ink);
}

.hero-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.hero-panel dl {
  margin: 0;
  display: grid;
  gap: 18px;
}

.hero-panel div {
  display: grid;
  gap: 5px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.hero-panel div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dt,
.week-card-header span,
.pathway span {
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 850;
}

.section,
.page-title {
  margin: 0 auto;
  padding: 58px clamp(18px, 5vw, 72px);
}

.page-title {
  text-align: left;
}

.page-title.narrow {
  max-width: 900px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section h2,
.page-title h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.metric-grid,
.pathway,
.rubric {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-grid article,
.pathway article,
.week-card,
.rubric article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.metric-grid strong {
  display: block;
  color: var(--green);
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 10px;
}

.metric-grid span,
.pathway p,
.week-card li,
.rubric p {
  color: var(--muted);
  line-height: 1.55;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.week-list {
  display: grid;
  gap: 14px;
}

.week-list article {
  padding: 18px 0 18px 18px;
  border-left: 4px solid var(--sun);
}

.week-list span {
  color: var(--clay);
  font-weight: 900;
}

.week-list h3,
.pathway h3,
.week-card h2,
.rubric h3 {
  margin: 6px 0 8px;
  font-size: 1.2rem;
}

.apply-section {
  border-top: 1px solid var(--line);
}

.application-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 960px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfcac2;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 72px) 30px;
}

.week-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.week-card.accent {
  border-color: rgba(36, 84, 58, 0.35);
  background: #f4f9f3;
}

.week-card ul,
.plain-list {
  margin: 0;
  padding-left: 20px;
}

.resource-row a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: #edf5ef;
  color: var(--green);
  font-weight: 850;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.dashboard-table div {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr 1.35fr;
}

.dashboard-table div:first-child {
  background: var(--green);
  color: white;
}

.dashboard-table span,
.dashboard-table strong {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 1.45;
}

.dashboard-table span:last-child,
.dashboard-table strong:last-child {
  border-right: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .two-column,
  .application-form,
  .portal-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

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

  .dashboard-table {
    overflow-x: auto;
  }

  .dashboard-table div {
    min-width: 760px;
  }
}

@media (max-width: 560px) {
  .metric-grid,
  .pathway,
  .rubric {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-title h1 {
    font-size: 2.4rem;
  }
}
