/* ==========================================================================
   MooreMetrics Home 1.0 — the front page and the About page
   Same system as the Dive tools: ink on white, a muslin-paper panel with a
   dot grid, Archivo for the interface, Instrument Serif italic for the
   emphasized word, and one accent (--mm-accent, set from Settings).
   .mm-page : the standalone pages
   .mm-app  : the same sections inside an ordinary WordPress page (shortcode)
   ========================================================================== */

.mm-page,
.mm-app {
    --mm-ink: #17150F;
    --mm-ink-2: #5E5A52;
    --mm-ink-3: #8C877D;
    --mm-line: #E4E0D6;
    --mm-line-strong: #C9C3B6;
    --mm-ground: #FFFFFF;
    --mm-surface: #FAF9F6;
    --mm-paper: #E2DFD3;
    --mm-paper-dot: #CBC6B7;
    --mm-accent: #A8431F;
    --mm-accent-soft: rgba(168, 67, 31, 0.28);
    --mm-accent-tint: rgba(168, 67, 31, 0.08);
    --mm-font-ui: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mm-font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --mm-shadow: 0 10px 30px rgba(23, 21, 15, 0.12);
}

/* --- Page frame ------------------------------------------------------------ */

.mm-page {
    margin: 0;
    background: var(--mm-ground);
    color: var(--mm-ink);
    font-family: var(--mm-font-ui);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    color-scheme: light;
}
.mm-app {
    font-family: var(--mm-font-ui);
    color: var(--mm-ink);
    font-size: 16px;
    line-height: 1.5;
}
.mm-page *, .mm-page *::before, .mm-page *::after,
.mm-app *, .mm-app *::before, .mm-app *::after { box-sizing: border-box; }

:is(.mm-page, .mm-app) .mm-container {
    max-width: 1160px;
    margin: 0 auto;
    padding-inline: 24px;
}
:is(.mm-page, .mm-app) .mm-skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--mm-ink); color: #fff; padding: 10px 14px; border-radius: 8px;
    text-decoration: none; font-weight: 600;
}
:is(.mm-page, .mm-app) .mm-skip:focus { top: 12px; }
:is(.mm-page, .mm-app) img { max-width: 100%; height: auto; }

/* --- Type ------------------------------------------------------------------ */

:is(.mm-page, .mm-app) p { margin: 0 0 1em; }

:is(.mm-page, .mm-app) .mm-eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--mm-ink-3); margin: 0; line-height: 1.4;
}
:is(.mm-page, .mm-app) .mm-h1 {
    font-size: clamp(44px, 6.4vw, 84px); font-weight: 700; font-stretch: 78%;
    letter-spacing: -0.02em; line-height: 0.98; margin: 14px 0 22px; text-wrap: balance; color: var(--mm-ink);
}
:is(.mm-page, .mm-app) :is(.mm-h1, .mm-h2) em {
    font-family: var(--mm-font-serif); font-style: italic; font-weight: 400; font-stretch: 100%;
    font-size: 1.14em; letter-spacing: 0; color: var(--mm-accent);
}
:is(.mm-page, .mm-app) .mm-h2 {
    font-family: var(--mm-font-ui); font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; font-stretch: 82%;
    letter-spacing: -0.015em; line-height: 1.06; margin: 6px 0 0; text-wrap: balance; color: var(--mm-ink); text-transform: none;
}
:is(.mm-page, .mm-app) .mm-h3 {
    font-family: var(--mm-font-ui); font-size: 22px; font-weight: 700; font-stretch: 85%;
    letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 6px; color: var(--mm-ink); text-transform: none;
}
:is(.mm-page, .mm-app) .mm-lede {
    font-size: 19px; line-height: 1.55; color: var(--mm-ink-2); max-width: 56ch; margin: 0 0 26px;
}
:is(.mm-page, .mm-app) .mm-role {
    font-family: var(--mm-font-serif); font-style: italic; font-size: 22px; line-height: 1.3;
    color: var(--mm-ink); margin: -6px 0 18px; max-width: 40ch;
}
:is(.mm-page, .mm-app) .mm-muted {
    color: var(--mm-ink-2); font-size: 15px; line-height: 1.55; margin: 10px 0 0; max-width: 72ch;
}
:is(.mm-page, .mm-app) .mm-link {
    color: var(--mm-ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px;
    text-underline-offset: 3px; text-decoration-color: var(--mm-accent);
}
:is(.mm-page, .mm-app) .mm-link:hover { text-decoration-color: var(--mm-ink); }
:is(.mm-page, .mm-app) :is(.mm-btn, .mm-link, .mm-topnav a, .mm-menu summary, .mm-card__link, .mm-pubs a, .mm-writing a):focus-visible {
    outline: 3px solid var(--mm-accent); outline-offset: 2px;
}

/* The front page carries the motto as its title and no italic accent words. */
.mm-page--home .mm-h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; max-width: 22ch; margin-top: 0; }
.mm-page--home .mm-h2 { font-size: clamp(26px, 3vw, 34px); }

