/* ============================================================
   Variables
   ============================================================ */
:root {
  --text:         #3a3a3a;
  --text-muted:   #666;
  --bg:           #fff;
  --border:       #e8e8e8;
  --color-name:    #1a9aaa;
  --color-title:   #4ab5c2;
  --color-heading: #2da8b8;
  --max-width:    1080px;
  --font-serif:   'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-name:    'Josefin Sans', var(--font-sans);
  --font-heading: 'Libre Baskerville', Georgia, serif;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0;
}

html {
  font-size: 17px;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  padding: 0 1.25rem;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Layout shell
   ============================================================ */
header, main, footer {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Navigation
   ============================================================ */
header {
  padding: 2.25rem 0 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-sans);
}

.site-name {
  font-family: var(--font-name);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-name);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.site-name:hover { opacity: 0.65; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
}

.nav-links a {
  font-family: var(--font-name);
  font-size: 1.15rem;
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:hover { color: var(--text); }

/* ============================================================
   Homepage: bio
   ============================================================ */
.bio {
  margin-bottom: 3.5rem;
}

.bio h1 {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  color: var(--color-title);
}

.bio p {
  color: var(--text);
  margin-bottom: 1rem;
}

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

.bio a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bio hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ============================================================
   Homepage & section: post feed
   ============================================================ */
.feed-label,
.section-header h1 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag-pill {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  transition: color 0.15s, border-color 0.15s;
}

.tag-pill:hover {
  color: var(--color-name);
  border-color: var(--color-name);
}

.post-toc {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.toc-label {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.toc-items {
  padding-left: 1rem;
}

.toc-item {
  margin-bottom: 0.3rem;
  text-align: left;
}

.post-toc a {
  color: var(--color-name);
  text-decoration: none;
}

.post-toc a:hover { opacity: 0.7; }

.work-nav {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -1.75rem;
  margin-bottom: 2.5rem;
}

.work-nav a,
.article-body .work-nav a {
  color: var(--color-name);
  text-decoration: none;
  font-weight: 400;
}

.work-nav a:hover { opacity: 0.7; }

.theme-group {
  margin-bottom: 2.5rem;
}

.theme-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.posts-list {}

.post-item {
  padding: 0.65rem 0;
}

.post-date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.2rem;
  white-space: nowrap;
}

.post-title a {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  color: var(--text);
  text-decoration: none;
}

.post-title a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.post-tags {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.post-tags a {
  color: var(--color-name);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.08rem 0.45rem;
}

.post-tags a:hover {
  opacity: 0.7;
}

.post-excerpt {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.2rem;
}

.post-excerpt-more {
  display: block;
  color: var(--color-name);
  text-decoration: none;
  margin-top: 0.2rem;
}

.post-excerpt-more:hover { opacity: 0.7; }

/* ============================================================
   Article: header
   ============================================================ */
.article-header {
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: 0.7rem;
  color: var(--color-title);
}

#heading h1 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: 0.7rem;
  color: var(--color-title);
}

.article-meta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.article-meta a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-meta a:hover { color: var(--text); }

/* ============================================================
   Article: body
   ============================================================ */
.article-body p {
  margin-bottom: 1.3rem;
}

.article-body h2 {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 2.25rem 0 0.75rem;
  color: var(--color-heading);
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  margin: 1.75rem 0 0.5rem;
  color: var(--color-heading);
}

.article-body h4 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  margin: 1.5rem 0 0.4rem;
  color: var(--color-heading);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.3rem 1.4rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1.1rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
  font-style: italic;
}

.article-body strong {
  color: #111;
  font-family: var(--font-sans);
  font-weight: 700;
}

.article-body em {
  color: #222;
  font-style: italic;
  font-weight: 500;
}

.article-body a {
  color: #6ecad6;
  text-decoration: none;
  font-weight: 600;
}

.article-body a:hover { opacity: 0.7; }

.article-body h2#what-i-was-reading ~ p a,
.article-body h2#what-i-was-reading ~ ul a {
  font-weight: 400;
}

.article-body code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85em;
  background: #f4f4f4;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.article-body pre {
  background: #f4f4f4;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  border-radius: 5px;
  margin-bottom: 1.3rem;
  line-height: 1.55;
}

