*, *::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-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; }
.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; }

/* 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; }
.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 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; 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; }
