/* StoreOn — Celestial Wireframe System */

:root {
  /* Dawn / parchment palette */
  --bg: oklch(0.955 0.012 85); /* parchment */
  --bg-elev: oklch(0.975 0.008 85); /* paler card */
  --bg-deep: oklch(0.92 0.014 85); /* deeper panel */
  --ink: oklch(0.22 0.02 260); /* deep ink */
  --ink-soft: oklch(0.38 0.025 260);
  --ink-mute: oklch(0.55 0.02 260);
  --rule: oklch(0.78 0.015 80); /* hairline */
  --rule-soft: oklch(0.86 0.013 80);
  --accent: oklch(0.55 0.11 60); /* muted gold */
  --accent-deep: oklch(0.42 0.09 55);
  --twilight: oklch(0.38 0.06 270); /* dusk blue */

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      oklch(0.92 0.015 80) 0%,
      transparent 40%
    ),
    radial-gradient(circle at 80% 70%, oklch(0.93 0.02 70) 0%, transparent 45%);
  opacity: 0.5;
  mix-blend-mode: multiply;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.2  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 3;
}

/* ——— Typography ——— */
.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-style: italic;
}
.display em {
  font-style: normal;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

h1.display {
  font-size: clamp(56px, 9vw, 132px);
  margin: 0;
}
h2.display {
  font-size: clamp(40px, 6vw, 80px);
  margin: 0;
}
h3.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  font-style: italic;
  margin: 0;
  letter-spacing: -0.01em;
}

.hairline {
  border: 0;
  height: 1px;
  background: var(--rule);
}

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
}
.brand-glyph {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    var(--bg-elev) 0 40%,
    var(--ink) 41%
  );
  border: 1px solid var(--ink);
}
.brand-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: 4px;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active::after {
  content: "✦";
  position: absolute;
  right: -14px;
  top: 2px;
  font-size: 9px;
  color: var(--accent);
}
.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ——— Scroll reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ——— Section scaffold ——— */
section {
  position: relative;
  padding: clamp(80px, 10vw, 160px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule-soft);
}
.section-head .meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}
@media (max-width: 720px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ——— Constellation line dividers ——— */
.constellation-divider {
  position: relative;
  height: 80px;
  margin: 0 var(--gutter);
}
.constellation-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ——— Footer ——— */
footer {
  border-top: 1px solid var(--rule);
  padding: 80px 0 40px;
  position: relative;
  z-index: 3;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-grid a {
  color: var(--ink-soft);
  font-size: 14px;
}
.footer-grid a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ——— Selection ——— */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Hide scrollbars subtly */
html {
  scroll-behavior: smooth;
}

/* Variation B tweaks */
body[data-variant="grid"] {
  --bg: oklch(0.96 0.008 80);
}

/* NutriScore spotlight responsive */
@media (max-width: 860px) {
  #nutriscore .ns-hero-card {
    grid-template-columns: 1fr !important;
  }
  #nutriscore .ns-hero-card > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid var(--rule-soft);
  }
  #nutriscore .ns-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  #nutriscore .ns-stats {
    grid-template-columns: 1fr 1fr !important;
  }
  #nutriscore .ns-stats > div {
    border-right: none !important;
  }
  #nutriscore .ns-stats > div:nth-child(odd) {
    border-right: 1px solid var(--rule-soft) !important;
  }
}

/* ——— Mobile navigation ——— */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--rule-soft);
  padding-bottom: 12px;
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile a {
  padding: 14px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule-soft);
  display: block;
  transition: color 0.2s;
}
.nav-mobile a:hover {
  color: var(--ink);
}
.nav-mobile-cta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s ease;
  text-decoration: none;
}
.nav-mobile-cta:hover {
  background: var(--ink);
  color: var(--bg);
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .nav-cta {
    display: none !important;
  }
  .nav-hamburger {
    display: flex;
  }
}

/* ——— Hero Editorial ——— */
.hero-ed-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.hero-moon-wrap {
  position: relative;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-ed-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-moon-wrap {
    display: flex;
    justify-content: center;
    order: -1;
  }
  .hero-moon-wrap svg {
    width: min(240px, 60vw) !important;
    height: min(240px, 60vw) !important;
  }
  .hero-moon-meta {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .hero-moon-wrap {
    display: none !important;
  }
  .hero-stats {
    gap: 28px !important;
    margin-top: 40px !important;
  }
}

/* ——— Hero Grid variant ——— */
.hero-grid-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--rule-soft);
  padding-top: 28px;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .hero-grid-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ——— Services ——— */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-soft);
}
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid > div {
    border-right: none !important;
  }
  .services-grid > div:nth-child(2n + 1):not(:last-child) {
    border-right: 1px solid var(--rule-soft) !important;
  }
}
@media (max-width: 580px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-grid > div {
    border-right: none !important;
  }
}
.services-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 12px;
}

/* ——— Work table ——— */
.work-row {
  display: grid;
  grid-template-columns: 60px 1.5fr 1fr 1fr 40px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule-soft);
  transition:
    padding 0.3s ease,
    background 0.3s ease;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