/* --- Buttons --------------------------------------------------------------- */

:is(.mm-page, .mm-app) .mm-btn {
    appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border-radius: 8px; padding: 13px 22px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
    text-decoration: none; cursor: pointer; border: 1px solid transparent; margin: 0; box-shadow: none; text-transform: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
:is(.mm-page, .mm-app) .mm-btn--primary { background: var(--mm-ink); color: #fff; border-color: var(--mm-ink); }
:is(.mm-page, .mm-app) .mm-btn--primary:hover { background: var(--mm-accent); border-color: var(--mm-accent); color: #fff; }
:is(.mm-page, .mm-app) .mm-btn--ghost { background: transparent; color: var(--mm-ink); border-color: var(--mm-line-strong); }
:is(.mm-page, .mm-app) .mm-btn--ghost:hover { background: var(--mm-surface); border-color: var(--mm-ink); }

/* --- Top bar --------------------------------------------------------------- */

:is(.mm-page, .mm-app) .mm-topbar { border-bottom: 1px solid var(--mm-line); background: var(--mm-ground); position: relative; z-index: 20; }
:is(.mm-page, .mm-app) .mm-topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 66px; }
:is(.mm-page, .mm-app) .mm-wordmark {
    display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-stretch: 62%; font-size: 25px; line-height: 1;
    letter-spacing: 0.02em; text-transform: uppercase; color: var(--mm-ink); text-decoration: none;
}
:is(.mm-page, .mm-app) .mm-wordmark::before { content: ""; width: 12px; height: 12px; background: var(--mm-accent); border-radius: 2px; flex-shrink: 0; }
:is(.mm-page, .mm-app) .mm-wordmark__text { white-space: nowrap; }
:is(.mm-page, .mm-app) .mm-wordmark b { font-weight: 900; }
:is(.mm-page, .mm-app) .mm-topnav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; }
:is(.mm-page, .mm-app) .mm-topnav > a { color: var(--mm-ink-2); text-decoration: none; white-space: nowrap; }
:is(.mm-page, .mm-app) .mm-topnav > a:hover { color: var(--mm-ink); }
:is(.mm-page, .mm-app) .mm-topbar__by { font-size: 13px; color: var(--mm-ink-3); text-decoration: none; white-space: nowrap; }
:is(.mm-page, .mm-app) .mm-topbar__by:hover { color: var(--mm-ink); }

:is(.mm-page, .mm-app) .mm-menu { position: relative; }
:is(.mm-page, .mm-app) .mm-menu summary {
    list-style: none; cursor: pointer; color: var(--mm-ink-2); display: flex; align-items: center; gap: 6px; user-select: none; white-space: nowrap;
}
:is(.mm-page, .mm-app) .mm-menu summary::-webkit-details-marker { display: none; }
:is(.mm-page, .mm-app) .mm-menu summary::after {
    content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
:is(.mm-page, .mm-app) .mm-menu[open] summary { color: var(--mm-ink); }
:is(.mm-page, .mm-app) .mm-menu__panel {
    position: absolute; right: 0; top: calc(100% + 12px); width: 340px; max-width: calc(100vw - 32px); max-height: min(70vh, 640px); overflow: auto;
    background: #fff; border: 1px solid var(--mm-line-strong); border-radius: 10px; box-shadow: var(--mm-shadow); padding: 8px; z-index: 30; display: grid;
}
:is(.mm-page, .mm-app) .mm-menu__group {
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mm-ink-3); margin: 10px 10px 4px;
}
:is(.mm-page, .mm-app) .mm-menu__panel a {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 10px; border-radius: 6px;
    color: var(--mm-ink); text-decoration: none; font-weight: 600; font-size: 14px;
}
:is(.mm-page, .mm-app) .mm-menu__panel a span { color: var(--mm-ink-3); font-weight: 400; font-size: 12px; text-align: right; }
:is(.mm-page, .mm-app) .mm-menu__panel a:hover { background: var(--mm-surface); }

/* --- Hero ------------------------------------------------------------------ */

:is(.mm-page, .mm-app) .mm-hero { padding-block: 60px 48px; border-bottom: 1px solid var(--mm-line); }
:is(.mm-page, .mm-app) .mm-hero__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
:is(.mm-page, .mm-app) .mm-hero__inner--about { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; }
:is(.mm-page, .mm-app) .mm-hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 8px; }
:is(.mm-page, .mm-app) .mm-hero__art {
    position: relative; align-self: stretch; background-color: var(--mm-paper);
    background-image: radial-gradient(circle, var(--mm-paper-dot) 1px, transparent 1.3px); background-size: 18px 18px;
    border-radius: 12px; overflow: hidden;
}
:is(.mm-page, .mm-app) .mm-hero__art--photo { padding: 0; align-self: center; }
:is(.mm-page, .mm-app) .mm-hero__art--photo img { display: block; width: 100%; height: auto; aspect-ratio: 654 / 981; object-fit: cover; }
:is(.mm-page, .mm-app) .mm-figure { margin: 0; padding: 14px 10px; height: 100%; display: flex; align-items: center; }
:is(.mm-page, .mm-app) .mm-figure__svg { display: block; width: 100%; height: auto; color: var(--mm-ink); font-family: var(--mm-font-serif); font-style: italic; }
:is(.mm-page, .mm-app) .mm-fig__items rect { fill: #fff; stroke: var(--mm-ink); stroke-width: 1.5; }
:is(.mm-page, .mm-app) .mm-fig__items text { font-size: 15px; fill: var(--mm-ink); }
:is(.mm-page, .mm-app) .mm-fig__general ellipse { fill: var(--mm-accent); stroke: var(--mm-ink); stroke-width: 1.5; }
:is(.mm-page, .mm-app) .mm-fig__general text { font-size: 26px; fill: #fff; }
:is(.mm-page, .mm-app) .mm-fig__specific ellipse { fill: #fff; stroke: var(--mm-ink); stroke-width: 1.5; }
:is(.mm-page, .mm-app) .mm-fig__specific text { font-size: 20px; fill: var(--mm-ink); }
:is(.mm-page, .mm-app) .mm-fig__loads line { stroke: var(--mm-accent); stroke-width: 1.4; color: var(--mm-accent); }
:is(.mm-page, .mm-app) .mm-fig__sloads line { stroke: var(--mm-ink); stroke-width: 1.3; color: var(--mm-ink); stroke-dasharray: 5 4; }
:is(.mm-page, .mm-app) .mm-fig__labels text { font-size: 13px; fill: var(--mm-ink-3); font-family: var(--mm-font-ui); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; }

/* --- Stats band ------------------------------------------------------------ */

:is(.mm-page, .mm-app) .mm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; }
:is(.mm-page, .mm-app) .mm-stats--band { padding: 26px 0 28px; border-bottom: 1px solid var(--mm-line); }
:is(.mm-page, .mm-app) .mm-stat { padding-left: 16px; border-left: 2px solid var(--mm-accent); }
:is(.mm-page, .mm-app) .mm-stat dd { margin: 0; font-size: 34px; font-weight: 700; font-stretch: 80%; letter-spacing: -0.015em; line-height: 1.05; color: var(--mm-ink); }
:is(.mm-page, .mm-app) .mm-stat dt { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--mm-ink-2); }

/* --- Sections -------------------------------------------------------------- */

:is(.mm-page, .mm-app) .mm-section { padding-block: 56px 60px; border-bottom: 1px solid var(--mm-line); }
:is(.mm-page, .mm-app) .mm-section--tight { padding-block: 44px 52px; }
:is(.mm-page, .mm-app) .mm-section--paper {
    background-color: var(--mm-surface);
    background-image: radial-gradient(circle, var(--mm-line) 1px, transparent 1.3px); background-size: 18px 18px;
}
:is(.mm-page, .mm-app) .mm-section-head { margin-bottom: 30px; max-width: 760px; }
:is(.mm-page, .mm-app) .mm-section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
:is(.mm-page, .mm-app) .mm-section-head__aside { margin: 0 0 8px; max-width: 40ch; }

/* --- Project groups and cards ---------------------------------------------- */

:is(.mm-page, .mm-app) .mm-groups { display: grid; gap: 40px; }
:is(.mm-page, .mm-app) .mm-group__head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 2px solid var(--mm-ink); }
:is(.mm-page, .mm-app) .mm-group__head .mm-h3 { margin: 0; }
:is(.mm-page, .mm-app) .mm-group__count { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--mm-ink-3); }
:is(.mm-page, .mm-app) .mm-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
:is(.mm-page, .mm-app) .mm-card { margin: 0; }
:is(.mm-page, .mm-app) .mm-card__link {
    display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 128px; padding: 16px 16px 14px;
    border: 1px solid var(--mm-line); border-radius: 10px; background: var(--mm-ground); color: var(--mm-ink); text-decoration: none;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
:is(.mm-page, .mm-app) .mm-card__link:hover { border-color: var(--mm-ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23, 21, 15, 0.08); }
:is(.mm-page, .mm-app) .mm-card__name { font-size: 21px; font-weight: 500; font-stretch: 70%; letter-spacing: 0.01em; line-height: 1.1; text-transform: uppercase; }
:is(.mm-page, .mm-app) .mm-card__name b { font-weight: 900; }
:is(.mm-page, .mm-app) .mm-card__note { font-size: 14px; line-height: 1.4; color: var(--mm-ink-2); flex: 1; }
:is(.mm-page, .mm-app) .mm-card__host { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--mm-ink-3); margin-top: 4px; min-width: 0; }
:is(.mm-page, .mm-app) .mm-card__host > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
:is(.mm-page, .mm-app) .mm-card__arrow { color: var(--mm-accent); font-weight: 600; transition: transform 0.15s; }
:is(.mm-page, .mm-app) .mm-card__link:hover .mm-card__arrow { transform: translateX(3px); }

