@import url("https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,400&display=swap");

:root {
  --umber: #241A12;
  --chestnut: #3B2A22;
  --chestnut-86: rgba(59, 42, 34, 0.86);
  --chestnut-70: rgba(59, 42, 34, 0.70);
  --chestnut-13: rgba(59, 42, 34, 0.13);
  --chestnut-06: rgba(59, 42, 34, 0.05);
  --sage: #5C7739;
  --sage-ink: #46592F;
  --sage-tint: #E4EDD6;
  --crimson: #A30F21;
  --crimson-rule: rgba(163, 15, 33, 0.55);
  --crimson-tint: rgba(163, 15, 33, 0.08);
  --oxblood: #86081A;
  --paper: #FFFFFF;

  --font-display: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Newsreader", Georgia, serif;

  --page-max: 1120px;
  --measure: 64ch;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--chestnut-86);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--umber);
  line-height: 1.15;
  margin: 0;
  text-wrap: pretty;
}

h1 {
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.06;
}

h2 {
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.015em;
}

h3 {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 18px;
  max-width: var(--measure);
  text-wrap: pretty;
}

a {
  color: var(--crimson);
  text-decoration: none;
  border-bottom: 1px solid var(--crimson-rule);
  transition: color 120ms ease, border-color 120ms ease;
}

a:hover {
  color: var(--oxblood);
  border-bottom-color: var(--oxblood);
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
  border-radius: 3px;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--chestnut-13);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  border: 0;
}

.brand-link:hover {
  border: 0;
}

.brand-link img {
  display: block;
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--umber);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 8px;
  border: 2px solid var(--sage);
  background: var(--sage);
  color: var(--paper);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.btn:hover {
  background: transparent;
  color: var(--sage);
  border-color: var(--sage);
}

.btn-outline {
  background: transparent;
  color: var(--umber);
  border-color: var(--chestnut-13);
}

.btn-outline:hover {
  background: var(--chestnut-06);
  color: var(--umber);
  border-color: var(--umber);
}

/* Sections */
.section {
  padding: clamp(36px, 5vw, 60px) 0;
}

.section-alt {
  background: var(--chestnut-06);
  border-top: 1px solid var(--chestnut-13);
  border-bottom: 1px solid var(--chestnut-13);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 12px;
}

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero-lead {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.55;
  color: var(--chestnut-86);
  margin-top: 18px;
  max-width: 46ch;
}

.hero-photo {
  width: 100%;
  max-width: 360px;
  justify-self: end;
  border-radius: 12px;
  display: block;
  box-shadow: 0 12px 32px rgba(36, 26, 18, 0.10);
}

@media (max-width: 780px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    max-width: 280px;
    justify-self: start;
  }
}

/* Project Boxes */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.section-sub {
  color: var(--chestnut-70);
  margin: 8px 0 0;
  max-width: 58ch;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 780px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--paper);
  border: 1px solid var(--chestnut-13);
  border-radius: 12px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.project-card.featured {
  grid-column: 1 / -1;
  border-color: var(--sage);
  box-shadow: inset 4px 0 0 var(--sage);
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.project-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--chestnut-70);
}

.badge {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-block;
}

.badge-sage {
  background: var(--sage-tint);
  color: var(--sage-ink);
}

.badge-crimson {
  background: var(--crimson-tint);
  color: var(--crimson);
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card p {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.65;
}

.cohort-note {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--sage-tint);
  color: var(--umber);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.55;
}

.card-foot {
  padding-top: 14px;
  border-top: 1px solid var(--chestnut-13);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
}

/* Blog listing & article */
.post-card {
  background: var(--paper);
  border: 1px solid var(--chestnut-13);
  border-radius: 12px;
  padding: 28px;
  max-width: 780px;
}

.post-meta {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--chestnut-70);
  margin-bottom: 8px;
}

.post-card h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-bottom: 12px;
}

.article {
  max-width: 720px;
}

.article header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--chestnut-13);
}

.article h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-top: 8px;
}

.article h2 {
  font-size: clamp(24px, 2.6vw, 28px);
  margin-top: 40px;
  margin-bottom: 14px;
}

.article h3 {
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 10px;
}

.disclosure-box {
  margin: 14px 0 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--crimson);
  background: var(--crimson-tint);
  border-radius: 0 8px 8px 0;
}

.disclosure-box p {
  margin: 0;
  font-size: 16px;
}

.breadcrumbs {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--chestnut-70);
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--chestnut-13);
  padding: 36px 0 48px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 15px;
}

.footer-note {
  font-size: 14px;
  color: var(--chestnut-70);
  margin: 16px 0 0;
  max-width: none;
}

@media (max-width: 480px) {
  .brand-link img {
    height: 32px;
  }
  .nav {
    gap: 16px;
  }
  .site-header .wrap {
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 12px;
  }
}

