/* Nina Moore — topic page styles (shared) */
:root {
  --parchment: #f2ebdd;
  --parchment-2: #ece2cf;
  --sand: #dcc9a9;
  --clay: #b4693f;
  --amber: #8a5a28;
  --ochre: #9c7331;
  --ink: #1e1712;
  --ink-soft: #2b231b;
  --rust: #6d2819;
  --mist: #6b7a5b;
  --line: rgba(30, 23, 18, 0.14);
  --line-strong: rgba(30, 23, 18, 0.28);
  --gold-line: #b4843a;

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --pad-lg: clamp(48px, 10vw, 140px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: var(--ink); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--parchment); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.28'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.45;
}

/* Top — no nav back to main */
.topic-top {
  border-bottom: 1px solid var(--line);
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  background: rgba(242, 235, 221, 0.88);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  z-index: 30;
}
.topic-wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark-mono { width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 13px; color: var(--ink); }
.wordmark-name { font-family: var(--serif); font-size: 16px; font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.topic-top-cta { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--clay); font-weight: 500; padding: 10px 16px; border: 1px solid var(--clay); border-radius: 999px; }
.topic-top-cta:hover { background: var(--clay); color: var(--parchment); }
@media (max-width: 540px) {
  .topic-top { padding: 14px var(--pad); }
  .wordmark-name { font-size: 13px; letter-spacing: 0.08em; }
  .topic-top-cta { padding: 7px 12px; font-size: 10.5px; letter-spacing: 0.16em; }
}

/* Hero */
.topic-hero { padding: clamp(56px, 8vh, 96px) var(--pad) clamp(40px, 6vh, 64px); border-bottom: 1px solid var(--line); }
.topic-hero-inner { max-width: 880px; margin: 0 auto; }
.topic-eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--amber); font-weight: 500; margin-bottom: 24px; display: inline-flex; align-items: center; gap: 12px; }
.topic-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--amber); }
.topic-h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  margin-bottom: 32px;
}
.topic-h1 em {
  font-style: italic;
  color: var(--clay);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.topic-lead {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 720px;
}
.topic-lead + .topic-lead { margin-top: 18px; }

/* Body sections */
.topic-body { padding: clamp(48px, 8vw, 96px) var(--pad); }
.topic-body-inner { max-width: 880px; margin: 0 auto; }
.topic-h2 {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 56px;
  margin-bottom: 24px;
}
.topic-h2:first-child { margin-top: 0; }
.topic-h2 em { font-style: italic; color: var(--clay); font-variation-settings: "WONK" 1; }
.topic-h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}
.topic-h3 em { font-style: italic; color: var(--clay); }
.topic-p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 680px;
}
.topic-p strong { color: var(--ink); font-weight: 500; }
.topic-p em { font-style: italic; }
.topic-p a { color: var(--clay); border-bottom: 1px solid rgba(180,105,63,0.3); }
.topic-p a:hover { border-bottom-color: var(--clay); }

/* Pull / lead quote */
.topic-pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  padding: 32px 0 32px 32px;
  border-left: 1px solid var(--clay);
  margin: 32px 0;
  max-width: 720px;
}
.topic-pull em { color: var(--clay); font-variation-settings: "WONK" 1; }

/* List */
.topic-list { list-style: none; margin: 20px 0; max-width: 680px; }
.topic-list li {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  padding: 14px 0 14px 24px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.topic-list li:first-child { border-top: 1px solid var(--line); }
.topic-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 12px;
  height: 1px;
  background: var(--clay);
}
.topic-list li strong { color: var(--ink); font-weight: 500; }

/* "Not" list — slightly different feel */
.topic-not { background: var(--parchment-2); padding: 32px; border-radius: 4px; margin: 32px 0; max-width: 720px; }
.topic-not h3 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--amber); font-weight: 500; margin-bottom: 16px; }
.topic-not ul { list-style: none; }
.topic-not li { font-family: var(--serif); font-style: italic; font-weight: 320; font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 10px; padding-left: 20px; position: relative; }
.topic-not li::before { content: "—"; position: absolute; left: 0; color: var(--clay); }