:is(.mm-page, .mm-app) .mm-groups--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
:is(.mm-page, .mm-app) .mm-linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
:is(.mm-page, .mm-app) .mm-linklist li { margin: 0; font-size: 15px; line-height: 1.4; }
:is(.mm-page, .mm-app) .mm-linklist a { color: var(--mm-ink); font-weight: 600; text-decoration: none; }
:is(.mm-page, .mm-app) .mm-linklist a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mm-accent); }
:is(.mm-page, .mm-app) .mm-linklist span { color: var(--mm-ink-3); font-size: 13px; }

/* --- Extras, folded away ---------------------------------------------------- */

:is(.mm-page, .mm-app) .mm-extras { margin-top: 36px; border-top: 1px solid var(--mm-line); }
:is(.mm-page, .mm-app) .mm-extras summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 0; user-select: none;
    font-size: 15px; font-weight: 600; color: var(--mm-ink-2);
}
:is(.mm-page, .mm-app) .mm-extras summary::-webkit-details-marker { display: none; }
:is(.mm-page, .mm-app) .mm-extras summary::before {
    content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg); transition: transform 0.15s; margin-left: 2px;
}
:is(.mm-page, .mm-app) .mm-extras[open] summary::before { transform: rotate(45deg); }
:is(.mm-page, .mm-app) .mm-extras summary:hover { color: var(--mm-ink); }
:is(.mm-page, .mm-app) .mm-extras__count { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--mm-ink-3); }
:is(.mm-page, .mm-app) .mm-extras__body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; padding: 4px 0 20px; }
:is(.mm-page, .mm-app) .mm-extras__group .mm-linklist { margin-top: 10px; }

