:root {
  --ink: #14231e;
  --ink-soft: #3d4f47;
  --paper: #f3f0e8;
  --paper-2: #e8e4d8;
  --sage: #1c3d32;
  --sage-mid: #2f5c4c;
  --gold: #c4a35a;
  --line: #d4cfc0;
  --white: #fbfaf6;
  --max: 40rem;
  --wide: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  font-weight: 450;
}

h1, h2, h3, .brand, .brand-mark, .brand-foot {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

a { color: var(--sage-mid); text-underline-offset: 0.18em; }
a:hover { color: var(--sage); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 1rem;
  z-index: 200;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
  padding: 0.85rem 0;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.2rem;
}
.brand img { width: 28px; height: 28px; display: block; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  justify-content: flex-end;
}
.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -0.15rem;
  height: 2px;
  background: var(--gold);
  transition: right 0.35s var(--ease);
}
.site-header nav a:hover { color: var(--sage); }
.site-header nav a:hover::after { right: 0; }

.hero-bleed {
  position: relative;
  min-height: min(92vh, 780px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-bleed__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bleed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) both;
}
.hero-bleed__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 35, 30, 0.25) 0%, rgba(20, 35, 30, 0.55) 45%, rgba(20, 35, 30, 0.88) 100%);
}
.hero-bleed__inner {
  width: min(var(--wide), calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 3.25rem;
  animation: rise 0.85s var(--ease) both;
}
.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-bleed h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  max-width: 10ch;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-bleed .lede {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(251, 250, 246, 0.9);
  font-weight: 450;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--gold);
  color: var(--ink);
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.btn:hover { background: #d4b56a; color: var(--ink); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: rgba(251, 250, 246, 0.55);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(251, 250, 246, 0.12);
  color: #fff;
  border-color: #fff;
}
.btn-solid {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}
.btn-solid:hover { background: var(--sage-mid); color: #fff; }

.shell {
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
  padding: 2.5rem 0 4rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.section-head a {
  font-weight: 700;
  text-decoration: none;
  color: var(--sage);
}

.promise {
  width: min(var(--wide), calc(100% - 2rem));
  margin: -1.5rem auto 0;
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  animation: rise 0.7s var(--ease) 0.15s both;
}
.promise strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--sage);
}
.promise span { color: var(--ink-soft); font-size: 0.92rem; }

@media (max-width: 760px) {
  .promise { grid-template-columns: 1fr; margin-top: 0; }
}

.post-list { margin-top: 2.5rem; }
.post-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list li { border-bottom: 1px solid var(--line); }
.post-list li a {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem 1.5rem;
  padding: 1.35rem 0.15rem;
  text-decoration: none;
  color: inherit;
  align-items: start;
  transition: padding-left 0.3s var(--ease);
}
.post-list li a:hover { padding-left: 0.5rem; }
.post-list .meta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-mid);
  padding-top: 0.35rem;
}
.post-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.post-list .desc { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

@media (max-width: 560px) {
  .post-list li a { grid-template-columns: 1fr; gap: 0.25rem; }
}

.topics {
  margin-top: 3.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 0.95rem;
  background: var(--sage);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.25s var(--ease);
}
.topic-chip:hover { background: var(--sage-mid); color: #fff; transform: translateY(-2px); }

.method-cta {
  margin-top: 3.5rem;
  padding: 2.75rem 0;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}
.method-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 14ch;
}
.method-cta p { color: var(--ink-soft); margin: 0 0 1.25rem; max-width: 34rem; }
.method-cta__aside {
  padding: 1.5rem;
  background: var(--sage);
  color: #fff;
}
.method-cta__aside h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--gold);
}
.method-cta__aside ol {
  margin: 0;
  padding-left: 1.1rem;
}
.method-cta__aside li { margin: 0.4rem 0; }

@media (max-width: 800px) {
  .method-cta { grid-template-columns: 1fr; }
}

