:root {
  color-scheme: light;
  --paper: #fbf8f3;
  --paper-soft: #f4eee6;
  --paper-warm: #fffdf9;
  --ink: #151515;
  --ink-soft: #4e4b48;
  --muted: #746e68;
  --line: rgba(21, 21, 21, 0.13);
  --line-strong: rgba(21, 21, 21, 0.24);
  --red: #df2027;
  --gold: #916a22;
  --blue: #6c9ec2;
  --dark: #111111;
  --dark-soft: #23201d;
  --white: #fffefa;
  --button-primary-bg: #151515;
  --button-primary-fg: #fffefa;
  --button-secondary-bg: rgba(255, 254, 250, 0.42);
  --button-secondary-hover: #fffefa;
  --proof-bg: rgba(255, 253, 249, 0.74);
  --security-pill-bg: rgba(255, 253, 249, 0.66);
  --use-card-bg: rgba(255, 253, 249, 0.82);
  --use-gradient:
    linear-gradient(180deg, rgba(255, 253, 249, 0.9), rgba(244, 238, 230, 0.92));
  --hero-overlay:
    linear-gradient(
      90deg,
      rgba(251, 248, 243, 0.98) 0%,
      rgba(251, 248, 243, 0.9) 34%,
      rgba(251, 248, 243, 0.48) 72%,
      rgba(251, 248, 243, 0.2) 100%
    ),
    linear-gradient(
      180deg,
      rgba(251, 248, 243, 0.1) 0%,
      rgba(251, 248, 243, 0.98) 100%
    );
  --hero-overlay-mobile:
    linear-gradient(
      180deg,
      rgba(251, 248, 243, 0.98) 0%,
      rgba(251, 248, 243, 0.88) 48%,
      rgba(251, 248, 243, 0.98) 100%
    ),
    linear-gradient(
      90deg,
      rgba(251, 248, 243, 0.96) 0%,
      rgba(251, 248, 243, 0.52) 100%
    );
  --max: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b0d10;
  --paper-soft: #11151a;
  --paper-warm: #0f1216;
  --ink: #f4f0e8;
  --ink-soft: #c6c1b8;
  --muted: #a39e95;
  --line: rgba(244, 240, 232, 0.14);
  --line-strong: rgba(244, 240, 232, 0.3);
  --red: #ff565b;
  --gold: #d7b673;
  --blue: #82b4d8;
  --dark: #050607;
  --dark-soft: #111419;
  --button-primary-bg: #f4f0e8;
  --button-primary-fg: #0b0d10;
  --button-secondary-bg: rgba(15, 18, 22, 0.56);
  --button-secondary-hover: #171b21;
  --proof-bg: rgba(15, 18, 22, 0.82);
  --security-pill-bg: rgba(15, 18, 22, 0.76);
  --use-card-bg: rgba(15, 18, 22, 0.86);
  --use-gradient:
    linear-gradient(180deg, rgba(15, 18, 22, 0.94), rgba(11, 13, 16, 0.98));
  --hero-overlay:
    linear-gradient(
      90deg,
      rgba(11, 13, 16, 0.98) 0%,
      rgba(11, 13, 16, 0.9) 36%,
      rgba(11, 13, 16, 0.58) 72%,
      rgba(11, 13, 16, 0.34) 100%
    ),
    linear-gradient(
      180deg,
      rgba(11, 13, 16, 0.2) 0%,
      rgba(11, 13, 16, 0.99) 100%
    );
  --hero-overlay-mobile:
    linear-gradient(
      180deg,
      rgba(11, 13, 16, 0.98) 0%,
      rgba(11, 13, 16, 0.86) 48%,
      rgba(11, 13, 16, 0.99) 100%
    ),
    linear-gradient(
      90deg,
      rgba(11, 13, 16, 0.96) 0%,
      rgba(11, 13, 16, 0.6) 100%
    );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

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

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

p,
h1,
h2,
h3 {
  margin: 0;
}

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  padding: 26px 28px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max));
  margin: 0 auto;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.42rem;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(223, 32, 39, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--red);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

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

.button.primary {
  color: var(--button-primary-fg);
  background: var(--button-primary-bg);
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: var(--red);
  background: var(--red);
}

.button.secondary {
  color: var(--ink);
  background: var(--button-secondary-bg);
  border-color: var(--line-strong);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--ink);
  background: var(--button-secondary-hover);
}

.nav-cta {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.88rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: var(--button-secondary-bg);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--ink);
  background: var(--button-secondary-hover);
  transform: translateY(-1px);
}

