:root {
  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ink: oklch(0.16 0.018 265);
  --ink-soft: oklch(0.33 0.028 265);
  --paper: oklch(0.985 0.004 265);
  --paper-soft: oklch(0.955 0.009 265);
  --night: oklch(0.13 0.022 265);
  --blue: oklch(0.61 0.235 272);
  --blue-dark: oklch(0.51 0.225 272);
  --blue-light: oklch(0.78 0.12 272);
  --rule: oklch(0.78 0.012 265 / 0.48);
  --rule-dark: oklch(0.92 0.01 265 / 0.16);
  --container: 1200px;
  --reading: 42rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(100% - 5rem, var(--container)); margin-inline: auto; }
.eyebrow {
  font-family: var(--font);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}
.accent { color: var(--blue-light); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: var(--paper); }
.btn-blue:hover { background: var(--blue-dark); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}
.text-link span { transition: transform 0.2s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* Navigation */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid var(--rule-dark);
}
.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: var(--space-xl); padding: 0; list-style: none; }
.nav-links a { color: oklch(0.94 0.008 265 / 0.82); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.nav-links a[aria-current] { color: var(--paper); }
.nav-links .btn-nav {
  padding: 0.55rem 1.25rem;
  border: 1px solid oklch(0.94 0.008 265 / 0.3);
  border-radius: 8px;
  background: oklch(0.13 0.022 265 / 0.55);
  color: var(--paper);
}
.nav-hamburger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid oklch(0.94 0.008 265 / 0.3);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-hamburger span { width: 100%; height: 1.5px; border-radius: 2px; background: var(--paper); transition: transform 0.28s var(--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; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Blog index */
.journal-hero {
  position: relative;
  padding: 68px 0 0;
  background: var(--night);
  color: var(--paper);
  overflow: hidden;
}
.journal-hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(5rem, 10vw, 7rem);
}
.journal-hero-copy { max-width: 44rem; }
.journal-hero .eyebrow { margin-bottom: var(--space-lg); color: var(--blue-light); }
.journal-title {
  max-width: 15ch;
  font-family: var(--font);
  font-size: clamp(2.15rem, 3.4vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}
.journal-intro {
  max-width: 49ch;
  margin-top: var(--space-lg);
  color: oklch(0.94 0.008 265 / 0.8);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 500;
  line-height: 1.7;
}
.journal-list { padding-block: clamp(5rem, 10vw, 8rem); }
.section-heading {
  padding-bottom: var(--space-lg);
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  border-bottom: 1px solid var(--rule);
}
.section-heading .eyebrow { color: var(--blue-dark); }
.section-count { color: var(--ink-soft); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; }
.post-list { border-bottom: 1px solid var(--rule); }
.post-row {
  padding-block: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.post-row + .post-row { border-top: 1px solid var(--rule); }
.post-row-copy { display: grid; gap: var(--space-md); }
.post-row h2 {
  max-width: 28ch;
  font-family: var(--font);
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.post-row h2 a { text-decoration: none; }
.post-row h2 a:hover { color: var(--blue-dark); }
.post-row p { max-width: 58ch; color: var(--ink-soft); font-size: 1rem; font-weight: 500; line-height: 1.65; }
.post-date { color: oklch(0.5 0.014 265); font-size: 0.78rem; font-weight: 600; line-height: 1.4; }
.post-row-action {
  justify-self: end;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s var(--ease);
}
.post-row-action:hover { color: var(--ink); transform: translateX(4px); }

/* Article */
.article-hero { padding: 68px 0 0; background: var(--night); color: var(--paper); }
.article-hero-inner {
  padding-block: clamp(3rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(14rem, 0.6fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.article-hero-copy { max-width: 44rem; }
.article-kicker { margin-bottom: var(--space-xl); color: var(--blue-light); }
.article-title {
  max-width: none;
  font-family: var(--font);
  font-size: clamp(2.15rem, 3.4vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}
.article-title .title-line { display: block; }
.article-deck { max-width: 49ch; margin-top: var(--space-lg); color: oklch(0.94 0.008 265 / 0.8); font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 500; line-height: 1.7; }
.article-byline { margin-top: var(--space-xl); display: flex; gap: var(--space-sm) var(--space-lg); flex-wrap: wrap; color: oklch(0.94 0.008 265 / 0.58); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.article-hero-media { width: min(100%, 16rem); margin: 0; justify-self: end; }
.article-hero-media img { width: 100%; height: auto; border-radius: 10px; object-fit: contain; }
.article-hero-media figcaption, .article-figure figcaption { padding-top: var(--space-sm); color: var(--ink-soft); font-size: 0.78rem; font-weight: 500; line-height: 1.55; }
.article-hero-media figcaption { color: oklch(0.94 0.008 265 / 0.54); }
.article-shell { padding-block: clamp(4rem, 9vw, 7rem); }
.article-layout { display: grid; grid-template-columns: minmax(10rem, 0.28fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.article-aside { position: sticky; top: var(--space-xl); display: grid; gap: var(--space-xl); }
.article-aside-group { padding-top: var(--space-md); border-top: 1px solid var(--rule); }
.article-aside-label { display: block; margin-bottom: var(--space-sm); color: var(--ink-soft); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.article-aside a { color: var(--ink); font-size: 0.86rem; font-weight: 700; line-height: 1.5; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.article-body { max-width: 52rem; }
.article-body > * + * { margin-top: var(--space-lg); }
.article-body .lede { color: var(--ink); font-family: var(--font); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.42; }
.article-body p, .article-body li { color: var(--ink-soft); font-size: clamp(1.03rem, 1.4vw, 1.12rem); font-weight: 450; line-height: 1.82; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body em { color: var(--ink); }
.article-body a { color: var(--blue-dark); font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-body .btn-blue,
.article-body .btn-blue:visited { color: var(--paper); text-decoration: none; }
.article-body .btn-blue:hover { color: var(--paper); }
.article-body h2 {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  max-width: 26ch;
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.article-body blockquote {
  margin-block: clamp(3rem, 7vw, 5rem);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.article-story-row {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.article-story-copy { display: grid; gap: var(--space-lg); }
.article-story-copy h2 { margin-top: 0; }
.article-figure { width: 100%; margin: 0; justify-self: end; }
.article-figure img { width: 100%; height: auto; border-radius: 10px; object-fit: contain; }
.article-body ol { padding: 0; display: grid; gap: 0; list-style: none; counter-reset: moments; }
.article-body ol li {
  counter-increment: moments;
  padding-block: var(--space-lg);
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: var(--space-md);
  border-top: 1px solid var(--rule);
}
.article-body ol li:last-child { border-bottom: 1px solid var(--rule); }
.article-body ol li::before { content: '0' counter(moments); color: var(--blue-dark); font-family: var(--font); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }
.article-end { margin-top: clamp(4rem, 9vw, 7rem); padding-top: var(--space-xl); border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: var(--space-xl); align-items: center; }
.article-end p { max-width: 34ch; color: var(--ink); font-family: var(--font); font-size: 1.2rem; font-weight: 700; line-height: 1.45; }

/* Shared CTA and footer */
.blog-cta { padding-block: clamp(5rem, 11vw, 8rem); background: var(--blue); color: var(--paper); }
.blog-cta-inner { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: var(--space-2xl); align-items: end; }
.blog-cta .eyebrow { margin-bottom: var(--space-lg); color: oklch(0.97 0.01 272 / 0.72); }
.blog-cta h2 { max-width: 13ch; font-family: var(--font); font-size: clamp(2.7rem, 6vw, 5.4rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.93; text-transform: uppercase; }
.article-page .blog-cta h2 { max-width: 18ch; font-size: clamp(1.75rem, 3.5vw, 3rem); line-height: 1.05; }
.blog-cta p { max-width: 42ch; margin-bottom: var(--space-lg); font-size: 1.02rem; font-weight: 500; line-height: 1.7; }
.blog-cta .btn { border-color: oklch(0.97 0.01 272 / 0.35); color: var(--paper); }
.blog-cta .btn:hover { background: oklch(0.97 0.01 272 / 0.1); }
.footer { padding-top: 4.5rem; background: var(--night); color: var(--paper); }
.footer-top { padding-bottom: 3.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-2xl); }
.footer-tag { max-width: 28ch; margin-top: var(--space-md); color: oklch(0.94 0.008 265 / 0.7); font-size: 0.9rem; font-weight: 500; line-height: 1.7; }
.footer-col-h { display: block; margin-bottom: var(--space-md); color: oklch(0.94 0.008 265 / 0.58); font-family: var(--font); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.footer-col ul { padding: 0; display: flex; flex-direction: column; gap: 0.65rem; list-style: none; }
.footer-col a { color: oklch(0.94 0.008 265 / 0.82); font-size: 0.88rem; font-weight: 500; text-decoration: none; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { padding-block: 1.4rem; display: flex; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; border-top: 1px solid var(--rule-dark); color: oklch(0.94 0.008 265 / 0.62); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 4px; }

@media (max-width: 900px) {
  .wrap { width: min(100% - 2.5rem, var(--container)); }
  .nav { background: oklch(0.13 0.022 265 / 0.94); backdrop-filter: blur(12px); }
  .nav-inner { min-height: 60px; padding-block: 0.6rem; flex-wrap: wrap; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-links.mobile-open { width: 100%; padding-block: var(--space-sm) var(--space-md); display: flex; flex-direction: column; align-items: stretch; gap: 0.2rem; border-top: 1px solid var(--rule-dark); }
  .nav-links a { display: block; padding: 0.75rem 0.5rem; font-size: 1rem; }
  .nav-links .btn-nav { margin-top: 0.375rem; text-align: center; }
  .article-hero-inner, .article-layout, .blog-cta-inner { grid-template-columns: 1fr; }
  .article-hero-inner { gap: var(--space-2xl); }
  .article-hero-media { width: min(100%, 20rem); justify-self: start; }
  .article-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-body { max-width: none; }
  .article-story-row { grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem); gap: var(--space-xl); }
  .article-end { align-items: flex-start; flex-direction: column; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 901px) {
  .article-title .title-line { white-space: nowrap; }
}

@media (max-width: 560px) {
  .journal-title { font-size: clamp(2rem, 9vw, 2.35rem); }
  .post-row { grid-template-columns: 1fr; gap: var(--space-lg); }
  .post-row-action { justify-self: start; }
  .article-title { font-size: clamp(2rem, 9vw, 2.35rem); }
  .article-aside { grid-template-columns: 1fr; }
  .article-story-row { grid-template-columns: 1fr; }
  .article-figure { width: min(100%, 18rem); justify-self: start; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .text-link span, .btn { transition: none; }
}
