/* ─────────────────────────────────────────────────────────────
   Vishwadeep Balakrishnan — Personal Site
   Aesthetic: warm parchment editorial · ink and ochre
   Typefaces: Cormorant Garamond (display) + DM Mono (labels)
              + Instrument Sans (body)
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Instrument+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Mono:wght@300;400&display=swap');

/* ── Design tokens ── */
:root {
  --bg:           #f7f4ee;
  --bg-warm:      #f0ebe0;
  --bg-paper:     #faf8f4;
  --surface:      #ede8dc;
  --border:       #d6cfc0;
  --border-soft:  #e2dbd0;

  --ink:          #1a1814;
  --ink-2:        #3d3a33;
  --ink-3:        #726e65;
  --ink-4:        #a39f95;
  --ink-5:        #c4c0b8;

  --ochre:        #b8621a;
  --ochre-mid:    #d4813e;
  --ochre-light:  #e8b080;
  --ochre-pale:   #f5e2cc;
  --ochre-wash:   #fdf3e8;

  --serif:   'Cormorant Garamond', 'Georgia', serif;
  --sans:    'Instrument Sans', system-ui, sans-serif;
  --mono:    'DM Mono', 'Courier New', monospace;

  --content-w: 640px;
  --home-w:    960px;
  --nav-w:     960px;
  --nav-h:     60px;
  --pad-x:     48px;

  --ease: cubic-bezier(0.25, 0, 0, 1);
}

[data-theme="dark"] {
  --bg:           #13110e;
  --bg-warm:      #1a1710;
  --bg-paper:     #100f0c;
  --surface:      #201d17;
  --border:       #302b22;
  --border-soft:  #252118;

  --ink:          #f0ece4;
  --ink-2:        #ccc8be;
  --ink-3:        #8a8679;
  --ink-4:        #5a5750;
  --ink-5:        #3a3730;

  --ochre:        #d4813e;
  --ochre-mid:    #e8a060;
  --ochre-light:  #a05520;
  --ochre-pale:   #3a2010;
  --ochre-wash:   #1e150a;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  min-height: 100vh;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  position: relative;
}

/* Dotted paper texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, var(--border-soft) 0.6px, transparent 0.6px);
  background-size: 20px 20px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] body::after { opacity: 0.12; }

/* ── Page border (homepage) ── */
.page-border {
  position: relative;
  min-height: 100vh;
}

.is-home .page-border {
  margin: 0 10px 10px;
  border: 1px solid var(--border-soft);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  min-height: calc(100vh - 20px - var(--nav-h));
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  transition: background 0.35s var(--ease);
}

nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ochre) 0%, var(--ochre-light) 45%, transparent 100%);
}

nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border-soft);
}

.nav-inner {
  width: 100%;
  max-width: calc(var(--nav-w) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.38rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--ochre); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.015em;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 100%;
  height: 1px;
  background: var(--ochre);
  transition: right 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

/* Pill-style dark mode toggle */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  cursor: pointer;
  padding: 5px 14px;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.theme-toggle:hover {
  color: var(--ochre);
  border-color: var(--ochre-pale);
}
.toggle-icon { font-size: 0.78rem; line-height: 1; }

/* ── Layout ── */
main {
  position: relative;
  z-index: 1;
  max-width: calc(var(--content-w) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.is-home main {
  max-width: calc(var(--home-w) + var(--pad-x) * 2);
}

/* ── HOME PAGE — Board & Cards ── */

.home-board {
  padding: 48px 0 0;
}

.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
}

.board-card {
  position: relative;
  padding: 40px 36px 44px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s;
}

.board-grid .board-card:nth-child(odd) {
  border-right: 1px solid var(--border-soft);
}

.board-card:hover {
  background: var(--bg-warm);
}

.board-card--full {
  border: 1px solid var(--border-soft);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 40px 36px 44px;
  transition: background 0.2s;
}

.board-card--full:hover {
  background: var(--bg-warm);
}

.card-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--ink-5);
  letter-spacing: 0.04em;
}