.theme-icon {
  width: 1.2em;
  margin-right: 6px;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}

.theme-icon-light {
  display: none;
}

:root[data-theme="dark"] .theme-icon-dark {
  display: none;
}

:root[data-theme="dark"] .theme-icon-light {
  display: inline;
}

.hero {
  position: relative;
  display: grid;
  min-height: 86svh;
  overflow: clip;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 180ms ease;
}

:root[data-theme="dark"] .hero-image {
  filter: brightness(0.65) saturate(0.82) contrast(1.06);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--hero-overlay);
}

.hero-inner {
  display: grid;
  align-items: center;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 128px 28px 74px;
}

.hero-copy {
  width: min(740px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  content: "";
  background: var(--red);
}

h1 {
  max-width: 840px;
  font-size: 5.15rem;
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 1.28rem;
  line-height: 1.55;
}

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

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--proof-bg);
  backdrop-filter: blur(12px);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 28px;
}

.proof-item {
  min-height: 132px;
  padding: 26px 24px 24px;
  border-left: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 1px solid var(--line);
}

.proof-value {
  display: block;
  color: var(--red);
  font-size: 2.05rem;
  font-weight: 680;
  line-height: 1;
}

.proof-label {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.4;
}

.section {
  padding: 92px 28px;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading {
  max-width: 820px;
  font-size: 3.35rem;
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-intro {
  max-width: 690px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.65;
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 56px;
  align-items: start;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pain-card {
  min-height: 206px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-warm);
}

.pain-card h3,
.feature-card h3,
.use-card h3,
.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.pain-card p,
.feature-card p,
.use-card p,
.step-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.number {
  display: block;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.platform {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}

.platform-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.84fr);
  gap: 60px;
  align-items: center;
}

.platform-visual {
  position: relative;
  min-height: 430px;
}

.platform-visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.flow-list {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.flow-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.flow-item:last-child {
  border-bottom: 1px solid var(--line);
}

.flow-index {
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 800;
}

.flow-title {
  font-size: 1.08rem;
  font-weight: 750;
}

.flow-copy {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.dark-band {
  color: var(--white);
  background: var(--dark);
}

.dark-band .section-kicker,
.dark-band .accent {
  color: #ff5b5f;
}

.dark-band .section-intro,
.dark-band .feature-card p {
  color: rgba(255, 254, 250, 0.72);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  border: 1px solid rgba(255, 254, 250, 0.18);
  background: rgba(255, 254, 250, 0.18);
}

.feature-card {
  min-height: 262px;
  padding: 26px;
  background: var(--dark-soft);
}

.feature-card .number {
  color: #d7b673;
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1fr);
  gap: 60px;
  align-items: center;
}

.security-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.agent-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-warm);
}

.agent-row img {
  width: 148px;
  height: 148px;
  object-fit: contain;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.security-pill {
  min-height: 54px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--security-pill-bg);
  font-size: 0.94rem;
  font-weight: 650;
}

.use-cases {
  background: var(--use-gradient), var(--paper-soft);
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.use-card {
  min-height: 246px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--use-card-bg);
}

.pilot {
  border-top: 1px solid var(--line);
  background: var(--paper-warm);
}

.pilot-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1fr);
  gap: 52px;
  align-items: start;
}

.pilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.step-grid {
  display: grid;
  gap: 14px;
}

.step-card {
  min-height: 154px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.footer {
  padding: 34px 28px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper-warm);
}

.footer-inner {
  display: flex;
  width: min(100%, var(--max));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
}

.footer strong {
  color: var(--ink);
}

