/*
Theme Name: Mobility Science Lab
Theme URI: https://mobscilab.com/
Author: Mobility Science Lab
Description: Classic theme for the Mobility Science Lab at the University of Leeds. People and project pages, posts for news and the Our Work page drive every view; there are no widgets, menus or block templates to configure.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mobscilab
Tags: one-column, custom-colors, editor-style, translation-ready
*/

/* Generated by build_theme.py from css/1-base.css .. css/5-detail.css. Do not edit here. */
/* ---------- tokens ---------- */
:root {
  --ink: #16161a;
  --ink-2: #3f3f47;
  --muted: #6b6b73;
  --rule: #dcd9d2;
  --rule-2: #eae7e1;
  --paper: #fbfaf7;
  --paper-2: #f3f1ec;
  --night: #0e0e10;
  --night-2: #1b1b20;
  /* #c383ae is the lab's existing pink: decoration and dark backgrounds only.
     On light backgrounds text uses --pink-deep (7:1) to stay readable. */
  --pink: #c383ae;
  --pink-deep: #8c3f72;
  --pink-wash: #f5e9f1;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- base ---------- */
*, *::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: 400 1.0625rem/1.6 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); text-decoration-color: var(--pink); }
:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; font: 500 .875rem var(--sans); }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-top: 3px solid var(--pink); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { font: 600 1.3125rem/1 var(--sans); letter-spacing: .01em; }
.brand-mark i { font-style: normal; color: var(--pink); }
.brand-sub { border-left: 1px solid var(--rule); padding-left: 16px; font: 400 .8125rem/1.35 var(--sans); color: var(--muted); }
.brand-sub b { display: block; font: 500 1rem/1.2 var(--serif); color: var(--ink); }
.nav { display: flex; gap: 2px; font: 500 .875rem/1 var(--sans); }
.nav a { color: var(--ink-2); text-decoration: none; padding: 12px 12px 10px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--pink); }

@media (max-width: 880px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0; padding-top: 16px; }
  .brand-sub { display: none; }
  .nav { width: calc(100% + 2 * var(--gutter)); margin: 12px calc(-1 * var(--gutter)) 0; padding: 0 calc(var(--gutter) - 6px); gap: 0; overflow-x: auto; border-top: 1px solid var(--rule-2); justify-content: space-between; scrollbar-width: none; }
  .nav a { padding: 12px 6px 10px; font-size: .8125rem; }
}
/* six items have to fit a 360px phone without scrolling */
@media (max-width: 400px) { .nav a { padding: 12px 5px 10px; font-size: .75rem; } }

