:root {
  --paper: #f3eee4;
  --paper-deep: #e8dfd0;
  --ink: #252923;
  --muted: #65685f;
  --line: #cec4b4;
  --forest: #253b32;
  --forest-light: #3b554a;
  --ember: #b64d2e;
  --ember-dark: #87351f;
  --gold: #c8964c;
  --white: #fffdf8;
  --shadow: 0 18px 55px rgba(39, 38, 32, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
svg { display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: .7rem 1rem;
  border-radius: .25rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1440px;
  margin: auto;
  padding: 1rem clamp(1rem, 4vw, 4.5rem);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: max-content;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
}
.brand-mark svg { width: 1.55rem; fill: var(--paper); }
.brand-copy { display: grid; gap: .05rem; }
.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.brand-copy span { color: var(--muted); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; }
.primary-nav-list { display: flex; align-items: center; gap: clamp(1.1rem, 2.3vw, 2.4rem); margin: 0; padding: 0; list-style: none; }
.primary-nav a {
  position: relative;
  color: #3c403a;
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
}
.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -.45rem;
  left: 0;
  height: 2px;
  background: var(--ember);
  content: "";
  transform: scaleX(0);
  transition: transform .18s ease;
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }

.menu-button { display: none; border: 0; background: transparent; }

.home-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}
.home-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 22, 18, .25) 1px, transparent 1px) 0 0 / 5rem 5rem,
    linear-gradient(rgba(12, 22, 18, .2) 1px, transparent 1px) 0 0 / 5rem 5rem;
  content: "";
  opacity: .28;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .75fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  width: min(1280px, calc(100% - 2rem));
  margin: auto;
  padding: clamp(5rem, 10vw, 9rem) clamp(.2rem, 3vw, 2rem);
}
.kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.25rem;
  color: #d8c49f;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker::before { width: 2.2rem; height: 1px; background: currentColor; content: ""; }
.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.15rem, 7vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .94;
}
.hero-copy h1 em { color: #d7b879; font-weight: 400; }
.hero-copy > p:not(.kicker) { max-width: 660px; margin: 1.7rem 0 2rem; color: #dce3dd; font-size: clamp(1rem, 1.5vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.15rem;
  border: 1px solid var(--ember);
  border-radius: .15rem;
  background: var(--ember);
  color: white;
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.button:hover { background: var(--ember-dark); border-color: var(--ember-dark); transform: translateY(-1px); }
.button.secondary { border-color: rgba(255,255,255,.32); background: transparent; }
.button.secondary:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.65); }