@media (max-width: 768px) {
  .work-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 20px 0;
  }
  .work-idx {
    display: none;
  }
  .work-kind {
    display: none;
  }
  .work-year {
    display: none;
  }
}

/* ——— Process ——— */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--rule-soft);
}
@media (max-width: 960px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 580px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ——— Moon phases ——— */
.moon-phases-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
}
.moon-phases-wrap::-webkit-scrollbar {
  display: none;
}

/* ——— Footer bottom ——— */
@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center;
  }
  footer {
    padding: 60px 0 32px;
  }
}

/* ——— Blog ——— */

/* ——— Blog Hero ——— */
.blog-hero {
  padding: clamp(80px, 10vw, 160px) 0 0;
  border-bottom: 1px solid var(--rule-soft);
}
.blog-hero-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 28px;
}
.blog-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  font-style: italic;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.blog-hero-desc {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Category filter bar */
.blog-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
  flex-wrap: wrap;
}
.blog-filter-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 4px;
}
.blog-filter-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-soft);
  background: transparent;
  color: var(--ink-mute);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}
.blog-filter-btn:hover {
  border-color: var(--ink-soft);
  color: var(--ink-soft);
}
.blog-filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 6%, transparent);
}

/* ——— Article Card Grid ——— */
.blog-section {
  padding: 0;
}
.article-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  margin-top: 48px;
}
.article-card-grid .article-card:first-child {
  grid-column: span 2;
}

/* ——— Article Card ——— */
.article-card {
  background: var(--bg-elev);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease;
  position: relative;
  min-height: 280px;
}
.article-card:hover {
  background: var(--bg);
}
.article-card::after {
  content: "✦";
  position: absolute;
  top: 32px;
  right: 28px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.article-card:hover::after {
  opacity: 1;
  transform: scale(1);
}
.article-card-category {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 18px;
  align-self: flex-start;
}
.article-card-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}
.article-card-grid .article-card:first-child .article-card-title {
  font-size: clamp(24px, 2.5vw, 32px);
  margin-bottom: 16px;
}
.article-card-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 auto;
  flex-grow: 1;
  padding-bottom: 24px;
}
.article-card-grid .article-card:first-child .article-card-excerpt {
  font-size: 14px;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  margin-top: auto;
}
.article-card-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.article-card-reading {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-card-reading::before {
  content: "◐";
  font-size: 10px;
  color: var(--accent);
  font-family: var(--serif);
}

/* Grid count footer */
.blog-grid-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ——— Blog Article Root ——— */
.blog-article-root {
  min-height: 100vh;
}

/* Back bar */
.blog-back-bar {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  z-index: 3;
}
.blog-back-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-back-link:hover {
  color: var(--ink);
}

/* ——— Breadcrumb ——— */
.blog-breadcrumb {
  padding: 24px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.blog-breadcrumb a {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-breadcrumb a:hover {
  color: var(--ink-soft);
}
.blog-breadcrumb-sep {
  color: var(--rule);
  font-size: 10px;
  user-select: none;
}
.blog-breadcrumb-current {
  color: var(--ink-soft);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ——— Article Header ——— */
.article-header {
  padding: clamp(40px, 6vw, 80px) 0 40px;
  border-bottom: 1px solid var(--rule-soft);
}
.article-header-category {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 24px;
}
.article-header-title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 860px;
}
.article-header-title em {
  font-style: normal;
  font-weight: 400;
}
.article-header-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.article-header-meta-item {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-header-meta-item .meta-glyph {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent);
  line-height: 1;
}

/* ——— Article Section Divider ——— */
.article-section-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  color: var(--ink-mute);
}
.article-section-rule::before,
.article-section-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-soft);
}
.article-section-rule-glyph {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent);
}

/* ——— Article Layout (TOC + Body) ——— */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: clamp(40px, 6vw, 80px) 0;
  align-items: start;
}
@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 72px;
  }
}

/* ——— Table of Contents Sidebar ——— */
.article-toc {
  display: none;
}
@media (min-width: 900px) {
  .article-toc {
    display: block;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .article-toc::-webkit-scrollbar {
    display: none;
  }
}
.article-toc-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
  display: block;
}
.article-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--rule-soft);
}
.article-toc-link {
  display: block;
  padding: 8px 0 8px 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-mute);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.article-toc-link:hover {
  color: var(--ink-soft);
  border-left-color: var(--rule);
}
.article-toc-link.active {
  color: var(--ink);
  border-left-color: var(--accent);
}
.article-toc-item.level-3 .article-toc-link {
  padding-left: 28px;
  font-size: 11px;
}

