/* ==========================================================
   DigiCrafter — shared design system
   Ember palette · Inter Tight + JetBrains Mono + Instrument Serif
   ========================================================== */

:root {
  /* color */
  --ink:        #0E1116;
  --ink-2:      #1B1F2A;
  --ink-3:      #2A2F3A;
  --bone:       #F5EFE6;
  --bone-2:     #EBE3D6;
  --bone-3:     #DED4C2;
  /* Ember: WCAG AA compliant. #CD5E26 hits 4.71:1 vs --ink for `.btn--ember`
     and ~4.7:1 on Bone for body text. (Was #C95A22 = 4.47:1, just under AA.)
     Brighter #E8743C kept as --ember-bright for use on dark backgrounds where
     contrast is fine and brightness reads better. */
  --ember:        #CD5E26;
  --ember-bright: #E8743C;
  --ember-soft:   #F5B891;
  --sage:         #7B8F73;

  /* semantic — light mode default */
  --surface:        var(--bone);
  --surface-2:      var(--bone-2);
  --surface-3:      var(--bone-3);
  --text:           var(--ink);
  --text-soft:      #4A5160;
  /* Text-muted: AA-compliant for small text. Bumped from #7A8090 (~4.0:1) to #5E6470 (~5.8:1). */
  --text-muted:     #5E6470;
  --accent:         var(--ember);
  --accent-soft:    var(--ember-soft);
  --rule:           rgba(14,17,22,0.08);
  --rule-strong:    rgba(14,17,22,0.18);

  /* type */
  --font-display: 'Inter Tight', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif:   'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* fluid type scale */
  --fs-eyebrow: 0.72rem;
  --fs-body:    1rem;
  --fs-lead:    clamp(1.05rem, 0.9rem + 0.7vw, 1.25rem);
  --fs-h4:      clamp(1.1rem, 0.95rem + 0.7vw, 1.35rem);
  --fs-h3:      clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  --fs-h2:      clamp(1.9rem, 1.4rem + 2.4vw, 3rem);
  --fs-h1:      clamp(2.6rem, 1.6rem + 5.2vw, 5.5rem);
  --fs-display: clamp(3.4rem, 2rem + 8vw, 8rem);

  /* letter-spacing tiers — apply by display-tier, not by element. */
  --track-display: -0.035em;  /* hero / page H1 / display */
  --track-h2:      -0.028em;  /* section titles, large prose H2 */
  --track-h3:      -0.018em;  /* sub-section titles, card titles, H4 */
  --track-h4:      -0.012em;  /* tertiary headings */
  --track-body:    -0.005em;  /* body copy */

  /* spacing */
  --gutter: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  --section: clamp(4rem, 3rem + 5vw, 8rem);

  /* motion */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:      0.55s;
  --dur-fast: 0.25s;

  /* radii & shadow */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-1: 0 1px 0 rgba(14,17,22,0.04), 0 6px 24px -8px rgba(14,17,22,0.10);
  --shadow-2: 0 1px 0 rgba(14,17,22,0.06), 0 16px 48px -12px rgba(14,17,22,0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bone);
  padding: .75rem 1rem; border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: .8rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; }

::selection { background: var(--ember); color: var(--bone); }

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

/* ============== LAYOUT ============== */
.shell {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 980px; }
.shell--prose  { max-width: 720px; }

.row { display: grid; gap: var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--ember);
  border-radius: 999px;
  display: inline-block;
}
.eyebrow.no-dot::before { display: none; }

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

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
  gap: 1rem;
}
/* Brand: logo + DigiCrafter wordmark in editorial proportions.
   Locked 2026-05-03 from RG's logo3 (geometric bracket + gradient pill +
   ember half-disc). Transparent PNG so the logo blends with the cream nav. */
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.15rem 0;
}
.brand__mark {
  position: relative;
  width: 76px; height: 54px;
  flex-shrink: 0;
  background-image: url("img/logo/_FINAL/main.png");
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
  transition: transform var(--dur-fast) var(--ease);
}
.brand:hover .brand__mark { transform: scale(1.03); }
/* Wordmark: editorial mixed-case, Inter Tight semibold — sits beside the logo
   like a refined masthead, not a label. The "/ Studio" suffix is a quiet
   tagline in muted color matching site editorial tone. */
.brand__name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1;
}
/* "/ AI Studio" descriptor — sits beside the wordmark as a quiet tagline,
   muted color matching site editorial tone, communicates "AI Studio" identity. */