.card-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 18px;
}

.card-body p {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--ink-2);
  margin-bottom: 0;
}

.card-body strong {
  font-weight: 500;
  color: var(--ink);
}

/* Inline editorial links (body-copy only) */
:is(
  .card-body p a:not(.card-link),
  .about-lede a,
  .about-section p a,
  .ideas-intro a,
  .contact-lede a,
  .essay-body :is(p, li, blockquote, figcaption) a:not(.back-link)
) {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

:is(
  .card-body p a:not(.card-link),
  .about-lede a,
  .about-section p a,
  .ideas-intro a,
  .contact-lede a,
  .essay-body :is(p, li, blockquote, figcaption) a:not(.back-link)
):visited {
  color: inherit;
}

:is(
  .card-body p a:not(.card-link),
  .about-lede a,
  .about-section p a,
  .ideas-intro a,
  .contact-lede a,
  .essay-body :is(p, li, blockquote, figcaption) a:not(.back-link)
):hover {
  color: var(--ochre);
  border-color: var(--ochre-mid);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ochre);
  text-decoration: none;
  margin-top: 20px;
  transition: gap 0.2s var(--ease), color 0.2s;
}
.card-link:hover { gap: 10px; color: var(--ochre-mid); }
.card-link svg { width: 13px; height: 13px; }

/* Home footer */
.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 40px;
  margin-top: 40px;
  border-top: 1px solid var(--border-soft);
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-5);
  letter-spacing: 0.04em;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-4);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--ochre); }

/* ── ABOUT PAGE ── */

.about-wrap {
  padding-top: 64px;
  padding-bottom: 64px;
}

.page-hed {
  margin-bottom: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-soft);
}

.page-hed-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
  display: block;
  margin-bottom: 14px;
}

.page-hed h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.page-hed h1 em { font-style: italic; color: var(--ochre); }

.about-lede {
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--ink-2);
  margin-bottom: 40px;
}

.about-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
}
.about-section:last-child { border-bottom: none; margin-bottom: 0; }

.about-section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: block;
  margin-bottom: 12px;
}

.about-section p {
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--ink-2);
  margin-bottom: 0.55rem;
}
.about-section p:last-child { margin-bottom: 0; }

/* ── IDEAS / ESSAYS ── */

.ideas-wrap {
  padding-top: 64px;
  padding-bottom: 64px;
}

.ideas-intro {
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--ink-2);
  margin-bottom: 40px;
}

.essay-list { border-top: 1px solid var(--border-soft); }

.essay-item {
  display: grid;
  grid-template-columns: 72px 1fr 60px;
  gap: 14px 18px;
  align-items: start;
  padding: 22px 12px;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  margin: 0 -12px;
  border-radius: 3px;
}

.essay-item:hover { background: var(--bg-warm); }
.essay-item:hover .essay-title { color: var(--ochre); }

.essay-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-4);
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding-top: 5px;
}

.essay-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.essay-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: right;
  padding-top: 5px;
}

.essay-desc {
  display: block;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--ink-3);
  line-height: 1.6;
  margin-top: 6px;
}

/* ── ESSAY ARTICLE ── */

.essay-wrap {
  padding-top: 64px;
  padding-bottom: 72px;
}

.essay-header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-soft);
}

.essay-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.essay-meta span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.essay-meta .sep {
  width: 2px;
  height: 2px;
  background: var(--ink-5);
  border-radius: 50%;
  display: inline-block;
}

.essay-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 16px;
}

.essay-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink-3);
  line-height: 1.75;
}

.essay-body {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 300;
  line-height: 1.92;
  color: var(--ink-2);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.essay-body p { margin-bottom: 1.6rem; }

.essay-body h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.essay-body blockquote {
  border-left: 1.5px solid var(--ochre-light);
  padding: 4px 0 4px 20px;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ink-3);
}

.essay-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 2px;
}

.essay-footer {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-4);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}
.back-link:hover { color: var(--ochre); gap: 2px; }

/* ── CONTACT PAGE ── */