/* FAQ */
.topic-faq { margin-top: 56px; max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.faq-q::after {
  content: "+";
  font-family: var(--serif);
  font-size: 24px;
  color: var(--clay);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), margin 0.3s var(--ease);
  margin-top: 0;
}
.faq-item.open .faq-a { max-height: 600px; margin-top: 12px; }

/* Definition box — "what is X" SERP-snippet bait */
.topic-def {
  background: var(--parchment-2);
  border-left: 2px solid var(--clay);
  padding: 28px 32px;
  margin: 40px 0 56px;
  max-width: 760px;
}
.topic-def-label { font-family: var(--sans); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--amber); font-weight: 500; margin-bottom: 12px; }
.topic-def-text { font-family: var(--serif); font-weight: 320; font-size: 19px; line-height: 1.55; color: var(--ink); }
.topic-def-text em { font-style: italic; color: var(--clay); }

/* From-the-practice — italic first-person before CTA */
.topic-from {
  margin: 64px auto 0;
  max-width: 720px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.topic-from-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topic-from-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.topic-from-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 320;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.topic-from-text + .topic-from-text { margin-top: 18px; }
.topic-from-sign {
  margin-top: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--clay);
  font-variation-settings: "WONK" 1;
}

/* Related topic cluster */
.topic-related {
  background: var(--parchment-2);
  padding: clamp(48px, 6vw, 80px) var(--pad);
  border-top: 1px solid var(--line);
}
.topic-related-inner { max-width: 1100px; margin: 0 auto; }
.topic-related-label { font-family: var(--sans); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--amber); font-weight: 500; margin-bottom: 12px; }
.topic-related-head { font-family: var(--serif); font-weight: 280; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.15; color: var(--ink); margin-bottom: 32px; }
.topic-related-head em { font-style: italic; color: var(--clay); font-variation-settings: "WONK" 1; }
.topic-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; background: var(--line-strong); border: 1px solid var(--line-strong); }
.related-card {
  background: var(--parchment-2);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.3s var(--ease);
}
.related-card:hover { background: var(--parchment); }
.related-card-meta { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); font-weight: 500; }
.related-card-title { font-family: var(--serif); font-weight: 350; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.related-card-title em { font-style: italic; color: var(--clay); }
.related-card-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.related-card-link { margin-top: 8px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--clay); font-weight: 500; }
.related-card-link::after { content: " →"; }

/* CTA section */
.topic-cta {
  background: var(--ink);
  color: var(--parchment);
  padding: clamp(64px, 10vw, 120px) var(--pad);
  position: relative;
  overflow: hidden;
}
.topic-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(180, 132, 58, 0.12), transparent 60%);
  pointer-events: none;
}
.topic-cta-inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; }
.topic-cta-eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--clay); margin-bottom: 24px; }
.topic-cta-heading {
  font-family: var(--serif);
  font-weight: 270;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--parchment);
  margin-bottom: 24px;
}
.topic-cta-heading em { font-style: italic; color: var(--clay); font-variation-settings: "WONK" 1; }
.topic-cta-sub {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(242, 235, 221, 0.78);
  max-width: 560px;
  margin: 0 auto 40px;
}
.topic-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.4s var(--ease);
}
.btn-primary { background: var(--parchment); color: var(--ink); }
.btn-primary:hover { background: var(--clay); color: var(--parchment); }
.btn-ghost { color: var(--parchment); border: 1px solid rgba(242, 235, 221, 0.4); }
.btn-ghost:hover { background: rgba(242, 235, 221, 0.1); border-color: var(--parchment); }
@media (max-width: 540px) {
  .topic-cta-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; padding: 14px 24px; font-size: 11.5px; }
}

/* Footer — minimal, no nav back to main */
.topic-foot {
  padding: 40px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.04em;
  background: var(--parchment);
}
.topic-foot a { color: var(--clay); border-bottom: 1px solid rgba(180,105,63,0.3); }
.topic-foot a:hover { border-bottom-color: var(--clay); }
.topic-foot strong { color: var(--ink); font-weight: 500; font-family: var(--serif); font-style: italic; }
