:root {
  --brand-25: #fcf5f1;
  --brand-50: #f8efea;
  --brand-100: #f1ded5;
  --brand-300: #d59b80;
  --brand-400: #c77a56;
  --brand-500: #b85c35;
  --brand-600: #934a2a;
  --brand-700: #6e3720;
  --neutral-25: #fffdf9;
  --neutral-50: #fcfaf6;
  --neutral-100: #f5f0e8;
  --neutral-150: #efe7da;
  --neutral-200: #e5dbcd;
  --neutral-300: #d1c4b4;
  --neutral-500: #877e75;
  --neutral-600: #6a6055;
  --neutral-700: #4e453d;
  --neutral-850: #28231f;
  --neutral-950: #17120f;
  --green-100: #d8f0e0;
  --green-700: #285f43;
  --blue-100: #ddecf7;
  --blue-700: #284d6d;
  --amber-100: #ffecc0;
  --amber-800: #613b13;
  --surface: var(--neutral-25);
  --surface-raised: #ffffff;
  --surface-soft: var(--neutral-100);
  --surface-brand: var(--brand-25);
  --text: var(--neutral-950);
  --text-soft: var(--neutral-700);
  --text-muted: var(--neutral-500);
  --line: var(--neutral-200);
  --line-soft: var(--neutral-150);
  --shadow-subtle: 0 1px 2px rgba(23, 18, 15, 0.05), 0 1px 3px rgba(23, 18, 15, 0.08);
  --shadow-card: 0 10px 28px rgba(23, 18, 15, 0.08);
  --shadow-brand: 0 8px 22px rgba(184, 92, 53, 0.24);
  --radius: 8px;
  --container: 1180px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: Afacad, Inter, ui-sans-serif, system-ui, sans-serif;
}

html[data-theme="dark"] {
  --brand-25: #2d1810;
  --brand-50: #3a1f14;
  --brand-100: #55311f;
  --brand-300: #db9a78;
  --brand-400: #d17e58;
  --brand-500: #c66a43;
  --brand-600: #e28b62;
  --brand-700: #f0b495;
  --neutral-25: #14100d;
  --neutral-50: #191410;
  --neutral-100: #221b16;
  --neutral-150: #302721;
  --neutral-200: #44382f;
  --neutral-300: #64554a;
  --neutral-500: #aa9e93;
  --neutral-600: #c8beb3;
  --neutral-700: #ded6ce;
  --neutral-850: #f2ebe3;
  --neutral-950: #fff8ee;
  --green-100: #153524;
  --green-700: #9ee0b7;
  --blue-100: #142c42;
  --blue-700: #a9d4f4;
  --amber-100: #46300d;
  --amber-800: #ffd789;
  --surface: var(--neutral-50);
  --surface-raised: #211a15;
  --surface-soft: var(--neutral-100);
  --surface-brand: var(--brand-25);
  --text: var(--neutral-950);
  --text-soft: var(--neutral-700);
  --text-muted: var(--neutral-500);
  --line: var(--neutral-200);
  --line-soft: var(--neutral-150);
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.22);
  --shadow-card: 0 16px 38px rgba(0, 0, 0, 0.34);
  --shadow-brand: 0 10px 28px rgba(198, 106, 67, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(184, 92, 53, 0.08), transparent 28rem),
    linear-gradient(180deg, var(--neutral-50), var(--neutral-100));
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(198, 106, 67, 0.16), transparent 28rem),
    linear-gradient(180deg, var(--neutral-25), var(--neutral-100));
}

body.menu-open,
body.drawer-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(184, 92, 53, 0.35);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.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: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--neutral-950);
  color: var(--neutral-25);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

html[data-theme="dark"] .site-header {
  background: rgba(20, 16, 13, 0.9);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-brand);
  user-select: none;
  line-height: 1;
}

.brand-line-main {
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.1;
}

.brand-line-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
}