.article-body pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

.article-body .answer-indent {
  margin: 0.35rem 0 1.3rem 1.5rem;
}

.article-body .answer-indent p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Page (Work page body — reuses article-body)
   ============================================================ */
article > .article-body h2:first-child {
  margin-top: 0;
}

/* ============================================================
   Post navigation
   ============================================================ */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--text);
  text-decoration: none;
  max-width: 48%;
}

.post-nav-item:hover .nav-title { text-decoration: underline; text-underline-offset: 2px; }

.nav-dir { color: var(--text-muted); font-size: 0.78rem; }
.nav-title { font-weight: 500; }
.post-nav-next { align-items: flex-end; text-align: right; }

/* ============================================================
   Pagination
   ============================================================ */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pager a {
  color: var(--text);
  text-decoration: none;
}

.pager a:hover { text-decoration: underline; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  margin: 4rem auto 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.15s;
}

.social-links a:hover { color: var(--color-name); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 500px) {
  html { font-size: 16px; }

  .post-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .post-tags {
    justify-content: flex-start;
  }

  .post-item {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .post-date { font-size: 0.75rem; }
}


/* Work and Labs: layout-only additions; retain existing fonts and palette. */
.section-eyebrow, .career-period, .card-index, .featured-work span, .lab-status, .home-paths span {
  font-family: var(--font-sans); font-size: .73rem; letter-spacing: .09em; color: var(--text-muted);
}
.section-eyebrow { text-transform: uppercase; margin: .4rem 0 1rem; }
.career-timeline { margin: 1.4rem 0 2.2rem; border-left: 1px solid var(--border); padding-left: 1.3rem; }
.career-stop { position: relative; display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 1rem; padding: .6rem 0 1.2rem; }
.career-stop::before { content: ""; position: absolute; left: calc(-1.3rem - 4px); top: 1rem; height: 7px; width: 7px; border: 1px solid var(--color-name); border-radius: 50%; background: var(--bg); }
.career-stop h3, .article-body .career-stop h3 { margin: 0 0 .3rem; font-size: 1rem; }
.career-stop p, .article-body .career-stop p { margin: 0; font-size: .88rem; line-height: 1.6; }
.impact-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); margin: 1.8rem 0 3rem; }
.impact-strip div { background: var(--bg); padding: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.impact-strip strong { font-size: 1.45rem; font-weight: 500; line-height: 1.1; color: var(--text); }
.impact-strip span { font-family: var(--font-sans); font-size: .73rem; line-height: 1.45; color: var(--text-muted); }
.work-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin: 1.2rem 0 2rem; }
.work-card { border: 1px solid var(--border); border-radius: 4px; padding: 1.15rem; min-width: 0; }
.work-card h3, .article-body .work-card h3 { font-size: 1.05rem; margin: .45rem 0 .6rem; }
.work-card p, .article-body .work-card p { font-size: .86rem; line-height: 1.65; margin: 0; }
.featured-work, .lab-collection { display: grid; gap: .7rem; margin: 1.2rem 0 2rem; }
.featured-work a, .lab-collection a, .lab-upcoming, .home-paths a { display: flex; flex-direction: column; gap: .4rem; border: 1px solid var(--border); border-radius: 4px; padding: 1rem 1.15rem; text-decoration: none; color: var(--text); }
.featured-work strong, .lab-collection strong, .home-paths strong { font-family: var(--font-heading); font-weight: 400; font-size: 1.05rem; color: var(--text); }
.featured-work small, .lab-collection small, .home-paths small { font-family: var(--font-sans); color: var(--text-muted); font-size: .78rem; line-height: 1.55; }
.featured-work a:hover, .lab-collection a:hover, .home-paths a:hover { border-color: var(--color-name); }
.lab-upcoming { opacity: .75; }
.home-paths { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; margin: 2rem 0; }
.article-body .featured-work a, .article-body .lab-collection a { color: var(--text); font-weight: 400; }
.article-body .featured-work a:hover, .article-body .lab-collection a:hover { opacity: 1; }
@media (max-width: 680px) {
  .career-stop { grid-template-columns: 1fr; gap: .2rem; }
  .work-card-grid, .home-paths { grid-template-columns: 1fr; }
  .impact-strip { grid-template-columns: 1fr 1fr 1fr; }
}


