:root {
  --paper: #FAF7F2;
  --paper-raised: #FFFFFF;
  --sage: #3D5C4A;
  --sage-deep: #2B4236;
  --sage-soft: #E7EEE8;
  --clay: #E8927C;
  --clay-deep: #D97456;
  --ink: #2B2B28;
  --ink-soft: #56564F;
  --gold: #C9A063;
  --line: rgba(43,43,40,0.10);
  --line-strong: rgba(43,43,40,0.16);
  --shadow-sm: 0 1px 2px rgba(43,36,25,0.06), 0 1px 1px rgba(43,36,25,0.04);
  --shadow-md: 0 8px 24px -8px rgba(43,36,25,0.16), 0 2px 8px -2px rgba(43,36,25,0.08);
  --shadow-lg: 0 24px 48px -16px rgba(43,36,25,0.24), 0 8px 16px -8px rgba(43,36,25,0.10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(61,92,74,0.06), transparent 45%),
    radial-gradient(circle at 88% 8%, rgba(232,146,124,0.07), transparent 40%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--clay); color: #fff; }

a { transition: color 0.15s ease; }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(250,247,242,0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
nav.site-nav .wrap { max-width: 1180px; display: flex; justify-content: space-between; align-items: center; }
nav.site-nav .brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--sage-deep);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
nav.site-nav .brand img.brand-logo {
  width: 26px; height: 26px;
  flex-shrink: 0;
  display: block;
}
nav.site-nav .links { display: flex; align-items: center; gap: 4px; }
nav.site-nav .links a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
nav.site-nav .links a:hover { color: var(--sage-deep); background: var(--sage-soft); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--clay);
  display: inline-block;
}

article header { padding: 52px 0 8px; }

.featured-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 26px 0 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: block;
}

h1 {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.14;
  color: var(--sage-deep);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.meta {
  font-size: 13.5px;
  color: #8a8a83;
  margin-bottom: 20px;
}
.meta a { color: var(--sage); text-decoration: none; font-weight: 600; }

.dek {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 8px;
  padding-left: 16px;
  border-left: 2.5px solid var(--clay);
}

.key-points {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
}
.key-points .kp-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 12px;
}
.key-points ul { margin: 0 0 0 20px; }
.key-points li { margin-bottom: 9px; }
.key-points li:last-child { margin-bottom: 0; }

.disclosure {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.content { padding: 24px 0 10px; font-size: 17.5px; color: #333330; }
.content h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 26px;
  color: var(--sage-deep);
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.content h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--sage-deep);
  margin: 28px 0 10px;
}
.content p { margin-bottom: 17px; }
.content ul, .content ol { margin: 0 0 17px 22px; }
.content li { margin-bottom: 8px; }
.content strong { color: var(--ink); font-weight: 600; }
.content a { color: var(--sage-deep); text-decoration-color: rgba(61,92,74,0.35); text-underline-offset: 2px; }
.content a:hover { color: var(--clay-deep); text-decoration-color: var(--clay-deep); }
.content sup { font-size: 0.7em; }
.content sup a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-deep);
  text-decoration: none;
  font-weight: 700;
}

.sources {
  border-top: 1px solid var(--line);
  padding: 30px 0 0;
  margin-top: 40px;
  font-size: 14px;
  color: var(--ink-soft);
}
.sources h2 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 14px;
}
.sources ol { list-style: none; margin: 0; padding: 0; counter-reset: src; }
.sources ol li {
  counter-increment: src;
  position: relative;
  padding: 10px 14px 10px 40px;
  margin-bottom: 8px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sources ol li:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.sources ol li::before {
  content: counter(src);
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sources a { color: var(--sage-deep); font-weight: 500; }

.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
}
.author-box .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  flex-shrink: 0;
}
.author-box h3 { font-size: 15px; color: var(--sage-deep); margin-bottom: 4px; }
.author-box p { font-size: 14px; color: var(--ink-soft); }
.author-box a { color: var(--sage); }

.related { padding: 34px 0; }
.related h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 21px;
  color: var(--sage-deep);
  margin-bottom: 18px;
}
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card {
  display: block;
  text-decoration: none;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.related-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.related-card .img-wrap { overflow: hidden; }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform 0.4s ease; }
.related-card:hover img { transform: scale(1.05); }
.related-card .related-body { padding: 16px 18px; }
.related-card .tag { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--clay-deep); font-weight: 700; margin-bottom: 6px; }
.related-card h3 { font-size: 15.5px; color: var(--sage-deep); font-family: 'Inter', sans-serif; font-weight: 600; line-height: 1.4; }

