@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Noto+Sans+Bengali:wght@400;500;600&display=swap');

/* Shared design tokens */
:root {
  --ink: #142a34;
  --paper: #fafbf9;
  --surface: #fff;
  --muted: #596a70;
  --line: #dce3e1;
  --soft: #eef3f0;
  --accent: #246959;
  --accent-soft: #e4efe9;
  --sans: 'DM Sans', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Libre Baskerville', 'Noto Sans Bengali', Georgia, serif;
  --mono: var(--sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.3; }
a, button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 20px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* Masthead */
.site-header.shell { width: 100%; position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; min-height: 98px; padding: 16px max(32px, calc((100% - 1160px) / 2)); border-bottom: 1px solid var(--line); background: rgba(250,251,249,.96); backdrop-filter: blur(16px); }
.wordmark { display: inline-flex; align-items: center; gap: 13px; width: fit-content; }
.brand-symbol { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 48px; border-radius: 12px 12px 12px 3px; background: var(--ink); color: #fff; font: 34px/1 Georgia, serif; padding-bottom: 4px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 19px; font-weight: 700; letter-spacing: -.6px; white-space: nowrap; }
.brand-copy > span { font-size: 12px; color: var(--muted); letter-spacing: .025em; }
.site-header nav { display: flex; align-items: center; gap: 6px; }
.site-header nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.site-header nav a:hover { background: var(--soft); color: var(--ink); }
.site-header nav .active { background: var(--accent-soft); color: var(--accent); }
.header-actions { justify-self: end; display: flex; gap: 8px; align-items: center; }
.search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 13px; }
.search:hover { border-color: var(--accent); color: var(--accent); }
.search kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; font: 11px var(--sans); }
.menu-toggle { display: none; }

