:root {
  /* Rose palette — the brand pink. Unified with journal.css + Aura. No cream. */
  --bg:        oklch(0.973 0.015 14);
  --bg-warm:   oklch(0.953 0.025 13);
  --surface:   oklch(0.928 0.033 13);
  --line:      oklch(0.880 0.024 13);
  --fg:        oklch(0.24  0.020 20);
  --fg-soft:   oklch(0.42  0.016 18);
  --fg-mute:   oklch(0.52  0.015 16);
  --accent:    oklch(0.62  0.11  14);  /* THE brand pink */
  --accent-bg: oklch(0.905 0.048 12);

  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-sans:  "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:  "Geist Mono", ui-monospace, monospace;

  --pad-x: clamp(20px, 5vw, 80px);
  --maxw: 1320px;
  --readw: 680px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  letter-spacing: -0.005em;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.serif    { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.012em; }
.serif-it { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.012em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.hairline { height: 1px; background: var(--line); border: 0; }

/* ─────────  NAV  ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 60%, transparent);
}
.nav .brand { font-family: var(--font-serif); font-size: 19px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--fg-soft); transition: color .25s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a.cta {
  padding: 9px 18px; border-radius: 100px; background: var(--fg); color: var(--bg);
  font-size: 13px; transition: background .25s ease;
}
.nav-links a.cta:hover { background: var(--fg-soft); }
@media (max-width: 720px) { .nav-links a:not(.cta) { display: none; } }

/* ─────────  LANGUAGE SWITCH  ───────── */
.lang-switch { display: flex; gap: 14px; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px; }
.lang-switch a { color: var(--fg-mute); transition: color .2s ease; }
.lang-switch a[aria-current="true"], .lang-switch a:hover { color: var(--accent); }
.lang-switch .sep { opacity: 0.4; }

/* ─────────  JOURNAL LISTING  ───────── */
.journal-hero { padding-top: clamp(140px, 20vw, 220px); padding-bottom: clamp(48px, 8vw, 96px); }
.journal-hero .eyebrow { margin-bottom: 20px; }
.journal-hero h1 { font-family: var(--font-serif); font-size: clamp(48px, 8vw, 104px); line-height: 0.98; letter-spacing: -0.02em; max-width: 14ch; }
.journal-hero p { margin-top: 28px; max-width: 54ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--fg-soft); }

.post-list { padding-bottom: clamp(100px, 16vw, 200px); }
.post-item { display: block; padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); transition: opacity .25s ease; }
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-grid { display: grid; gap: 12px 40px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .post-grid { grid-template-columns: 160px 1fr; align-items: start; } }
.post-date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--fg-mute); text-transform: uppercase; padding-top: 8px; }
.post-body h2 { font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.06; margin-bottom: 14px; }
.post-body p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--fg-soft); max-width: 60ch; }
.post-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); }
.post-item:hover .post-more { color: var(--accent); }
.post-more .arrow { transition: transform .25s ease; }
.post-item:hover .post-more .arrow { transform: translateX(4px); }
.post-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); margin-top: 8px; }

/* ─────────  ARTICLE  ───────── */
.article { max-width: var(--readw); margin: 0 auto; padding: 0 var(--pad-x); }
.article-head { padding-top: clamp(130px, 18vw, 200px); padding-bottom: clamp(28px, 4vw, 48px); }
.breadcrumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--fg-mute); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb .sep { opacity: 0.5; }
.article-head h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(38px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.article-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg-mute); text-transform: uppercase; }
.article-lede { margin-top: 30px; font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--fg); font-family: var(--font-serif); letter-spacing: -0.01em; }

