:root {
  --paper: #f3f0e8;
  --paper-deep: #e8e2d5;
  --ink: #1d2824;
  --muted: #66706a;
  --line: rgba(29, 40, 36, 0.16);
  --green: #285f4a;
  --green-light: #dce7df;
  --white: #fffdf8;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 4%, rgba(40, 95, 74, 0.10), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: rgba(40, 95, 74, 0.42);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--green);
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  color: var(--green);
  font-size: 0.75rem;
}

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

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

nav a.active,
nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 560px;
  padding: 118px 0 90px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.article-meta {
  margin: 0 0 20px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.prose h1,
.not-found h1 {
  max-width: 930px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.2vw, 6.9rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.lead {
  max-width: 650px;
  margin: 42px 0 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.section {
  padding: 90px 0 110px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.section-heading h2,
.principles h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.article-card {
  min-height: 330px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.article-card.featured {
  grid-row: span 2;
  min-height: 678px;
  padding: 48px;
  color: var(--white);
  background: var(--green);
}

.article-card.featured .article-meta,
.article-card.featured p,
.article-card.featured .read-link {
  color: rgba(255, 253, 248, 0.75);
}

.article-card h3 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.article-card.featured h3 {
  max-width: 520px;
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
}

.article-card h3 a {
  text-decoration: none;
}

.article-card p {
  max-width: 540px;
  color: var(--muted);
}

.read-link {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  color: var(--green);
  border-top: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.principles {
  padding: 100px 70px;
  margin-bottom: 100px;
  background: var(--paper-deep);
}

.principles > h2 {
  max-width: 670px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  margin-top: 90px;
}

.principle-grid > div {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.principle-number {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
}

.principle-grid h3 {
  margin: 30px 0 10px;
  font-size: 1rem;
}

.principle-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.article-layout {
  max-width: 820px;
  padding: 96px 0 130px;
}

.prose h1 {
  margin-bottom: 42px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.prose .intro {
  margin-bottom: 50px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.45;
}

.prose h2 {
  margin: 54px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.prose p,
.prose li {
  color: #39443f;
  font-size: 1.04rem;
}

.prose li + li {
  margin-top: 9px;
}

.prose code {
  padding: 0.12em 0.35em;
  background: var(--paper-deep);
  border-radius: 3px;
  font-size: 0.9em;
}

.back-link {
  display: inline-block;
  margin-bottom: 50px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.note {
  margin: 46px 0;
  padding: 24px 28px;
  color: #304039;
  background: var(--green-light);
  border-left: 3px solid var(--green);
}

.site-footer {
  min-height: 120px;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.site-footer div {
  display: flex;
  gap: 24px;
}

.not-found {
  min-height: 100vh;
  padding: 12vh 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.not-found h1 {
  font-size: clamp(3rem, 8vw, 7rem);
}

.not-found p:not(.eyebrow) {
  margin: 30px 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.button {
  padding: 13px 20px;
  color: var(--white);
  background: var(--green);
  border-radius: 3px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  main {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    min-height: 76px;
  }

  nav {
    gap: 15px;
  }

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

  .lead {
    margin: 32px 0 0;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .article-card,
  .article-card.featured {
    grid-row: auto;
    min-height: 420px;
    padding: 28px;
  }

  .principles {
    width: 100%;
    padding: 70px 28px;
    margin-bottom: 50px;
  }

  .principle-grid {
    gap: 32px;
    margin-top: 55px;
  }

  .article-layout {
    padding: 70px 0 90px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
