/* cwiklik_lab — site stylesheet (2026)
   Type: Newsreader (Production Type, SIL OFL) for text and display, with optical sizes;
         IBM Plex Sans / Plex Mono (SIL OFL) for interface and wordmark. All self-hosted in /fonts. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-opsz-normal.woff2) format("woff2-variations"), url(fonts/newsreader-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2-variations"), url(fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-opsz-italic.woff2) format("woff2-variations"), url(fonts/newsreader-latin-opsz-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-ext-opsz-italic.woff2) format("woff2-variations"), url(fonts/newsreader-latin-ext-opsz-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --paper: #ffffff;
  --ink: #1f2933;
  --muted: #56616c;
  --faint: #8b949c;
  --rule: #e2e6ea;
  --red: #d40c00;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.1875rem;
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.page { max-width: 70rem; margin: 0 auto; padding: 0 1rem; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .5rem .75rem;
  font-family: var(--sans); font-size: .875rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.rail { padding: 1.75rem 0 1.25rem; border-bottom: 1px solid var(--rule); }

/* Wordmark: ink letters, red brackets and joining underscore */
.wordmark {
  font-family: var(--mono); font-weight: 500;
  font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark .b { color: var(--red); }
.wordmark .b:first-child { margin-right: .04em; }
.wordmark .b:last-child { margin-left: .04em; }
.wordmark:hover { color: var(--ink); }
.tagline {
  margin: .35rem 0 0;
  font-family: var(--serif); font-style: italic; font-size: 1.0625rem; line-height: 1.35; color: var(--muted);
}
.nav ul {
  list-style: none; margin: 1.1rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .1rem 1.1rem;
  font-family: var(--mono); font-size: .875rem; letter-spacing: -.01em;
}
.nav a { color: var(--ink); text-decoration: none; display: inline-block; padding: .2rem 0; position: relative; }
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { font-weight: 500; }
.nav a[aria-current="page"]::before { content: "//"; color: var(--red); font-weight: 400; margin-right: .3em; }
.affil { display: none; }

main { padding: 2.25rem 0 3rem; min-width: 0; }
.site-footer {
  margin-top: 4.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: .8125rem; line-height: 1.6; color: var(--muted);
}
.site-footer p { margin: 0; }

@media (min-width: 60em) {
  body { font-size: 1.25rem; }
  .page {
    display: grid; max-width: 63.5rem;
    grid-template-columns: 13.5rem minmax(0, 40rem);
    column-gap: 5rem; padding: 0 2.5rem;
  }
  .rail {
    position: sticky; top: 0; align-self: start;
    height: 100vh; min-height: 32rem;
    display: flex; flex-direction: column;
    padding: 3.5rem 0 2.5rem; border-bottom: 0;
  }
  .nav ul { flex-direction: column; gap: .1rem; margin-top: 2.75rem; }
  .nav a[aria-current="page"]::before { position: absolute; right: 100%; margin-right: .45em; }
  .affil {
    display: block; margin: auto 0 0;
    font-family: var(--sans); font-size: .8125rem; line-height: 1.55; color: var(--muted);
  }
  .affil a { color: var(--muted); }
  main { padding: 3.25rem 0 4rem; }
}

/* ---------- Type ---------- */
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); }
h1 { font-weight: 300; font-size: 2.875rem; line-height: .98; letter-spacing: -.03em; margin: 0 0 1.5rem; }
h1.cover { font-size: 3.125rem; line-height: .95; letter-spacing: -.036em; margin: 0 0 1.75rem; }
h2 { font-size: 1.75rem; line-height: 1.12; letter-spacing: -.015em; margin: 3.75rem 0 1rem; }
/* Labels: spaced capitals, as in signage */
h3 {
  font-family: var(--sans); font-weight: 600; font-size: .6875rem; line-height: 1.4;
  text-transform: uppercase; letter-spacing: .14em; font-feature-settings: "case";
  color: var(--ink); margin: 2.25rem 0 .8rem;
}
h2 + h3 { margin-top: 1.25rem; }
@media (min-width: 60em) {
  h1 { font-size: 4.25rem; }
  h1.cover { font-size: 5.25rem; }
  h2 { font-size: 2.125rem; }
}
.p-index .tagline { display: none; }
p { margin: 0 0 1.05rem; }
.lead { font-size: 1.25rem; line-height: 1.5; }
@media (min-width: 60em) { .lead { font-size: 1.4375rem; line-height: 1.45; } }
.muted { color: var(--muted); }
.small { font-family: var(--sans); font-size: .875rem; line-height: 1.55; }
em, i { font-style: italic; }
strong, b { font-weight: 600; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(31, 41, 51, .3);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
a:hover { color: var(--red); text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

ul, ol { padding-left: 1.2rem; margin: 0 0 1.05rem; }
li { margin-bottom: .3rem; }

/* ---------- Icons ---------- */
.ico { width: 2.25rem; height: 2.25rem; color: var(--ink); flex: none; display: block; }

/* ---------- Home opening ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.opening { font-size: 1.375rem; line-height: 1.38; letter-spacing: -.008em; margin: 0 0 1.25rem; }
@media (min-width: 60em) { .opening { font-size: 1.75rem; line-height: 1.32; } }

/* ---------- Figure ---------- */
figure { margin: 2.25rem 0 2.5rem; }
figure img { display: block; width: 100%; height: auto; }
figcaption {
  margin-top: .75rem;
  font-family: var(--sans); font-size: .8125rem; line-height: 1.5; color: var(--muted);
  max-width: 34rem;
}

/* ---------- Home: simulation sequence ---------- */
.md-seq { margin: 2.75rem 0 3rem; }
.md-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.md-grid svg { display: block; width: 100%; height: auto; }
.md-grid text { font-family: var(--sans); font-size: 23px; fill: var(--ink); }
.md-grid line { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.md-grid circle { fill: var(--ink); stroke: #fff; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
@media (max-width: 30em) { .md-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.md-seq figcaption { max-width: none; }

/* ---------- Research areas (home list) ---------- */
.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.areas li {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0 1.1rem; align-items: start;
  padding: 1.05rem 0 1.1rem; margin: 0; border-bottom: 1px solid var(--rule);
}
.areas .ico { margin-top: .15rem; }
.areas h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3125rem; line-height: 1.25; letter-spacing: -.005em; text-transform: none; margin: 0; }
.areas h3 a { text-decoration: none; }
.areas h3 a:hover { color: var(--red); }
.areas p { margin: .2rem 0 0; color: var(--muted); }
.more { font-family: var(--sans); font-size: .9375rem; margin-top: 1rem; }

/* ---------- Dated lists (news, trajectory) ---------- */
.dated { list-style: none; padding: 0; margin: 0 0 1rem; }
.dated li {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0 1rem;
  padding: .65rem 0; margin: 0; border-top: 1px solid var(--rule);
}
.dated li:last-child { border-bottom: 1px solid var(--rule); }
.dated .when {
  font-family: var(--mono); font-size: .8125rem; letter-spacing: -.01em; color: var(--muted);
  padding-top: .3rem;
}

/* ---------- Research page ---------- */
.toc { list-style: none; padding: 0; margin: 1.75rem 0 0; font-family: var(--sans); font-size: .9375rem; columns: 2; column-gap: 2rem; }
.toc li { margin: 0 0 .3rem; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 30em) { .toc { columns: 1; } }
section[id] { scroll-margin-top: 1.5rem; }
.area-head { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.area-head .ico { width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; }
.area-head h2 { margin-top: 0; }
.partner { border-left: 2px solid var(--red); padding-left: 1.25rem; }
.partner-wrap { margin-top: 4rem; }
.partner-wrap .area-head { margin-top: 0; border-top: 0; padding-top: 0; }

/* Collaboration lines and funding */
.with { font-family: var(--sans); font-size: .875rem; line-height: 1.55; color: var(--muted); margin: .25rem 0 1.25rem; padding-left: .9rem; border-left: 1px solid var(--rule); }
.fund .src { display: block; font-family: var(--sans); font-size: .8125rem; line-height: 1.5; color: var(--muted); margin-bottom: .1rem; }
.fund li { font-size: 1.0625rem; line-height: 1.45; }
.fund .when { padding-top: .1rem; }
.fund .role { font-family: var(--sans); font-size: .75rem; color: var(--muted); border: 1px solid var(--rule); padding: 0 .35rem; border-radius: 2px; margin-left: .3rem; white-space: nowrap; vertical-align: .1em; }
.more .sep { display: inline-block; width: 1.25rem; }
#collaborators { scroll-margin-top: 1.5rem; }
.code { font-family: var(--mono); font-size: .95em; letter-spacing: -.01em; color: var(--ink); }

/* Selected publications */
.refs { list-style: none; padding: 0; margin: .25rem 0 0; }
.refs li { margin: 0 0 .8rem; font-family: var(--sans); font-size: .875rem; line-height: 1.5; color: var(--muted); }
.refs .t { display: block; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.4; color: var(--ink); }

/* ---------- Publications page ---------- */
.years { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .15rem .9rem; font-family: var(--mono); font-size: .8125rem; }
.years li { margin: 0; }
.years a { text-decoration: none; color: var(--muted); }
.years a:hover { color: var(--red); }
.yblock { margin-top: 2.75rem; }
.year {
  font-family: var(--serif); font-weight: 250; font-size: 2.75rem; line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink); margin: 0 0 .75rem; scroll-margin-top: 1.5rem;
}
@media (min-width: 48em) {
  .yblock { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0 1rem; border-top: 1px solid var(--rule); }
  .year { position: sticky; top: 1.5rem; align-self: start; margin: .6rem 0 0; font-size: 2.75rem; }
  .yblock .pub:first-child { border-top: 0; }
}
.pubs { list-style: none; padding: 0; margin: 0; }
.pub {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 .6rem;
  padding: .9rem 0 .95rem; margin: 0; border-top: 1px solid var(--rule);
}
.pub-n { font-family: var(--mono); font-size: .75rem; color: var(--faint); padding-top: .3rem; }
.pub-t { display: block; font-size: 1.0625rem; line-height: 1.38; }
.pub-a, .pub-s { display: block; font-family: var(--sans); font-size: .8125rem; line-height: 1.55; color: var(--muted); margin-top: .3rem; }
.pub-a .me { color: var(--ink); font-weight: 600; }
.pub-s .links { margin-left: .5rem; }
.pub-s .links a { margin-right: .6rem; }
.tag { font-family: var(--sans); font-size: .75rem; color: var(--muted); border: 1px solid var(--rule); padding: 0 .35rem; border-radius: 2px; margin-left: .4rem; white-space: nowrap; vertical-align: .1em; }

details { margin: 3rem 0 0; border-top: 1px solid var(--rule); padding-top: 1rem; }
summary { font-family: var(--sans); font-weight: 600; font-size: .6875rem; text-transform: uppercase; letter-spacing: .14em; cursor: pointer; }
summary:hover { color: var(--red); }
details ol { margin-top: 1rem; font-family: var(--sans); font-size: .875rem; line-height: 1.55; color: var(--muted); padding-left: 2.2rem; }
details li { margin-bottom: .5rem; }

/* ---------- People ---------- */
.people { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.people li { padding: .95rem 0 1rem; margin: 0; border-bottom: 1px solid var(--rule); }
.people .name { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.005em; }
.people .role { display: block; font-family: var(--sans); font-size: .875rem; line-height: 1.45; color: var(--muted); margin-top: .15rem; }
.people .about { display: block; margin-top: .3rem; font-size: 1.0625rem; line-height: 1.5; }
@media (min-width: 40em) {
  .people.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; border-top: 0; }
  .people.two li:nth-child(-n+2) { border-top: 1px solid var(--rule); }
}

/* ---------- About ---------- */
.profile { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: end; margin-bottom: .5rem; }
.profile img { width: 9.5rem; height: auto; display: block; }
@media (min-width: 40em) { .profile { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.75rem; } }
.profile h1 { margin-bottom: .45rem; }
.degrees { font-family: var(--sans); font-size: .9375rem; color: var(--muted); margin: 0 0 .9rem; }
.links-inline { font-family: var(--sans); font-size: .9375rem; margin: 0; }
.links-inline a { margin-right: 1.1rem; }
.cv { list-style: none; padding: 0; margin: 0; }
.cv li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0 1rem; margin: 0; padding: .5rem 0; border-top: 1px solid var(--rule); }
.cv li:last-child { border-bottom: 1px solid var(--rule); }
.cv .when { font-family: var(--mono); font-size: .8125rem; letter-spacing: -.01em; color: var(--muted); padding-top: .3rem; }
@media (max-width: 30em) { .cv li, .dated li { grid-template-columns: 1fr; } }

/* ---------- Teaching / contact ---------- */
.facts { margin: 0 0 1.25rem; }
.facts div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0 1rem; padding: .5rem 0; border-top: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--sans); font-size: .875rem; color: var(--muted); padding-top: .25rem; }
.facts dd { margin: 0; }
@media (max-width: 30em) { .facts div { grid-template-columns: 1fr; } }
.files { columns: 2; column-gap: 2rem; font-family: var(--sans); font-size: .9375rem; }
.files li { break-inside: avoid; }
@media (max-width: 30em) { .files { columns: 1; } }
.note { font-family: var(--sans); font-size: .9375rem; border-left: 2px solid var(--red); padding: .1rem 0 .1rem 1rem; }
address { font-style: normal; margin: 0 0 1.25rem; }

@media print {
  .rail .nav, .skip, .affil { display: none; }
  .page { display: block; }
  a { text-decoration: none; }
}
