:root {
  --bg: #f8f4ed;
  --surface: #fffdf8;
  --surface-soft: #f1eadf;
  --ink: #2f2a24;
  --muted: #6f665c;
  --accent: #6f8f72;
  --accent-dark: #47644d;
  --accent-soft: #e7efe1;
  --accent-wash: #f4f8ef;
  --warm: #b8845d;
  --line: #e4dacd;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(67, 54, 39, 0.08);
  --shadow-soft: 0 10px 28px rgba(67, 54, 39, 0.06);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 248, 236, 0.95) 0, rgba(248, 244, 237, 0.85) 38%, rgba(245, 239, 230, 0.72) 100%),
    linear-gradient(135deg, #faf5ed 0%, #f2eadf 100%);
  line-height: 1.7;
}
a { color: var(--accent-dark); text-underline-offset: 0.18em; }
a:hover { color: #2f5539; }
.wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: white; padding: 8px 12px; z-index: 5; }
.skip-link:focus { left: 12px; top: 12px; }
.site-header {
  background: rgba(255,253,248,.94);
  border-bottom: 1px solid rgba(212, 199, 184, 0.75);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(67, 54, 39, 0.04);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 10px 0 12px;
  min-height: 106px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  flex: 0 1 360px;
  min-width: 0;
}
.brand img {
  display: block;
  width: auto;
  height: 88px;
  max-width: min(340px, 45vw);
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
}
nav a:hover { color: var(--accent-dark); background: var(--accent-soft); }
.hero { padding: 48px 0 34px; }
.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, .72fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: center;
  background: linear-gradient(135deg, #fffdf8, #f3eadc 58%, #eaf1e4);
  border: 1px solid var(--line);
  border-radius: 38px;
  padding: clamp(32px, 5vw, 58px);
  box-shadow: var(--shadow);
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -95px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(111, 143, 114, 0.10);
  pointer-events: none;
}
.hero-card > * { position: relative; z-index: 1; }
.eyebrow { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 800; margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.03em; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5vw, 4.35rem); margin: 10px 0 18px; }
h2 { font-size: clamp(1.48rem, 3vw, 2.1rem); margin-top: 2.1em; margin-bottom: .55em; }
h3 { font-size: 1.18rem; margin-top: 1.45em; margin-bottom: .35em; }
.lede { font-size: clamp(1.08rem, 2vw, 1.18rem); color: var(--muted); max-width: 66ch; }
.button { display: inline-flex; margin-top: 18px; padding: 12px 18px; border-radius: 999px; background: var(--accent-dark); color: white; text-decoration: none; font-weight: 800; box-shadow: 0 10px 22px rgba(71, 100, 77, 0.16); }
.button:hover { color: white; background: #35503b; }
.hero-note { background: rgba(255,255,255,.74); border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: var(--shadow-soft); }
.hero-note h2 { margin-top: 0; }
.hero-note p:last-child { margin-bottom: 0; }
.section { padding: 26px 0 60px; }
.section > .eyebrow { margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.card, .article-card, .note-box, .direct-answer, .scope-note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); }
.card, .article-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover, .article-card:hover { transform: translateY(-2px); border-color: #d8cabb; box-shadow: 0 16px 34px rgba(67, 54, 39, 0.08); }
.card h3, .article-card h3, .card p:first-child { margin-top: 0; }
.card p:last-child, .article-card p:last-child { margin-bottom: 0; }
.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  min-height: 100%;
  background: linear-gradient(135deg, #fffdf8, #f6efe4 72%, var(--accent-wash));
  padding: clamp(24px, 4vw, 34px);
}
.article-card h2, .article-card p { grid-column: 1; }
.article-card .button { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-top: 0; white-space: nowrap; }
.page, .article-shell { width: min(980px, calc(100% - 36px)); margin: 0 auto; padding: 42px 0 76px; }
.page .content-card, .article { background: rgba(255, 253, 248, 0.98); border: 1px solid var(--line); border-radius: 34px; padding: clamp(26px, 5vw, 56px); box-shadow: var(--shadow); }
.article-header { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid rgba(228, 218, 205, .78); }
.article-meta { color: var(--muted); font-size: .95rem; }
.article h1 { font-size: clamp(2rem, 4vw, 3.35rem); max-width: 12.5em; }
.article h2 { scroll-margin-top: 132px; }
.article p, .article li { font-size: 1.035rem; }
.article p { margin: 0 0 1.05em; }
.article ul, .article ol { padding-left: 1.35rem; margin-top: .35em; }
.article li + li { margin-top: .35em; }
.direct-answer, .scope-note {
  margin: 18px 0 22px;
  padding: 18px 22px 20px;
}
.direct-answer h2, .scope-note h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}
.direct-answer p:last-child, .scope-note p:last-child { margin-bottom: 0; }
.direct-answer { background: #eef4eb; border-color: #d5e2d0; }
.scope-note { background: #fff7e8; border-color: #eadcc5; }
.image-slot {
  display: none;
  margin: 24px 0;
  border: 1px dashed #d8cabb;
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(135deg, #fffaf0, var(--accent-wash));
  color: var(--muted);
}
.image-slot[data-status="planned"]::before {
  content: "Planned image slot";
  display: block;
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 8px 20px rgba(67, 54, 39, 0.04); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-soft); color: var(--ink); font-size: .94rem; }
tr:last-child td { border-bottom: 0; }
.checklist { list-style: none; padding-left: 0 !important; display: grid; gap: 10px; }
.checklist li { padding: 13px 15px; background: #fbf8f2; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 4px 14px rgba(67, 54, 39, 0.035); }
.site-footer { background: #312b24; color: #f8f4ed; padding: 36px 0; }
.site-footer p { color: #d8cfc4; margin-bottom: 0; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer nav a { color: #f8f4ed; }
.site-footer nav a:hover { color: #fff; background: rgba(255,255,255,.10); }
@media (max-width: 860px) {
  .article-card { grid-template-columns: 1fr; }
  .article-card .button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 4px; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 24px, 1120px); }
  .nav-wrap, .footer-grid { flex-direction: column; }
  .nav-wrap {
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 0;
    padding: 12px 0 14px;
    text-align: center;
  }
  .brand {
    flex-basis: auto;
    width: 100%;
    justify-content: center;
  }
  .brand img {
    height: clamp(58px, 16vw, 68px);
    max-width: min(312px, 88vw);
    object-fit: contain;
  }
  nav {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  nav a { padding: 8px 11px; }
  .site-footer .footer-grid { align-items: center; text-align: center; }
  .site-footer nav { justify-content: center; }
  .hero { padding: 28px 0 28px; }
  .hero-card { grid-template-columns: 1fr; padding: 26px; border-radius: 28px; }
  h1 { font-size: clamp(2.05rem, 11vw, 3rem); }
  h2 { margin-top: 1.75em; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .section { padding: 20px 0 42px; }
  .page, .article-shell { width: min(100% - 24px, 980px); padding-top: 24px; padding-bottom: 54px; }
  .article { padding: 22px; border-radius: 24px; }
  .article-header { padding-bottom: 14px; }
  .article p, .article li { font-size: 1rem; }
  .direct-answer, .scope-note { padding: 16px 17px 18px; }
  .image-slot { margin: 20px 0; padding: 18px; border-radius: 20px; }
  th, td { padding: 12px 13px; }
}
@media (max-width: 420px) {
  nav { gap: 6px; }
  nav a { font-size: .94rem; padding: 7px 9px; }
  .hero-card { padding: 22px; }
  .article { padding: 20px; }
  .checklist li { padding: 12px 13px; }
}
