:root {
  --bg: #fafaf9;
  --paper: #ffffff;
  --text: #1a1a1a;
  --muted: #74746f;
  --line: #deded9;
  --accent: #2f4f4f;
  --accent-soft: #e9efed;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250, 250, 249, .88);
  border-color: rgba(222, 222, 217, .8);
  backdrop-filter: blur(16px);
}
.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border: 1px solid var(--text);
  border-radius: 4px 4px 46% 54%;
  position: relative;
  transform: rotate(0deg);
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  height: 2px;
  background: var(--accent);
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 10px;
  height: 1px;
  background: var(--accent);
}
.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 13px;
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right .25s ease;
}
.nav-links a:hover::after { right: 0; }

/* ---------- Hero ---------- */
.hero {
  padding: 190px 0 90px;
}
.eyebrow {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.12; }
.hero h1 {
  font-size: clamp(44px, 7vw, 108px);
  font-weight: 600;
  letter-spacing: -.055em;
  max-width: 980px;
}
.hero-copy {
  max-width: 560px;
  margin: 38px 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(16px, 1.3vw, 19px);
  color: #454542;
}

/* ---------- Guide list ---------- */
.guides-section { padding: 70px 0 150px; }
.section-index {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.guide-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 42px;
  align-items: baseline;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}
.guide-date {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
}
.guide-row h3 {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -.02em;
  transition: color .2s ease;
}
.guide-row a:hover h3 { color: var(--accent); }
.guide-row p {
  margin: 14px 0 0;
  color: #595954;
  max-width: 640px;
  font-family: "Source Serif 4", Georgia, serif;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  font-size: 13px;
  font-weight: 600;
}
.text-link::after {
  content: "→";
  transition: transform .25s ease;
}
.text-link:hover::after { transform: translateX(7px); }

/* ---------- Post ---------- */
.post { padding: 170px 0 110px; }
.post-container { max-width: 760px; }
.post-header { margin-bottom: 56px; }
.post-title {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -.035em;
}
.post-lede {
  margin: 26px 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  color: #454542;
}
.disclosure-note {
  margin: 30px 0 0;
  padding: 14px 18px;
  background: var(--accent-soft);
  font-size: 12.5px;
  color: #3f4f4a;
  line-height: 1.6;
}
.disclosure-note a { text-decoration: underline; }

.post-body {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17.5px;
  color: #262624;
}
.post-body h2 {
  font-family: Inter, sans-serif;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -.025em;
  margin: 72px 0 24px;
  line-height: 1.25;
}
.post-body h3 {
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 48px 0 16px;
}
.post-body p { margin: 0 0 26px; }
.post-body ul, .post-body ol { margin: 0 0 26px; padding-left: 26px; }
.post-body li { margin-bottom: 10px; }
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body strong { color: var(--text); }
.post-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  color: #4a4a46;
  font-style: italic;
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 64px 0;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
.post-body .table-wrap,
.post-body table {
  margin: 36px 0;
}
.post-body th {
  text-align: left;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 2px solid var(--text);
  white-space: nowrap;
}
.post-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.post-body table { display: block; overflow-x: auto; }
.post-footer { margin-top: 70px; border-top: 1px solid var(--line); }

/* ---------- Static pages ---------- */
.page { padding: 190px 0 130px; }
.page-container { max-width: 760px; }
.page h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -.04em;
  margin-bottom: 40px;
}
.page-body {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17.5px;
  color: #262624;
}
.page-body p { margin: 0 0 26px; }
.page-body h2 {
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin: 56px 0 20px;
}
.page-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Conversion components ---------- */
.post-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 22px 0 0;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
}
.post-hero {
  margin: 44px 0 0;
  border: 1px solid var(--line);
}
.quick-answer {
  margin: 0 0 44px;
  padding: 26px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  font-family: "Source Serif 4", Georgia, serif;
}
.quick-answer .qa-label {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.quick-answer p { margin: 0 0 14px; }
.quick-answer p:last-child { margin-bottom: 0; }
.quick-answer ul { margin: 0; padding-left: 22px; }
.quick-answer li { margin-bottom: 8px; }

.toc {
  margin: 0 0 52px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  font-family: Inter, sans-serif;
}
.toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
  font-size: 13.5px;
  line-height: 1.5;
}
.toc li { margin-bottom: 9px; break-inside: avoid; }
.toc a { color: #454542; }
.toc a:hover { color: var(--accent); }

.cta-button {
  display: inline-block;
  padding: 15px 34px;
  background: var(--accent);
  color: #fff !important;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease;
}
.cta-button:hover { background: #243d3d; transform: translateY(-1px); }
.cta-row { margin: 30px 0 !important; }
.cta-sub {
  display: block;
  margin-top: 10px;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  color: var(--muted);
}

.callout {
  margin: 32px 0;
  padding: 18px 24px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  font-size: 16px;
}
.callout .callout-label {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.callout p { margin: 0; }

.author-box {
  margin: 64px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  align-items: start;
  font-family: Inter, sans-serif;
}
.author-mark {
  width: 54px;
  height: 54px;
  border: 1px solid var(--text);
  position: relative;
  background: var(--paper);
}
.author-mark::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 12px;
  height: 3px;
  background: var(--accent);
}
.author-mark::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 22px;
  height: 2px;
  background: var(--accent);
}
.author-box h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.author-box p { margin: 0; font-size: 13.5px; color: #595954; line-height: 1.65; }

.related {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.related-label {
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 6px;
}
.related .guide-row { padding: 30px 0; }

/* ---------- Home trust strip ---------- */
.principles-section { padding: 0 0 150px; }
.principles { border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 42px;
  align-items: baseline;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}
.principle span { font-size: 11px; color: var(--muted); }
.principle h3 {
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 500;
  letter-spacing: -.025em;
}
.principle p {
  margin: 0;
  color: #595954;
  max-width: 480px;
  font-family: "Source Serif 4", Georgia, serif;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 11px;
  color: var(--muted);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .hero { padding: 150px 0 60px; }
  .guide-row { grid-template-columns: 1fr; gap: 8px; padding: 36px 0; }
  .post { padding: 140px 0 90px; }
  .page { padding: 150px 0 100px; }
  .toc ol { columns: 1; }
  .principle { grid-template-columns: 48px 1fr; gap: 20px; }
  .principle p { grid-column: 2; }
}

@media (max-width: 520px) {
  .nav { height: 68px; }
  .brand { font-size: 11px; }
  .footer-row { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