/* --- Numbered cards ("how it works", research areas) ----------------------- */

:is(.mm-page, .mm-app) .mm-how { display: grid; gap: 28px 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 0; }
:is(.mm-page, .mm-app) .mm-how--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
:is(.mm-page, .mm-app) .mm-how--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
:is(.mm-page, .mm-app) .mm-how__card { border-top: 2px solid var(--mm-ink); padding-top: 16px; margin: 0; }
:is(.mm-page, .mm-app) .mm-how__num { display: block; font-weight: 700; font-stretch: 75%; font-size: 13px; letter-spacing: 0.1em; color: var(--mm-accent); margin-bottom: 8px; }
:is(.mm-page, .mm-app) .mm-how__card p { margin: 0; color: var(--mm-ink-2); font-size: 15px; line-height: 1.55; }
:is(.mm-page, .mm-app) .mm-how__api { margin: 30px 0 0; font-size: 15px; color: var(--mm-ink-2); }

/* --- Who / personal: photo beside copy ------------------------------------- */

:is(.mm-page, .mm-app) .mm-who { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; }
:is(.mm-page, .mm-app) .mm-who--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
:is(.mm-page, .mm-app) .mm-who--flip .mm-who__photo { order: 2; padding: 0 0 18px 18px; }
:is(.mm-page, .mm-app) .mm-who--flip .mm-who__photo::before { inset: 18px 18px 0 0; }
:is(.mm-page, .mm-app) .mm-who__photo { position: relative; padding: 0 18px 18px 0; max-width: 420px; }
:is(.mm-page, .mm-app) .mm-who__photo::before {
    content: ""; position: absolute; inset: 18px 0 0 18px; border-radius: 12px;
    background-color: var(--mm-paper); background-image: radial-gradient(circle, var(--mm-paper-dot) 1px, transparent 1.3px); background-size: 18px 18px;
}
:is(.mm-page, .mm-app) .mm-who__photo img { position: relative; display: block; width: 100%; height: auto; border-radius: 10px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
:is(.mm-page, .mm-app) .mm-who__text { font-size: 18px; line-height: 1.6; color: var(--mm-ink-2); max-width: 58ch; margin-top: 18px; }
:is(.mm-page, .mm-app) .mm-who__meta { font-size: 13px; color: var(--mm-ink-3); margin: 0 0 20px; }

/* --- Biography + timeline --------------------------------------------------- */

:is(.mm-page, .mm-app) .mm-bio { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
:is(.mm-page, .mm-app) .mm-bio__text p:not(.mm-eyebrow) { font-size: 17px; line-height: 1.62; color: var(--mm-ink-2); max-width: 62ch; }
:is(.mm-page, .mm-app) .mm-bio__text .mm-h2 { margin-bottom: 20px; }
:is(.mm-page, .mm-app) .mm-bio__rail { padding-top: 6px; }
:is(.mm-page, .mm-app) .mm-timeline { list-style: none; margin: 14px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--mm-line-strong); display: grid; gap: 18px; }
:is(.mm-page, .mm-app) .mm-timeline li { position: relative; margin: 0; }
:is(.mm-page, .mm-app) .mm-timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--mm-ground); border: 2px solid var(--mm-accent); }
:is(.mm-page, .mm-app) .mm-timeline li:first-child::before { background: var(--mm-accent); }
:is(.mm-page, .mm-app) .mm-timeline__when { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mm-ink-3); }
:is(.mm-page, .mm-app) .mm-timeline__what { display: block; font-size: 15px; line-height: 1.45; color: var(--mm-ink); margin-top: 2px; }

