/* ============================================================
   smaity.co.in — professional personal-brand theme
   Modeled on the genre standard for security experts/speakers
   (clean light layout, one trust accent, photo-led hero,
   social proof, conversion-oriented speaking & contact).
   Type: Inter. Accent: deep professional blue.
   ============================================================ */

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

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --border: #e4e7ec;
  --accent: #155eb8;
  --accent-dark: #0d4490;
  --accent-soft: #e8f0fb;
  --navy: #0c1c33;
  --navy-text: #aab8cc;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1080px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.05);
  --shadow-lift: 0 12px 24px -8px rgba(16,24,40,.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.kicker {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}

/* ---------------- motion ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cover-anim { opacity: 0; animation: fadeUp .7s ease forwards; }
.cover-anim-1 { animation-delay: .05s; }
.cover-anim-2 { animation-delay: .15s; }
.cover-anim-3 { animation-delay: .25s; }
.cover-anim-4 { animation-delay: .35s; }
.cover-anim-5 { animation-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .cover-anim { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---------------- nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 32px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.nav-brand .accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--text); }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-links a.nav-cta {
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 9px 18px; border-radius: 8px;
  transition: background .2s;
}
.nav-links a.nav-cta:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.5rem; cursor: pointer; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  padding: 12px 22px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--ink); background: #fff;
  cursor: pointer; box-shadow: var(--shadow);
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-fill { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-fill:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.cover { padding-top: 150px; padding-bottom: 0; }
.cover > div { display: block; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 320px;
  gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-eyebrow::before { content: '🏆'; font-size: .85rem; }
.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.1;
  color: var(--ink); margin-bottom: 14px;
}
.hero-tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600; letter-spacing: -.01em; line-height: 1.35;
  color: var(--accent); margin-bottom: 20px; max-width: 24ch;
}
.lede { font-size: 1.04rem; color: var(--text); max-width: 56ch; }
.lede p + p { margin-top: .7em; font-size: .95rem; color: var(--muted); }
.lede strong { color: var(--ink); font-weight: 600; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* expertise chips — scan-at-a-glance focus areas */
.expertise { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; max-width: 560px; }
.chip {
  font-size: .78rem; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-soft); border: 1px solid #cfdff5;
  border-radius: 999px; padding: 5px 13px; white-space: nowrap;
}

.hero-photo-wrap { position: relative; justify-self: center; }
.hero-photo {
  width: 280px; height: 280px; border-radius: 50%;
  object-fit: cover; background: var(--accent-soft);
  border: 6px solid #fff;
  box-shadow: 0 0 0 1px var(--border), 0 24px 48px -12px rgba(16,24,40,.18);
}
.hero-photo-wrap::before {
  content: '';
  position: absolute; inset: -18px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  z-index: -1;
}

/* metrics */
.colophon { margin-top: 56px; }
.colophon-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.metric {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.metric-value { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.metric-value .suffix { color: var(--accent); }
.metric-label { font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 4px; }

/* venue / social-proof strip */
.proof-strip { margin-top: 44px; padding: 22px 0 8px; border-top: 1px solid var(--border); }
.proof-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.proof-names { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: baseline; }
.proof-names span {
  font-size: 1.02rem; font-weight: 700; letter-spacing: .01em;
  color: #98a2b3;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.chapter { padding-top: 64px; padding-bottom: 72px; }
.chapter .mount { display: block; }
body[data-page="home"] .chapter:nth-of-type(even) { background: var(--bg-alt); }
body[data-page="home"] section.chapter { max-width: none; padding-left: 0; padding-right: 0; }
body[data-page="home"] section.chapter > .mount {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: 32px; padding-right: 32px;
}

.chapter-rail { margin-bottom: 6px; }
.chapter-marker { display: block; }
.chapter-kicker { line-height: 1.6; }
.chapter-title, .section-title {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  color: var(--ink); margin: 6px 0 28px;
}

/* ---------------- now / projects ---------------- */
.now-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.now-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px 28px; box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.now-item:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.now-item.featured { border-top: 3px solid var(--accent); }
.now-side { margin-bottom: 10px; }
.now-side .kicker { font-size: .7rem; }
.now-item.featured .now-side .kicker::after { content: ' · Featured'; color: var(--muted); font-weight: 600; }
.now-title { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); margin-bottom: 8px; }
.now-body { font-size: .94rem; color: var(--text); }
.now-body p + p { margin-top: .6em; }

/* ---------------- writing list ---------------- */
.ledger { list-style: none; }
.ledger-row {
  display: grid; grid-template-columns: 110px minmax(0,1fr) 28px; gap: 24px;
  align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 14px; box-shadow: var(--shadow);
  position: relative;
  transition: box-shadow .25s, transform .25s;
}
.ledger-row:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.ledger-date { font-size: .8rem; font-weight: 600; color: var(--muted); padding-top: 3px; }
.ledger-no { display: none; }
.ledger-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
a.ledger-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.ledger-row:hover .ledger-title { color: var(--accent); }
.ledger-desc { font-size: .9rem; color: var(--text); margin-top: 5px; max-width: 64ch; }
.ledger-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  font-size: .72rem; font-weight: 600; color: var(--muted);
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 999px;
}
.tag::before { content: ''; }
.tag-soon {
  font-size: .72rem; font-weight: 700; color: #fff; background: var(--accent);
  padding: 3px 10px; border-radius: 999px;
}
.ledger-arrow { color: var(--accent); font-weight: 700; padding-top: 3px; }
.chapter-cta { margin-top: 28px; }

/* writing grid (homepage latest posts) */
.writing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wcard {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow); color: inherit;
  transition: box-shadow .25s, transform .25s;
}
.wcard:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); color: inherit; }
.wcard-date { font-size: .76rem; font-weight: 600; color: var(--muted); }
.wcard-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.35; }
.wcard:hover .wcard-title { color: var(--accent); }
.wcard-desc {
  font-size: .88rem; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wcard .ledger-tags { margin-top: 2px; }
.wcard-more { font-size: .84rem; font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 6px; }

.pipeline { margin-top: 26px; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); padding: 18px 22px; }
.pipeline-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pipeline ul { list-style: none; }
.pipeline-item { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; }
.pipeline-title { font-size: .94rem; font-weight: 600; color: var(--ink); margin-right: 10px; }
.pipeline-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: 1px; }
.pipeline-tags .tag { font-size: .68rem; padding: 2px 9px; }
.pipeline-item .tag-soon { flex: 0 0 auto; }