@media (max-width: 1000px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  h1 {
    font-size: 4.1rem;
  }

  .section-heading {
    font-size: 2.72rem;
  }

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

  .problem-layout,
  .platform-layout,
  .security-layout,
  .pilot-layout {
    grid-template-columns: 1fr;
  }

  .platform-visual {
    min-height: 320px;
  }

  .platform-visual img {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-nav {
    padding: 18px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 0;
  }

  .theme-toggle {
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .theme-icon {
    margin-right: 0;
  }

  .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .hero {
    min-height: 82svh;
  }

  .hero::after {
    background: var(--hero-overlay-mobile);
  }

  .hero-image {
    object-position: 60% 50%;
  }

  .hero-inner {
    padding: 108px 18px 48px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: clamp(2.72rem, 13vw, 3.1rem);
    line-height: 1;
  }

  .hero-text {
    max-width: 100%;
    margin-top: 22px;
    font-size: 1.06rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .section {
    padding: 68px 18px;
  }

  .section-heading {
    font-size: 2.22rem;
    line-height: 1.08;
  }

  .section-intro {
    font-size: 1rem;
  }

  .proof-grid,
  .pain-grid,
  .feature-grid,
  .security-list,
  .use-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    padding: 0 18px;
  }

  .proof-item {
    min-height: 104px;
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .proof-item:first-child {
    border-top: 0;
  }

  .proof-item:last-child {
    border-right: 0;
  }

  .pain-card,
  .feature-card,
  .use-card,
  .step-card {
    min-height: auto;
  }

  .flow-item {
    grid-template-columns: 48px 1fr;
  }

  .agent-row {
    grid-template-columns: 1fr;
  }

  .agent-row img {
    width: 118px;
    height: 118px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .nav-links a,
  .theme-toggle,
  .hero-image {
    transition: none;
  }
}

.site-nav.static-nav {
  position: static;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(16px);
}

.back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.back-link::before {
  content: "<";
  margin-right: 8px;
  color: var(--red);
}

.home-blog {
  border-top: 1px solid var(--line);
  background: var(--paper-warm);
}

.home-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 52px;
  align-items: start;
}

.home-blog-list {
  display: grid;
  gap: 14px;
}

.blog-card {
  display: block;
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--paper-warm);
}

.blog-card h2,
.blog-card h3,
.blog-empty h2,
.blog-empty h3 {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: 0;
}

.blog-card p,
.blog-empty p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.58;
}

.blog-empty {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.blog-empty code {
  color: var(--ink);
  font-size: 0.92em;
}

.blog-index-hero {
  padding: 88px 28px 28px;
  background: var(--paper-warm);
}

.blog-index-hero h1,
.post-hero h1 {
  max-width: 920px;
  font-size: clamp(3.1rem, 7vw, 5.6rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: 0;
}

.blog-index-section {
  padding-top: 52px;
}

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

.blog-card-large {
  min-height: 360px;
}

.blog-card-large img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.blog-empty-wide {
  max-width: 760px;
}

.post-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 84px 28px 96px;
}

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

.post-description {
  max-width: 720px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1.22rem;
  line-height: 1.58;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.post-meta span::before {
  content: "/";
  margin-right: 10px;
  color: var(--line-strong);
}

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  margin-top: 44px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 64px;
  align-items: start;
  margin-top: 58px;
}

.post-toc {
  position: sticky;
  top: 28px;
}

.toc-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-warm);
}

.toc-details summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 780;
}

.js-toc {
  padding: 0 18px 18px;
}

.js-toc .toc-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.js-toc .toc-list .toc-list {
  margin-top: 7px;
  padding-left: 14px;
}

.js-toc .toc-link {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.js-toc .is-active-link {
  color: var(--red);
  font-weight: 760;
}

.post-content {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.78;
}

.post-content > * + * {
  margin-top: 1.22em;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0;
  scroll-margin-top: 96px;
}

.post-content h2 {
  margin-top: 2.2em;
  font-size: 2rem;
}

.post-content h3 {
  margin-top: 1.75em;
  font-size: 1.36rem;
}

.post-content h4 {
  margin-top: 1.5em;
  font-size: 1.12rem;
}

.post-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.post-content code {
  overflow-wrap: anywhere;
}

.post-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-warm);
}

.post-content pre code {
  display: block;
  min-width: 0;
  overflow-wrap: normal;
  white-space: pre;
}

.post-content img,
.post-content video {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.article-media {
  margin: 2em 0;
}

.article-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.media-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2em 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--dark);
}

.media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.callout {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  background: var(--paper-warm);
}

@media (max-width: 1000px) {
  .home-blog-layout,
  .post-layout {
    grid-template-columns: 1fr;
  }

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

  .post-toc {
    position: static;
  }
}

@media (max-width: 680px) {
  .blog-index-hero {
    padding: 54px 18px 20px;
  }

  .blog-index-grid {
    grid-template-columns: 1fr;
  }

  .blog-card,
  .blog-empty {
    min-height: auto;
    padding: 20px;
  }

  .post-shell {
    padding: 58px 18px 72px;
  }

  .post-cover {
    margin-top: 32px;
    aspect-ratio: 16 / 10;
  }

  .post-layout {
    gap: 34px;
    margin-top: 34px;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.65rem;
  }
}
