*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: 'Inter Tight', sans-serif; background: #ffffff; color: #2a2a2e; }
a { color: inherit; }
::selection { background: rgba(160, 64, 32, 0.15); }

.wrap { max-width: 660px; margin: 0 auto; padding: 0 24px; background: #fff; min-height: 100vh; }

/* Nav */
nav { display: flex; justify-content: center; gap: 2rem; padding: 24px 0 0; font-family: 'Inter Tight', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
nav a { cursor: pointer; color: #6b6b72; text-decoration: none; }
nav a.active { color: #0a0a0c; }

/* Rule */
.rule { display: flex; align-items: center; margin: 44px 0; }
.rule-line { flex: 1; height: 0.5px; background: #e6e6ea; }
.rule-diamond { width: 5px; height: 5px; background: #a04020; transform: rotate(45deg); margin: 0 14px; flex-shrink: 0; }

/* Section header */
.sh { margin-bottom: 14px; }
.sh-n { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #6b6b72; margin-bottom: 6px; }
.sh h2 { font-family: 'Newsreader', serif; font-style: italic; font-size: 26px; font-weight: 400; color: #0a0a0c; margin: 0; }

/* Hero */
header#about { text-align: center; margin-top: 48px; }
.hero-portrait { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 22px; display: block; border: 1px solid #e6e6ea; box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(160,64,32,0.28); filter: grayscale(100%); transition: filter 0.5s ease; }
.hero-portrait:hover { filter: grayscale(0%); }
.hero-name { font-family: 'Newsreader', serif; font-size: clamp(36px, 5.5vw, 54px); font-weight: 400; line-height: 1.06; letter-spacing: -0.02em; color: #0a0a0c; margin: 0; }
.hero-name-italic { font-style: italic; color: #a04020; margin: 0 0 16px; }
.hero-tagline { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: #a04020; max-width: 440px; margin: 0 auto 18px; text-wrap: balance; }
.hero-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #6b6b72; }
.hero-cities { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 5px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #6b6b72; }
.dot-sm { width: 3px; height: 3px; border-radius: 50%; background: #6b6b72; display: inline-block; flex-shrink: 0; }
.dot-lg { width: 5px; height: 5px; border-radius: 50%; background: #a04020; display: inline-block; flex-shrink: 0; }

/* Bio */
.bio { font-family: 'Newsreader', serif; font-size: 17px; line-height: 1.72; color: #2a2a2e; max-width: 580px; }
.bio p { margin: 0 0 1em; }
.bio p:last-child { margin: 0; }
.drop-cap { font-size: 42px; float: left; line-height: 0.82; margin-right: 7px; margin-top: 4px; color: #a04020; }
.bio a { color: #a04020; text-decoration: none; border-bottom: 0.5px solid rgba(160,64,32,0.35); }
.bio a:hover { border-bottom-color: #a04020; }
.milestone-mark a, .milestone-ctx a { color: inherit; text-decoration: none; border-bottom: 0.5px solid rgba(160,64,32,0.35); }
.milestone-mark a:hover, .milestone-ctx a:hover { color: #a04020; border-bottom-color: #a04020; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 0.5px solid #e6e6ea; border-bottom: 0.5px solid #e6e6ea; margin-top: 32px; }
.stat { padding: 15px 8px; text-align: center; border-right: 0.5px solid #e6e6ea; }
.stat:last-child { border-right: none; }
.stat-n { font-family: 'Newsreader', serif; font-size: 24px; color: #0a0a0c; }
.stat-l { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #6b6b72; margin-top: 3px; }

/* Milestones */
.milestones { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #e6e6ea; border: 0.5px solid #e6e6ea; }
.milestone { background: #fff; padding: 12px 16px; }
.milestone-mark { font-family: 'Newsreader', serif; font-size: 14px; font-weight: 500; color: #0a0a0c; }
.milestone-mark::before { content: '◆'; color: #a04020; margin-right: 8px; }
.milestone-ctx { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #6b6b72; margin-top: 2px; letter-spacing: 0.03em; }

/* Engagements */
.engagements { font-family: 'Inter Tight', sans-serif; font-size: 14px; color: #2a2a2e; }
.engagement { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 0; border-bottom: 0.5px solid #e6e6ea; }
.engagement-t { font-family: 'Newsreader', serif; font-style: italic; font-size: 15px; font-weight: 500; color: #0a0a0c; }
.engagement-d { color: #6b6b72; }
.engagement-d a { color: #a04020; text-decoration: none; border-bottom: 0.5px solid rgba(160,64,32,0.35); }
.engagement-d a:hover { border-bottom-color: #a04020; }

/* Expertise */
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #e6e6ea; border: 0.5px solid #e6e6ea; }
.expertise-item { background: #fff; padding: 14px 16px; }
.expertise-item h3 { font-family: 'Newsreader', serif; font-style: italic; font-size: 15px; font-weight: 500; color: #0a0a0c; margin: 0 0 3px; }
.expertise-item p { font-family: 'Inter Tight', sans-serif; font-size: 12px; color: #6b6b72; line-height: 1.5; margin: 0; }

/* Work */
.work-text { font-family: 'Newsreader', serif; font-size: 16px; line-height: 1.7; color: #2a2a2e; }
.work-text p { margin: 0 0 0.9em; }
.work-text p:last-child { margin: 0; }

/* Publications */
.pubs-also { font-family: 'Inter Tight', sans-serif; font-size: 12px; color: #6b6b72; margin: 0 0 12px; }
.pubs-also a { color: #a04020; text-decoration: none; }
.pub-year { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; color: #a04020; letter-spacing: 0.08em; margin-top: 12px; margin-bottom: 5px; }
.pub-year:first-child { margin-top: 0; }
.pub-item { padding: 4px 0 4px 14px; border-left: 1.5px solid #e6e6ea; }
.pub-title { font-family: 'Newsreader', serif; font-size: 13.5px; color: #2a2a2e; line-height: 1.4; }
/* Linked only when an entry carries a url. The accent underline is the
   same one used for links in the prose, so a linked paper reads as part
   of the page rather than a different kind of thing. */
.pub-title a { color: #2a2a2e; text-decoration: none; border-bottom: 0.5px solid rgba(160,64,32,0.35); }
.pub-title a:hover { color: #a04020; border-bottom-color: #a04020; }
.pub-venue { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #6b6b72; margin-top: 1px; }
#show-all-btn { font-family: 'Inter Tight', sans-serif; font-size: 12px; color: #a04020; background: none; border: 0.5px solid #e6e6ea; border-radius: 3px; padding: 7px 18px; cursor: pointer; margin-top: 12px; }

/* Patents */
.patent { padding: 9px 0; border-bottom: 0.5px solid #e6e6ea; }
.patent-title { font-family: 'Newsreader', serif; font-size: 13.5px; color: #2a2a2e; line-height: 1.4; }
.patent-ref { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #6b6b72; margin-top: 2px; }

/* Talks */
.talk { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 9px 0; border-bottom: 0.5px solid #e6e6ea; align-items: baseline; }
.talk-year { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: #6b6b72; }
.talk-title { font-family: 'Newsreader', serif; font-size: 13.5px; color: #2a2a2e; line-height: 1.4; }
.talk-event { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #6b6b72; margin-top: 1px; }

/* Contact */
.contact-intro { font-family: 'Newsreader', serif; font-style: italic; font-size: 15px; color: #2a2a2e; margin: 0 0 14px; }
.contact-rows { font-family: 'Inter Tight', sans-serif; font-size: 14px; }
.contact-row { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 10px 0; border-top: 0.5px solid #e6e6ea; }
.contact-key { color: #6b6b72; font-weight: 500; }
.contact-val { color: #2a2a2e; }
.contact-email { color: #a04020; cursor: pointer; border-bottom: 0.5px solid #a04020; }
.contact-link { color: #a04020; text-decoration: none; }
.contact-sep { margin: 0 6px; color: #e6e6ea; }

/* Footer */
.footer { text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; color: #6b6b72; margin: 44px 0 28px; }

/* Musings index */
.musings-hero { text-align: center; margin-top: 48px; margin-bottom: 8px; }
.musings-hero h1 { font-family: 'Newsreader', serif; font-size: 36px; font-weight: 400; font-style: italic; color: #0a0a0c; margin: 0 0 12px; }
.musings-hero p { font-family: 'Newsreader', serif; font-size: 15px; color: #6b6b72; margin: 0; }
.musing-card { padding: 20px 0; border-bottom: 0.5px solid #e6e6ea; cursor: pointer; text-decoration: none; display: block; }
.musing-card:hover .musing-card-title { color: #a04020; }
.musing-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.musing-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #a04020; text-transform: uppercase; letter-spacing: 0.08em; }
.musing-date { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #6b6b72; letter-spacing: 0.05em; }
.musing-card-title { font-family: 'Newsreader', serif; font-size: 20px; font-weight: 500; color: #0a0a0c; margin: 0 0 5px; transition: color 0.15s; }
.musing-card-sub { font-family: 'Newsreader', serif; font-style: italic; font-size: 14px; color: #6b6b72; margin: 0; line-height: 1.5; }
.musings-more { font-family: 'Newsreader', serif; font-style: italic; font-size: 15px; color: #6b6b72; text-align: center; margin: 28px 0 40px; }

/* Post page */
.post-back { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: #6b6b72; display: inline-block; margin-top: 28px; text-decoration: none; }
.post-back:hover { color: #a04020; }
.post-header { margin: 28px 0 32px; }
.post-header-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #a04020; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.post-header h1 { font-family: 'Newsreader', serif; font-size: clamp(26px, 4vw, 38px); font-weight: 400; color: #0a0a0c; line-height: 1.15; margin: 0 0 10px; }
.post-header-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #6b6b72; letter-spacing: 0.06em; }
.post-inspiration { font-family: 'Newsreader', serif; font-style: italic; font-size: 13.5px; color: #6b6b72; border-left: 2px solid #e6e6ea; padding: 6px 14px; margin: 0 0 32px; line-height: 1.6; }

/* Post body */
.post-body { font-family: 'Newsreader', serif; font-size: 17px; line-height: 1.78; color: #2a2a2e; }
.post-body p { margin: 0 0 1.3em; }
.post-body h2 { font-family: 'Newsreader', serif; font-size: 20px; font-weight: 500; font-style: italic; color: #0a0a0c; margin: 2em 0 0.6em; }
.post-body blockquote { border-left: 2px solid #a04020; padding: 4px 16px; margin: 1.2em 0; color: #4a4a50; font-style: italic; }
.post-body blockquote em { font-style: normal; color: #6b6b72; font-size: 15px; display: block; margin-top: 4px; }
.post-body blockquote.pull { border-left: 3px solid #a04020; padding: 2px 0 2px 18px; margin: 1.6em 0; font-family: 'Newsreader', serif; font-style: normal; font-size: clamp(1.2rem, 3.4vw, 1.4rem); line-height: 1.4; color: #0a0a0c; }
.post-body hr { border: none; border-top: 0.5px solid #e6e6ea; margin: 2em 0; }
.post-body .post-notes { font-family: 'Inter Tight', sans-serif; font-size: 12.5px; color: #6b6b72; line-height: 1.65; margin-top: 2em; padding-top: 1.5em; border-top: 0.5px solid #e6e6ea; }
.post-body .post-notes p { margin: 0 0 0.6em; font-size: 12.5px; }
.post-body .post-notes h2 { font-size: 13px; font-style: normal; font-weight: 600; font-family: 'Inter Tight', sans-serif; margin: 0 0 0.8em; color: #6b6b72; }
.post-body .post-notes ul { padding-left: 16px; }
.post-body .post-notes li { margin-bottom: 0.4em; }

/* Share bar */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 36px 0 20px; padding-top: 20px; border-top: 0.5px solid #e6e6ea; }
.share-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; color: #6b6b72; text-transform: uppercase; margin-right: 4px; }
.share-btn { font-family: 'Inter Tight', sans-serif; font-size: 12px; font-weight: 500; padding: 6px 14px; border: 0.5px solid #e6e6ea; border-radius: 3px; cursor: pointer; background: #fff; color: #2a2a2e; transition: border-color 0.15s, color 0.15s; }
.share-btn:hover { border-color: #a04020; color: #a04020; }
.share-btn.copied { color: #a04020; border-color: #a04020; }

/* Post figures */
.post-figure { margin: 2em 0; }
.post-figure img, .post-figure svg { width: 100%; height: auto; display: block; border: 0.5px solid #e6e6ea; border-radius: 4px; }
.post-figure figcaption { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.03em; color: #6b6b72; margin-top: 8px; line-height: 1.5; text-align: center; }
.post-figure figcaption strong { color: #a04020; font-weight: 500; }

/* Callout / TLDR box */
.post-callout { background: #faf8f5; border: 0.5px solid #e6e6ea; border-left: 2px solid #a04020; border-radius: 4px; padding: 16px 20px; margin: 1.6em 0; font-family: 'Inter Tight', sans-serif; font-size: 14px; line-height: 1.6; color: #2a2a2e; }
.post-callout strong { color: #0a0a0c; }
.post-callout .callout-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #a04020; display: block; margin-bottom: 6px; }

/* Key takeaways */
.post-takeaways { margin: 1.4em 0; }
.post-takeaways li { font-family: 'Inter Tight', sans-serif; font-size: 14.5px; line-height: 1.6; color: #2a2a2e; margin-bottom: 0.7em; }
.post-takeaways li strong { color: #0a0a0c; }

/* Citation block */
.post-cite { font-family: 'Inter Tight', sans-serif; font-size: 12.5px; color: #6b6b72; line-height: 1.6; margin-top: 1.5em; }
.post-cite h3 { font-family: 'Inter Tight', sans-serif; font-size: 13px; font-weight: 600; color: #6b6b72; margin: 0 0 0.8em; }
.post-cite .cite-row { margin-bottom: 0.6em; }
.post-cite .cite-key { font-weight: 600; color: #2a2a2e; }
.post-cite pre { background: #faf8f5; border: 0.5px solid #e6e6ea; border-radius: 4px; padding: 12px 14px; overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.5; color: #2a2a2e; margin: 0.6em 0; }

/* Section dot indicators (transportability chain) */
.post-body .sechead { display: flex; align-items: center; gap: 12px; margin: 2.4em 0 0.2em; }
.post-body .dots { display: inline-flex; gap: 6px; }
.post-body .dots i { width: 8px; height: 8px; display: inline-block; border: 1.4px solid #0a0a0c; transform: rotate(45deg); background: transparent; opacity: 0.5; }
.post-body .dots i.on { background: #a04020; border-color: #a04020; opacity: 1; }
.post-body .linklabel { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #a04020; }
.post-body .sechead + h2 { margin-top: 0.3em; }

/* Chain line callout */
.post-body .chainline { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.9; background: #faf8f5; border: 0.5px solid #e6e6ea; border-radius: 8px; padding: 12px 16px; margin: 1.5em 0; color: #2a2a2e; }
.post-body .chainline b { color: #a04020; font-weight: 500; padding: 0 3px; }

/* Asks list (demanding questions) */
.post-body ul.asks { list-style: none; margin: 1.2em 0; padding: 0; }
.post-body ul.asks li { padding: 5px 0 5px 20px; position: relative; font-family: 'Newsreader', serif; font-size: 17px; font-weight: 500; color: #0a0a0c; }
.post-body ul.asks li::before { content: "→"; position: absolute; left: 0; color: #a04020; }

/* The "boring panel" kit box */
.post-body .kit { background: #faf8f5; border: 1px solid #0a0a0c; border-radius: 10px; padding: 16px 18px 12px; margin: 1.7em 0; font-family: 'Inter Tight', sans-serif; font-size: 14px; line-height: 1.65; }
.post-body .kit-title { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #a04020; margin: 0 0 0.7em; }
.post-body .kit ul { margin: 0.3em 0 0.5em; padding-left: 18px; }
.post-body .kit li { margin: 0.3em 0; }
.post-body .kit-note { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; line-height: 1.6; color: #6b6b72; border-top: 1px dashed #e6e6ea; padding-top: 0.7em; margin: 0.9em 0 0; }

/* Final question */
.post-body .final-q { font-family: 'Newsreader', serif; font-style: italic; font-size: clamp(1.6rem, 5vw, 2.2rem); color: #a04020; margin: 1.4em 0 0; line-height: 1.2; }

/* Figure caption bold label in this post */
.post-figure figcaption b { color: #a04020; font-weight: 500; letter-spacing: 0.06em; }

/* Tamil inline */
.post-body .tamil { font-family: 'Newsreader', serif; font-weight: 600; }

/* Lede drop cap for longevity post */
.post-body p.lede::first-letter { font-family: 'Newsreader', serif; font-size: 3.4em; line-height: 0.82; float: left; padding: 0.06em 0.1em 0 0; color: #a04020; font-weight: 500; }

/* Sources ordered list */
.post-body .sources { margin-top: 2.5em; border-top: 0.5px solid #e6e6ea; padding-top: 1.4em; }
.post-body .sources h3 { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #6b6b72; margin: 0 0 0.9em; }
.post-body .sources ol { font-family: 'Inter Tight', sans-serif; font-size: 12.5px; line-height: 1.6; color: #6b6b72; padding-left: 20px; margin: 0; }
.post-body .sources ol li { margin: 0.5em 0; }
.post-body .sources a { color: #a04020; }
.post-body .colophon { margin-top: 2.4em; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #6b6b72; }

/* Floating connect.
   One label, not two: "Let's talk" beside "LINKEDIN" put two type styles in a
   small target and read as clutter.
   A 1px border, not 0.5px: the site uses hairlines on straight edges 32 times
   and they are right there, but a sub-pixel border around a 999px radius
   renders patchy and uneven on the curve.
   nowrap and line-height 1 so the height is predictable and it can never
   break onto a second line. */
.connect { position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; box-sizing: border-box;
  white-space: nowrap; line-height: 1;
  background: #ffffff; border: 1px solid #e6e6ea; border-radius: 999px;
  padding: 12px 20px; text-decoration: none;
  font-family: 'Inter Tight', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em; color: #2a2a2e;
  box-shadow: 0 6px 20px rgba(10,10,12,0.07); }
.connect:hover { border-color: #a04020; color: #0a0a0c; }
.connect .dot { width: 5px; height: 5px; background: #a04020;
  transform: rotate(45deg); flex-shrink: 0; }
@media (max-width: 600px) {
  .connect { right: 14px; bottom: 14px; padding: 11px 16px; font-size: 12.5px; }
}
@media print { .connect { display: none; } }

/* The mark, in every header. It is the one element on every page the site
   owns, which is the only way a signature accumulates meaning.

   On the nav line rather than above it. Stacked, it read as a separate object
   that happened to sit at the top of the page, and cost 30px of vertical space
   before the reader reached anything. On the line it is what a mark is meant to
   be: the first item of the header, with the sections following it. The row
   stays centred, so the symmetry the stacked version protected is intact. */
.siteheader { display: flex; align-items: center; justify-content: center;
  gap: 1.75rem; padding: 30px 0 0; }
.sitemark { display: block; width: 24px; margin: 0; border: 0; line-height: 0;
  flex-shrink: 0; }
.sitemark svg { width: 24px; height: 24px; display: block; }
.siteheader nav { padding: 0; flex-wrap: wrap; }
@media (max-width: 600px) {
  /* If the row cannot fit, the nav drops below the mark rather than
     forcing the whole page to scroll sideways. */
  .siteheader { flex-wrap: wrap; gap: 1rem; padding-top: 22px; }
  .sitemark { width: 21px; }
  .sitemark svg { width: 21px; height: 21px; }
  .siteheader nav { gap: 1rem; font-size: 12.5px; }
}

/* Phones, 22 Oct 2026.
   Below 420px the four nav items did not fit on one line and "Health by age"
   dropped to a second line on its own. Slightly smaller and tighter there so
   all four sit on one line. */
@media (max-width: 420px) {
  .siteheader nav { gap: 0.8rem; font-size: 12px; letter-spacing: 0.01em; flex-wrap: nowrap; white-space: nowrap; }
}
/* The floating LinkedIn pill covered body text. On a wide screen the page
   gets room at the bottom equal to the pill and its offset, so the last lines
   can scroll clear of it. On a phone it stops floating and sits after the
   footer, the one place it no longer covers anything. */
body:has(> .connect) { padding-bottom: 72px; }
@media (max-width: 600px) {
  body:has(> .connect) { padding-bottom: 0; }
  .connect { position: static; display: flex; width: max-content; margin: 8px auto 32px; box-shadow: none; }
}