/* ---------------- research ---------------- */
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.research-col {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow);
}
.research-col h3 {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.research-list { list-style: none; }
.research-list li {
  position: relative; padding: 11px 0 11px 22px; font-size: .94rem;
  border-bottom: 1px solid var(--border);
}
.research-list li:last-child { border-bottom: none; }
.research-list li::before {
  content: ''; position: absolute; left: 0; top: 19px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.research-more { font-size: .85rem; color: var(--muted); font-style: italic; margin-top: 12px; }

/* ---------------- speaking ---------------- */
.speaking-grid { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 44px; align-items: start; }
.venue-head { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.speaking-figure { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.speaking-number {
  font-size: clamp(3.6rem, 8vw, 5.5rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1; color: var(--accent);
}
.speaking-label { font-size: .92rem; font-weight: 500; color: var(--muted); max-width: 320px; line-height: 1.5; }
.venue-index { display: flex; flex-wrap: wrap; gap: 10px; }
.venue {
  font-size: .88rem; font-weight: 600; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; box-shadow: var(--shadow);
}
.venue::after { content: ''; }
.speaking-note { margin-top: 26px; font-size: .98rem; color: var(--text); max-width: 60ch; }
.speaking-cta { margin-top: 26px; }

/* ---------------- community ---------------- */
.community-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.community-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.community-name { font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.community-body { font-size: .92rem; color: var(--text); }
.community-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ---------------- credentials (recognition + education) ---------------- */
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cred-col {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow);
}
.cred-col h3 {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.cred-col ul { list-style: none; }
.cred-row {
  display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.cred-row:last-child { border-bottom: none; }
.cred-year { font-size: .8rem; font-weight: 700; color: var(--accent); padding-top: 2px; white-space: nowrap; }
.cred-name { font-size: .96rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.badge-latest {
  font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--accent); border-radius: 999px;
  padding: 2px 9px; margin-left: 8px; vertical-align: 2px;
}
.cred-sub { font-size: .84rem; color: var(--muted); margin-top: 1px; }
.cred-detail { font-size: .8rem; color: var(--muted); font-style: italic; margin-top: 1px; }

/* ---------------- contact (dark band) ---------------- */
body[data-page="home"] section#contact {
  background: var(--navy);
  padding-top: 88px; padding-bottom: 88px;
}
.contact-head {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15; color: #fff;
  max-width: 20ch; margin-bottom: 16px;
}
.contact-sub { color: var(--navy-text); max-width: 56ch; margin-bottom: 38px; font-size: 1.02rem; }
.contact-links { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; }
.contact-link {
  display: grid; grid-template-columns: 92px minmax(0,1fr) auto; gap: 14px; align-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 16px 20px;
  transition: background .2s, border-color .2s;
}
.contact-link:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.25); }
.contact-type { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-text); }
.contact-value { font-size: .95rem; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.contact-arrow { color: #6ea8e8; font-weight: 700; }

/* ---------------- footer ---------------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 28px; padding-bottom: 34px;
  border-top: 1px solid var(--border);
  font-size: .84rem; color: var(--muted);
}
body[data-page="home"] .footer {
  border-top: none; background: var(--navy); color: var(--navy-text);
  max-width: none; margin-top: -1px;
}
body[data-page="home"] .footer > span { opacity: .85; }
.footer a { color: inherit; }

/* keep home footer content aligned with wrap */
body[data-page="home"] .footer { padding-left: max(32px, calc((100% - var(--wrap)) / 2 + 32px)); padding-right: max(32px, calc((100% - var(--wrap)) / 2 + 32px)); }

/* ============================================================
   LIST PAGES (blog / learning)
   ============================================================ */
.page-head { padding-top: 140px; padding-bottom: 28px; }
.page-title {
  font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.1; color: var(--ink);
  margin: 10px 0 14px;
}
.page-title em { font-style: normal; color: var(--accent); }
.page-intro { color: var(--text); max-width: 58ch; font-size: 1.02rem; }

.toolbar { margin-top: 32px; }
.search-input {
  width: 100%; max-width: 440px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: 12px 16px; outline: none; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-input::placeholder { color: var(--muted); }
.tag-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-filter {
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  color: var(--text); background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
  transition: all .15s;
}
.tag-filter:hover { border-color: var(--accent); color: var(--accent); }
.tag-filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.result-count { font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 20px; }

.post-list { list-style: none; padding-bottom: 80px; }
.post-list .ledger-row { grid-template-columns: 110px minmax(0,1fr) 28px; }
.ledger-year-head { display: flex; align-items: center; gap: 16px; margin: 40px 0 18px; }
.year-figure { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ledger-year-head::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* learning notes */
.notes-wrap { padding-bottom: 80px; }
.note-month { display: flex; align-items: center; gap: 16px; margin: 40px 0 18px; }
.note-month .year-figure { font-size: 1.15rem; }
.note-month::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.note {
  display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 24px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.note-date { font-size: .8rem; font-weight: 600; color: var(--muted); padding-top: 3px; }
.note-title { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.note .prose { padding: 0; max-width: 62ch; font-size: .95rem; }
.note-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.load-more-wrap { text-align: center; padding-bottom: 80px; }

/* ============================================================
   POST PAGE
   ============================================================ */
.post-head { padding-top: 140px; }
.post-head-rule { display: flex; }
.back-link { font-size: .85rem; font-weight: 600; color: var(--muted); }
.back-link:hover { color: var(--accent); }
.post-title {
  font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.12; color: var(--ink);
  max-width: 26ch; margin: 18px 0 16px;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline;
  font-size: .86rem; font-weight: 500; color: var(--muted);
  padding-bottom: 22px; border-bottom: 1px solid var(--border);
  max-width: 760px;
}
.post-meta a { font-weight: 600; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.post-hero {
  display: block; width: 100%; max-width: 720px; margin-top: 36px;
  border-radius: var(--radius); border: 1px solid var(--border);
  aspect-ratio: 1200 / 630; object-fit: cover;
}
.post-hero[hidden] { display: none; }

.prose { max-width: 720px; padding-top: 36px; padding-bottom: 90px; font-size: 1.04rem; line-height: 1.75; color: var(--text); }
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-weight: 700; letter-spacing: -.015em; line-height: 1.25;
  color: var(--ink); margin: 1.8em 0 .55em;
}
.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.18rem; }
.prose h4 { font-size: 1.05rem; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-alt); border-radius: 0 8px 8px 0;
  padding: .8em 1.2em; margin: 1.4em 0; color: var(--text);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: .85em; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: 5px; padding: .15em .4em;
}
.prose pre {
  background: var(--navy); color: #dbe4f0;
  border-radius: 10px; padding: 18px 20px; overflow-x: auto;
  margin: 1.5em 0; font-size: .86rem; line-height: 1.6;
}
.prose pre code { background: none; padding: 0; color: inherit; font-size: 1em; }
.prose img { border-radius: 10px; margin: 1.5em 0; border: 1px solid var(--border); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.2em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 13px; text-align: left; }
.prose th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }

.loading { font-size: .88rem; color: var(--muted); padding: 30px 0; }
.loading::after { content: ' …'; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 68px; right: 0; left: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px -12px rgba(16,24,40,.15);
    display: none; padding: 6px 0 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 11px 24px; }
  .nav-links a.nav-cta { display: inline-block; }

  .wrap { padding-left: 20px; padding-right: 20px; }
  body[data-page="home"] section.chapter > .mount { padding-left: 20px; padding-right: 20px; }
  .cover { padding-top: 120px; }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo-wrap { grid-row: 1; }
  .hero-photo { width: 190px; height: 190px; }
  .colophon-inner { grid-template-columns: 1fr 1fr; }

  .chapter { padding-top: 60px; padding-bottom: 64px; }
  .now-list, .community-list, .research-grid, .contact-links,
  .writing-grid, .cred-grid, .speaking-grid { grid-template-columns: 1fr; }
  .speaking-grid { gap: 28px; }
  .ledger-row, .post-list .ledger-row { grid-template-columns: 1fr; gap: 6px; }
  .ledger-arrow { display: none; }
  .note { grid-template-columns: 1fr; gap: 6px; }
  .contact-link { grid-template-columns: 80px 1fr auto; }
  .footer { flex-direction: column; align-items: flex-start; gap: 6px; }
}