/* --- Publications and writing ---------------------------------------------- */

:is(.mm-page, .mm-app) .mm-pubs { list-style: none; margin: 0; padding: 0; counter-reset: pub; display: grid; gap: 0; max-width: 980px; }
:is(.mm-page, .mm-app) .mm-pubs li {
    counter-increment: pub; position: relative; padding: 14px 0 14px 54px; margin: 0; border-top: 1px solid var(--mm-line);
    font-size: 15px; line-height: 1.5; color: var(--mm-ink-2);
}
:is(.mm-page, .mm-app) .mm-pubs li:last-child { border-bottom: 1px solid var(--mm-line); }
:is(.mm-page, .mm-app) .mm-pubs li::before {
    content: counter(pub, decimal-leading-zero); position: absolute; left: 0; top: 16px;
    font-family: var(--mm-font-serif); font-style: italic; font-size: 18px; color: var(--mm-accent);
}
:is(.mm-page, .mm-app) .mm-pubs a { color: var(--mm-ink); text-decoration: none; }
:is(.mm-page, .mm-app) .mm-pubs a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mm-accent); }
:is(.mm-page, .mm-app) .mm-pubs em { color: var(--mm-ink); }

:is(.mm-page, .mm-app) .mm-writing { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
:is(.mm-page, .mm-app) .mm-writing li { margin: 0; padding: 14px 0; border-top: 1px solid var(--mm-line); display: grid; gap: 3px; }
:is(.mm-page, .mm-app) .mm-writing__title { font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--mm-ink); text-decoration: none; }
:is(.mm-page, .mm-app) a.mm-writing__title:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mm-accent); }
:is(.mm-page, .mm-app) .mm-writing__where { font-size: 13px; color: var(--mm-ink-3); }

