:root {
  --canvas: #0B0908;
  --surface: #0D0B09;
  --ink: #E9DFCC;
  --body: #B0A489;
  --muted: #9A8F7C;
  --line: #2A2318;
  --accent: #B8862E;
  --accent-dim: #4A3E28;
  --good: #2e6a4e;
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--canvas); scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--ink); line-height: 1.75; font-size: 1.125rem; -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- nav (mirrors home #topnav) ---------- */
nav#topnav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding-top: calc(22px + env(safe-area-inset-top)); padding-right: max(48px, env(safe-area-inset-right)); padding-bottom: 1.375rem; padding-left: max(48px, env(safe-area-inset-left)); background: linear-gradient(to bottom, rgba(11,9,8,0.92), rgba(11,9,8,0.86) 70%, rgba(11,9,8,0)); backdrop-filter: blur(2px); }
#topnav .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
#topnav .brand img { width: 34px; height: 34px; }
#topnav .brand span { font-family: 'Cormorant', Georgia, serif; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.875rem; color: #E9DFCC; }
#topnav .nav-right { display: flex; align-items: center; gap: 28px; }
#topnav .lang-switch { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; letter-spacing: 0.15em; }
#topnav .lang-switch a { font-size: 0.8125rem; letter-spacing: 0.15em; padding: 0.5rem 0.375rem; display: inline-block; color: #9A8F7C; text-decoration: none; }
#topnav .lang-switch a.active { color: var(--accent); }
#topnav .lang-switch span { color: var(--accent-dim); }
#topnav .nav-cta { border: 1px solid var(--accent-dim); padding: 0.6875rem 1.625rem 0.625rem 1.875rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); transition: border-color 0.4s; text-decoration: none; }
#topnav .nav-cta:hover { border-color: var(--accent); color: #D4A94C; }

.breadcrumb { font-size: 0.8125rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

article.resource { max-width: 740px; margin: 0 auto; padding: 136px 1.5rem 5rem; }
article.resource > h1 { font-family: 'Cormorant', Georgia, serif; font-size: clamp(1.75rem, 5vw, 2.625rem); font-weight: 500; line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.01em; color: var(--ink); }
article.resource .lede { font-size: 1.25rem; line-height: 1.6; color: var(--body); margin-bottom: 32px; font-style: italic; }
article.resource .byline { display: flex; align-items: center; gap: 12px; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
article.resource .byline .author-name { font-weight: 600; font-size: 0.875rem; color: var(--ink); }
article.resource .byline .author-role { color: var(--muted); font-size: 0.8125rem; }
article.resource .byline .published { color: var(--muted); font-size: 0.75rem; margin-left: auto; }

article.resource section { margin-bottom: 48px; }
article.resource h2 { font-family: 'Cormorant', Georgia, serif; font-weight: 500; font-size: 1.625rem; margin-bottom: 16px; margin-top: 8px; scroll-margin-top: 100px; color: var(--ink); }
article.resource h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; margin-top: 24px; color: var(--ink); }
article.resource p { margin-bottom: 18px; color: var(--body); }
article.resource ul, article.resource ol { margin: 0 0 18px 22px; color: var(--body); }
article.resource li { margin-bottom: 8px; }
article.resource strong { font-weight: 600; color: var(--ink); }
article.resource blockquote { border-left: 3px solid var(--accent); padding: 0.5rem 0 0.5rem 1.25rem; margin: 24px 0; font-style: italic; color: var(--muted); }
article.resource a { color: var(--accent); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 1.5rem; margin-bottom: 40px; }
.toc h2 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0 0 0 20px; color: var(--body); }
.toc li { margin-bottom: 6px; font-size: 0.9375rem; }
.toc a { color: var(--ink); }

.cta-funnel { background: transparent; border: none; border-radius: 0; padding: 0; margin: 56px 0 40px; text-align: center; }
.cta-funnel h2 { font-family: 'Cormorant', Georgia, serif; font-weight: 300; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; color: var(--ink); }
.cta-funnel p { color: var(--body); margin-bottom: 28px; font-size: 1rem; }
.cta-button { display: inline-block; border: 1px solid var(--accent); padding: 1.0625rem 2.875rem 1rem 3.125rem; background: none; color: var(--accent); border-radius: 0; font-weight: 400; font-size: 0.8125rem; letter-spacing: 0.34em; text-transform: uppercase; text-decoration: none; transition: background 0.5s, color 0.5s; }
.cta-button:hover { background: var(--accent); color: #0B0908; text-decoration: none; }

/* ---------- footer (mirrors home site-footer) ---------- */
footer.site-footer { border-top: 1px solid #1E1812; padding: 4.375rem 3rem 3.125rem; text-align: center; }
footer.site-footer img { width: 44px; height: 44px; margin: 0 auto 24px; }
.footer-tag { font-family: 'Cormorant', Georgia, serif; font-style: italic; font-weight: 300; font-size: 1.3125rem; color: #E9DFCC; margin-bottom: 18px; text-wrap: pretty; line-height: 1.6; }
.footer-brandline { font-family: 'Cormorant', Georgia, serif; font-style: italic; font-size: 1.0625rem; color: var(--accent); margin-bottom: 34px; }
.footer-legal { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-dim); }
.footer-links { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links a { color: #9A8F7C; text-decoration: none; border-bottom: 1px solid #2A231A; padding-bottom: 0.1875rem; transition: color .3s, border-color .3s; }
.footer-links a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  article.resource { padding: 108px 1rem 3.75rem; }
  nav#topnav { padding-top: calc(16px + env(safe-area-inset-top)); padding-right: max(20px, env(safe-area-inset-right)); padding-bottom: 1rem; padding-left: max(20px, env(safe-area-inset-left)); }
  #topnav .brand span { display: none; }
  #topnav .nav-right { gap: 14px; }
  #topnav .nav-cta { padding: 0.5625rem 1rem 0.5rem 1.125rem; font-size: 0.625rem; letter-spacing: 0.18em; }
  #topnav .lang-switch a { padding: 0.625rem 0.375rem; }
  footer.site-footer { padding: 3rem 1.5rem 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