/* ---------- footer ---------- */
.site-footer { background: var(--night); border-top: 1px solid #2a2a30; color: #a9a9b2; font: 400 .875rem/1.65 var(--sans); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 4fr 3fr 2fr 3fr; gap: 32px; }
.site-footer h2 { font: 500 .6875rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 4px 0 16px; }
.site-footer a { color: #dcdce2; text-decoration: none; }
.site-footer a:hover { color: var(--pink); }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 4px; }
.foot-mark { color: #fff; margin: 0 0 12px; }
.foot-tag { font: italic 400 1.0625rem/1.4 var(--serif); color: #d6d6dc; }
.foot-bottom { border-top: 1px solid #2a2a30; margin-top: 48px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .75rem; color: #85858e; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- home: the header floats over the hero ---------- */
.home .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; background: transparent; border-bottom-color: rgba(255, 255, 255, .14); }
.home .brand, .home .brand:hover { color: #fff; }
.home .brand-sub { color: #a9a9b2; border-left-color: rgba(255, 255, 255, .2); }
.home .brand-sub b { color: #fff; }
.home .nav a { color: #d4d4da; }
.home .nav a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .35); }
.home .site-header :focus-visible, .hero :focus-visible { outline-color: var(--pink); }
@media (max-width: 880px) { .home .nav { border-top-color: rgba(255, 255, 255, .12); } }

/* ---------- hero: full screen over a live street-network simulation (js/hero.js) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night-2); color: #fff; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: 82px; }
.hero-sim, .hero-sim canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* --sim-fx/-fy: where in the box the lab's corner of Leeds lands; --sim-street-k: how strongly the streets
   show; colours are set per variant (defaults in js/hero.js) */
.hero-sim { z-index: 0; pointer-events: none; --sim-fx: .63; --sim-fy: .5; --sim-street-k: 1.6; }
.hero-sim canvas { opacity: 0; transition: opacity 1.6s ease; }
.hero-sim.on canvas { opacity: 1; }
/* shade the streets where the header, the text and the caption sit (in the ground colour, --night-2) */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(27, 27, 32, .92) 0, rgba(27, 27, 32, .78) 36%, rgba(27, 27, 32, 0) 68%),
              linear-gradient(180deg, rgba(27, 27, 32, .85) 0, rgba(27, 27, 32, 0) 150px),
              linear-gradient(0deg, rgba(27, 27, 32, .9) 0, rgba(27, 27, 32, 0) 180px); }
/* flex items with auto margins don't stretch, so the wraps need an explicit width */
.hero-main { position: relative; z-index: 2; flex: 1; width: 100%; display: flex; align-items: center; padding-top: clamp(32px, 6vh, 72px); padding-bottom: 40px; }
.hero h1 { font-weight: 400; font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1.02; letter-spacing: -.028em; color: #fff; max-width: 8em; }
.hero h1 em { font-style: italic; color: var(--pink); }
.hero-lede { font: 300 clamp(1.0625rem, 1.5vw, 1.25rem)/1.55 var(--serif); color: #c9c9d1; max-width: 30em; margin: 28px 0 0; }
.hero-index { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; font: 500 .875rem/1 var(--sans); }
.hero-index a { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid var(--pink); color: #fff; text-decoration: none; }
.hero-index a:hover { color: var(--pink); }
.hero-index li:not(:last-child) a::after { content: " \2192"; color: var(--pink); }
.hero-foot { width: 100%; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px; padding-bottom: 28px; position: relative; z-index: 2; }
.hero-foot > * { margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero-cue { font: 500 .8125rem/1.2 var(--sans); color: #a9a9b2; text-decoration: none; }
.hero-cue:hover { color: #fff; }
.hero-cap { font: 400 .75rem/1.6 var(--mono); color: #9a9aa3; }
.hero-cap .k-walk { color: var(--pink); }
.hero-cap .k-car { color: #fff; }
.hero-cap a { color: #c9c9d1; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 2px; }
.hero-cap a:hover { color: #fff; }
.hero-pause { font: 500 .75rem/1 var(--sans); color: #d4d4da; background: none; border: 1px solid rgba(255, 255, 255, .3); padding: 6px 10px; margin-left: .75em; cursor: pointer; }
.hero-pause:hover { color: #fff; border-color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: hero-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .12s; }
  .hero-text > :nth-child(3) { animation-delay: .24s; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 880px) {
  .hero { padding-top: 96px; }
  .hero-sim { --sim-fx: .5; --sim-fy: .3; }
  /* the text sits at the bottom, the streets show above it */
  .hero::after { background: linear-gradient(0deg, rgba(27, 27, 32, .92) 0, rgba(27, 27, 32, .6) 58%, rgba(27, 27, 32, 0) 88%),
                             linear-gradient(180deg, rgba(27, 27, 32, .85) 0, rgba(27, 27, 32, 0) 140px); }
  .hero-main { align-items: flex-end; padding-top: 0; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-cue { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 500 .875rem/1 var(--sans); padding: 14px 20px; border: 1px solid currentColor; color: inherit; text-decoration: none; }
.btn::after { content: "\2192"; transition: transform .2s; }
.btn:hover { color: inherit; }
.btn:hover::after { transform: translateX(3px); }
.btn-pink { background: var(--pink); border-color: var(--pink); color: var(--night); }
.btn-pink:hover { background: #d7a3c6; border-color: #d7a3c6; color: var(--night); }

/* ---------- section scaffold: label left, content right ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.section.alt { background: var(--paper-2); }
.section > .wrap { display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: 24px clamp(24px, 4vw, 64px); }
.sec-head { display: flex; flex-direction: column; align-items: flex-start; }
.sec-head h2 { font: 500 .8125rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding-top: 16px; border-top: 2px solid var(--pink); display: inline-block; }
.sec-head p { font: 400 .875rem/1.5 var(--sans); color: var(--muted); margin: 12px 0 0; max-width: 22em; }
.sec-head .more { margin-top: 16px; font: 500 .875rem var(--sans); }
.sec-head .more + .more { margin-top: 8px; }
.sec-body { min-width: 0; }
@media (max-width: 880px) {
  .section > .wrap { grid-template-columns: 1fr; }
  .sec-head { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; }
  .sec-head h2 { margin-right: auto; }
  .sec-head p { flex-basis: 100%; }
  .sec-head .more, .sec-head .more + .more { margin-top: 0; }
}

/* ---------- about ---------- */
.lead { font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.45 var(--serif); letter-spacing: -.005em; margin: 0 0 28px; max-width: 34em; }
.cols { columns: 2 22em; column-gap: 48px; color: var(--ink-2); }
.cols p { break-inside: avoid; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); margin: 36px 0 0; }
.facts div { padding: 18px 20px 4px 0; border-right: 1px solid var(--rule-2); }
.facts div + div { padding-left: 20px; }
.facts div:last-child { border-right: 0; }
.facts dt { font: 500 .6875rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font: 400 .9375rem/1.45 var(--sans); }
@media (max-width: 880px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div, .facts div + div { padding: 16px 16px 12px 0; border-right: 0; border-bottom: 1px solid var(--rule-2); }
}

/* ---------- project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; list-style: none; }
.card a { display: block; color: inherit; text-decoration: none; }
.card-img { aspect-ratio: 2 / 1; overflow: hidden; background: var(--paper-2); border: 1px solid var(--rule-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card a:hover .card-img img { transform: scale(1.035); }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font: 500 .6875rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.status.done::before { background: transparent; border: 1px solid var(--muted); }
.card h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 8px; }
.card a:hover h3 { color: var(--pink-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.card p { font: 400 .875rem/1.55 var(--sans); color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- news ---------- */
.news { list-style: none; border-top: 1px solid var(--ink); }
.news li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 176px; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.news time { font: 400 .8125rem/1.6 var(--mono); color: var(--muted); padding-top: 4px; }
.news h3 { font-size: 1.3125rem; line-height: 1.3; margin: 0 0 8px; }
.news h3 a { color: var(--ink); text-decoration: none; }
.news h3 a:hover { color: var(--pink-deep); text-decoration: underline; }
.news p { font: 400 .9375rem/1.55 var(--sans); color: var(--ink-2); margin: 0; }
.news-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb.blank { background: repeating-linear-gradient(135deg, var(--pink-wash) 0 10px, #fff 10px 20px); }
@media (max-width: 760px) {
  .news li { grid-template-columns: 1fr; gap: 6px; }
  .news-thumb { display: none; }
}

/* ---------- publications ---------- */
.pubs { list-style: none; }
.pub { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule-2); font: 400 .9375rem/1.6 var(--sans); color: var(--ink-2); }
.pub:first-child { border-top-color: var(--ink); }
.pub-year { font: 400 .8125rem/1.8 var(--mono); color: var(--pink-deep); }
.pub b { font-weight: 600; color: var(--ink); }
.pub em { font-family: var(--serif); font-size: 1.03em; color: var(--ink); }
.pub a { word-break: break-word; }

/* ---------- people strip (home) ---------- */
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 20px 16px; list-style: none; }
.faces a { display: block; color: var(--ink); text-decoration: none; font: 400 .8125rem/1.3 var(--sans); }
.faces a:hover { color: var(--pink-deep); }
.faces .ph { margin-bottom: 8px; }

/* portrait shared by home strip and people page */
.ph { aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .35s ease; }
a:hover .ph img, a:focus-visible .ph img { filter: none; }
.ph.none { display: flex; align-items: center; justify-content: center; background: var(--pink-wash); color: var(--pink-deep); font: 400 1.6rem/1 var(--serif); }

/* ---------- contact band (the hero's ground is the same --night-2) ---------- */
.contact-band { background: var(--night-2); color: #d4d4da; padding: clamp(56px, 7vw, 88px) 0; }
.contact-band .wrap { display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: 24px clamp(24px, 4vw, 64px); align-items: start; }
.contact-band .sec-head h2 { color: #fff; }
.contact-band-text { font: 400 clamp(1.3rem, 2.2vw, 1.75rem)/1.4 var(--serif); color: #fff; max-width: 30em; margin: 0 0 28px; }
.contact-band-text em { color: var(--pink); }
.contact-band :focus-visible, .site-footer :focus-visible { outline-color: var(--pink); }
@media (max-width: 880px) { .contact-band .wrap { grid-template-columns: 1fr; } }

/* ---------- inner page header ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.crumbs { font: 400 .8125rem/1 var(--sans); color: var(--muted); margin: 0 0 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pink-deep); text-decoration: underline; }
.crumbs span { margin: 0 8px; color: var(--pink); }
.page-head h1 { font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.02em; max-width: 18em; }
.page-lede { font: 300 clamp(1.15rem, 1.8vw, 1.375rem)/1.5 var(--serif); color: var(--ink-2); max-width: 38em; margin: 20px 0 0; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 24px 0 0; font: 400 .875rem/1.4 var(--sans); color: var(--muted); }
.page-meta b { font-weight: 500; color: var(--ink); }

/* ---------- people ---------- */
.director { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.director .ph img { filter: none; }
.director h3 { font-size: 1.75rem; margin: 0 0 4px; }
.director h3 a { color: inherit; text-decoration: none; }
.director h3 a:hover { color: var(--pink-deep); text-decoration: underline; }
.director .role { font: 500 .8125rem/1.4 var(--sans); color: var(--pink-deep); margin: 0 0 18px; }
.director p { color: var(--ink-2); max-width: 40em; }
.director-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; font: 500 .875rem/1.4 var(--sans); margin-top: 20px; }
.grid-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 32px 20px; list-style: none; }
.grid-people a { display: block; color: inherit; text-decoration: none; }
.grid-people h3 { font-size: 1.0625rem; line-height: 1.3; margin: 12px 0 4px; }
.grid-people a:hover h3 { color: var(--pink-deep); text-decoration: underline; text-underline-offset: .18em; }
.grid-people p { font: 400 .8125rem/1.45 var(--sans); color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.alumni { list-style: none; columns: 2 20em; column-gap: 48px; }
.alumni li { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--rule-2); font: 400 .9375rem/1.45 var(--sans); }
.alumni li span { display: block; color: var(--muted); font-size: .8125rem; }
@media (max-width: 680px) { .director { grid-template-columns: 1fr; } .director .ph { max-width: 220px; } }

/* ---------- publications page ---------- */
.pub-layout { display: grid; grid-template-columns: minmax(180px, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); padding: clamp(40px, 5vw, 64px) var(--gutter) 96px; }
.pub-side { position: sticky; top: 24px; align-self: start; font: 400 .875rem/1.4 var(--sans); }
.pub-side label { display: block; font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pub-side input { width: 100%; font: 400 .9375rem/1.3 var(--sans); padding: 10px 12px; border: 1px solid var(--rule); background: #fff; color: var(--ink); border-radius: 0; }
.pub-side input:focus { outline: 2px solid var(--pink-deep); outline-offset: 0; border-color: transparent; }
.pub-count { color: var(--muted); font-size: .8125rem; margin: 10px 0 24px; min-height: 1.4em; }
.pub-side ul { list-style: none; border-top: 1px solid var(--rule); }
.pub-side li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-2); color: var(--ink-2); text-decoration: none; }
.pub-side li a:hover { color: var(--pink-deep); }
.pub-side li a span { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.pub-group { scroll-margin-top: 24px; }
.pub-group + .pub-group { margin-top: 64px; }
.pub-group > h2 { font-size: 1.75rem; margin: 0 0 24px; }
.year { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; }
.year + .year { margin-top: 8px; }
.year > h3 { font: 500 1.125rem/1 var(--mono); color: var(--pink-deep); padding-top: 18px; border-top: 2px solid var(--pink); }
.year .pub { display: block; }
.year .pub:first-child { border-top-color: var(--rule); }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.figs figure { margin: 0; }
.figs .fig-img { aspect-ratio: 1; overflow: hidden; background: var(--night); }
.figs img { width: 100%; height: 100%; object-fit: cover; }
.figs figcaption { font: 400 .8125rem/1.45 var(--sans); color: var(--muted); margin-top: 10px; }
@media (max-width: 880px) {
  .pub-layout { grid-template-columns: 1fr; }
  .pub-side { position: static; }
  .figs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .year { grid-template-columns: 1fr; gap: 0; } .year > h3 { padding-bottom: 4px; } }

/* ---------- project detail ---------- */
.proj-fig { margin: 0 0 32px; }
.proj-fig img { border: 1px solid var(--rule-2); }
.prose { max-width: 42em; font-size: 1.125rem; line-height: 1.7; color: var(--ink-2); }
.prose p:first-of-type { font-size: 1.3rem; line-height: 1.55; color: var(--ink); }

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

/* ---------- detail pages: project, person, post ---------- */
.detail { display: grid; grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: clamp(40px, 5vw, 64px); padding-bottom: 88px; }
.side dl { margin: 0; font: 400 .875rem/1.5 var(--sans); color: var(--ink-2); }
.side dt { font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--rule); margin-bottom: 8px; }
.side dt:first-child { border-top: 2px solid var(--pink); }
.side dd { margin: 0 0 20px; overflow-wrap: anywhere; }
.side dd ul { list-style: none; }
.team li + li { margin-top: 8px; }
.team li span { display: block; color: var(--muted); font-size: .8125rem; }
.profile .side .ph { margin-bottom: 28px; }
.profile .side .ph img { filter: none; }
.empty { font-style: italic; color: var(--muted); }
@media (max-width: 880px) {
  .detail { grid-template-columns: 1fr; }
  .profile .side { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 24px; align-items: start; }
  .profile .side .ph { margin: 0; }
}
@media (max-width: 480px) { .profile .side { grid-template-columns: 1fr; } .profile .side .ph { max-width: 180px; } }

/* ---------- rich text rendered from WordPress blocks ---------- */
.rich { max-width: 46rem; font-size: 1.125rem; line-height: 1.7; color: var(--ink-2); min-width: 0; }
.rich > :first-child { margin-top: 0; }
.rich p { margin: 0 0 1.1em; }
.rich h2, .rich h3, .rich h4, .rich h5, .rich h6 { color: var(--ink); line-height: 1.25; margin: 2em 0 .6em; }
.rich h2 { font-size: 1.625rem; }
.rich h3 { font-size: 1.3rem; }
.rich h4, .rich h5, .rich h6 { font: 600 1rem/1.4 var(--sans); }
.rich a { overflow-wrap: anywhere; }
.rich strong, .rich b { font-weight: 600; color: var(--ink); }
.rich ul, .rich ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.rich li { margin-bottom: .35em; }
.rich li::marker { color: var(--pink-deep); }
.rich figure { margin: 32px 0; }
.rich figure img { margin: 0 auto; border: 1px solid var(--rule-2); background: #fff; }
.rich figcaption, .rich .caption { font: 400 .8125rem/1.5 var(--sans); color: var(--muted); margin-top: 10px; text-align: left; }
.rich p.caption { margin: -20px 0 32px; }
.rich code { font: 400 .875em/1.4 var(--mono); background: var(--paper-2); padding: .1em .35em; overflow-wrap: anywhere; }
.rich pre.code { background: var(--night); color: #e6e6ea; padding: 18px 20px; overflow-x: auto; margin: 24px 0; font: 400 .8125rem/1.6 var(--mono); tab-size: 2; }
.rich pre.code code { background: none; padding: 0; font: inherit; overflow-wrap: normal; }
.rich details { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; margin: 0 0 28px; }
.rich summary { cursor: pointer; font: 500 .9375rem/1.4 var(--sans); color: var(--ink); }
.rich details[open] summary { margin-bottom: 12px; }
.rich details > :last-child { margin-bottom: 0; }
.rich blockquote { margin: 28px 0; padding-left: 20px; border-left: 2px solid var(--pink); font-style: italic; }
.rich hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }
.rich .has-text-align-center { text-align: center; }
.rich .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 24px 32px; margin: 28px 0; }
.rich .wp-block-column > :first-child { margin-top: 0; }
.rich .wp-block-column > :last-child, .rich .has-background > :last-child { margin-bottom: 0; }
.rich .has-background { background: #fff; border: 1px solid var(--rule-2); padding: 20px 24px; margin: 28px 0; }
.rich .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 16px; }
.rich .wp-block-gallery figure { margin: 0; }
.rich figure.table { overflow-x: auto; }
.rich table { width: 100%; border-collapse: collapse; font: 400 .875rem/1.45 var(--sans); }
.rich th, .rich td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule-2); }
.rich th, .rich thead td { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--pink); }
.rich figure.video { margin-left: auto; margin-right: auto; }
.video-frame { position: relative; background: var(--night); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lead-fig { margin: 0 0 36px; }
.lead-fig img { width: 100%; border: 1px solid var(--rule-2); }

/* ---------- newer / older ---------- */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 88px; margin-top: -40px; }
.post-nav a { display: block; border-top: 1px solid var(--rule); padding-top: 16px; font: 500 1.125rem/1.35 var(--serif); color: var(--ink); text-decoration: none; }
.post-nav a:hover { color: var(--pink-deep); text-decoration: underline; }
.post-nav span { display: block; font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.post-nav .older { grid-column: 2; text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav .older { grid-column: auto; text-align: left; } }

/* ---------- contact ---------- */
.contact-card { border-top: 2px solid var(--pink); padding-top: 20px; margin-bottom: 28px; }
.contact-who { font: 400 .9375rem/1.4 var(--sans); color: var(--muted); margin: 0 0 8px; }
.contact-addr { font: 400 clamp(1.5rem, 3.6vw, 2.4rem)/1.2 var(--serif); letter-spacing: -.01em; margin: 0 0 18px; overflow-wrap: anywhere; }
.contact-addr a { color: var(--ink); text-decoration-color: var(--pink); }
.contact-addr a:hover { color: var(--pink-deep); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; min-height: 40px; }
button.copy { font: 500 .875rem/1 var(--sans); color: var(--pink-deep); background: #fff; border: 1px solid var(--rule); padding: 11px 16px; cursor: pointer; border-radius: 0; }
button.copy:hover { border-color: var(--pink-deep); }
button.copy[data-state="ok"] { background: var(--pink-wash); border-color: var(--pink); }
.copy-status { font: 400 .8125rem/1.4 var(--sans); color: var(--muted); }
.contact-note { max-width: 38em; color: var(--ink-2); margin: 0; }
.contact-post { font: 400 1.125rem/1.6 var(--serif); color: var(--ink-2); }
.link-list { list-style: none; max-width: 38em; font: 400 .9375rem/1.4 var(--sans); }
.link-list li { padding: 12px 0; border-top: 1px solid var(--rule-2); }
.link-list li:last-child { border-bottom: 1px solid var(--rule-2); }
.link-list li span { display: block; color: var(--muted); font-size: .8125rem; margin-top: 2px; }


/* ---------------------------------------------------------- WordPress ---- */

.admin-bar.home .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.home .site-header { top: 46px; } }

/* generic page view: the same measure as an article, without the side column */
.page-body { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 88px; }
.page-body .rich { margin-left: auto; margin-right: auto; }

/* search and archive pagination */
.pager { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 88px; font: 400 .9375rem/1 var(--sans); }
.pager .page-numbers { padding: 9px 13px; border: 1px solid var(--rule); color: var(--ink-2); text-decoration: none; }
.pager a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .dots { border-color: transparent; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text:focus { left: 16px; top: 12px; width: auto; height: auto; clip-path: none; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }

/* classic editor alignment, in case an older post still uses it */
.rich .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.rich .alignright { float: right; margin: .3em 0 1em 1.4em; }
.rich .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.rich .wp-caption { max-width: 100%; }
.rich .wp-caption-text { font: 400 .8125rem/1.5 var(--sans); color: var(--muted); margin-top: 10px; }
.rich embed, .rich iframe, .rich object { max-width: 100%; }