/* --- Identity links and contact --------------------------------------------- */

:is(.mm-page, .mm-app) .mm-idlinks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
:is(.mm-page, .mm-app) .mm-idlinks li { margin: 0; }
:is(.mm-page, .mm-app) .mm-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
:is(.mm-page, .mm-app) .mm-contact__list { margin: 22px 0 0; display: grid; gap: 14px; }
:is(.mm-page, .mm-app) .mm-contact__list dt { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mm-ink-3); }
:is(.mm-page, .mm-app) .mm-contact__list dd { margin: 2px 0 0; font-size: 18px; }
:is(.mm-page, .mm-app) .mm-contact__list a { color: var(--mm-ink); font-weight: 600; text-decoration: none; }
:is(.mm-page, .mm-app) .mm-contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mm-accent); }
:is(.mm-page, .mm-app) .mm-contact__note { padding: 22px 24px; border: 1px solid var(--mm-line-strong); border-radius: 12px; background: var(--mm-surface); align-self: start; margin-top: 8px; }
:is(.mm-page, .mm-app) .mm-contact__note p:not(.mm-eyebrow) { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--mm-ink-2); }
:is(.mm-page, .mm-app) .mm-contact__note a { color: var(--mm-ink); font-weight: 600; }
:is(.mm-page, .mm-app) .mm-section--contact { border-bottom: 0; }

/* --- Footer ----------------------------------------------------------------- */

