:root {
  color-scheme: light;
  --ink: #111414;
  --muted: #59615f;
  --paper: #f6f0e6;
  --surface: #fffdf8;
  --line: #d7cbbb;
  --green: #21483f;
  --green-soft: #dfe8dd;
  --blue: #315d80;
  --coral: #d0644b;
  --ochre: #c99435;
  --shadow: 0 24px 70px rgba(17, 20, 20, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Aptos", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(33, 72, 63, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(33, 72, 63, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  line-height: 1.58;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 0 34px;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--surface);
  background: var(--green);
  font-size: 0.8rem;
  box-shadow: 4px 4px 0 var(--ochre);
}
.site-nav { justify-self: end; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-color: var(--ink); color: var(--ink); background: var(--green-soft); }
.nav-toggle {
  display: none;
  justify-self: end;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-weight: 900;
}
main { min-height: calc(100vh - 180px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 0;
  max-width: 1240px;
  margin: 34px auto 0;
  padding: 0 28px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 42px 42px 38px;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--green);
}
.hero-copy h1,
.page-intro h1 {
  margin: 0;
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6.6vw, 6.7rem);
  line-height: 0.92;
  font-weight: 760;
}
.lede,
.page-intro p { max-width: 760px; color: var(--muted); font-size: 1.13rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
}
.button.primary { color: var(--surface); background: var(--ink); }
.button.secondary { background: var(--green-soft); }
.hero-media {
  min-height: 620px;
  margin: 0 0 0 -34px;
  border: 2px solid var(--ink);
  background: var(--green);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; }
.image-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 1240px;
  margin: 10px auto 0;
  padding: 0 28px;
  color: var(--muted);
  font-size: 0.85rem;
}

.section,
.split-section,
.page,
.feature-strip { max-width: 1240px; margin: 0 auto; padding: 64px 28px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
h2, h3, p { overflow-wrap: anywhere; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3.2vw, 3.25rem); line-height: 1.02; }
h3 { margin: 12px 0 8px; font-size: 1.16rem; line-height: 1.24; }
p { margin: 0 0 14px; }
.card-grid { display: grid; gap: 20px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card,
.resource-list article,
.principle-list article {
  min-height: 100%;
  padding: 22px;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 6px 6px 0 rgba(33, 72, 63, 0.18);
}
.card:nth-child(2n),
.resource-list article:nth-child(2n),
.principle-list article:nth-child(2n) { background: #f3f6ec; }
.card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 1fr);
  gap: 22px;
  padding: 0;
  overflow: hidden;
}
.card.featured img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.card.featured > div { padding: 24px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--surface);
  background: var(--coral);
  font-size: 0.76rem;
  font-weight: 950;
}
.card p,
.resource-list p,
.guide-card p,
.timeline p,
.principle-list p,
.article-list span { color: var(--muted); }
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.article-list { display: grid; gap: 12px; }
.article-list a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 2px solid var(--ink);
  background: var(--surface);
}
.article-list a:hover { background: var(--green-soft); }
.article-list span,
.timeline time { color: var(--coral); font-size: 0.82rem; font-weight: 950; }
.muted-band {
  max-width: none;
  margin-top: 24px;
  padding-right: max(28px, calc((100vw - 1184px) / 2));
  padding-left: max(28px, calc((100vw - 1184px) / 2));
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--green-soft);
}
.timeline { display: grid; gap: 18px; }
.timeline article { padding: 22px; border: 2px solid var(--ink); background: var(--surface); }
.timeline.large article { padding: 26px; }
.page { padding-top: 46px; }
.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 34px;
  align-items: end;
  padding: 44px;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--ochre);
}
.page-intro::after {
  content: "";
  min-height: 250px;
  border: 2px solid var(--ink);
  background: linear-gradient(rgba(17, 20, 20, 0.1), rgba(17, 20, 20, 0.1)), url("/assets/community-workspace.png") center / cover;
}
.resource-section { padding: 40px 0; border-bottom: 2px solid var(--ink); }
.resource-list,
.principle-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.guide-list { display: grid; gap: 18px; margin-top: 34px; }
.guide-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 22px;
  padding: 26px;
  border: 2px solid var(--ink);
  background: var(--surface);
}
.guide-card ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.guide-number {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--surface);
  background: var(--blue);
  font-weight: 950;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  background: var(--surface);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 850; }

@media (max-width: 920px) {
  .site-header { grid-template-columns: auto auto; min-height: 68px; padding: 13px 20px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 2px solid var(--ink);
    background: var(--surface);
    box-shadow: 8px 8px 0 var(--green);
  }
  .site-nav.is-open { display: flex; }
  .hero,
  .split-section,
  .page-intro,
  .guide-card,
  .card.featured { grid-template-columns: 1fr; }
  .hero { padding: 0 20px; }
  .hero-copy { order: 2; padding: 28px; box-shadow: none; }
  .hero-media { order: 1; min-height: 360px; margin: 0; }
  .hero-media img { min-height: 360px; }
  .section,
  .split-section,
  .page,
  .feature-strip { padding: 44px 20px; }
  .card-grid.three,
  .resource-list,
  .principle-list { grid-template-columns: 1fr; }
  .section-heading,
  .site-footer { align-items: flex-start; flex-direction: column; }
  .page-intro { padding: 28px; }
}

@media (max-width: 540px) {
  .hero-copy h1,
  .page-intro h1 { font-size: 2.55rem; }
  .brand span:last-child { max-width: 150px; }
  .hero-actions,
  .button { width: 100%; }
  .article-list a { grid-template-columns: 1fr; }
}
