/* ashishsuman.org
   Teal for the brand (green space, water), a warm coral as the second colour (the city
   lights of the opening map). Topic colours follow map convention: red for the built,
   green for vegetation, blue for water and climate, ochre for practice.
   Type: Source Serif 4 for headings, IBM Plex Sans for text, IBM Plex Mono for data. */

@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-var.woff2") format("woff2");
  font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-var-italic.woff2") format("woff2");
  font-weight: 100 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-roman.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-display: swap; }

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --tint: #eef5f1;
  --warm: #fbf1e8;
  --ink: #14212b;
  --ink-2: #475563;
  --ink-3: #5e6a75;
  --rule: #e2e6e3;
  --brand: #0b7a66;
  --brand-ink: #085e4f;
  --on-brand: #ffffff;
  --accent: #e0703f;
  --t-urban: #b8461f;
  --t-green: #1f7a45;
  --t-eco: #1d6fa5;
  --t-practice: #8f5f18;
  --land: #e6ebe7;
  --land-edge: #b8c2bc;
  --night: #0b1114;
  --shadow-sm: 0 1px 2px rgba(16, 24, 32, .05), 0 2px 8px -2px rgba(16, 24, 32, .06);
  --shadow-md: 0 2px 4px rgba(16, 24, 32, .05), 0 14px 32px -10px rgba(16, 24, 32, .16);
  --glow-1: rgba(11, 122, 102, .09);
  --glow-2: rgba(224, 112, 63, .05);

  --sans: "Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "Plex Mono", ui-monospace, Consolas, monospace;

  --max: 1400px;
  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e181b; --surface: #142226; --tint: #12211f; --warm: #1b1a17;
    --ink: #e7eeeb; --ink-2: #b3c1bf; --ink-3: #8d9c9b; --rule: #233438;
    --brand: #5ccfb0; --brand-ink: #8ee0c9; --on-brand: #0b1416; --accent: #ff9a6e;
    --t-urban: #ff9a76; --t-green: #74d39c; --t-eco: #7fc0ee; --t-practice: #e8b465;
    --land: #1d2e33; --land-edge: #3a5056;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35); --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 36px -12px rgba(0, 0, 0, .7);
    --glow-1: rgba(92, 207, 176, .10); --glow-2: rgba(255, 154, 110, .07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e181b; --surface: #142226; --tint: #12211f; --warm: #1b1a17;
  --ink: #e7eeeb; --ink-2: #b3c1bf; --ink-3: #8d9c9b; --rule: #233438;
  --brand: #5ccfb0; --brand-ink: #8ee0c9; --on-brand: #0b1416; --accent: #ff9a6e;
  --t-urban: #ff9a76; --t-green: #74d39c; --t-eco: #7fc0ee; --t-practice: #e8b465;
  --land: #1d2e33; --land-edge: #3a5056;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35); --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 36px -12px rgba(0, 0, 0, .7);
  --glow-1: rgba(92, 207, 176, .10); --glow-2: rgba(255, 154, 110, .07);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--brand-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 0.45em;
  font-variation-settings: "opsz" 60; }