.contact-wrap {
  padding-top: 64px;
  padding-bottom: 64px;
}

.contact-lede {
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--ink-2);
  margin-bottom: 40px;
}

.contact-rows { border-top: 1px solid var(--border-soft); max-width: 480px; }

.contact-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline;
}

.contact-row-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.contact-row-val a {
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  overflow-wrap: break-word;
}
.contact-row-val a:hover {
  color: var(--ochre);
  border-color: var(--ochre-pale);
}

/* ── Animations ── */
@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: reveal 0.6s var(--ease) both; }
.fade-up-0 { animation-delay: 0s; }
.fade-up-1 { animation-delay: 0.08s; }
.fade-up-2 { animation-delay: 0.16s; }
.fade-up-3 { animation-delay: 0.24s; }
.fade-up-4 { animation-delay: 0.32s; }
.fade-up-5 { animation-delay: 0.40s; }
.fade-up-6 { animation-delay: 0.48s; }

/* ── Responsive ── */

/* Tablet */
@media (max-width: 768px) {
  :root { --pad-x: 32px; }
  .board-grid { grid-template-columns: 1fr; }
  .board-grid .board-card:nth-child(odd) { border-right: none; }
  .is-home .page-border { margin: 0 6px 6px; }
  .about-wrap,
  .ideas-wrap,
  .contact-wrap { padding-top: 48px; padding-bottom: 48px; }
  .essay-wrap { padding-top: 48px; padding-bottom: 56px; }
  .home-board { padding: 36px 0 0; }
  .board-card { padding: 32px 28px 36px; }
  .board-card--full { padding: 32px 28px 36px; }
}

/* Large phones & small tablets */
@media (max-width: 580px) {
  :root { --pad-x: 20px; }
  html { font-size: 15px; }

  /* Nav — two-row stacked layout */
  nav { height: auto; padding: 10px 0; }
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
  }
  .nav-logo {
    font-size: 1.18rem;
    letter-spacing: 0.005em;
    text-align: center;
  }
  .nav-links {
    gap: 1.2rem;
    justify-content: center;
    width: 100%;
  }
  .nav-links a { font-size: 0.78rem; padding: 4px 0; }
  .theme-toggle { font-size: 0.68rem; padding: 4px 10px; }

  /* Home page-border */
  .is-home .page-border {
    margin: 0 4px 4px;
    border-radius: 0 0 6px 6px;
    min-height: 0;
  }

  /* Board cards */
  .board-card { padding: 26px 22px 30px; }
  .board-card--full { padding: 26px 22px 30px; }

  /* Essay list */
  .essay-item { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .essay-date { display: none; }

  /* Contact */
  .contact-row { grid-template-columns: 80px 1fr; }
  .contact-rows { max-width: 100%; }

  /* Footer */
  .home-footer { flex-direction: column; gap: 12px; align-items: flex-start; }

  /* Vertical rhythm */
  .about-wrap,
  .ideas-wrap,
  .contact-wrap { padding-top: 36px; padding-bottom: 36px; }
  .essay-wrap { padding-top: 36px; padding-bottom: 40px; }
  .page-hed { margin-bottom: 28px; padding-bottom: 24px; }
  .essay-header { margin-bottom: 32px; padding-bottom: 24px; }
  .about-lede,
  .ideas-intro,
  .contact-lede { margin-bottom: 24px; }

  /* Rich content */
  .essay-body pre { padding: 16px 18px; font-size: 0.78rem; }
  .essay-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .essay-body .katex-display { font-size: 0.92em; }
}