.brand-divider {
  margin-right: 2px;
  color: var(--brand-500);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.brand-sub-label {
  color: var(--text-soft);
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.desktop-nav a {
  padding: 9px 13px;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  background: var(--brand-25);
  color: var(--brand-700);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-search {
  width: 220px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.button,
.icon-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.button {
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--brand-500);
  background: var(--brand-500);
  color: var(--neutral-25);
  box-shadow: var(--shadow-brand);
}

.button-primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

.button-secondary {
  border-color: var(--brand-300);
  background: var(--surface);
  color: var(--brand-700);
}

.button-secondary:hover {
  background: var(--brand-25);
}

.icon-button {
  width: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.theme-toggle {
  display: none;
}

.theme-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.theme-toggle-icon::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--surface);
  transition: background-color 140ms ease, transform 140ms ease;
}

html[data-theme="dark"] .theme-toggle-icon::after {
  transform: translate(-5px, 5px) scale(0.72);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.mobile-panel nav {
  display: grid;
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 12px 0 18px;
}

.mobile-panel a {
  padding: 13px 0;
  color: var(--text-soft);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}

.hero-section {
  padding: 58px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: 40px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.93;
}

h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

.hero-lede {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.entry-links {
  display: grid;
  gap: 14px;
}

.entry-link {
  width: 100%;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-subtle);
}

.entry-link:hover,
.entry-link.is-active {
  border-color: var(--brand-300);
  background: var(--brand-25);
  box-shadow: var(--shadow-card);
}

.entry-link strong,
.entry-link small {
  display: block;
}

.entry-link strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.entry-link small {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14px;
}

.entry-link b {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--brand-600);
}

.audience-state {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-soft);
}

.audience-state span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
}

.audience-state button,
.filter-head button {
  border: 0;
  background: transparent;
  color: var(--brand-600);
  font-weight: 800;
  text-decoration: underline;
}

.featured-section {
  padding: 34px 0 22px;
}

.section-heading {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.section-heading.compact {
  grid-template-columns: 116px 1fr;
  margin-bottom: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--text-soft);
}

.rail-shell {
  position: relative;
}

.featured-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 31%);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.feature-card {
  min-height: 296px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  text-decoration: none;
  scroll-snap-align: start;
  box-shadow: var(--shadow-subtle);
}

.feature-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-card);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--brand-25);
}

.feature-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.pill,
.tag-button,
.active-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.pill.category {
  background: var(--brand-100);
  color: var(--brand-700);
}

.pill.type-guide {
  background: var(--blue-100);
  color: var(--blue-700);
}

.pill.type-insight {
  background: var(--green-100);
  color: var(--green-700);
}

.pill.audience {
  background: var(--amber-100);
  color: var(--amber-800);
}

.feature-card h3,
.article-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
}

.feature-card p,
.article-card p {
  margin: 0;
  color: var(--text-soft);
}

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 12px;
}

.rail-button {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-subtle);
}

.rail-prev {
  left: -19px;
}

.rail-next {
  right: -19px;
}

.browse-section {
  padding: 44px 0 48px;
  border-top: 1px solid var(--line);
}

.browse-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.filter-drawer-button {
  display: none;
}

.filter-drawer-button span {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-600);
  color: var(--neutral-25);
  font-size: 12px;
}

.browse-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.filter-head strong {
  font-size: 15px;
}

.filter-group {
  display: grid;
  gap: 7px;
}

.filter-group label {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.filter-group select,
.newsletter-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--neutral-50);
  color: var(--text);
}

.filter-group select {
  padding: 0 12px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.tag-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text-soft);
}

.tag-button:hover,
.tag-button.is-active {
  border-color: var(--brand-500);
  background: var(--brand-25);
  color: var(--brand-700);
}

.drawer-actions {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.article-results {
  min-width: 0;
}

.result-bar {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.result-bar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}

.active-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.active-tags span {
  border-color: var(--brand-300);
  background: var(--brand-25);
  color: var(--brand-700);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
}

.article-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.article-card img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  background: var(--brand-25);
}

.article-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 16px;
}

.load-more {
  display: flex;
  width: max-content;
  margin: 28px auto 0;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 46px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.7);
  text-align: center;
}

.empty-state img {
  width: 132px;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  color: var(--text-soft);
}

.newsletter-section {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 28px;
  align-items: center;
  margin-bottom: 54px;
  padding: 30px;
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-25), var(--neutral-25));
  box-shadow: var(--shadow-subtle);
}

.newsletter-section h2 {
  max-width: 520px;
}

.newsletter-section p {
  max-width: 570px;
  margin: 12px 0 0;
  color: var(--text-soft);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter-form input {
  padding: 0 14px;
}

.newsletter-form small {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--brand-700);
  font-weight: 650;
}

.newsletter-form small.is-error {
  color: #84231f;
}

.newsletter-form button:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--neutral-950);
  color: var(--neutral-25);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.site-footer p,
.site-footer a {
  color: var(--neutral-200);
}

.footer-brand .brand-line-main,
.footer-brand .brand-sub-label {
  color: var(--neutral-200);
}

.footer-brand .brand-divider {
  color: var(--brand-300);
}

.site-footer p {
  max-width: 420px;
  margin: 16px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer nav a {
  text-decoration: none;
  font-weight: 700;
}

.article-layout {
  padding: 48px 0 56px;
}

.article-hero {
  max-width: 900px;
}

.article-kicker,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.article-kicker span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 800;
}