h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.2rem); }
h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }
.mono { font-family: var(--mono); font-size: 0.85em; letter-spacing: 0; }
.small { font-size: 0.88rem; }
.muted { color: var(--ink-2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.label { font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.7em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }
html:not(.js) .js-only { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.band { padding-block: clamp(44px, 5vw, 72px); }
.band--tint { background: var(--tint); }
.band--flush { padding-top: 0; }

.button { display: inline-flex; align-items: center; gap: 0.5em; font: 600 0.95rem/1 var(--sans); padding: 0.85em 1.3em;
  border-radius: var(--radius-sm); background: var(--brand); color: var(--on-brand); text-decoration: none; border: 0;
  cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s; }
.button:hover { background: var(--brand-ink); color: var(--on-brand); }
.button:active { transform: translateY(1px); }
.button--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.button--ghost:hover { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.button--small { font-size: 0.88rem; padding: 0.65em 1em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.more { font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* ---------- header ---------- */
.masthead { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule); }
.masthead__inner { display: flex; align-items: center; gap: 10px 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__portrait { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--rule); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.005em; }
.brand__role { font-size: 0.84rem; color: var(--ink-3); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 26px; }
.mainnav a { display: block; padding: 8px 0; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.96rem;
  border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--ink); }
.mainnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--rule); background: var(--surface);
  color: var(--ink); border-radius: 50%; cursor: pointer; padding: 0; flex: none; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle:hover { border-color: var(--ink-3); }
/* reading progress */
.scalebar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.scalebar__fill { display: block; height: 100%; width: calc(var(--progress, 0) * 100%);
  background: linear-gradient(90deg, var(--brand), var(--accent)); }
@media (max-width: 1180px) { .brand__role { display: none; } }
@media (max-width: 760px) {
  .masthead { position: static; }
  .masthead__inner { flex-wrap: wrap; padding-top: 10px; min-height: 0; gap: 10px 12px; }
  .brand { flex: 1 1 0; }
  .brand__role { display: block; }
  .mainnav { order: 3; width: 100%; border-top: 1px solid var(--rule); }
  .mainnav ul { justify-content: space-between; gap: 0 8px; }
  .mainnav a { padding: 11px 0 9px; font-size: 0.92rem; }
  .scalebar { display: none; }
}
@media (max-width: 400px) { .brand__role { display: none; } }

/* ---------- page heads ---------- */
/* soft light from the top corners, fully faded before the section ends */
.glow { background:
  radial-gradient(ellipse 55% 85% at 100% 0%, var(--glow-1), transparent 72%),
  radial-gradient(ellipse 45% 75% at 0% 0%, var(--glow-2), transparent 72%); }
.page-head { padding-block: clamp(32px, 4vw, 56px) clamp(24px, 2.5vw, 32px); }
.page-head h1 { margin-bottom: 0.3em; }
.lede { font-size: clamp(1.12rem, 1.02rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 44em; margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

/* ---------- home ---------- */
.hero { padding-block: clamp(24px, 3vw, 44px) clamp(44px, 5vw, 72px); }
.hero__grid { display: grid; gap: clamp(32px, 4vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: center; }
/* side by side: both columns start at the top, and the map is sized to the screen's height so
   the whole map is in view on arrival; the text takes all the remaining width */
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .hero-map { width: clamp(400px, calc(100vh - 170px), 620px); width: clamp(400px, calc(100svh - 170px), 620px); }
  .hero__text { padding-top: clamp(4px, 1.5vw, 24px); }
}
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 0.9rem; color: var(--ink-2); }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); flex: none; }
.hero__title { font-size: clamp(2.4rem, 1.2rem + 2.8vw, 3.8rem); line-height: 1.04; letter-spacing: -0.022em;
  font-variation-settings: "opsz" 72; margin-bottom: 0.4em; }
.hero__intro { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--ink); max-width: 40em; }
.hero__before { color: var(--ink-2); max-width: 46em; }
.hero .actions { margin-top: 28px; }
.latest { display: grid; gap: 4px; margin-top: 32px; max-width: 40em; padding: 16px 20px; border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-sm); color: var(--ink); text-decoration: none;
  transition: box-shadow .2s, transform .2s; }