/* ---------- video embeds ---------- */
.video-embed {
  width: 100%;
  margin: 26px 0;
  aspect-ratio: 9/16;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow-md);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.video-card {
  display: block;
  text-decoration: none;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.video-card .video-embed { margin: 0; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
.video-card .video-body { padding: 15px 17px; }
.video-card .tag { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--clay-deep); font-weight: 700; margin-bottom: 6px; }
.video-card h3 { font-size: 15.5px; color: var(--sage-deep); font-family: 'Inter', sans-serif; font-weight: 600; line-height: 1.4; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 700px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .video-grid { grid-template-columns: 1fr; } }

.video-embed-wide { aspect-ratio: 16/9; }
.video-grid-wide { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .video-grid-wide { grid-template-columns: 1fr; } }

.section-heading {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  color: var(--sage-deep);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

/* ---------- site banner ---------- */
.site-banner {
  width: 100%;
  display: block;
  background: var(--paper, #faf7f2);
  border-bottom: 1px solid var(--line);
}
.site-banner img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center 60%;
}
@media (max-width: 640px) {
  .site-banner img { max-height: 130px; }
}

/* ---------- hero ---------- */
.hero-block {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-block::after {
  content: "";
  position: absolute;
  top: -60%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(61,92,74,0.10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-block h1 { margin-bottom: 14px; }
.hero-block p.lede { font-size: 18px; color: var(--ink-soft); max-width: 58ch; margin-bottom: 26px; }

.stat-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.stat-row .stat { display: flex; flex-direction: column; }
.stat-row .stat .num {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--sage-deep);
}
.stat-row .stat .label {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-deep);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--sage); }

/* ---------- word cloud ---------- */
.word-cloud-section { padding: 6px 0 34px; border-bottom: 1px solid var(--line); }
.word-cloud-section .eyebrow { margin-bottom: 10px; }
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding: 10px 4px 26px;
}
.word-cloud a {
  text-decoration: none;
  font-family: 'Fraunces', serif;
  line-height: 1.35;
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.word-cloud a:hover { color: var(--clay-deep) !important; transform: rotate(0deg) translateY(-2px) scale(1.05) !important; }
/* cycling tilt angles so the cloud reads as scattered, not a straight line */
.word-cloud a:nth-child(6n+1) { transform: rotate(-3deg); }
.word-cloud a:nth-child(6n+2) { transform: rotate(2deg); }
.word-cloud a:nth-child(6n+3) { transform: rotate(-1.5deg) translateY(3px); }
.word-cloud a:nth-child(6n+4) { transform: rotate(3deg) translateY(-2px); }
.word-cloud a:nth-child(6n+5) { transform: rotate(-2.5deg); }
.word-cloud a:nth-child(6n+6) { transform: rotate(1.5deg) translateY(2px); }
.word-cloud a.wc-xl { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; color: var(--sage-deep); }
.word-cloud a.wc-lg { font-size: clamp(20px, 2.6vw, 27px); font-weight: 500; color: var(--sage-deep); }
.word-cloud a.wc-md { font-size: 19px; font-weight: 500; color: var(--sage); }
.word-cloud a.wc-sm { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.word-cloud a.wc-xs { font-size: 13px; font-weight: 500; color: #9a9a93; }
@media (max-width: 560px) {
  .word-cloud a.wc-xl { font-size: 24px; }
  .word-cloud a.wc-lg { font-size: 19px; }
}

/* ---------- category filter pills ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px 0 20px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar a {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.filter-bar a:hover { color: var(--sage-deep); border-color: var(--sage); background: var(--sage-soft); }

/* ---------- post grid (index) ---------- */
.post-section { padding-top: 8px; margin-bottom: 8px; scroll-margin-top: 90px; }

.category-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--clay-deep);
  font-weight: 700;
  margin: 48px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.category-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.post-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.post-card .img-wrap { overflow: hidden; position: relative; }
.post-card .thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.post-card:hover .thumb { transform: scale(1.06); }
.post-card .card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--clay-deep); font-weight: 700; margin-bottom: 8px; }
.post-card h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18.5px;
  line-height: 1.32;
  color: var(--sage-deep);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.post-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin-top: auto; padding-top: 4px; }

footer {
  text-align: center;
  padding: 48px 0 56px;
  font-size: 13px;
  color: #a3a39c;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
footer a { color: #a3a39c; text-decoration: none; }
footer a:hover { color: var(--sage-deep); }

@media (max-width: 480px) {
  .wrap, .wrap-wide { padding: 0 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 20px; }
  nav.site-nav .links a { padding: 6px 10px; font-size: 13px; }
}