/* Narrow phones */
@media (max-width: 420px) {
  :root { --pad-x: 16px; }

  .nav-logo { font-size: 1.1rem; }
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.74rem; }
  .theme-toggle { font-size: 0.64rem; padding: 3px 8px; }

  .board-card { padding: 22px 18px 26px; }
  .board-card--full { padding: 22px 18px 26px; }
  .card-num { top: 14px; right: 16px; }
  .card-body p { font-size: 0.9rem; }

  .essay-item { padding: 16px 8px; margin: 0 -8px; }
  .essay-tag { font-size: 0.62rem; }

  /* Contact: stack label above value */
  .contact-row { grid-template-columns: 1fr; gap: 4px; }

  .home-board { padding: 24px 0 0; }
  .home-footer { padding: 24px 0 32px; margin-top: 28px; }
  .is-home .page-border { margin: 0 3px 3px; }

  .about-section { margin-bottom: 24px; padding-bottom: 24px; }
  .essay-body blockquote { padding-left: 14px; }
}

/* Very narrow screens (320px class) */
@media (max-width: 360px) {
  :root { --pad-x: 14px; }

  .nav-links { gap: 0.7rem; }
  .nav-links a { font-size: 0.7rem; }
  .nav-logo { font-size: 1.02rem; }

  .card-body p { font-size: 0.88rem; }
  .card-link { font-size: 0.72rem; }
  .card-label { font-size: 0.64rem; margin-bottom: 14px; }

  .about-lede,
  .ideas-intro,
  .contact-lede { font-size: 0.88rem; }

  .essay-body { font-size: 1.02rem; }
  .essay-lede { font-size: 1.02rem; }
  .essay-title { font-size: 1.1rem; }
}

/* Short-height viewports */
@media (max-height: 600px) {
  .about-wrap,
  .ideas-wrap,
  .contact-wrap { padding-top: 28px; padding-bottom: 28px; }
  .essay-wrap { padding-top: 28px; padding-bottom: 32px; }
  .page-hed { margin-bottom: 20px; padding-bottom: 16px; }
  .home-board { padding: 20px 0 0; }
}

/* ── Rich essay content ── */

/* Fenced code blocks (Shiki) */
.essay-body pre {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 1.6rem 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  tab-size: 2;
}

.essay-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Shiki dual-theme support */
[data-theme="dark"] .essay-body pre {
  background: var(--surface);
}

[data-theme="dark"] .astro-code,
[data-theme="dark"] .astro-code span {
  color: var(--shiki-dark) !important;
  background-color: var(--shiki-dark-bg) !important;
}

.essay-body pre .shiki.github-light { display: block; }
.essay-body pre .shiki.github-dark  { display: none; }
[data-theme="dark"] .essay-body pre .shiki.github-light { display: none; }
[data-theme="dark"] .essay-body pre .shiki.github-dark  { display: block; }

/* Tables */
.essay-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-family: var(--sans);
  font-size: 0.88rem;
}

.essay-body th,
.essay-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  line-height: 1.5;
}

.essay-body th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-4);
  border-bottom: 2px solid var(--border);
}

.essay-body td {
  color: var(--ink-2);
}

.essay-body tr:last-child td {
  border-bottom: none;
}

/* Figures and images */
.essay-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.6rem 0;
}

.essay-body figure {
  margin: 2rem 0;
}

.essay-body figure img {
  margin: 0;
}

.essay-body figcaption {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-4);
  letter-spacing: 0.03em;
  margin-top: 10px;
  text-align: center;
}

/* Math (KaTeX) */
.essay-body .katex-display {
  margin: 1.6rem 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.essay-body .katex { font-size: 1.05em; }

/* Lists in essay body */
.essay-body ul,
.essay-body ol {
  margin: 1rem 0 1.6rem;
  padding-left: 1.4em;
}

.essay-body li {
  margin-bottom: 0.5rem;
  line-height: 1.78;
}

.essay-body ol { list-style-type: decimal; }
.essay-body ul { list-style-type: disc; }

/* Horizontal rules */
.essay-body hr {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 2.5rem 0;
}

/* Callouts / note boxes */
.callout {
  border-left: 2px solid var(--ochre-light);
  background: var(--ochre-wash);
  padding: 16px 20px;
  margin: 1.6rem 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.callout p:last-child { margin-bottom: 0; }

/* H3 inside essay body */
.essay-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

/* Strong/em in essay body */
.essay-body strong {
  font-weight: 500;
  color: var(--ink);
}