/* ——— Article Body ——— */
.article-body {
  max-width: 720px;
  color: var(--ink-soft);
}
@media (min-width: 900px) {
  .article-body {
    max-width: none;
  }
}
.article-body h1 {
  display: none;
}
.article-body h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
}
.article-body > h2:first-child {
  margin-top: 0;
}
.article-body h2 + p,
.article-body h3 + p {
  margin-top: 0;
}
.article-body h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 36px 0 14px;
}
.article-body h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 28px 0 10px;
}
.article-body p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--ink-soft);
}
.article-body li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 6px;
}
.article-body ul {
  list-style: none;
  padding-left: 20px;
}
.article-body ul li {
  position: relative;
  padding-left: 16px;
}
.article-body ul li::before {
  content: "✦";
  position: absolute;
  left: -4px;
  top: 0.2em;
  font-size: 8px;
  color: var(--accent);
  font-family: var(--serif);
  line-height: 1;
}
.article-body ul li input[type="checkbox"] {
  margin-right: 8px;
  accent-color: var(--accent);
}
.article-body ol {
  list-style: decimal;
}
.article-body ol li::marker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
}
.article-body hr {
  border: 0;
  height: 1px;
  background: var(--rule-soft);
  margin: 40px 0;
}
.article-body blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  background: color-mix(in oklch, var(--accent) 4%, var(--bg));
  border-radius: 0 4px 4px 0;
}
.article-body blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.article-body code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-deep);
  color: var(--ink);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--rule-soft);
}
.article-body pre {
  background: var(--bg-deep);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 0 0 28px;
}
.article-body pre code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
}
.article-body strong {
  font-weight: 600;
  color: var(--ink);
}
.article-body em {
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.05em;
}
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.article-body a:hover {
  color: var(--accent-deep);
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 1.5;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body thead {
  background: var(--bg-deep);
}
.article-body th {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule-soft);
  white-space: nowrap;
}
.article-body td {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.article-body td:first-child {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.article-body tbody tr:nth-child(even) td {
  background: color-mix(in oklch, var(--bg-deep) 50%, transparent);
}
.article-body td:not(:first-child) {
  text-align: center;
}

/* ——— CTA Block — In-Article ——— */
.article-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--accent);
  background: color-mix(in oklch, var(--accent) 5%, var(--bg-elev));
  border-radius: 0 4px 4px 0;
  margin: 40px 0;
  flex-wrap: wrap;
}
.article-cta-block-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.article-cta-block-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.article-cta-block-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.article-cta-block-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  flex-shrink: 0;
}
.article-cta-block-link:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
  color: var(--bg);
}

/* ——— Blog Footer CTA ——— */
.blog-footer-cta {
  padding: clamp(80px, 10vw, 120px) 0;
  border-top: 1px solid var(--rule);
  text-align: center;
  position: relative;
}
.blog-footer-cta-moon {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}
.blog-footer-cta-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 24px;
  margin-top: 60px;
}
.blog-footer-cta-title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 auto 32px;
  max-width: 800px;
}
.blog-footer-cta-title em {
  font-style: normal;
  font-weight: 400;
}
.blog-footer-cta-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 auto 40px;
  max-width: 480px;
  line-height: 1.5;
}
.blog-footer-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Loading state */
.blog-loading {
  padding: 40px 0;
}
.blog-loading-bar {
  height: 16px;
  background: var(--rule-soft);
  border-radius: 4px;
  margin-bottom: 14px;
  width: 100%;
  animation: blog-pulse 1.6s ease-in-out infinite;
}
@keyframes blog-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Error state */
.blog-error {
  padding: 60px 0;
  text-align: center;
}

/* ——— Responsive: 768px ——— */
@media (max-width: 768px) {
  .blog-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .article-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-card-grid .article-card:first-child {
    grid-column: span 2;
  }
  .article-header-title {
    font-size: clamp(28px, 6vw, 44px);
  }
  .article-cta-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .article-cta-block-link {
    align-self: flex-start;
  }
  .blog-footer-cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ——— Responsive: 480px ——— */
@media (max-width: 480px) {
  .article-card-grid {
    grid-template-columns: 1fr;
    background: var(--bg);
    border: none;
    gap: 0;
    margin-top: 32px;
  }
  .article-card-grid .article-card:first-child {
    grid-column: span 1;
  }
  .article-card {
    padding: 28px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule-soft);
    min-height: auto;
  }
  .article-card:hover {
    background: var(--bg);
  }
  .article-card::after {
    display: none;
  }
  .blog-breadcrumb-current {
    display: none;
  }
  .article-header-meta {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .article-toc {
    display: none;
  }
  .article-cta-block {
    padding: 20px;
  }
  .blog-filter-bar {
    gap: 6px;
  }
  .blog-filter-btn {
    font-size: 10px;
    padding: 5px 10px;
  }
}

/* ——— Privacy policy (no scroll-reveal; responsive grid) ——— */
.privacy-root .privacy-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
@media (max-width: 640px) {
  .privacy-root .privacy-hero-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}
.privacy-root .privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .privacy-root .privacy-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 72px;
  }
}
.privacy-root .privacy-toc {
  position: static;
}
@media (min-width: 900px) {
  .privacy-root .privacy-toc {
    position: sticky;
    top: 88px;
  }
}
.privacy-root .privacy-meta-row {
  flex-wrap: wrap;
  gap: 12px 24px;
}
.privacy-root .privacy-meta-row .privacy-meta-reading {
  margin-left: auto;
}
@media (max-width: 640px) {
  .privacy-root .privacy-meta-row .privacy-meta-reading {
    margin-left: 0;
    width: 100%;
  }
}