.article-hero h1 {
  max-width: 860px;
  margin-top: 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
}

.article-hero > p {
  max-width: 760px;
  margin: 20px 0 18px;
  color: var(--text-soft);
  font-size: 20px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.article-meta span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  display: inline-block;
  margin-left: 9px;
  border-radius: 50%;
  background: var(--neutral-300);
  vertical-align: middle;
}

.article-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 780px);
  gap: 40px;
  align-items: start;
  margin-top: 34px;
}

.article-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
}

.toc-card,
.share-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.toc-card a {
  display: block;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.toc-card span {
  color: var(--text-muted);
  font-size: 13px;
}

.toc-card .toc-level-3 {
  padding-left: 12px;
  font-size: 13px;
  font-weight: 600;
}

.toc-card a:hover {
  color: var(--brand-700);
}

.share-card .active-tags {
  justify-content: flex-start;
}

.article-main {
  min-width: 0;
}

.article-cover {
  margin: 0 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--brand-25);
  box-shadow: var(--shadow-card);
}

.article-cover img {
  width: 100%;
}

.article-section {
  padding: 12px 0 24px;
}

.article-body {
  color: var(--text-soft);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  scroll-margin-top: 96px;
}

.article-body h1 {
  max-width: none;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
}

.article-body h2 {
  margin: 36px 0 14px;
  font-size: clamp(30px, 4vw, 42px);
}

.article-body h3 {
  margin: 28px 0 12px;
  font-size: clamp(23px, 3vw, 30px);
}

.article-body h4 {
  margin: 22px 0 10px;
  font-size: 19px;
}

.article-body p,
.article-body li {
  color: var(--text-soft);
  font-size: 17px;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body > p:first-child {
  color: var(--text);
  font-size: 21px;
  line-height: 1.5;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding-left: 26px;
}

.article-body li::marker {
  color: var(--brand-600);
  font-weight: 800;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--brand-500);
  border-radius: var(--radius);
  background: var(--brand-25);
  color: var(--text);
}

.article-body blockquote p {
  margin-bottom: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.45;
}

.article-body code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--neutral-100);
  color: var(--brand-700);
  font-size: 0.88em;
}

.article-body pre {
  overflow-x: auto;
  margin: 24px 0;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--neutral-950);
  color: var(--neutral-25);
}

.article-body pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.article-body table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
}

.article-body th,
.article-body td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--brand-25);
  color: var(--brand-700);
}

.article-body a {
  color: var(--brand-600);
  font-weight: 700;
}

.article-body hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--line);
}

.load-error {
  padding: 18px;
  border: 1px solid var(--brand-300);
  border-radius: var(--radius);
  background: var(--brand-25);
}

.lead-paragraph {
  color: var(--text);
  font-size: 21px;
  line-height: 1.5;
}

.callout {
  margin: 22px 0;
  padding: 18px;
  border-left: 4px solid var(--brand-500);
  border-radius: var(--radius);
  background: var(--brand-25);
}

.callout p {
  margin: 6px 0 0;
}

.article-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.article-points div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article-points span {
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.article-points h3 {
  margin: 8px 0;
}

.related-section {
  margin-top: 22px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.drawer-overlay {
  display: none;
}

@media (max-width: 1060px) {
  .desktop-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  h1 {
    max-width: 12ch;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-rail {
    grid-auto-columns: minmax(260px, 42%);
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-search,
  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .theme-toggle {
    display: inline-flex;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .hero-section {
    padding-top: 38px;
  }

  .section-heading,
  .section-heading.compact {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .browse-top {
    align-items: start;
  }

  .filter-drawer-button {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .browse-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 70;
    max-height: 84vh;
    overflow: auto;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    transform: translateY(105%);
    transition: transform 220ms ease;
  }

  body.drawer-open .filter-panel {
    transform: translateY(0);
  }

  body.drawer-open .drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(23, 18, 15, 0.44);
  }

  .drawer-actions {
    display: grid;
  }

  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-line-main {
    font-size: 24px;
  }

  .brand-line-sub {
    font-size: 17px;
  }

  .brand-divider {
    font-size: 24px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .entry-link {
    min-height: 104px;
    padding: 16px;
  }

  .entry-link strong {
    font-size: 23px;
  }

  .entry-link b {
    width: 34px;
    height: 34px;
  }

  .featured-rail {
    grid-auto-columns: minmax(248px, 86%);
  }

  .rail-button {
    display: none;
  }

  .browse-top,
  .result-bar {
    display: grid;
  }

  .article-grid,
  .related-grid,
  .article-points,
  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .article-card {
    min-height: auto;
  }

  .newsletter-section {
    padding: 22px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }
}

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