:is(.mm-page, .mm-app) .mm-footer { background: var(--mm-surface); border-top: 1px solid var(--mm-line); padding-block: 40px 28px; font-size: 14px; color: var(--mm-ink); }
:is(.mm-page, .mm-app) .mm-footer__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 24px; }
:is(.mm-page, .mm-app) .mm-footer__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
:is(.mm-page, .mm-app) .mm-footer__list li { margin: 0; }
:is(.mm-page, .mm-app) .mm-footer__list a { color: var(--mm-ink); font-weight: 600; text-decoration: none; }
:is(.mm-page, .mm-app) .mm-footer__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
:is(.mm-page, .mm-app) .mm-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--mm-line); color: var(--mm-ink-2); font-size: 13px; }
:is(.mm-page, .mm-app) .mm-footer__bottom p { margin: 0; }
:is(.mm-page, .mm-app) .mm-footer__bottom a { color: var(--mm-ink); font-weight: 500; text-decoration: none; }
:is(.mm-page, .mm-app) .mm-footer__bottom a:hover { text-decoration: underline; }


/* --- Responsive ------------------------------------------------------------- */

@media (max-width: 1024px) {
    :is(.mm-page, .mm-app) .mm-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    :is(.mm-page, .mm-app) .mm-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    :is(.mm-page, .mm-app) .mm-how--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    :is(.mm-page, .mm-app) .mm-hero { padding-block: 40px 36px; }
    :is(.mm-page, .mm-app) .mm-hero__inner, :is(.mm-page, .mm-app) .mm-hero__inner--about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    :is(.mm-page, .mm-app) .mm-hero__art--photo { max-width: 360px; }
    :is(.mm-page, .mm-app) .mm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :is(.mm-page, .mm-app) .mm-who, :is(.mm-page, .mm-app) .mm-who--flip, :is(.mm-page, .mm-app) .mm-bio, :is(.mm-page, .mm-app) .mm-contact { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    :is(.mm-page, .mm-app) .mm-who--flip .mm-who__photo { order: 0; }
    :is(.mm-page, .mm-app) .mm-who__photo { max-width: 340px; }
    :is(.mm-page, .mm-app) .mm-how, :is(.mm-page, .mm-app) .mm-how--2 { grid-template-columns: minmax(0, 1fr); }
    :is(.mm-page, .mm-app) .mm-groups--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :is(.mm-page, .mm-app) .mm-extras__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :is(.mm-page, .mm-app) .mm-writing { grid-template-columns: minmax(0, 1fr); }
    :is(.mm-page, .mm-app) .mm-topnav > a:not(.mm-topnav__key):not(:last-of-type) { display: none; }
}
@media (max-width: 720px) {
    :is(.mm-page, .mm-app) .mm-topbar__by { display: none; }
    :is(.mm-page, .mm-app) .mm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :is(.mm-page, .mm-app) .mm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :is(.mm-page, .mm-app) .mm-section { padding-block: 44px 48px; }
}
@media (max-width: 640px) {
    :is(.mm-page, .mm-app) .mm-container { padding-inline: 16px; }
    :is(.mm-page, .mm-app) .mm-wordmark { font-size: 22px; }
    :is(.mm-page, .mm-app) .mm-stat dd { font-size: 28px; }
    :is(.mm-page, .mm-app) .mm-lede { font-size: 17px; }
    :is(.mm-page, .mm-app) .mm-groups--compact { grid-template-columns: minmax(0, 1fr); }
    :is(.mm-page, .mm-app) .mm-extras__body { grid-template-columns: minmax(0, 1fr); }
    :is(.mm-page, .mm-app) .mm-pubs li { padding-left: 40px; }
}
@media (max-width: 360px) {
    :is(.mm-page, .mm-app) .mm-cards { grid-template-columns: minmax(0, 1fr); }
    :is(.mm-page, .mm-app) .mm-card__link { min-height: 0; }
    :is(.mm-page, .mm-app) .mm-stats { grid-template-columns: minmax(0, 1fr); }
    :is(.mm-page, .mm-app) .mm-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .mm-page *, .mm-app * { transition: none !important; animation: none !important; }
}