.hero-note {
  position: relative;
  align-self: end;
  max-width: 430px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.17);
  background: rgba(246, 239, 224, .08);
}
.hero-note::before { position: absolute; inset: .55rem; border: 1px solid rgba(255,255,255,.08); content: ""; pointer-events: none; }
.hero-note-label { color: #d7b879; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-note blockquote { margin: 1.1rem 0 1.5rem; font-family: var(--serif); font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.22; }
.hero-note p { margin: 0; color: #cbd5cd; font-size: .84rem; }

.finder-section {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 2rem));
  margin: -4.5rem auto 0;
  padding: clamp(1.3rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.section-label { margin: 0; color: var(--ember-dark); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.finder-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: .55rem 0 1.5rem;
}
.finder-heading h2, .section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.finder-heading p { max-width: 460px; margin: .25rem 0 0; color: var(--muted); font-size: .92rem; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; top: 50%; left: 1rem; width: 1.2rem; transform: translateY(-50%); stroke: var(--muted); }
.search-input {
  width: 100%;
  height: 3.65rem;
  padding: 0 3.2rem 0 3rem;
  border: 1px solid #aaa395;
  border-radius: 0;
  outline: none;
  background: #fffcf7;
  font-size: 1rem;
}
.search-input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(37,59,50,.13); }
.clear-search { position: absolute; top: 50%; right: .65rem; display: none; border: 0; background: transparent; color: var(--muted); cursor: pointer; transform: translateY(-50%); }
.clear-search.visible { display: block; }
.intent-row { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 0; }
.intent-chip {
  padding: .52rem .75rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: #4e514b;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
}
.intent-chip:hover, .intent-chip.active { border-color: var(--forest); background: var(--forest); color: white; }
.search-status { margin: 1.1rem 0 0; color: var(--muted); font-size: .78rem; }

.library-section { width: min(1280px, calc(100% - 2rem)); margin: auto; padding: clamp(5rem, 10vw, 9rem) 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .6fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-heading p { max-width: 460px; margin: 0; color: var(--muted); }
.library-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.category-nav { position: sticky; top: 6.5rem; display: grid; border-top: 1px solid var(--line); }
.category-button {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  padding: .72rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.category-button span { color: #938c80; font-variant-numeric: tabular-nums; }
.category-button:hover, .category-button.active { color: var(--ember-dark); }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.topic-card {
  display: flex;
  min-height: 315px;
  flex-direction: column;
  padding: clamp(1.25rem, 2.3vw, 2rem);
  border: 1px solid var(--line);
  background: #f8f4ec;
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.topic-card:hover { border-color: #9e9383; background: var(--white); box-shadow: 0 15px 35px rgba(46,42,34,.09); transform: translateY(-3px); }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .65rem; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.card-meta .series { color: var(--ember-dark); }
.topic-card h3 { max-width: 420px; margin: 1.7rem 0 .8rem; font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.03; }
.topic-card p { margin: 0 0 1.5rem; color: var(--muted); font-size: .9rem; }
.read-link { display: flex; align-items: center; gap: .5rem; margin-top: auto; color: var(--forest); font-size: .78rem; font-weight: 800; }
.read-link::after { content: "→"; font-size: 1.05rem; transition: transform .15s; }
.topic-card:hover .read-link::after { transform: translateX(.25rem); }
.empty-state { grid-column: 1 / -1; padding: 3rem; border: 1px solid var(--line); background: var(--white); text-align: center; }
.empty-state h3 { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.7rem; }
.empty-state p { margin: 0; color: var(--muted); }

.approach-section { overflow: hidden; background: #dfd6c7; }
.approach-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 9vw, 9rem); width: min(1280px, calc(100% - 2rem)); margin: auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.approach-seal { display: flex; align-items: center; justify-content: center; }
.seal {
  display: grid;
  width: min(300px, 70vw);
  aspect-ratio: 1;
  place-items: center;
  padding: 3rem;
  border: 1px solid #a99d8b;
  border-radius: 50%;
  text-align: center;
}
.seal span { color: var(--ember-dark); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.seal strong { display: block; margin: .5rem 0; font-family: var(--serif); font-size: 2rem; line-height: 1.05; }
.approach-copy h2 { max-width: 720px; margin: .5rem 0 1rem; font-family: var(--serif); font-size: clamp(2.3rem, 4.5vw, 4.3rem); font-weight: 500; letter-spacing: -.05em; line-height: .98; }
.approach-copy > p { max-width: 680px; color: #50544d; font-size: 1rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; border-top: 1px solid #b9ae9d; padding-top: 1.5rem; }
.principles strong { display: block; margin-bottom: .4rem; font-family: var(--serif); font-size: 1.2rem; }
.principles p { margin: 0; color: var(--muted); font-size: .78rem; }

.article-hero { background: var(--forest); color: var(--white); }
.article-hero-inner { width: min(1050px, calc(100% - 2rem)); margin: auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; color: #c8d2cb; font-size: .72rem; }
.breadcrumbs a { text-underline-offset: 3px; }
.article-series { color: #dabd85; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.article-hero h1 { max-width: 900px; margin: .7rem 0 1.25rem; font-family: var(--serif); font-size: clamp(3rem, 7vw, 6rem); font-weight: 500; letter-spacing: -.055em; line-height: .95; }
.article-dek { max-width: 720px; margin: 0; color: #d6dfd8; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.article-meta { display: flex; gap: 1rem; margin-top: 2rem; color: #afbeb4; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.article-shell { display: grid; grid-template-columns: 210px minmax(0, 720px); gap: clamp(2rem, 7vw, 7rem); width: min(1100px, calc(100% - 2rem)); margin: auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.article-toc { position: sticky; top: 7rem; align-self: start; display: grid; gap: .7rem; padding-top: .8rem; border-top: 2px solid var(--forest); }
.article-toc strong { margin-bottom: .3rem; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.article-toc a { color: var(--muted); font-size: .76rem; text-decoration: none; }
.article-toc a:hover { color: var(--ember-dark); }
.article-body { min-width: 0; }
.article-body section { margin-bottom: 4rem; scroll-margin-top: 7rem; }
.article-body h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.03; }
.article-body h3 { margin: 1.8rem 0 .6rem; font-family: var(--serif); font-size: 1.4rem; }
.article-body p { color: #4f534d; }
.quick-answer { margin-bottom: 4rem; padding: clamp(1.3rem, 3vw, 2.2rem); border-left: 4px solid var(--ember); background: #e6ddce; }
.quick-answer .label { color: var(--ember-dark); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.quick-answer p { margin: .7rem 0 0; color: var(--ink); font-family: var(--serif); font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.35; }
.point-list { display: grid; gap: .8rem; padding: 0; list-style: none; }
.point-list li { position: relative; padding: 1rem 1rem 1rem 2.4rem; border-top: 1px solid var(--line); }
.point-list li::before { position: absolute; top: 1.08rem; left: .4rem; color: var(--ember); content: "◆"; font-size: .72rem; }
.question-list { counter-reset: questions; display: grid; gap: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.question-list li { counter-increment: questions; display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.question-list li::before { color: var(--ember-dark); content: "0" counter(questions); font-family: var(--serif); font-size: 1rem; }
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.resource-card { min-height: 155px; padding: 1.1rem; border: 1px dashed #a99f90; background: rgba(255,255,255,.35); }
.resource-card .resource-type { color: var(--ember-dark); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.resource-card strong { display: block; margin: .65rem 0 .3rem; font-family: var(--serif); font-size: 1.15rem; }
.resource-card p { margin: 0; color: var(--muted); font-size: .74rem; }
.safety-note { margin-top: 2rem; padding: 1rem; border: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.related-wrap { background: #ddd4c5; }
.related-inner { width: min(1100px, calc(100% - 2rem)); margin: auto; padding: 4rem 0; }
.related-inner h2 { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.related-link { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem; border-top: 1px solid #aaa08f; text-decoration: none; }
.related-link:hover { color: var(--ember-dark); }
.related-link span { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.archive-hero { background: var(--forest); color: var(--white); }
.archive-hero > div { width: min(1100px, calc(100% - 2rem)); margin: auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.archive-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 7vw, 6rem); font-weight: 500; letter-spacing: -.055em; line-height: .95; }
.archive-hero p:not(.kicker) { max-width: 700px; color: #d6dfd8; }
.archive-library { width: min(1100px, calc(100% - 2rem)); margin: auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.content-shell { width: min(850px, calc(100% - 2rem)); min-height: 60vh; margin: auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.standard-entry + .standard-entry { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.standard-entry h1 { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.standard-entry h1 a { text-decoration: none; }
.standard-entry h1 a:hover { color: var(--ember-dark); }
.standard-entry :where(p, li) { color: #4f534d; }
.standard-entry img { max-width: 100%; height: auto; }
.error-page .button { margin-top: 1rem; }
.guide-editor-content { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.guide-editor-content :where(img, video, iframe) { max-width: 100%; }
.resource-card a { color: var(--ember-dark); font-weight: 750; text-underline-offset: 3px; }
.pagination .nav-links { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.pagination .page-numbers { padding: .5rem .75rem; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--forest); color: white; }
.no-results-message { display: none; grid-column: 1 / -1; padding: 3rem; border: 1px solid var(--line); background: var(--white); text-align: center; }
.no-results-message.visible { display: block; }
body.admin-bar .site-header { top: 32px; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3.5rem clamp(1rem, 4vw, 4.5rem); background: #20251f; color: #e5e0d7; }
.site-footer > div > p { max-width: 440px; color: #aeb7ae; font-size: .78rem; }
.site-footer .brand-mark { background: #e8dfd0; }
.site-footer .brand-mark svg { fill: var(--forest); }
.site-footer .brand-copy span { color: #99a49c; }
.footer-note { justify-self: end; max-width: 470px; }
.footer-note strong { color: #d9ba7c; font-family: var(--serif); font-size: 1.1rem; }
.copyright { grid-column: 1 / -1; margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid #3d453e; color: #849088; font-size: .68rem; }

:focus-visible { outline: 3px solid #d39a52; outline-offset: 3px; }

@media (max-width: 840px) {
  .site-header { padding-block: .8rem; }
  .brand-copy span { display: none; }
  .menu-button { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; }
  .menu-button i, .menu-button i::before, .menu-button i::after { display: block; width: 1.25rem; height: 1px; background: var(--ink); content: ""; transition: transform .15s; }
  .menu-button i { position: relative; }
  .menu-button i::before { position: absolute; top: -.35rem; }
  .menu-button i::after { position: absolute; top: .35rem; }
  .primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .primary-nav.open { display: flex; }
  .primary-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { padding: .8rem; border-bottom: 1px solid var(--line); }
  .primary-nav a::after { display: none; }
  .hero-inner, .section-heading, .approach-inner { grid-template-columns: 1fr; }
  .home-hero { min-height: auto; }
  .hero-note { align-self: auto; }
  .finder-heading { flex-direction: column; gap: .4rem; }
  .library-layout { grid-template-columns: 1fr; }
  .category-nav { position: static; grid-template-columns: repeat(2, 1fr); }
  .category-button { padding-right: .6rem; }
  .principles { grid-template-columns: 1fr; }
  .article-shell { grid-template-columns: 1fr; }
  .article-toc { position: static; grid-template-columns: repeat(2, 1fr); }
  .article-toc strong { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
  .hero-inner { padding-block: 4.4rem 7rem; }
  .topic-grid, .resource-grid, .related-grid, .site-footer { grid-template-columns: 1fr; }
  .topic-card { min-height: 280px; }
  .footer-note { justify-self: start; }
  .copyright { grid-column: 1; }
  .category-nav { display: flex; overflow-x: auto; border-top: 0; padding-bottom: .5rem; }
  .category-button { min-width: max-content; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 99px; }
  .category-button span { display: none; }
  .article-meta { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
