:root {
  --ink: #17130f;
  --ink-soft: #302820;
  --cream: #fbf7ef;
  --cream-2: #efe5d3;
  --gold: #9d7a45;
  --gold-soft: #cdb181;
  --line: rgba(23, 19, 15, .14);
  --muted: rgba(23, 19, 15, .66);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { color: var(--muted); font-size: 18px; line-height: 1.72; margin: 0 0 22px; }
.resource-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px clamp(20px, 4vw, 54px); border-bottom: 1px solid var(--line); background: rgba(251, 247, 239, .86); backdrop-filter: blur(16px); }
.brand img { height: 27px; }
.header-actions { display: flex; gap: 18px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.header-actions a:hover { color: var(--gold); }
.breadcrumb { max-width: 1280px; margin: 0 auto; padding: 18px clamp(20px, 4vw, 54px) 0; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(23,19,15,.5); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span:last-child { color: var(--gold); }
.article-shell, .hub-shell { max-width: 1280px; margin: 0 auto; padding: 74px clamp(20px, 4vw, 54px) 110px; }
.article-hero, .hub-hero { padding-bottom: 54px; border-bottom: 1px solid var(--line); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero-meta span, .hub-tags span { display: inline-flex; min-height: 32px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); background: rgba(255,255,255,.36); }
h1 { max-width: 980px; margin: 0 0 26px; font-family: var(--serif); font-size: clamp(54px, 8vw, 112px); line-height: .92; font-weight: 500; letter-spacing: 0; }
.lead, .hub-hero p { max-width: 850px; font-size: 22px; line-height: 1.55; color: rgba(23,19,15,.76); }
.hero-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 36px; border: 1px solid var(--line); background: rgba(255,255,255,.34); }
.hero-panel > div { padding: 24px; }
.hero-panel > div + div { border-left: 1px solid var(--line); }
.panel-label { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hero-panel strong { display: block; font-size: 22px; line-height: 1.2; }
.content-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(34px, 6vw, 86px); align-items: start; padding-top: 54px; }
.toc { position: sticky; top: 98px; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.28); }
.toc a { color: var(--muted); font-size: 15px; }
.toc a:hover { color: var(--gold); }
.article-content { min-width: 0; }
.copy-block, .visual-card, .method-section, .saloria-card, .faq-section, .source-section, .related-section { margin-bottom: 70px; }
h2 { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(36px, 4.6vw, 62px); line-height: 1; font-weight: 500; }
h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.2; }
.note-card { margin: 30px 0 0; padding: 24px; border-left: 3px solid var(--gold); background: #f3ead9; color: rgba(23,19,15,.78); font-size: 18px; line-height: 1.58; }
.visual-card, .saloria-card { display: grid; grid-template-columns: minmax(0, .92fr) minmax(320px, 1fr); gap: 36px; align-items: center; padding: clamp(28px, 5vw, 54px); background: var(--ink); color: var(--cream); border-radius: 6px; overflow: hidden; }
.visual-card p, .saloria-card p { color: rgba(251,247,239,.7); }
.visual-card h2, .saloria-card h2 { color: var(--cream); }
.metrics { display: grid; gap: 18px; }
.metric-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: rgba(251,247,239,.78); }
.metric-top strong { color: var(--gold-soft); font-family: var(--mono); }
.metric-track { height: 10px; border-radius: 999px; background: rgba(251,247,239,.14); overflow: hidden; }
.metric-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.metric-row.in .metric-track span { width: var(--value); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 680px; background: rgba(255,255,255,.3); }
th, td { padding: 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.45; }
thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
tbody th { width: 23%; color: var(--ink); }
td { color: var(--muted); }
.method-section { padding: clamp(30px, 5vw, 54px); border: 1px solid var(--line); background: rgba(255,255,255,.3); }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.steps div { padding: 22px; border-top: 1px solid var(--line); }
.steps span { display: block; margin-bottom: 18px; font-family: var(--mono); color: var(--gold); }
.steps p { font-size: 16px; margin: 0; }
.takeaway-list { display: grid; gap: 12px; padding: 0; margin: 28px 0; list-style: none; }
.takeaway-list li { padding: 18px 20px; border: 1px solid var(--line); background: rgba(255,255,255,.26); font-size: 18px; line-height: 1.45; }
.cta-button { justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 16px 24px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); font-weight: 700; }
.faq-section h2 { margin-bottom: 26px; }
.faq-item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-size: 20px; font-weight: 600; }
.faq-item p { margin: 14px 0 0; }
.source-section { padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.3); }
.source-list { display: grid; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
.source-list a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(157,122,69,.35); text-underline-offset: 4px; }
.source-list a:hover { color: var(--gold); }
.related-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.related-links a, .hub-card { padding: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.28); transition: transform .35s, border-color .35s, background .35s; }
.related-links a:hover, .hub-card:hover { transform: translateY(-4px); border-color: rgba(157,122,69,.5); background: rgba(255,255,255,.48); }
.related-links span, .hub-card span { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.hub-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.cluster-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-top: 34px; }
.cluster-link { min-height: 116px; padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.3); transition: transform .35s, border-color .35s, background .35s; }
.cluster-link:hover { transform: translateY(-3px); border-color: rgba(157,122,69,.5); background: rgba(255,255,255,.54); }
.cluster-link span { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.cluster-link strong { display: block; font-size: 18px; line-height: 1.12; }
.cluster-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 34px; padding-top: 54px; }
.cluster-panel { padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.3); align-self: start; }
.cluster-panel ul { margin: 18px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; color: var(--muted); line-height: 1.45; }
.answer-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.answer-link { padding: 20px; border: 1px solid rgba(157,122,69,.34); background: rgba(255,255,255,.38); transition: transform .35s, border-color .35s, background .35s; }
.answer-link:hover { transform: translateY(-3px); border-color: rgba(157,122,69,.66); background: rgba(255,255,255,.62); }
.answer-link span { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.answer-link strong { display: block; font-size: 20px; line-height: 1.15; }
.answer-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 34px; padding-top: 54px; }
.quick-answer { position: sticky; top: 98px; padding: 28px; border: 1px solid rgba(157,122,69,.35); background: #f2e6cf; align-self: start; }
.quick-answer strong { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.quick-answer p { margin-bottom: 16px; font-size: 17px; line-height: 1.58; color: rgba(23,19,15,.76); }
.answer-bullets { display: grid; gap: 10px; padding: 0; margin: 22px 0 0; list-style: none; }
.answer-bullets li { padding: 14px 16px; border: 1px solid var(--line); background: rgba(255,255,255,.34); font-size: 16px; line-height: 1.42; }
.answer-card { margin-bottom: 30px; padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.3); }
.answer-card h2 { font-size: clamp(34px, 4vw, 52px); }
.answer-card h3 { margin-top: 24px; }
.answer-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; }
.answer-map a { padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.34); }
.answer-map a:hover { border-color: rgba(157,122,69,.55); background: rgba(255,255,255,.56); }
.answer-map span { display: block; margin-bottom: 9px; font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.answer-map strong { display: block; font-size: 18px; line-height: 1.18; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 54px; }
.hub-card h2 { font-size: 31px; line-height: 1.05; margin-bottom: 16px; }
.hub-card p { font-size: 16px; line-height: 1.55; }
.hub-card strong { display: block; color: var(--ink); font-size: 14px; }
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 40; background: transparent; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in { opacity: 1; transform: none; }
.article-hero.reveal,
.hub-hero.reveal {
  opacity: 1;
  transform: none;
}
@media (max-width: 920px) {
  .article-shell, .hub-shell { padding-top: 48px; }
  .content-grid, .visual-card, .saloria-card, .cluster-layout, .answer-layout { grid-template-columns: 1fr; }
  .toc { position: relative; top: auto; }
  .quick-answer { position: relative; top: auto; }
  .hero-panel, .steps, .related-links, .hub-grid, .cluster-strip, .answer-strip, .answer-map { grid-template-columns: 1fr; }
  .hero-panel > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cta-button { justify-self: stretch; }
}
@media (max-width: 620px) {
  .resource-header { align-items: flex-start; flex-direction: column; }
  h1 { font-size: 48px; }
  .lead, .hub-hero p { font-size: 19px; }
  p { font-size: 17px; }
}