/* Work page refinement: scoped layout, no font or palette changes. */
.work-page { max-width: 940px; margin-inline: auto; }
.work-page > .article-header { display: none; }
.work-page .article-body > h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  max-width: 21ch;
  letter-spacing: -.015em;
  color: var(--text);
  margin: .45rem 0 1rem;
}
.work-page .article-body > h1 + p {
  max-width: 66ch;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.4rem;
  text-align: left;
}
.work-page .work-nav {
  margin: 0 0 2.5rem;
  padding: .85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  line-height: 2;
  text-align: left;
}
.work-page .article-body > h2 {
  font-size: 1.15rem;
  color: var(--text);
  margin-top: 2.4rem;
}
.work-page .career-stop h3, .work-page .article-body .career-stop h3 {
  font-family: var(--font-sans);
  font-size: .98rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}
.work-page .career-stop p { text-align: left; }
.work-page .career-timeline { max-width: 850px; }
.work-page .article-body > p { line-height: 1.72; }
@media (max-width: 680px) {
  .work-page .article-body > h1 { font-size: 1.85rem; }
  .work-page .work-nav { line-height: 2.15; }
  .work-page .career-stop { grid-template-columns: 1fr; }
}


/* Technical/slate palette: retain original font families and spacing system. */
:root {
  --text: #293746;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --border: #dce4ed;
  --color-name: #294767;
  --color-title: #253a56;
  --color-heading: #375777;
}
.work-page .article-body > h1 { color: var(--color-title); }
.work-page .career-stop h3, .work-page .article-body .career-stop h3 { color: var(--color-title); }
.article-body a { color: var(--color-name); }
.article-body strong { color: var(--text); }
.article-body em { color: var(--text); }
.site-name { color: var(--color-name); }
.nav-links a, .site-name { text-transform: none; }
.branded-role { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.company-logo { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.tempus-logo { width: 82px; height: 24px; object-fit: contain; }
.google-logo { width: 22px; height: 22px; }
.reference-accordion { border: 1px solid var(--border); border-radius: 5px; margin: 0 0 1.4rem; background: #fff; }
.reference-accordion summary { padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; }
.reference-accordion summary::-webkit-details-marker { display: none; }
.archive-summary { display: flex; flex-direction: column; gap: .2rem; }
.archive-summary strong { font-family: var(--font-heading); font-weight: 400; }
.archive-summary small { color: var(--text-muted); font-family: var(--font-sans); font-size: .75rem; }
.expand-cue { font-size: 1.35rem; color: var(--color-name); }
.reference-accordion[open] .expand-cue { transform: rotate(45deg); }
.archive-inner { padding: .25rem 1.3rem 1.3rem; border-top: 1px solid var(--border); }
.archive-group { font-family: var(--font-sans); font-weight: 600; font-size: .8rem; margin: 1rem 0 .4rem!important; }
.archive-inner .reference-list { padding-left: 1rem; margin: .6rem 0 0; }
.reference-list li { font-size: .88rem; line-height: 1.62; margin-bottom: 1rem; }
.notes-hub { max-width: 940px; margin-inline: auto; }
.notes-hub h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--color-title); margin: .4rem 0 1rem; }
.notes-intro { max-width: 68ch; margin-bottom: 2rem; }
.notes-pillars { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; }
.notes-pillars a { border: 1px solid var(--border); background: #fff; padding: 1.1rem; border-radius: 5px; display: flex; flex-direction: column; gap: .55rem; text-decoration: none; }
.notes-pillars a:hover { border-color: var(--color-name); }
.notes-pillars span { font-family: var(--font-sans); font-size: .7rem; color: var(--text-muted); }
.notes-pillars strong { font-family: var(--font-heading); font-size: .95rem; line-height: 1.4; font-weight: 400; color: var(--color-title); }
.notes-pillars small { font-family: var(--font-sans); font-size: .76rem; line-height: 1.5; color: var(--text-muted); }
.notes-pillar-section { margin-top: 2.7rem; }
.notes-pillar-section h2 { font-size: 1.2rem; margin-bottom: .8rem; color: var(--color-heading); }
.note-row { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding: .85rem .2rem; }
.note-row a { text-decoration: none; color: var(--text); }
.note-row span { color: var(--text-muted); }
@media (max-width: 680px) { .notes-pillars { grid-template-columns: 1fr; } .reference-accordion summary { padding: .85rem; } }

/* Shared page grid: consistent left edge and reading width. */
header, main, footer { max-width: 940px; }
main > .bio, main > .notes-hub, main > article,
main > .work-page { max-width: 940px; width: 100%; margin-left: 0; margin-right: 0; }
main p { text-align: left; }

/* Notes topic navigation */
.notes-hub .notes-intro { max-width: 65ch; text-align: left; line-height: 1.65; margin-bottom: 2.2rem; }
.notes-hub .notes-pillars a { min-height: 210px; }
.notes-hub .notes-pillars .pillar-link { margin-top: auto; padding-top: .85rem; color: var(--color-name); font-size: .75rem; font-weight: 500; letter-spacing: 0; }
@media (max-width: 680px) { .notes-hub .notes-pillars a { min-height: 0; } }

/* Editorial alignment and the new flat Notes index. */
:root { --font-name: 'Gotu', 'Ubuntu', sans-serif; }
.site-name {
  font-family: var(--font-name);
  font-weight: 400;
  font-size: 1.88rem;
  letter-spacing: .005em;
  text-transform: none;
}
.notes-hub .notes-intro { max-width: 940px; width: 100%; line-height: 1.7; text-align: left; margin: .7rem 0 1.9rem; }
.notes-category-guide { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.notes-category-guide span { font-family: var(--font-sans); font-size: .72rem; color: var(--text-muted); padding: .28rem .65rem; border: 1px solid var(--border); border-radius: 2rem; }
.notes-flat-list { border-top: 1px solid var(--border); }
.notes-entry {
  display: grid; grid-template-columns: minmax(0,1fr) auto 1rem;
  gap: 1.4rem; align-items: baseline; padding: 1.15rem .2rem;
  border-bottom: 1px solid var(--border); text-decoration: none;
  color: var(--text);
}
.notes-entry-title { font-family: var(--font-heading); font-size: 1rem; line-height: 1.5; }
.notes-entry-tag { font-family: var(--font-sans); color: var(--color-heading); font-size: .71rem; padding: .2rem .5rem; border: 1px solid var(--border); border-radius: 2rem; white-space: nowrap; }
.notes-entry-arrow { color: var(--color-heading); font-size: .8rem; }
.notes-entry:hover .notes-entry-title { text-decoration: underline; text-underline-offset: .2em; }
.notes-footer { text-align: left; font-size: .9rem; margin-top: 2rem; color: var(--text-muted); }
.notes-footer a { color: var(--color-name); }
@media (max-width: 680px) {
  .notes-entry { grid-template-columns: 1fr auto; gap: .4rem 1rem; }
  .notes-entry-tag { grid-column: 1 / 2; grid-row: 2; justify-self: start; }
  .notes-entry-arrow { grid-column: 2; grid-row: 1; }
  .site-name { font-size: 1.55rem; }
}


/* Header hierarchy: use Gotu as a restrained wordmark only. */
header { padding-top: 1.8rem; padding-bottom: 1.1rem; margin-bottom: 1.7rem; }
header nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
header .site-name {
  font-family: 'Gotu', 'Ubuntu', sans-serif;
  font-size: 1.72rem;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.25;
  white-space: nowrap;
}
header .nav-links { align-items: center; gap: 1.65rem; }
header .nav-links a {
  font-family: var(--font-sans);
  font-size: .91rem;
  font-weight: 500;
  letter-spacing: .005em;
  text-transform: none;
  line-height: 1.4;
}
@media (max-width: 680px) {
  header nav { flex-wrap: wrap; gap: 1.1rem; }
  header .site-name { font-size: 1.52rem; }
  header .nav-links { gap: 1.15rem; flex-wrap: wrap; }
  header .nav-links a { font-size: .87rem; }
}

/* Overview cards on Notes are informational; articles remain in one list below. */
.notes-hub .notes-pillars { margin: 0 0 2rem; }
.notes-hub .notes-pillar-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 174px;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
}
.notes-hub .notes-pillar-card > span {
  font-family: var(--font-sans);
  font-size: .7rem;
  color: var(--text-muted);
}
.notes-hub .notes-pillar-card > strong {
  font-family: var(--font-heading);
  font-size: .95rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--color-title);
}
.notes-hub .notes-pillar-card > small {
  font-family: var(--font-sans);
  font-size: .76rem;
  line-height: 1.5;
  color: var(--text-muted);
}
@media (max-width: 680px) { .notes-hub .notes-pillar-card { min-height: 0; } }


/* Refinement: quiet article list and balanced site masthead. */
.notes-hub .notes-flat-list { border-top: 0; }
.notes-hub .notes-entry {
  border-bottom: 0;
  padding: .72rem .2rem;
}
.notes-hub .notes-entry + .notes-entry { margin-top: .15rem; }
header { padding-top: 1.45rem; padding-bottom: 1rem; margin-bottom: 1.45rem; }
header .site-name {
  font-size: 1.48rem;
  letter-spacing: -.025em;
  line-height: 1.35;
}
header .nav-links { gap: 1.55rem; }
header .nav-links a { font-size: .91rem; font-weight: 400; }
.notes-hub .section-eyebrow { margin-top: 0; margin-bottom: .65rem; }
.notes-hub h1 { margin-top: 0; margin-bottom: .75rem; font-size: clamp(1.85rem, 3vw, 2.2rem); }
.notes-hub .notes-intro { margin-top: 0; }
@media (max-width: 680px) {
  header .site-name { font-size: 1.4rem; }
  .notes-hub .notes-entry { padding: .7rem .2rem; }
}

/* Compact featured publications and talks. */
.work-page .featured-work {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  align-items: stretch;
}
.work-page .featured-work > a {
  padding: .95rem 1rem;
  min-width: 0;
  gap: .55rem;
  background: #fff;
}
.work-page .featured-work strong {
  font-size: .93rem;
  line-height: 1.45;
}
.work-page .featured-work span {
  font-size: .64rem;
  letter-spacing: .045em;
  line-height: 1.45;
}
.work-page .featured-work small {
  font-size: .74rem;
  line-height: 1.5;
}
header .site-name {
  font-size: 2.05rem;
  letter-spacing: -.025em;
  line-height: 1.2;
}
@media (min-width: 681px) and (max-width: 850px) {
  .work-page .featured-work { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .work-page .featured-work { grid-template-columns: 1fr; }
  header .site-name { font-size: 1.75rem; }
}


/* Editorial category labels within the publication archive. */
.reference-list li .reference-kicker {
  display: block;
  width: fit-content;
  margin: 0 0 .35rem;
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .055em;
  color: var(--color-heading);
}
.reference-list li > strong { display: inline; }


/* Compact primary page titles to match the homepage hierarchy. */
.work-page .article-body > h1,
.notes-hub > h1,
.labs-landing .article-body > h1 {
  font-size: clamp(1.65rem, 2.3vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: 0;
  margin: .45rem 0 1rem;
  max-width: none;
}
.notes-hub > h1 { margin-top: .25rem; }
.labs-landing .article-body > h1 { color: var(--color-title); }

/* Talks and blog articles: compact cards, not a long expanded list. */
.work-page .talks-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 1.2rem 0 2rem;
}
.work-page .talk-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  min-width: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
}
.work-page .talk-card:hover { border-color: var(--color-name); }
.work-page .talk-card .talk-kind {
  color: var(--color-heading);
  font: 500 .69rem/1.4 var(--font-sans);
  letter-spacing: .04em;
}
.work-page .talk-card strong {
  color: var(--color-title);
  font: 400 .98rem/1.5 var(--font-heading);
}
.work-page .talk-card small {
  color: var(--text-muted);
  font: 400 .78rem/1.55 var(--font-sans);
}
.work-page .talk-card .talk-arrow {
  margin-top: auto;
  padding-top: .3rem;
  color: var(--color-name);
  font: 500 .75rem/1.4 var(--font-sans);
}
@media (max-width: 680px) {
  .work-page .talks-card-grid { grid-template-columns: 1fr; }
  .work-page .talk-card { padding: 1rem; }
}