.brand__co {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0;
  margin-left: 0.18em;
}
/* Mobile: hide the wordmark; logo carries the brand alone */
@media (max-width: 640px) {
  .brand__mark { width: 64px; height: 46px; }
  .brand__name { display: none; }
}

.nav__links {
  display: none;
  gap: 1.85rem;
  align-items: center;
  font-size: 0.93rem;
}
.nav__links a {
  color: var(--text-soft);
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--ember);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }

@media (min-width: 880px) {
  .nav__links { display: inline-flex; }
}

/* ============== MOBILE NAV (HAMBURGER + DRAWER) ============== */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 0; padding: 0;
  background: transparent;
  cursor: pointer;
  margin-left: .8rem;
  position: relative;
  z-index: 60;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  border-radius: 6px;
}
.nav__toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav__toggle.is-open .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 880px) {
  .nav__toggle { display: none; }
}

.nav__drawer {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
  padding-top: 5rem;
  overflow-y: auto;
}
.nav__drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav__drawer-inner {
  max-width: 1320px;
  margin-inline: auto;
  padding: 2rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav__drawer-link {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), color var(--dur-fast) var(--ease);
}
.nav__drawer.is-open .nav__drawer-link {
  transform: translateY(0);
  opacity: 1;
}
.nav__drawer.is-open .nav__drawer-link:nth-child(1) { transition-delay: 0.05s; }
.nav__drawer.is-open .nav__drawer-link:nth-child(2) { transition-delay: 0.10s; }
.nav__drawer.is-open .nav__drawer-link:nth-child(3) { transition-delay: 0.15s; }
.nav__drawer.is-open .nav__drawer-link:nth-child(4) { transition-delay: 0.20s; }
.nav__drawer.is-open .nav__drawer-link:nth-child(5) { transition-delay: 0.25s; }
.nav__drawer-link:hover, .nav__drawer-link[aria-current="page"] { color: var(--ember); }
.nav__drawer-link::after { content: ""; }

.nav__drawer-cta {
  margin-top: 2rem;
  align-self: flex-start;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s var(--ease) 0.30s, opacity 0.5s var(--ease) 0.30s;
}
.nav__drawer.is-open .nav__drawer-cta {
  transform: translateY(0);
  opacity: 1;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.93rem;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bone);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn .arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ember { background: var(--ember); border-color: var(--ember); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--text); }
.btn--lg { padding: .9rem 1.4rem; font-size: 1rem; }

/* ============== AI MODE TOGGLES (paired nav pills) ============== */
/* Two siblings injected by _shared.js: [Reactive] [Concierge] [Book a call].
   Both use .cm-toggle base styles. .cm-toggle--reactive is the featured
   variant — slightly stronger ember tint so the pair reads as "primary +
   alternative" rather than two identical buttons. */
.cm-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text);
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--ember) 50%, transparent);
  background: color-mix(in oklab, var(--ember) 5%, transparent);
  margin-right: .6rem;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
}
.cm-toggle:hover {
  border-color: var(--ember);
  background: color-mix(in oklab, var(--ember) 14%, transparent);
  color: var(--ember);
  transform: translateY(-1px);
}
.cm-toggle__dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--ember);
  flex-shrink: 0;
  animation: cm-toggle-pulse 2.4s ease-in-out infinite;
}
@keyframes cm-toggle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--ember) 60%, transparent); }
  50%      { box-shadow: 0 0 0 4px color-mix(in oklab, var(--ember) 0%, transparent); }
}
@media (max-width: 540px) {
  /* On phones, hide label text — keep dot + truncated indicator */
  .cm-toggle { padding: .4rem .55rem; }
}
@media (prefers-reduced-motion: reduce) { .cm-toggle__dot { animation: none; } }

/* Reactive variant — featured. Slightly stronger ember fill, brighter dot. */
.cm-toggle--reactive {
  margin-right: 0.4rem;
  border-color: color-mix(in oklab, var(--ember) 70%, transparent);
  background: color-mix(in oklab, var(--ember) 12%, transparent);
}
.cm-toggle--reactive:hover {
  background: color-mix(in oklab, var(--ember) 22%, transparent);
}
.cm-toggle--reactive .cm-toggle__dot {
  box-shadow: 0 0 6px var(--ember);
}

/* ============== STATUS PILL ============== */
.status {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: color-mix(in oklab, var(--surface-2) 60%, transparent);
}
.status::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--text-muted);
}
.status--live::before    { background: var(--sage); }
.status--build::before   { background: var(--ember); }
.status--concept::before { background: var(--text-muted); }
.status--paused::before  { background: var(--text-muted); }

