:root {
  --bg: #f5f1e8;
  --paper: #fffdf8;
  --ink: #1f2722;
  --muted: #667068;
  --accent: #314d3a;
  --accent-2: #a57234;
  --line: #d9d2c5;
  --shadow: 0 18px 45px rgba(32, 42, 35, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
}

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, 100%); }

.hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(20, 32, 24, .78), rgba(20, 32, 24, .86)),
    radial-gradient(circle at top left, #586c5f 0, #293a30 38%, #172018 100%);
  color: #fffdf8;
  border-bottom: 6px solid var(--accent-2);
}
.hero-inner { padding: 100px 0 90px; }
.eyebrow, .section-kicker, .rule-num, .part-number, .tag {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}
.eyebrow { font-size: .84rem; opacity: .78; }
h1 { font-size: clamp(3rem, 7vw, 6.7rem); line-height: .98; margin: 18px 0 22px; max-width: 900px; font-weight: 700; }
.subtitle { max-width: 720px; font-size: clamp(1.2rem, 2vw, 1.7rem); color: #e7e3da; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-block;
  padding: 13px 18px;
  background: #fffdf8;
  color: #1c2b21;
  text-decoration: none;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.button-secondary { background: transparent; color: #fffdf8; border: 1px solid rgba(255,255,255,.5); }

.section { padding: 84px 0; }
.section-alt { background: #ece6da; }
.section-intro { background: var(--paper); }
.section-kicker { color: var(--accent-2); font-size: .82rem; margin: 0 0 8px; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; margin: 0 0 18px; }
.lead { font-size: clamp(1.25rem, 2.3vw, 1.8rem); line-height: 1.55; }

.part-heading { display: grid; grid-template-columns: 120px 1fr; gap: 30px; align-items: start; margin-bottom: 38px; }
.part-number { color: var(--accent-2); font-size: .8rem; padding-top: 8px; }
.part-heading p { max-width: 780px; color: var(--muted); margin-top: 8px; }
.tag { display: inline-block; font-size: .72rem; color: var(--accent); background: #dce5dd; border-radius: 999px; padding: 5px 9px; margin: 0 0 10px; }

.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rule-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.rule-card-wide { grid-column: 1 / -1; }
.rule-card h3 { font-size: 1.35rem; margin: 6px 0 12px; }
.rule-card p { margin: 0; }
.rule-card p + p { margin-top: 14px; }
.rule-num { font-size: .74rem; color: var(--accent-2); }

.comparison-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--paper);
}
.comparison-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: .98rem;
}
.comparison-table th,
.comparison-table td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.comparison-table th:last-child,
.comparison-table td:last-child { border-right: 0; }
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table thead th {
  background: #263a2d;
  color: #fffdf8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
  line-height: 1.35;
}
.comparison-table tbody th {
  width: 18%;
  background: #eee8dc;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
}

.open-question {
  margin: 28px 0;
  padding: 24px 26px;
  background: #f0e6d5;
  border-left: 5px solid var(--accent-2);
  border-radius: 0 14px 14px 0;
}
.open-question p { margin: 0; }
.open-question .section-kicker { margin-bottom: 6px; }

.section-quotes { background: #1f2b22; color: #f7f2e7; }
.section-quotes .section-kicker { color: #d8b47a; }
.section-quotes h2 { color: #fffdf8; }
blockquote {
  margin: 0 0 28px;
  padding: 28px 0 28px 28px;
  border-left: 4px solid #d8b47a;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.5;
}
cite { display: block; margin-top: 12px; font-size: .9rem; color: #c6c7c0; font-style: normal; font-family: Arial, Helvetica, sans-serif; }

footer { background: #151c17; color: #c8cdc8; padding: 32px 0 42px; font-family: Arial, Helvetica, sans-serif; }
.footer-inner p { margin: 4px 0; }

@media (max-width: 760px) {
  .part-heading { grid-template-columns: 1fr; gap: 6px; }
  .rules-grid { grid-template-columns: 1fr; }
  .rule-card-wide { grid-column: auto; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 80px 0 70px; }
  .comparison-wrap {
    margin-left: -4px;
    margin-right: -4px;
  }
}

.development-note {
  margin: 30px 0 20px;
  padding: 26px 28px;
  background: #f8f4eb;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.development-note h3 {
  margin: 4px 0 10px;
  font-size: 1.45rem;
}
.development-note p {
  margin: 0;
}


.section-purpose {
  background: #f7f2e9;
  border-bottom: 1px solid var(--line);
}
.section-purpose p:not(.section-kicker):not(.lead) {
  font-size: 1.08rem;
}

.section-foundations {
  background: #e9e2d5;
}
.foundation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.foundation-card {
  background: rgba(255,253,248,.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
}
.foundation-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}
.foundation-card p {
  margin: 0;
  color: #424b44;
}

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


.evolving-note {
  margin-top: 28px;
  padding: 24px 26px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent-2);
  border-radius: 0 14px 14px 0;
}
.evolving-note p {
  margin: 0;
}
.evolving-note p + p {
  margin-top: 12px;
}


.purpose-subhead {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 1.15rem;
  font-style: italic;
}


.section-divider {
  background: #24352a;
  color: #f7f2e7;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 4px solid var(--accent-2);
}
.section-divider .section-kicker {
  color: #d8b47a;
}
.section-divider h2 {
  color: #fffdf8;
}
.section-divider p {
  color: #e0e4df;
}
.section-divider-reform {
  background: #2d3f33;
}
.framework-title {
  margin: 2px 0 10px;
  font-size: 1.45rem;
  color: var(--accent);
}
.section-developing {
  background: #efe8dc;
}
.developing-idea h3 {
  margin-bottom: 10px;
}
.developing-idea p + p {
  margin-top: 12px;
}
.open-question a {
  color: var(--accent);
  font-weight: 700;
}