.latest:hover { color: var(--ink); transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, var(--rule)), var(--shadow-md); }
.latest__label { font-size: 0.8rem; font-weight: 600; color: var(--brand); }
.latest__title { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.latest__venue { font-size: 0.9rem; color: var(--ink-2); }

.hero-map { margin: 0; background: var(--night); color: #e7eeeb; padding: 14px; border-radius: 18px; box-shadow: var(--shadow-md); }
.hero-map__tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.hero-map__tabs button { font: 500 0.8rem/1 var(--sans); background: transparent; color: #b6c1c3; border: 1px solid #263338;
  padding: 6px 10px; cursor: pointer; border-radius: 999px; }
.hero-map__tabs button:hover { color: #fff; border-color: #4a5a60; }
.hero-map__tabs button[aria-pressed="true"] { color: #0b1114; background: #fca50a; border-color: #fca50a; font-weight: 600; }
.hero-map__frame { position: relative; aspect-ratio: 1 / 1; background: var(--night); overflow: hidden; border-radius: 10px; }
.hero-map__still, .hero-map__canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: auto; }
.hero-map__canvas { opacity: 0; transition: opacity .4s; }
.hero-map.is-live .hero-map__canvas { opacity: 1; }
.hero-map__year { position: absolute; left: 14px; top: 10px; margin: 0; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  line-height: 1; font-weight: 500; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.8); letter-spacing: -0.02em; }
.hero-map__city { position: absolute; left: 16px; top: calc(clamp(2rem, 1.2rem + 3vw, 3.4rem) + 18px); margin: 0;
  color: #d9dde2; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
/* scale bar: 10 km of a 60 km window is one sixth of the frame */
.hero-map__scale { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.hero-map__scale-bar { width: calc((100% + 28px) / 6); display: block; height: 6px; border: 1px solid #fff;
  background: linear-gradient(90deg, #fff 0 50%, transparent 50%); box-shadow: 0 0 6px rgba(0,0,0,.8); }
.hero-map__inset { position: absolute; right: 10px; top: 10px; width: 16%; min-width: 58px; height: auto;
  background: rgba(11,17,20,.78); padding: 5px; border: 1px solid #33424a; border-radius: 6px; }
.hero-map__inset use { fill: #3a474e; stroke: #9aa8ad; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-map__inset-dot { fill: #fca50a; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hero-map__inset-box { display: none; }
.hero-map__loading { position: absolute; right: 12px; bottom: 10px; margin: 0; color: #fff; font-size: 0.8rem; }
.hero-map__controls { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; }
.hero-map__play { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid #4a5a60; background: transparent;
  color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.hero-map__play svg { width: 14px; height: 14px; fill: currentColor; }
.hero-map__play .i-pause { display: none; }
.hero-map.is-playing .hero-map__play .i-play { display: none; }
.hero-map.is-playing .hero-map__play .i-pause { display: inline; }
.hero-map__slider { flex: 1; accent-color: #fca50a; height: 28px; }
.ramp { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center;
  font-size: 0.8rem; color: #c3ccce; margin: 6px 0 10px; }
.ramp__base { grid-row: 1 / 3; display: flex; align-items: center; gap: 6px; font-size: 0.78rem; }
.ramp__swatch { width: 14px; height: 14px; background: #5b616a; display: inline-block; border-radius: 2px; }
.ramp__bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #420a68, #932667 25%, #dd513a 50%, #fca50a 75%, #fcffa4); }
.ramp__ticks { display: flex; justify-content: space-between; font-size: 0.72rem; color: #a9b4b7; }
.hero-map figcaption { font-size: 0.88rem; line-height: 1.5; color: #c3ccce; }
.hero-map figcaption em { color: #fff; }
.hero-map details { margin-top: 6px; }
.hero-map summary { cursor: pointer; font-weight: 600; font-size: 0.84rem; color: #fca50a; }
.hero-map details p { margin: 0.6em 0 0; }

/* ---------- cards ---------- */
.thread-urban { --thread: var(--t-urban); }
.thread-green { --thread: var(--t-green); }
.thread-eco { --thread: var(--t-eco); }
.thread-practice { --thread: var(--t-practice); }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--thread) 45%, var(--rule)); }
.card__link { display: flex; flex-direction: column; height: 100%; padding: 20px 22px; color: var(--ink); text-decoration: none; }
.card__link:hover { color: var(--ink); }
.card__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; min-height: 52px; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 10px; }
.pill { display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px;
  color: var(--thread, var(--brand)); background: color-mix(in srgb, var(--thread, var(--brand)) 12%, transparent); }
.card__years { color: var(--ink-3); font-size: 0.8rem; }
.card__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; margin: 0 0 0.45em; }
.card__short { font-size: 0.97rem; color: var(--ink-2); margin-bottom: 1em; }
.card__role { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 0.86rem; color: var(--ink-3); }

.locator { flex: none; }
.locator--sm { width: 46px; height: auto; }
.locator--lg { width: 150px; height: auto; }
.locator__land { fill: var(--land); stroke: var(--land-edge); stroke-width: 1; vector-effect: non-scaling-stroke; }
.locator__all { fill: var(--thread, var(--brand)); opacity: 0.6; }
.locator__state { fill: var(--thread, var(--brand)); opacity: 0.8; }
.locator__dot { fill: var(--thread, var(--brand)); }
.locator__halo { fill: none; stroke: var(--thread, var(--brand)); stroke-width: 1.4; vector-effect: non-scaling-stroke; }

/* ---------- background, tools, publications ---------- */
.split { display: grid; gap: clamp(40px, 5vw, 80px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .split--wide { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .split .prose { max-width: none; }
  /* a side panel stays in view beside a longer column instead of leaving a blank one */
  .split > .panel { position: sticky; top: 92px; }
}
.split__next { margin-top: 1.4em; }
.dated-list { list-style: none; padding: 0; margin: 0 0 1em; }
.dated-list li { display: grid; grid-template-columns: 6.8em 1fr; gap: 0 1em; padding: 12px 0; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.dated-list li:first-child { border-top: 1px solid var(--rule); }
.dated-list .mono { color: var(--ink-3); padding-top: 0.15em; }
.dated-list strong { display: block; }
.dated-list .muted { font-size: 0.94rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 0.88rem; padding: 5px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); }

.pubs { list-style: none; padding: 0; margin: 0 0 1.2em; }
.pub { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.pub:first-child { border-top: 1px solid var(--rule); }
.pub__cite { margin: 0; color: var(--ink-2); }
.pub__cite strong { color: var(--ink); }
.pub__title { font-weight: 600; color: var(--ink); }
a.pub__title { text-decoration: none; }
a.pub__title:hover { color: var(--brand); text-decoration: underline; }
.tag { display: inline-block; font-size: 0.74rem; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 999px; white-space: nowrap;
  color: var(--t-green); background: color-mix(in srgb, var(--t-green) 12%, transparent); vertical-align: 0.08em; }
.group-title { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin: 2em 0 0.6em; }
.group-title:first-child { margin-top: 0; }
.group-title .count { color: var(--ink-3); font-weight: 400; }

/* ---------- call to action ---------- */
.cta { display: grid; gap: 24px 48px; align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 22px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 13%, var(--surface)), color-mix(in srgb, var(--accent) 11%, var(--surface)));
  box-shadow: inset 0 0 0 1px var(--rule); }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1.3fr) auto; } }
.cta h2 { margin-bottom: 0.3em; }
.cta p { margin: 0; color: var(--ink-2); max-width: 40em; }

/* ---------- panels: research, project, publications, CV ---------- */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; align-self: start; box-shadow: var(--shadow-sm); }
.panel__aim { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; margin-bottom: 1em; }
.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: 7em 1fr; gap: 0.75em; padding: 0.55em 0; border-top: 1px solid var(--rule); }
.kv dt { font-size: 0.82rem; font-weight: 600; color: var(--ink-3); padding-top: 0.15em; }
.kv dd { margin: 0; }
.kv--stack > div { grid-template-columns: 1fr; gap: 0.15em; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--tint); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { background: var(--tint); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; font-size: 0.86rem; }
.prose pre code { background: none; padding: 0; }

.objectives { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.objective { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.objective__num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; margin: 0 0 12px;
  font: 600 0.95rem/1 var(--sans); color: var(--thread); background: color-mix(in srgb, var(--thread) 13%, transparent); }
.objective p { color: var(--ink-2); }
.objective__status { font-size: 0.9rem; color: var(--ink-3) !important; margin: 0; }

.project__head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.project__head .pill { margin-bottom: 14px; }
.project__locator { margin: 0; text-align: center; color: var(--ink-3); font-size: 0.85rem; }
@media (max-width: 640px) { .project__head { flex-direction: column; } .locator--lg { width: 110px; } }
.project__links { margin-top: 1.4em; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); }
.pager a { text-decoration: none; color: var(--ink); font-weight: 600; }
.pager a:hover { color: var(--brand); }
.pager a .label { display: block; }
.pager a[rel="next"] { text-align: right; }
.pager__index { text-align: center; align-self: end; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager a[rel="next"], .pager__index { text-align: left; } }

.cv-choice { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.cv-doc h2 { font-size: 1.6rem; margin-bottom: 0.3em; }
.cv-doc .actions { margin-top: 6px; }
.notes-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.notes-list li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.notes-list h2 { font-size: 1.35rem; margin: 0.3em 0; }
.notes-list h2 a { color: var(--ink); text-decoration: none; }
.notes-list h2 a:hover { color: var(--brand); }
.notes-list p:last-child { margin: 0; color: var(--ink-2); }

/* ---------- contact ---------- */
.helps { list-style: none; padding: 0; margin: 0 0 28px; }
.helps li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--rule); position: relative; }
.helps li:first-child { border-top: 1px solid var(--rule); }
.helps li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.helps strong { display: block; }
.helps span { color: var(--ink-2); font-size: 0.96rem; }
.direct { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 1.6rem; }
.field { margin: 0 0 18px; }
.field label, .topics legend { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field .optional { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule);
  border-radius: var(--radius-sm); padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 9.5em; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.two-up { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.topics { border: 0; padding: 0; margin: 0 0 20px; }
.topics__list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span { display: inline-block; font-size: 0.92rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); transition: background .15s, box-shadow .15s, color .15s; }
.topic span:hover { box-shadow: inset 0 0 0 1px var(--ink-3); color: var(--ink); }
.topic input:checked + span { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--ink); font-weight: 600; }
.topic input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 899px) { .contact-grid .form-card { order: -1; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { font-size: 0.86rem; color: var(--ink-3); margin: 14px 0 0; }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--t-green); }
.form-status.is-error { color: var(--t-urban); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--tint); padding-block: 48px 36px; font-size: 0.92rem; color: var(--ink-2); }
.footer__grid { display: grid; gap: 28px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__name { font-weight: 600; color: var(--ink); font-size: 1.05rem; margin-bottom: 0.2em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer__small { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.84rem; color: var(--ink-3); }
.footer__small p { margin: 0 0 0.4em; }
.footer__small .mono { font-size: 0.76rem; }

/* ---------- CV (screen and print) ---------- */
.cv { width: min(100% - 2 * var(--gutter), 900px); margin: clamp(32px, 5vw, 64px) auto; }
.cv__head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.cv__head h1 { font-size: 2.3rem; margin: 0; }
.cv__role { margin: 4px 0 0; color: var(--ink-2); }
.cv__contact { text-align: right; font-size: 0.88rem; margin: 0; line-height: 1.45; }
.cv__download { margin: 18px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cv__summary { font-size: 1.05rem; margin: 18px 0 0; }
.cv__section { margin-top: 22px; }
.cv__section h2 { font: 600 0.8rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 4px; margin-bottom: 10px; }
.cv__sub { font: italic 600 0.92rem/1.3 var(--sans); margin: 10px 0 4px; }
.cv__entry { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; margin: 0 0 12px; break-inside: avoid; }
.cv__when { font: 400 0.8rem/1.6 var(--mono); color: var(--ink-2); margin: 0; }
.cv__entry h3 { font-size: 1rem; margin: 0; }
.cv__org { margin: 0; font-style: italic; color: var(--ink-2); font-size: 0.95rem; }
.cv__note { margin: 2px 0 0; font-size: 0.9rem; color: var(--ink-2); }
.cv__entry ul { margin: 4px 0 0; padding-left: 1.1em; font-size: 0.93rem; }
.cv__entry li { margin: 2px 0; }
.cv__pubs { padding-left: 1.4em; font-size: 0.93rem; margin: 0 0 6px; }
.cv__pubs li { margin: 4px 0; }
.cv__list { list-style: none; padding: 0; margin: 0 0 6px; font-size: 0.93rem; }
.cv__list li { margin: 3px 0; }
.cv__inline-when { font: 400 0.78rem/1 var(--mono); color: var(--ink-2); display: inline-block; min-width: 4.6em; }
.cv__skills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.93rem; }
.cv__two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cv__foot { margin-top: 28px; font: 400 0.74rem/1 var(--mono); color: var(--ink-3); }
@media (max-width: 640px) { .cv__head { flex-direction: column; align-items: flex-start; } .cv__contact { text-align: left; }
  .cv__entry { grid-template-columns: 1fr; gap: 2px; } .cv__two { grid-template-columns: 1fr; } }

@page { size: A4; margin: 12mm 14mm 12mm 14mm; }
@media print {
  :root { --bg: #fff; --surface: #fff; --tint: #fff; --ink: #111; --ink-2: #333; --ink-3: #555; --rule: #bbb; --brand: #111; color-scheme: light; }
  body { font-size: 8.9pt; line-height: 1.32; background: #fff; }
  .masthead, .site-footer, .skip, .screen-only, .theme-toggle { display: none !important; }
  .cv { width: auto; margin: 0; }
  a { color: inherit; text-decoration: none; }
  .cv__head h1 { font-size: 20pt; }
  .cv__section { margin-top: 10pt; }
  .cv__section h2 { font-size: 7.4pt; margin-bottom: 5pt; }
  .cv__entry { margin-bottom: 5pt; grid-template-columns: 9.6em 1fr; }
  .cv__when { font-size: 7pt; white-space: nowrap; }
  .cv__entry ul { margin-top: 2pt; }
  .cv__entry ul, .cv__pubs, .cv__list, .cv__skills { font-size: 8.8pt; }
  .cv__summary { font-size: 9.8pt; margin-top: 10pt; }
  .cv__foot { margin-top: 12pt; }
  h2, h3 { break-after: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