/* ============== CHIPS ============== */
.chip {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: .4rem .7rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  cursor: default;
  display: inline-block;
}
.chip:hover {
  color: var(--ink); border-color: var(--ember); background: color-mix(in oklab, var(--ember) 12%, transparent);
}

/* ============== TAGS ============== */
.tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.tag + .tag::before { content: "·"; margin-right: .5rem; color: var(--text-muted); }

/* ============== SECTIONS ============== */
.section {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}
.section--no-rule { border-top: 0; }
.section--ink {
  background: var(--ink);
  color: var(--bone);
  border-top: 0;
}
.section--ink .eyebrow { color: var(--bone-3); }
.section--ink .section__title { color: var(--bone); }
.section--ink .section__lede  { color: var(--bone-2); }

.section__head {
  display: grid; gap: var(--gutter);
  grid-template-columns: 1fr;
  margin-bottom: 3.5rem;
  align-items: end;
}
@media (min-width: 880px) {
  .section__head { grid-template-columns: 1fr 1fr; }
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: .5rem 0 0;
  max-width: 22ch;
  text-wrap: balance;
}
.section__lede {
  color: var(--text-soft);
  font-size: var(--fs-lead);
  max-width: 50ch;
  line-height: 1.5;
  margin: 0;
}
.section__link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 4px;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.section__link:hover { color: var(--ember); border-color: var(--ember); }

/* ============== FOOTER (shared) ============== */
.foot {
  padding-block: 4rem 2rem;
  border-top: 1px solid var(--rule-strong);
  background: var(--surface-2);
}
.foot__top {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 720px) { .foot__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
/* A11y: inline links inside info blocks must not rely on color alone. */
.entity a,
.aside-block a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot__col h3,
.foot__col h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-weight: 500;
}
.foot__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.foot__col a {
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color var(--dur-fast) var(--ease);
}
.foot__col a:hover { color: var(--ember); }
.foot__intro {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 1rem 0 0;
  max-width: 36ch;
  line-height: 1.5;
}
.foot__bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ============== REVEAL ============== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============== FORMS (shared field/form patterns) ============== */
.form { display: grid; gap: 1.2rem; }
.form-card {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
}
.form-card__head { margin-bottom: 1.5rem; }
.form-card__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: var(--track-h3); margin: 0 0 .4rem; }
.form-card__desc { color: var(--text-soft); font-size: 0.95rem; line-height: 1.5; margin: 0; }

.field { display: grid; gap: .35rem; }
.field label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field label small {
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-muted);
  margin-left: .5rem;
  font-size: 0.92em;
  opacity: 0.8;
}
.field input, .field textarea, .field select {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: .7rem .9rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease);
  width: 100%;
  font-feature-settings: "ss01";
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--ember); }
.field textarea { min-height: 100px; resize: vertical; line-height: 1.55; font-family: var(--font-display); }

.form__actions { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
.form__msg { font-family: var(--font-mono); font-size: .82rem; color: var(--text-muted); }
.form__msg.is-success { color: var(--sage); }
.form__msg.is-error { color: #C44E2E; }

/* Honeypot — visually hidden AND aria-hidden. The input itself carries aria-hidden so screen readers ignore it. */
.honey-pot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============== PROSE (BLOG POSTS) ============== */
.prose {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--text);
}
.prose > * + * { margin-top: 1.4em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin-top: 2.4em;
  margin-bottom: 0.4em;
  text-wrap: balance;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-top: 2em;
  margin-bottom: 0.4em;
}
.prose p { margin: 0; }
.prose strong { font-weight: 600; }
.prose em { font-family: var(--font-serif); font-style: italic; font-size: 1.08em; }
.prose a {
  color: var(--text);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 95%;
  transition: color var(--dur-fast) var(--ease);
}
.prose a:hover { color: var(--ember); }

.prose blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4em;
  line-height: 1.35;
  color: var(--text);
  margin: 2em 0;
  padding-left: 1.2em;
  border-left: 2px solid var(--ember);
}
.prose blockquote p { margin: 0; }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--rule);
}
.prose pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  background: var(--ink);
  color: var(--bone);
  padding: 1.2rem 1.4rem;
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: 1.6em 0;
}
.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}
.prose ul, .prose ol {
  padding-left: 1.4em;
  margin: 0;
}
.prose li + li { margin-top: 0.5em; }
.prose hr {
  border: 0;
  height: 1px;
  background: var(--rule-strong);
  margin: 3em 0;
}
.prose figure { margin: 2em 0; }
.prose figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6em;
}
.prose .lede {
  font-family: var(--font-serif);
  font-size: 1.5em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1.2em;
  text-wrap: balance;
}
