/* Coming Good: warm editorial authority site */
:root {
  --paper: #fbfaf7;
  --paper-deep: #f2efe7;
  --ink: #1d2722;
  --muted: #59645e;
  --line: #d9ddd7;
  --green: #155b46;
  --green-dark: #0d4434;
  --mint: #dceee5;
  --apricot: #e79a63;
  --apricot-soft: #f8e7d9;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(29, 39, 34, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { color: var(--green-dark); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { transform: translateY(0); }

.site-note {
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(29, 39, 34, 0.1);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: 1.28rem;
}
.wordmark-mark {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: -0.06em;
}
.primary-nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 650;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--mint); color: var(--green-dark); }
.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

main { min-height: 60vh; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 40px), 780px); margin: 0 auto; }
.section { padding: 86px 0; }
.section-compact { padding: 56px 0; }
.section-tint { background: var(--paper-deep); }
.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.65rem, 6.8vw, 5.8rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); letter-spacing: -0.042em; }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.65rem); letter-spacing: -0.025em; }
p { margin: 0 0 1.2em; }
.lede { max-width: 710px; color: var(--muted); font-size: clamp(1.14rem, 2vw, 1.35rem); line-height: 1.55; }
.small { font-size: 0.9rem; color: var(--muted); }

.hero { padding: 92px 0 74px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 64px; align-items: center; }
.hero h1 span { color: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
}
.button:hover { background: var(--green-dark); color: var(--white); }
.button-secondary { background: transparent; color: var(--green-dark); }
.button-secondary:hover { background: var(--mint); color: var(--green-dark); }

.progress-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}
.progress-card::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  top: -32px;
  right: -28px;
  border-radius: 50%;
  background: var(--apricot-soft);
  z-index: -1;
}
.progress-card ol { counter-reset: path; list-style: none; padding: 0; margin: 24px 0 0; }
.progress-card li { counter-increment: path; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.progress-card li::before { content: counter(path); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green-dark); font-weight: 800; font-size: 0.82rem; }

.statement { max-width: 920px; }
.statement p { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3.4vw, 2.8rem); line-height: 1.28; letter-spacing: -0.025em; }

.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.path-card {
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.path-card:nth-child(2n) { background: var(--mint); }
.path-card .card-number { color: var(--green); font-weight: 850; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.path-card p { color: var(--muted); }
.path-card a { margin-top: auto; font-weight: 800; }

.topic-list { border-top: 1px solid var(--line); margin-top: 34px; }
.topic-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.topic-row strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.topic-row p { margin: 4px 0 0; color: var(--muted); }
.topic-row > span:first-child { color: var(--green); font-weight: 850; }
.topic-row a { font-weight: 800; white-space: nowrap; }

.page-hero { padding: 74px 0 54px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 940px; font-size: clamp(2.45rem, 5.4vw, 4.8rem); }
.breadcrumbs { margin: 0 0 26px; color: var(--muted); font-size: 0.88rem; }
.breadcrumbs a { color: var(--muted); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 70px; align-items: start; }
.prose { max-width: 760px; min-width: 0; }
.prose h2 { margin-top: 2em; font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 0.65em; }
.prose blockquote { margin: 32px 0; padding: 24px 28px; border-left: 5px solid var(--apricot); background: var(--apricot-soft); font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; }
.side-note { position: sticky; top: 110px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.side-note h2 { font-family: inherit; font-size: 1rem; letter-spacing: 0; }
.side-note ul { margin: 0; padding-left: 18px; }

.checklist { list-style: none; padding: 0; margin: 28px 0; }
.checklist li { position: relative; padding: 15px 0 15px 42px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green-dark); font-weight: 900; }

.notice { padding: 22px 24px; border: 1px solid #e6c6ad; border-radius: var(--radius-md); background: var(--apricot-soft); }
.notice strong { display: block; margin-bottom: 4px; }

.comparison { overflow-x: auto; margin: 28px 0; }
table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--white); }
th, td { padding: 16px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
th { background: var(--mint); font-size: 0.88rem; }

.tool-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.tool-item { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.status { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--apricot-soft); color: #76421e; font-size: 0.74rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }

.cta-band { padding: 50px; border-radius: var(--radius-lg); background: var(--green-dark); color: var(--white); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-band h2 { font-size: clamp(1.9rem, 3.7vw, 3rem); }
.cta-band p { color: #dce8e2; margin-bottom: 0; }
.cta-band .button { background: var(--white); color: var(--green-dark); border-color: var(--white); }

.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--line); background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 56px; }
.footer-brand p { max-width: 410px; color: var(--muted); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-links h2 { font-family: inherit; font-size: 0.78rem; letter-spacing: 0.11em; text-transform: uppercase; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--green); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; display: flex; justify-content: space-between; gap: 20px; }
.cookie-manage { appearance: none; border: 0; padding: 0; color: var(--green); background: transparent; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.cookie-manage:focus-visible { outline: 3px solid var(--apricot); outline-offset: 4px; border-radius: 2px; }
.consent-banner[hidden] { display: none !important; }
.consent-banner { position: fixed; z-index: 1000; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(calc(100% - 32px), 980px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 20px 60px rgba(18, 38, 29, 0.22); }
.consent-banner h2 { margin: 0 0 6px; font-size: 1.35rem; }
.consent-banner p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.consent-banner a { font-weight: 800; }
.consent-actions { display: flex; gap: 10px; align-items: center; }
.consent-actions .button { white-space: nowrap; }

@media (max-width: 1120px) {
  .header-inner { width: min(calc(100% - 28px), var(--max)); min-height: 66px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; left: 14px; right: 14px; top: 66px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow); }
  .primary-nav[data-open="true"] { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 2px; }
  .primary-nav a { width: 100%; }
}

@media (max-width: 960px) {
  .hero-grid, .article-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 46px; }
  .side-note { position: static; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-note { font-size: 0.78rem; }
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .path-grid, .tool-preview { grid-template-columns: 1fr; }
  .topic-row { grid-template-columns: 42px 1fr; }
  .topic-row a { grid-column: 2; }
  .cta-band { padding: 32px 24px; grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .comparison { overflow: visible; }
  .comparison table, .comparison tbody, .comparison tr, .comparison td { display: block; width: 100%; min-width: 0; }
  .comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .comparison tr { margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
  .comparison td { display: grid; grid-template-columns: minmax(105px, 0.42fr) minmax(0, 1fr); gap: 14px; border: 0; border-bottom: 1px solid var(--line); }
  .comparison td:last-child { border-bottom: 0; }
  .comparison td::before { content: attr(data-label); color: var(--green-dark); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.03em; }
  .consent-banner { bottom: 10px; width: min(calc(100% - 20px), 980px); grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .consent-actions { align-items: stretch; flex-direction: column-reverse; }
  .consent-actions .button { width: 100%; }
}

@media (max-width: 400px) {
  h1 { font-size: 2.45rem; }
  .progress-card { padding: 24px; border-radius: 20px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  th, td { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