.article { max-width: var(--max); margin-inline: auto; }
.article-head {
  display: block;
  margin-bottom: 1.5rem;
  animation: rise 0.55s var(--ease) both;
  clear: both;
}
.article-head .cat {
  display: block;
  float: none;
  clear: both;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  background: color-mix(in srgb, var(--sage) 10%, transparent);
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.65rem;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.article-head h1 {
  display: block;
  float: none;
  clear: both;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  margin: 0 0 0.85rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-wrap: break-word;
}
.article-head .desc {
  display: block;
  clear: both;
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0 0 0.85rem;
  line-height: 1.5;
  font-family: var(--font-body);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 80;
  pointer-events: none;
}
.read-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

.prose {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.75;
  clear: both;
}
.prose > p:first-of-type {
  font-size: 1.18rem;
}
.prose :is(h2, h3) {
  font-family: var(--font-display);
  color: var(--ink);
  margin-top: 2.1rem;
}
.prose h2 {
  font-size: 1.45rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.prose :is(ul, ol) {
  font-family: var(--font-body);
  padding-left: 1.2rem;
}
.prose li { margin: 0.4rem 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.35rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
}
.prose th { background: var(--paper-2); }
.prose blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
  font-style: italic;
}

.share-bar {
  margin: 2rem 0 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
}
.share-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.share-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  text-decoration: none;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--sage); background: var(--paper-2); color: var(--ink); }

.related {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}
.related h2 { font-size: 1.3rem; margin: 0 0 0.85rem; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.related a:hover { color: var(--sage); }

.end-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--sage);
  color: #fff;
}
.end-cta h2 { margin: 0 0 0.5rem; color: #fff; font-size: 1.35rem; }
.end-cta p { margin: 0 0 1rem; color: rgba(255,255,255,0.88); }
.end-cta .btn { background: var(--gold); color: var(--ink); }

.page-intro {
  max-width: 36rem;
  margin-bottom: 2rem;
  animation: rise 0.55s var(--ease) both;
}
.page-intro h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.65rem; }
.page-intro p { color: var(--ink-soft); margin: 0; }

.cat-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.cat-grid a {
  display: block;
  padding: 1.25rem 1rem;
  background: var(--sage);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.cat-grid a:hover { background: var(--sage-mid); color: #fff; transform: translateY(-3px); }
.cat-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.cat-grid span { opacity: 0.85; font-size: 0.9rem; }

.search-box {
  margin: 0 0 1.5rem;
  display: flex;
  gap: 0.5rem;
}
.search-box input {
  flex: 1;
  min-height: 48px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
}

.ad-slot {
  margin: 1.5rem auto;
  max-width: var(--max);
  display: grid;
  place-items: center;
}
.ad-slot--reserved {
  width: 100%;
  background: transparent;
}
.ad-slot--placeholder {
  border: 1px dashed var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 0.8rem;
  padding: 1rem;
  text-align: center;
}

.breadcrumbs {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--line);
}
.breadcrumbs a {
  color: var(--sage-mid);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}

.toc {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--white);
}
.toc__title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.toc ol {
  margin: 0;
  padding-left: 1.15rem;
  font-family: var(--font-body);
}
.toc li { margin: 0.35rem 0; }
.toc a {
  color: var(--sage);
  text-decoration: none;
  font-weight: 600;
}
.toc a:hover { text-decoration: underline; }

.mid-cta {
  margin: 2rem 0;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
}
.mid-cta__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-mid);
}
.mid-cta__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
}
.mid-cta ul { margin: 0; padding-left: 1.1rem; font-family: var(--font-body); }
.mid-cta a { font-weight: 700; text-decoration: none; }
.mid-cta a:hover { text-decoration: underline; }

.next-sticky {
  position: sticky;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
}
.next-sticky a {
  display: grid;
  gap: 0.15rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0;
  text-decoration: none;
  color: inherit;
}
.next-sticky span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.next-sticky strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 650;
}
@media (max-width: 640px) {
  .next-sticky strong { font-size: 0.95rem; }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(251, 250, 246, 0.78);
  padding: 2.75rem 0 2.5rem;
  margin-top: 2rem;
}
.site-footer .footer-inner {
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}
.brand-foot {
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.site-footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #fff; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 0;
  justify-content: flex-end;
  align-items: start;
}

@media (max-width: 700px) {
  .site-footer .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .hero-bleed { min-height: 78vh; }
}

.empty { color: var(--ink-soft); }