/* Typography and shared controls */
.eyebrow { margin-bottom: 22px; color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--accent); }
.text-link span { font-size: 18px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.primary-link { display: inline-flex; justify-content: center; align-items: center; gap: 28px; padding: 13px 21px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; transition: background .2s; }
.primary-link span { font-size: 18px; }
.primary-link:hover { background: var(--accent); border-color: var(--accent); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.section-heading h2, .section-heading > p { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.section-heading > span { color: var(--muted); font-size: 12px; }

/* Home introduction */
.intro { padding: 88px 0 50px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 78px; align-items: center; }
.intro h1 { margin: 0; font: 400 clamp(37px, 3.7vw, 52px)/1.3 var(--serif); letter-spacing: -2px; }
.intro h1 em { color: var(--accent); font-weight: 400; }
.intro-copy { max-width: 58ch; color: var(--muted); font-size: 17px; line-height: 1.85; margin: 26px 0 0; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-top: 30px; }
.identity-card { padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 35px rgba(20,42,52,.035); }
.identity-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.monogram { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font: 18px var(--serif); }
.identity-location { color: var(--muted); font-size: 12px; }
.identity-location::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--accent); }
.identity-card .identity-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.identity-role { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.identity-focus { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 20px; }
.identity-focus .eyebrow { font-size: 12px; color: var(--muted); }
.identity-focus ul { padding: 0; list-style: none; margin: 10px 0 0; font-size: 14px; line-height: 2.1; }
.intro-rule { display: flex; justify-content: space-between; gap: 16px; margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .03em; }

/* Selected writing */
.feature { padding: 16px 0 80px; }
.featured-essay { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.featured-art { position: relative; display: flex; min-height: 310px; overflow: hidden; background: var(--ink); }
.featured-art img { width: 100%; height: 100%; position: absolute; object-fit: cover; opacity: 1; transition: transform .4s; }
.featured-art:hover img { transform: scale(1.025); }
.featured-art > span { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 14px 22px; background: rgba(20,42,52,.9); color: #fff; font-size: 12px; letter-spacing: .12em; }
.featured-art b { font-weight: 400; }
.featured-content { display: flex; flex-direction: column; padding: 36px; }
.featured-content .eyebrow { margin-bottom: 18px; }
.featured-content h2 { margin-bottom: 18px; font: 500 27px/1.55 var(--sans); letter-spacing: -.5px; }
.featured-content h2 a:hover { color: var(--accent); }
.featured-content > p:not(.eyebrow) { font-size: 16px; line-height: 1.9; color: var(--muted); }
.featured-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-top: auto; padding-top: 24px; }
.featured-meta > span { font-size: 12px; color: var(--muted); }

/* Lower home section */
figcaption { font-size: 12px; color: var(--muted); padding-top: 12px; }
.contact-band { padding: 62px 0; background: var(--soft); border-block: 1px solid var(--line); }
.contact-band > .shell { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.contact-band h2 { font: 400 34px/1.4 var(--serif); letter-spacing: -1px; margin-bottom: 18px; }
.contact-band p:not(.eyebrow) { max-width: 490px; margin: 0; color: var(--muted); font-size: 14px; }
.contact-band .primary-link { flex-shrink: 0; }
/* A shared destination at the end of every page */
.site-footer { background: var(--ink); color: #d3dfdf; border-top: 4px solid #408a75; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 70px; padding-block: 62px 52px; }
.site-footer .wordmark { color: #fff; }
.site-footer .brand-symbol { background: #dceee5; color: var(--ink); }
.site-footer .brand-copy > span { color: #b6ccca; }
.footer-intro > p { max-width: 340px; margin: 24px 0 16px; font-size: 17px; line-height: 1.85; }
.footer-location { font-size: 12px; color: #acc3c1; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.footer-nav h2 { margin: 4px 0 16px; color: #fff; font-size: 14px; font-weight: 600; }
.footer-nav a { padding-block: 5px; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.site-footer .wordmark:hover { text-decoration: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; border-top: 1px solid #3b5058; font-size: 12px; color: #b6ccca; }
.footer-bottom p { margin: 0; }
.footer-bottom a { display: inline-flex; gap: 14px; align-items: center; padding-block: 6px; }
.footer-bottom a span { font-size: 18px; }

/* Archive, biography and learning */
.archive, .learning-page, .about-page { padding: 76px 0 90px; }
.archive-head, .page-intro { max-width: 850px; padding-bottom: 54px; }
.archive-head h1, .page-intro h1 { margin: 0; font: 400 clamp(34px,4vw,50px)/1.35 var(--serif); letter-spacing: -1.8px; }
.archive-head > p:last-child, .page-intro > p:not(.eyebrow) { max-width: 660px; margin: 24px 0 0; font-size: 16px; line-height: 1.9; color: var(--muted); }
.archive-tools { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 17px 0; border-block: 1px solid var(--line); }
.archive-tools p { margin: 0; font-size: 12px; color: var(--muted); }
.archive-list article { padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.archive-list article:target { background: var(--accent-soft); box-shadow: 18px 0 var(--accent-soft), -18px 0 var(--accent-soft); }
.archive-list .eyebrow { margin-bottom: 12px; }
.archive-list h2 { max-width: 830px; font: 500 26px/1.6 var(--sans); margin-bottom: 12px; }
.archive-list h2 a:hover { color: var(--accent); }
.archive-list article > p:not(.eyebrow) { color: var(--muted); font-size: 15px; max-width: 720px; }
.archive-list time { color: var(--muted); font-size: 12px; }
.learning-principles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.learning-principles article { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.learning-principles span { color: var(--accent); font-size: 12px; }
.learning-principles h2 { margin: 28px 0 14px; font-size: 20px; font-weight: 500; }
.learning-principles p { margin: 0; font-size: 16px; color: var(--muted); }
.learning-current { padding-top: 64px; }
.topic-list details { border-bottom: 1px solid var(--line); }
.topic-list details:last-child { border-bottom: 0; }
.topic-list summary { display: grid; align-items: center; cursor: pointer; list-style: none; }
.topic-list summary::-webkit-details-marker { display: none; }
.topic-list summary b { transition: transform .2s; }
.topic-list details[open] summary b { transform: rotate(45deg); }
.topic-list details p { margin: 0; }
.topic-documents a:hover { background: var(--accent-soft); }
.bio-timeline { max-width: 950px; }
.bio-timeline > article { display: grid; grid-template-columns: 170px 1fr; gap: 36px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.bio-timeline time { color: var(--muted); font-size: 12px; padding-top: 3px; }
.bio-timeline .eyebrow { margin-bottom: 10px; }
.bio-timeline h2 { font-size: 25px; font-weight: 500; margin-bottom: 12px; }
.bio-timeline article p:last-child { color: var(--muted); font-size: 15px; margin: 0; max-width: 610px; }

/* Reading experience */
.article-shell { width: min(1000px, calc(100% - 64px)); margin: auto; }
.article-head { max-width: 760px; margin: auto; padding: 72px 0 44px; }
.article-head h1 { font: 500 clamp(32px,4vw,48px)/1.5 var(--sans); letter-spacing: -1.2px; margin-bottom: 24px; }
.dek { color: var(--muted); font-size: 18px; line-height: 1.9; margin-bottom: 26px; }
.article-byline { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cover { margin: 0 0 54px; }
.cover img { display: block; width: 100%; height: auto; border-radius: 8px; }
.prose { max-width: 700px; margin: auto; font-size: 18px; line-height: 1.95; overflow-wrap: break-word; }
.prose p { margin-bottom: 26px; }
.prose .lead { font-size: 20px; line-height: 1.9; }
.prose h2 { margin: 48px 0 20px; font-size: 28px; font-weight: 600; line-height: 1.6; letter-spacing: -.5px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose pre { overflow-x: auto; margin: 28px 0; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); font: 13px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85em; }
.prose pre code { font-size: inherit; }
.prose p code { padding: 2px 5px; background: var(--soft); border-radius: 3px; }
.prose ol, .prose ul { padding-left: 25px; }
.prose li { padding-left: 6px; margin-bottom: 12px; }
.pull-quote { margin: 36px 0; padding: 22px 26px; border-left: 3px solid var(--accent); background: var(--soft); font-size: 21px; line-height: 1.8; }
.comparison-wrap { margin: 32px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.comparison-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.comparison-wrap th, .comparison-wrap td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.comparison-wrap th { background: var(--ink); color: #fff; font-weight: 500; }
.comparison-wrap tr:last-child td { border-bottom: 0; }
.term-list { margin: 28px 0; }
.term-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.term-list dt { font-size: 13px; font-weight: 600; }
.term-list dd { margin: 0; font-size: 15px; }
.article-end { max-width: 720px; margin: 60px auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: 12px; color: var(--accent); }

/* Search dialog */
.search-dialog { width: min(660px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 90px rgba(20,42,52,.2); }
.search-dialog::backdrop { background: rgba(15,31,39,.55); backdrop-filter: blur(4px); }
.search-panel { padding: 26px; }
.search-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.search-top p { margin: 0; font-size: 16px; font-weight: 600; }
.search-top button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--muted); font-size: 12px; }
.search-field { display: block; padding: 20px 0; }
.search-field span { display: block; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.search-field input { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); font-size: 16px; }
.search-results { max-height: min(350px,45dvh); overflow: auto; }
.search-results a { display: block; padding: 17px 5px; border-bottom: 1px solid var(--line); }
.search-results a:hover { background: var(--soft); }
.search-results strong { display: block; font-size: 16px; line-height: 1.8; font-weight: 500; }
.search-results span, .search-help, .no-results { font-size: 12px; color: var(--muted); }
.search-help { margin: 18px 0 0; }
body:has(.search-dialog[open]) { overflow: hidden; }

@media (max-width: 1100px) {
  .intro-grid { gap: 38px; grid-template-columns: minmax(0,1fr) 290px; }
  .intro h1 { font-size: 41px; }
  .featured-content { padding: 28px; }
}
@media (max-width: 850px) {
  .intro { padding-top: 55px; }
  .intro-grid { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .intro h1 { font-size: clamp(35px,5.8vw,49px); }
  .identity-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .identity-top { grid-column: 1; }
  .identity-name, .identity-role, .identity-card > .text-link { grid-column: 1; }
  .identity-focus { grid-column: 2; grid-row: 1 / 5; border-top: 0; border-left: 1px solid var(--line); padding: 8px 0 0 28px; margin: 0; }
  .identity-role { margin-bottom: 12px; }
  .featured-essay { grid-template-columns: 1fr; }
  .featured-art { min-height: 270px; }
  .featured-content h2 { font-size: 26px; }
  .contact-band > .shell { align-items: flex-start; flex-direction: column; gap: 28px; }
  .learning-principles { gap: 16px; }
  .learning-principles article { padding: 22px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 95px; }
  .shell, .article-shell { width: calc(100% - 40px); }
  .intro { padding: 46px 0 32px; }
  .intro .eyebrow { font-size: 12px; }
  .intro h1 { font-size: clamp(30px,7.8vw,43px); letter-spacing: -1.4px; }
  .intro-copy { font-size: 16px; }
  .intro-actions { gap: 22px; }
  .identity-card { display: block; padding: 24px; }
  .identity-focus { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; margin: 20px 0; }
  .intro-rule { margin-top: 36px; flex-direction: column; gap: 5px; }
  .section-heading h2, .section-heading > p { font-size: 18px; }
  .section-heading { gap: 14px; margin-bottom: 22px; }
  .featured-art { min-height: 220px; }
  .featured-content { padding: 24px; }
  .featured-content h2 { font-size: 23px; }
  .featured-meta { align-items: flex-start; flex-direction: column; gap: 12px; }
  .feature { padding-bottom: 52px; }
  .contact-band { padding: 44px 0; }
  .contact-band h2 { font-size: 29px; }
  .archive, .learning-page, .about-page { padding: 48px 0 58px; }
  .archive-head, .page-intro { padding-bottom: 36px; }
  .archive-head h1, .page-intro h1 { font-size: 32px; letter-spacing: -1.1px; }
  .archive-head > p:last-child, .page-intro > p:not(.eyebrow) { font-size: 15px; }
  .archive-tools { flex-direction: column; align-items: flex-start; gap: 14px; }
  .archive-list h2 { font-size: 22px; }
  .learning-principles { grid-template-columns: 1fr; }
  .learning-principles h2 { margin-top: 18px; }
  .learning-current { padding-top: 46px; }
  .bio-timeline > article { grid-template-columns: 1fr; gap: 14px; }
  .article-head { padding-top: 44px; }
  .article-head h1 { font-size: 31px; letter-spacing: -.5px; }
  .dek { font-size: 16px; }
  .prose { font-size: 17px; }
  .prose .lead { font-size: 18px; }
  .prose h2 { font-size: 25px; margin-top: 38px; }
  .pull-quote { padding: 18px; font-size: 19px; }
  .term-list > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Editorial accents and comfortable reading */
.intro { position: relative; isolation: isolate; }
.intro::before { content: ''; position: absolute; z-index: -1; inset: 0 -32px 80px; background: radial-gradient(ellipse at 85% 35%, #e3efe7 0, transparent 58%); pointer-events: none; }
.intro .eyebrow { display: flex; align-items: center; gap: 12px; }
.intro .eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent); flex-shrink: 0; }
.identity-card { border-top: 3px solid var(--accent); background: rgba(255,255,255,.9); }
.section-heading h2 { display: flex; align-items: center; gap: 12px; }
.section-heading h2::before { content: ''; width: 5px; height: 20px; border-radius: 3px; background: var(--accent); }
.archive-list article > p:not(.eyebrow), .bio-timeline article p:last-child { font-size: 16px; line-height: 1.9; }
.article-head h1, .prose h2, .featured-content h2 { text-wrap: pretty; }
@media (max-width: 1050px) and (min-width: 851px) {
  .site-header.shell { grid-template-columns: 1fr auto auto; gap: 16px; }
  .site-header nav a { padding-inline: 11px; }
  .search kbd, .search .search-label { display: none; }
}
@media (max-width: 850px) {
  .site-header.shell { grid-template-columns: minmax(0,1fr) auto; min-height: 88px; gap: 0 16px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); }
  .menu-toggle[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .js .site-header nav { display: none; }
  .js .site-header nav.is-open { display: flex; }
  .site-header nav a { flex: 1; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; padding-block: 44px; }
  .footer-intro { grid-column: 1 / -1; }
  .footer-intro > p { max-width: 500px; }
  .footer-bottom { flex-wrap: wrap; gap: 12px 24px; }
}
@media (max-width: 600px) {
  .site-header.shell { padding: 14px 20px; min-height: 84px; gap: 10px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy > span { font-size: 10px; }
  .wordmark { gap: 9px; }
  .brand-symbol { width: 35px; height: 40px; font-size: 29px; border-radius: 9px 9px 9px 3px; }
  .search { width: 42px; min-height: 44px; justify-content: center; padding: 8px; }
  .search .search-label, .search kbd { display: none; }
  .header-actions { gap: 6px; }
  .menu-toggle { width: 42px; }
  .site-header nav { gap: 4px; }
  .site-header nav a { padding: 8px; font-size: 13px; }
  .intro::before { inset-inline: -20px; }
  .intro .eyebrow { font-size: 11px; letter-spacing: .08em; }
  .footer-main { gap: 32px 20px; }
  .footer-nav a { font-size: 13px; min-height: 44px; }
  .footer-nav h2 { line-height: 1.6; margin-bottom: 8px; }
  .footer-bottom { display: grid; grid-template-columns: 1fr auto; font-size: 11px; }
  .footer-bottom > p:nth-child(2) { grid-column: 1; }
  .footer-bottom > a { grid-column: 2; grid-row: 1 / 3; gap: 6px; }
}
@media (max-width: 360px) {
  .site-header.shell { padding-inline: 14px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy > span { font-size: 9px; }
  .brand-symbol { width: 30px; height: 36px; }
  .header-actions { gap: 4px; }
}

/* Career identity: original employer marks on neutral surfaces. */
.employers { padding: 10px 0 54px; }
.employers-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.employers-heading .eyebrow { margin-bottom: 8px; }
.employers-heading h2 { margin: 0; font-size: 23px; font-weight: 500; letter-spacing: -.5px; }
.employer-logos { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px 10px; }
.company-logo { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 86px; padding: 18px 22px; border-radius: 6px; transition: background .2s; }
.company-logo:hover { background: var(--soft); }
.company-logo img { width: 100%; height: 44px; object-fit: contain; }
.company-logo-ude { justify-content: flex-end; background: #003b7a; }
.company-logo-ude:hover { background: #003468; }
.company-logo-ude img { object-position: right center; }
.employer-logos .company-logo + .company-logo { border-left: 1px solid var(--line); border-radius: 0; }
.career-company-logos { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 18px; }
.career-company-logos .company-logo { width: 160px; min-height: 72px; padding: 16px; border: 1px solid var(--line); background: var(--surface); }
.career-company-logos .company-logo img { height: 38px; }
.career-company-logos .company-logo-ude { background: #003b7a; }
.career-company-logos .company-logo-ude:hover { background: #003468; }

/* Long-form article experience */
.article-page { background: #f7f9f7; }
.article-page .site-header { background: rgba(250,251,249,.94); }
.reading-progress { position: fixed; z-index: 60; inset: 0 0 auto; height: 3px; background: transparent; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: #2374e1; transform: scaleX(0); transform-origin: left center; }
.article-shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.article-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(135deg,#f2f8f6 0%,#fafbf9 52%,#eef6fb 100%); }
.article-hero::after { content: ''; position: absolute; right: -120px; bottom: -210px; width: 520px; height: 520px; border: 1px solid rgba(35,116,225,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(35,116,225,.025),0 0 0 140px rgba(36,105,89,.025); pointer-events: none; }
.article-head { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 76px 0 66px; }
.article-head .eyebrow { display: flex; align-items: center; justify-content: space-between; max-width: 680px; margin-bottom: 22px; }
.article-head .eyebrow span:last-child { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(36,105,89,.28); border-radius: 50%; letter-spacing: 0; }
.article-head h1 { max-width: 900px; margin: 0 0 24px; font: 600 clamp(42px,4.3vw,64px)/1.13 var(--sans); letter-spacing: -2.8px; text-wrap: balance; }
.article-head h1 span { display: block; margin-top: 9px; color: #314c58; font-size: .73em; font-weight: 500; letter-spacing: -1.7px; }
.article-head .dek { max-width: 720px; margin: 0 0 34px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.article-byline { display: flex; flex-wrap: wrap; gap: 20px 42px; max-width: 760px; padding-top: 22px; border-top: 1px solid rgba(20,42,52,.13); color: var(--ink); font-size: 13px; }
.article-byline span { display: grid; gap: 2px; }
.article-byline b { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cover { margin: 48px auto 64px; }
.cover-frame { padding: 10px; border: 1px solid #d8e2e5; border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(20,42,52,.08); }
.cover img { display: block; width: 100%; height: auto; border-radius: 8px; }
.cover figcaption { display: flex; gap: 12px; align-items: baseline; padding: 13px 4px 0; color: var(--muted); font-size: 12px; }
.cover figcaption span { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.article-layout { display: grid; grid-template-columns: 210px minmax(0,720px); justify-content: center; align-items: start; gap: 78px; }
.article-toc { position: sticky; top: 128px; padding: 20px 0; border-block: 1px solid var(--line); }
.article-toc > p:first-child { margin: 0 0 14px; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.article-toc nav { display: grid; gap: 2px; }
.article-toc nav a { display: grid; grid-template-columns: 25px 1fr; gap: 8px; align-items: baseline; padding: 8px 7px; border-radius: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; transition: color .2s,background .2s; }
.article-toc nav a span { color: #8b9a9f; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.article-toc nav a:hover,.article-toc nav a.is-active { color: var(--accent); background: var(--accent-soft); }
.article-toc nav a.is-active span { color: var(--accent); }
.article-toc .toc-note { margin: 17px 7px 0; color: #819096; font-size: 10px; }
.prose { min-width: 0; max-width: 720px; margin: 0; color: #243b45; font-size: 17px; line-height: 1.9; overflow-wrap: break-word; }
.prose .lead { margin: 0 0 52px; padding: 26px 28px; border: 1px solid #d8e5e1; border-radius: 10px; background: #f1f7f4; color: var(--ink); font-size: 19px; line-height: 1.8; }
.prose p { margin-bottom: 23px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: #3f5963; }
.prose h2 { scroll-margin-top: 125px; margin: 54px 0 20px; padding-top: 23px; border-top: 1px solid var(--line); color: var(--ink); font-size: 26px; font-weight: 600; line-height: 1.45; letter-spacing: -.65px; text-wrap: pretty; }
.prose .lead + h2 { margin-top: 0; }
.prose h3 { scroll-margin-top: 125px; margin: 38px 0 17px; color: var(--ink); font-size: 21px; font-weight: 600; line-height: 1.5; letter-spacing: -.35px; }
.prose h4 { scroll-margin-top: 125px; margin: 30px 0 13px; color: #31515b; font-size: 16px; font-weight: 700; line-height: 1.55; }
.prose pre { position: relative; overflow-x: auto; margin: 28px 0 32px; padding: 44px 24px 22px; border: 0; border-radius: 9px; background: #102731; color: #d9eeeb; box-shadow: inset 0 1px rgba(255,255,255,.05); font: 13px/1.85 ui-monospace,SFMono-Regular,Consolas,monospace; }
.prose pre::before { content: 'EXAMPLE'; position: absolute; top: 0; left: 0; right: 0; padding: 10px 15px; border-bottom: 1px solid rgba(255,255,255,.1); color: #8fb4b0; font: 700 9px/1 var(--sans); letter-spacing: .14em; }
.prose pre:has(.language-bash)::before { content: 'TERMINAL'; }
.prose pre:has(.language-dockerfile)::before { content: 'DOCKERFILE'; }
.prose pre:has(.language-text)::before { content: 'CONCEPT FLOW'; }
.prose p code { padding: 3px 6px; border: 1px solid #dae4e1; border-radius: 4px; background: #f0f4f2; color: #174f45; }
.prose ol,.prose ul { margin: 22px 0 30px; padding-left: 27px; }
.prose li { margin-bottom: 12px; padding-left: 7px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.pull-quote { position: relative; margin: 34px 0; padding: 27px 30px 27px 34px; border: 0; border-radius: 8px; background: linear-gradient(135deg,#e7f1ed,#edf5f8); color: var(--ink); font-size: 20px; font-weight: 500; line-height: 1.7; }
.pull-quote::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 8px 0 0 8px; background: var(--accent); }
.comparison-wrap { margin: 32px 0 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 8px 25px rgba(20,42,52,.035); }
.comparison-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.comparison-wrap th,.comparison-wrap td { padding: 14px 17px; border-bottom: 1px solid #e5ebe9; text-align: left; }
.comparison-wrap th { background: #173640; color: #fff; font-weight: 600; }
.comparison-wrap tbody tr:nth-child(even) { background: #f5f8f7; }
.term-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 38px; }
.term-list > div { display: block; padding: 17px 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.term-list dt { margin-bottom: 5px; color: var(--accent); font-size: 13px; font-weight: 700; }
.term-list dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.article-end { max-width: 1008px; margin: 72px auto 88px; padding: 28px 0; border-block: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 12px; }
.article-end p { display: grid; gap: 2px; margin: 0; }
.article-end p span { color: var(--ink); font-size: 15px; font-weight: 600; }

@media (max-width: 960px) {
  .article-layout { display: block; }
  .article-toc { position: static; max-width: 720px; margin: 0 auto 42px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .article-toc nav { grid-template-columns: 1fr 1fr; gap: 3px 14px; }
  .article-toc .toc-note { margin-bottom: 0; }
  .prose { margin-inline: auto; }
}
@media (max-width: 600px) {
  .article-shell { width: calc(100% - 36px); }
  .article-head { padding: 50px 0 45px; }
  .article-head .eyebrow { margin-bottom: 18px; }
  .article-head h1 { margin-bottom: 20px; font-size: clamp(35px,10vw,45px); line-height: 1.14; letter-spacing: -1.7px; }
  .article-head h1 span { margin-top: 10px; font-size: .68em; line-height: 1.35; letter-spacing: -.8px; }
  .article-head .dek { margin-bottom: 26px; font-size: 16px; line-height: 1.75; }
  .article-byline { gap: 16px 28px; padding-top: 18px; }
  .cover { margin-block: 26px 42px; }
  .cover-frame { padding: 5px; border-radius: 10px; }
  .cover img { border-radius: 6px; }
  .cover figcaption { line-height: 1.55; }
  .article-toc { margin-bottom: 34px; padding: 16px; }
  .article-toc nav { grid-template-columns: 1fr; }
  .prose { font-size: 16.5px; line-height: 1.85; }
  .prose .lead { margin-bottom: 42px; padding: 22px; font-size: 17px; }
  .prose h2 { margin-top: 46px; padding-top: 20px; font-size: 23px; }
  .prose h3 { margin-top: 32px; font-size: 20px; }
  .prose h4 { margin-top: 26px; font-size: 15px; }
  .prose pre { margin-inline: -4px; padding-inline: 18px; font-size: 12px; }
  .pull-quote { padding: 22px 22px 22px 27px; font-size: 18px; }
  .term-list { grid-template-columns: 1fr; }
  .term-list > div { padding: 15px 16px; }
  .article-end { margin-block: 54px 64px; }
}
.linkedin-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--accent); }
.linkedin-link svg { flex-shrink: 0; }
.header-linkedin { width: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.linkedin-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-intro .linkedin-link { color: #d3e9df; margin-top: 16px; }
.about-intro .linkedin-link { margin-top: 24px; }
@media (max-width: 850px) {
  .employers-heading { align-items: start; flex-direction: column; gap: 14px; }
  .company-logo { padding-inline: 14px; }
  .company-logo img { height: 36px; }
}
@media (max-width: 600px) {
  .header-linkedin { display: none; }
  .employers { padding-bottom: 36px; }
  .employers-heading h2 { font-size: 21px; line-height: 1.5; }
  .employer-logos { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; gap: 8px; }
  .employer-logos .company-logo + .company-logo { border-left: 0; }
  .career-company-logos .company-logo { width: 132px; }
}