.article-body { padding-bottom: clamp(64px, 9vw, 120px); }
.article-body > * + * { margin-top: 26px; }
.article-body p { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.72; color: var(--fg-soft); }
.article-body p strong { color: var(--fg); font-weight: 500; }
.article-body a:not(.btn) { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s ease, color .2s ease; }
.article-body a:not(.btn):hover { color: var(--accent); text-decoration-color: var(--accent); }
.article-body h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(28px, 3.8vw, 42px); line-height: 1.08; letter-spacing: -0.015em; margin-top: clamp(52px, 7vw, 80px); scroll-margin-top: 90px; }
.article-body h3 { font-size: 19px; font-weight: 500; margin-top: 36px; color: var(--fg); }
.article-body ol, .article-body ul { padding-left: 0; list-style: none; }
.article-body ol { counter-reset: li; }
.article-body ol > li { counter-increment: li; position: relative; padding-left: 44px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.66; color: var(--fg-soft); margin-top: 20px; }
.article-body ol > li::before { content: counter(li); position: absolute; left: 0; top: 1px; font-family: var(--font-mono); font-size: 13px; color: var(--accent); width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.article-body li strong { color: var(--fg); font-weight: 500; }

.article-body ol.pieces { border-top: 1px solid var(--line); margin-top: 34px; list-style: none; counter-reset: piece; padding-left: 0; }
.article-body ol.pieces > li { counter-increment: piece; display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); margin-top: 0; color: var(--fg-soft); position: static; }
.article-body ol.pieces > li::before { content: counter(piece); position: static; width: auto; height: auto; border: 0; border-radius: 0; font-family: var(--font-serif); font-size: 30px; color: var(--accent); line-height: 1; display: block; }
.article-body ol.pieces > li p { margin: 0; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.62; }
.article-body ol.pieces > li p strong { color: var(--fg); font-weight: 500; }

figure.article-figure { margin-top: 40px; }
figure.article-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); border-radius: 2px; }
figure.article-figure figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-mute); }

blockquote.pull { border-left: 2px solid var(--accent); padding: 6px 0 6px 28px; font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.28; color: var(--fg); letter-spacing: -0.01em; }

.faq { margin-top: 22px; }
.faq .qa { border-top: 1px solid var(--line); padding: 24px 0; }
.faq .qa:last-child { border-bottom: 1px solid var(--line); }
.faq .q { font-size: 18px; font-weight: 500; color: var(--fg); margin-bottom: 8px; }
.faq .a { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--fg-soft); }

.article-sign { margin-top: clamp(52px, 7vw, 80px); padding: clamp(32px, 4vw, 48px); background: var(--accent-bg); border: 1px solid var(--line); border-radius: 4px; }
.article-sign p { font-family: var(--font-serif); font-style: italic; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--fg); letter-spacing: -0.01em; }
.article-sign .cta-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 100px; font-size: 14px; transition: background .25s ease, border-color .25s ease, color .25s ease; }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn-dark:hover { background: var(--fg-soft); }
.btn-ghost { border: 1px solid var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.back-link { margin-top: clamp(48px, 6vw, 72px); display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-soft); transition: color .2s ease; }
.back-link:hover { color: var(--fg); }

/* ─────────  FOOTER  ───────── */
.footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0 40px; background: var(--bg-warm); margin-top: clamp(80px, 12vw, 160px); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.footer .brand { font-family: var(--font-serif); font-size: 22px; }
.footer .sub { font-size: 13px; color: var(--fg-mute); margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.footer-links a { font-size: 14px; color: var(--fg-soft); transition: color .2s ease; }
.footer-links a:hover { color: var(--fg); }
.footer .copy { max-width: var(--maxw); margin: 40px auto 0; padding: 24px var(--pad-x) 0; border-top: 1px solid var(--line); }
.footer .copy .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--fg-mute); }
.footer.footer--flush { margin-top: 0; }

/* "In this post" summary box */
.in-post { padding: 22px 26px; background: var(--bg-warm); border: 1px solid var(--line); border-radius: 4px; }
.in-post .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 10px; }
.article-body .in-post ul { margin-top: 0; }
.article-body .in-post ul > li { position: relative; padding-left: 20px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--fg-soft); margin-top: 8px; }
.article-body .in-post ul > li::before { content: "•"; position: absolute; left: 2px; color: var(--accent); }

/* Language links on the listing */
.post-langs {
  margin: 28px 0 0;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-mute);
}
.post-langs a { color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.post-langs a:hover { border-color: var(--accent); }
.post-langs .sep { margin: 0 10px; opacity: .5; }
