/* Redesign: the design system and the parts every page shares (masthead, Themes menu, search,
   footer) plus the home page. Loaded after style.css; page-specific rules follow as each page is
   rebuilt. Colour rule: black and white carry the site; theme colours are accents only. */

:root {
    --ink: #1f1c17;
    --text: #48423a;
    --muted: #6e675c;
    --line: #ddd5c6;
    --surface: #f6f4f0;
    --white: #ffffff;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Roboto Slab', serif;
    --font-mono: 'Roboto Mono', monospace;
    --page-pad: clamp(20px, 4.45vw, 64px);
    --gap: 24px;
    --masthead: 76px;

    /* Older rules in style.css read these. */
    --bg: var(--white);
    --accent-color: var(--ink);
    --text-color: var(--text);
    --text-color-light: var(--muted);
}

/* style.css fixes html and body to the screen's height, which let the sticky masthead scroll
   away after the first screen; they grow with the page instead. */
html,
body {
    height: auto;
    min-height: 100%;
}

body {
    background: var(--white);
    color: var(--text);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--white);
    font: 500 13px var(--font-mono);
}

.skip-link:focus {
    top: 12px;
    color: var(--white);
}

/* Small mono caption in capitals. */
.label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 500 11px/1.4 var(--font-mono);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

/* A theme's colour, as a small square marker. */
.theme-mark {
    display: inline-block;
    flex: none;
    width: 9px;
    height: 9px;
    background: var(--theme-colour, var(--ink));
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font: 500 12px var(--font-mono);
    text-decoration: none;
}

.button:hover {
    background: var(--white);
    color: var(--ink);
}

/* Second action beside a .button: outlined, fills on hover. */
.button--ghost {
    background: var(--white);
    color: var(--ink);
}

.button--ghost:hover {
    background: var(--ink);
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

/* Theme icons: solid at rest; js/modules/bitmap/IconBitmap.js swaps in a bitmap on hover. */
.theme-icon {
    position: relative;
    display: inline-block;
    color: var(--ink);
    line-height: 0;
}

.theme-icon svg,
.theme-icon img {
    display: block;
    width: 100%;
    height: 100%;
    transition: opacity 0.15s;
}

.bitmap-icon__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.theme-icon.is-bitmap svg {
    opacity: 0;
}

.theme-icon.is-bitmap .bitmap-icon__canvas {
    opacity: 1;
}

/* Masthead --------------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    transition: transform 0.3s ease;
}

/* Logged-in admins see WordPress's bar above everything. */
.admin-bar .site-header {
    top: 32px;
}

.admin-bar .home-page {
    height: calc(100vh - var(--masthead) - 32px);
    height: calc(100dvh - var(--masthead) - 32px);
}

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

    .admin-bar .home-page {
        height: calc(100dvh - var(--masthead) - 46px);
    }
}

.site-header__bar {
    height: var(--masthead);
    padding: 0 var(--page-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    position: relative;
    z-index: 2;
}

.site-header__name {
    font: 400 21px var(--font-serif);
    color: var(--ink);
    white-space: nowrap;
}

.site-header__name:hover {
    color: var(--ink);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: none;
    font: 500 12px var(--font-mono);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link.is-current,
.site-nav__themes[aria-expanded="true"] {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.site-nav__themes[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.site-nav__search,
.site-header__menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: 500 12px var(--font-mono);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
}

.site-nav__search:hover,
.site-nav__search[aria-expanded="true"],
.site-header__menu-button[aria-expanded="true"] {
    background: var(--ink);
    color: var(--white);
}

.site-header__menu-button {
    display: none;
}

.menu-backdrop {
    position: fixed;
    inset: var(--masthead) 0 0 0;
    z-index: 40;
    background: rgba(31, 28, 23, 0.28);
}

/* Themes menu: themes on the left, the hovered theme's sub-themes on the right. */
.themes-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1;
    background: var(--white);
    border-bottom: 1px solid var(--ink);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s;
    max-height: calc(100vh - var(--masthead));
    overflow: auto;
}

.themes-menu.is-open,
.site-search.is-open {
    opacity: 1;
    transform: none;
}

.themes-menu__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    padding: 32px var(--page-pad) 36px;
}

.themes-menu__side {
    grid-column: 1 / 5;
}

.themes-menu__list {
    list-style: none;
    border-top: 1px solid var(--line);
}

.themes-menu__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px 13px 12px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
    color: var(--ink);
}

.themes-menu__item.is-active,
.themes-menu__item:focus-visible {
    background: var(--surface);
    border-left-color: var(--ink);
    color: var(--ink);
}

.themes-menu__name {
    flex: 1;
    font: 400 19px/1.25 var(--font-serif);
}

.themes-menu__arrow {
    opacity: 0;
}

.themes-menu__item.is-active .themes-menu__arrow {
    opacity: 1;
}

.themes-menu__all {
    display: inline-block;
    padding: 16px 0 0 14px;
    font: 500 12px var(--font-mono);
    color: var(--ink);
}

.themes-menu__links {
    display: none;
}

.themes-menu__panes {
    grid-column: 6 / 13;
}

.themes-menu__pane {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.themes-menu__pane[hidden] {
    display: none;
}

.themes-menu__head {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.themes-menu__icon {
    width: 120px;
    height: 120px;
}

.themes-menu__intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
}

.themes-menu__title {
    margin: 0;
    font: 300 40px/1.05 var(--font-serif);
    color: var(--ink);
}

.themes-menu__description {
    max-width: 520px;
    margin: 0;
    font: 400 15px/1.6 var(--font-sans);
    color: var(--text);
}

.themes-menu__subs {
    align-self: stretch;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--gap);
    border-top: 1px solid var(--line);
}

.themes-menu__subs a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font: 400 15px/1.35 var(--font-sans);
    color: var(--ink);
}

.themes-menu__subs a:hover span:first-child {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.themes-menu__count {
    font: 400 11px var(--font-mono);
    color: var(--muted);
}

/* Search panel */
.site-search {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1;
    background: var(--white);
    border-bottom: 1px solid var(--ink);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s;
    max-height: calc(100vh - var(--masthead));
    overflow: auto;
}

.site-search__inner {
    padding: 32px var(--page-pad) 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-search__field {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
    color: var(--ink);
}

.site-search__field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font: 300 clamp(28px, 3vw, 44px) var(--font-serif);
    color: var(--ink);
}

.site-search .skeleton-loader {
    display: none;
}

.site-search .skeleton-item {
    height: 56px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--surface), #ece8e1, var(--surface));
    background-size: 200% 100%;
    animation: complexity-shimmer 1.2s linear infinite;
}

@keyframes complexity-shimmer {
    to {
        background-position: -200% 0;
    }
}

.site-search .search-results {
    list-style: none;
    max-width: 880px;
}

.site-search .search-results li a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.site-search .search-results__title {
    font: 400 21px/1.3 var(--font-serif);
}

.site-search .search-results li a:hover .search-results__title {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-search .search-results__by {
    font: 400 12px var(--font-mono);
    color: var(--muted);
}

.site-search .search-results__all a {
    border-bottom: 0;
    font: 500 12px var(--font-mono);
}

.site-search .search-results__empty {
    padding: 16px 0;
    font: 400 15px var(--font-sans);
    color: var(--text);
}

/* Footer ----------------------------------------------------------------------------------- */
.site-footer {
    padding: 72px var(--page-pad) 36px;
    background: var(--white);
}

.site-footer__strip {
    display: block;
    width: 100%;
    height: 40px;
    fill: var(--ink);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 36px;
    padding: 40px 0 52px;
    border-top: 1px solid var(--ink);
}

.site-footer__about {
    grid-column: 1 / 6;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.site-footer__name {
    font: 400 26px var(--font-serif);
    color: var(--ink);
}

.site-footer__about p {
    max-width: 400px;
    margin: 0;
    font: 400 15px/1.6 var(--font-sans);
    color: var(--text);
}

.site-footer__col {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__col:first-of-type {
    grid-column: 7 / 10;
}

.site-footer__col .label {
    margin-bottom: 4px;
}

.site-footer__col a {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 400 14px var(--font-sans);
    color: var(--ink);
}

.site-footer__col a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__col .theme-mark {
    width: 8px;
    height: 8px;
}

.site-footer__base {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font: 400 12px var(--font-mono);
    color: var(--muted);
}

.site-footer__base a {
    color: var(--muted);
}

/* Home ------------------------------------------------------------------------------------- */
body.home {
    overflow: hidden;
}

.home-page {
    height: calc(100vh - var(--masthead));
    height: calc(100dvh - var(--masthead));
    display: flex;
    flex-direction: column;
}

.home-field {
    position: relative;
    flex: 1;
    overflow: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.home-field[hidden],
.home-list[hidden] {
    display: none;
}

/* Placed from the centre of the field; ThreeDView.js moves each item with translate3d. */
.home-field .item {
    position: absolute;
    left: 50%;
    top: 50%;
    will-change: transform, opacity;
}

.home-field .item a {
    position: relative;
    display: block;
    color: var(--ink);
}

.item__icon {
    width: clamp(130px, 13vw, 250px);
    height: clamp(130px, 13vw, 250px);
}

.item__label {
    position: absolute;
    left: 62%;
    top: 78%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: 999px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
    pointer-events: none;
}

.item__name {
    font: 400 15px var(--font-serif);
    color: var(--ink);
}

.home-field .item a:hover .item__label,
.home-field .item a:focus-visible .item__label {
    opacity: 1;
    transform: none;
}

.home-list {
    flex: 1;
    overflow: auto;
    padding: 20px var(--page-pad) 0;
}

.home-list__rows {
    list-style: none;
}

.home-list__row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: center;
    padding: 12px 16px;
    margin: 0 -16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.home-list__row:hover {
    background: var(--surface);
    color: var(--ink);
}

.home-list__num {
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    gap: 10px;
    font: 400 13px var(--font-mono);
    color: var(--muted);
}

.home-list__icon {
    grid-column: 2 / 3;
    width: 72px;
    height: 72px;
}

.home-list__name {
    grid-column: 3 / 8;
    font: 300 clamp(26px, 2.8vw, 40px)/1.1 var(--font-serif);
}

.home-list__subs {
    grid-column: 8 / 12;
    font: 400 12px/1.6 var(--font-mono);
    color: var(--muted);
}

.home-list__arrow {
    grid-column: 12 / 13;
    justify-self: end;
    font-size: 20px;
}

.home-strip {
    flex: none;
    height: 56px;
    padding: 0 var(--page-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--line);
    background: var(--white);
    position: relative;
    z-index: 2;
}

.home-strip__themes {
    flex: 1;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.home-strip__themes a {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 500 11px var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
}

.home-strip__themes a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-strip__themes .theme-mark {
    width: 8px;
    height: 8px;
}

.view-switch {
    flex: none;
    display: flex;
    border: 1px solid var(--ink);
    border-radius: 999px;
    overflow: hidden;
}

.view-switch button {
    padding: 6px 14px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 500 11px var(--font-mono);
    cursor: pointer;
}

.view-switch button + button {
    border-left: 1px solid var(--ink);
}

.view-switch button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--white);
}

/* Narrower screens ------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .home-strip__themes {
        display: none;
    }

    .home-strip {
        justify-content: flex-end;
    }
}

@media (max-width: 1080px) {
    /* Only Search stays in the bar; the other links move into the menu sheet. */
    .site-nav .site-nav__link {
        display: none;
    }

    .site-nav {
        margin-left: auto;
        gap: 10px;
    }

    .site-header__menu-button {
        display: inline-flex;
    }

    /* The Themes menu becomes the whole menu: themes, then the other pages. */
    .themes-menu__inner {
        display: block;
    }

    .themes-menu__panes {
        display: none;
    }

    .themes-menu__links {
        display: block;
        list-style: none;
        margin-top: 28px;
        border-top: 1px solid var(--ink);
    }

    .themes-menu__links a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        font: 500 13px var(--font-mono);
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: var(--ink);
    }

    .site-footer__about {
        grid-column: 1 / -1;
    }

    .site-footer__col,
    .site-footer__col:first-of-type {
        grid-column: span 6;
    }

    .home-list__name {
        grid-column: 3 / 10;
    }

    .home-list__subs {
        display: none;
    }

    .home-list__arrow {
        grid-column: 10 / 13;
    }
}

@media (max-width: 640px) {
    :root {
        --masthead: 64px;
    }

    .site-header__name {
        font-size: 18px;
    }

    .site-nav__search span,
    .site-header__menu-button span {
        display: none;
    }

    .site-nav__search,
    .site-header__menu-button {
        width: 40px;
        justify-content: center;
        padding: 0;
    }

    .site-footer__col,
    .site-footer__col:first-of-type {
        grid-column: 1 / -1;
    }

    /* The number column gives its room to the name, so long names like Interdisciplinarity fit. */
    .home-list__row {
        grid-template-columns: 56px minmax(0, 1fr) 20px;
        column-gap: 14px;
    }

    .home-list__num {
        display: none;
    }

    .home-list__icon,
    .home-list__name,
    .home-list__arrow {
        grid-column: auto;
    }

    .home-list__icon {
        width: 56px;
        height: 56px;
    }

    .home-list__name {
        font-size: 22px;
        hyphens: auto;
    }

    .item__icon {
        width: 110px;
        height: 110px;
    }
}

/* Theme page ------------------------------------------------------------------------------- */
/* The theme and its map stay in view (sticky) while the articles scroll beside them. */
.theme-page {
    padding: 44px var(--page-pad) 0;
}

.theme-page__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
}

/* Sized to the screen so the whole column (and the map at its foot) stays visible. */
.theme-page__side {
    grid-column: 1 / 6;
    position: sticky;
    top: calc(var(--masthead) + 24px);
    height: calc(100vh - var(--masthead) - 48px);
    min-height: 540px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-bar .theme-page__side {
    top: calc(var(--masthead) + 56px);
    height: calc(100vh - var(--masthead) - 80px);
}

.theme-page__head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.theme-page__icon {
    flex: none;
    width: 72px;
    height: 72px;
}

/* One line for most theme names; the description sits a clear step below. */
.theme-page__title {
    margin: 0;
    font: 300 clamp(30px, 2.9vw, 46px)/1.05 var(--font-serif);
    color: var(--ink);
}

.theme-page__head + .theme-page__description {
    margin-top: 14px;
}

.theme-page__description {
    max-width: 520px;
    margin: 0;
    font: 300 18px/1.5 var(--font-serif);
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.label--ink {
    color: var(--ink);
}

/* The map (js/modules/theme-map): outlined bubbles on a dot grid; the picked one takes the colour. */
.theme-map {
    position: relative;
    flex: 1 1 auto;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: var(--white);
    overflow: hidden;
}

.theme-map__bits {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.theme-map[hidden] {
    display: none;
}

/* Under the map: the hint on the left, the view switch on the right. */
.theme-map__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.theme-map__views {
    flex: none;
    display: flex;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    overflow: hidden;
}

.theme-map__views button {
    white-space: nowrap;
    padding: 5px 12px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 500 11px var(--font-mono);
    cursor: pointer;
}

.theme-map__views button + button {
    border-left: 1px solid var(--ink);
}

.theme-map__views button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--white);
}

.theme-map__stage {
    position: relative;
    flex: 1;
    touch-action: pan-y;
}

.theme-map__layer {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.theme-map__hint {
    margin: 0;
    font: 400 12px var(--font-mono);
    color: var(--muted);
}

.theme-map__tip {
    position: absolute;
    z-index: 30;
    transform: translate(-50%, -100%);
    padding: 5px 10px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font: 500 11px var(--font-mono);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.theme-map__tip.is-visible {
    opacity: 1;
}

.theme-map__layer.has-active .theme-map__ball:not(.is-active),
.theme-map__layer.has-active .theme-map__orb:not(.is-active),
.theme-map__layer.has-active .theme-map__rad:not(.is-active) {
    border-color: #bdb4a4;
    color: var(--muted);
}

.theme-map__layer.has-active .theme-map__ball:not(.is-active) .theme-map__ball-label,
.theme-map__layer.has-active .theme-map__orb-label:not(.is-active),
.theme-map__layer.has-active .theme-map__rad-label:not(.is-active) {
    color: var(--muted);
}

.theme-map__layer.has-active .theme-map__spoke:not(.is-active) {
    opacity: 0.5;
}

.theme-map__ball {
    position: absolute;
    left: 0;
    top: 0;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    transition: opacity 0.25s, background-color 0.2s;
}

.theme-map__ball:hover {
    background: var(--surface);
}

.theme-map__ball.is-dragging {
    cursor: grabbing;
}

.theme-map__ball.is-empty {
    border-style: dashed;
    border-color: var(--muted);
}

.theme-map__ball.is-active {
    background: var(--theme-colour);
}

.theme-map__ball-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.theme-map__dot {
    position: absolute;
    border-radius: 50%;
    background: var(--ink);
    opacity: 0.22;
    transform: translate(-50%, -50%);
}

.theme-map__ball-label {
    position: relative;
    padding: 0 4px;
    text-align: center;
    overflow-wrap: anywhere;
    font-family: var(--font-mono);
    font-weight: 500;
    line-height: 1.25;
    color: var(--ink);
    pointer-events: none;
}

.theme-map__ball.is-active .theme-map__ball-label {
    background: transparent;
}

.theme-map__ring {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 1px dashed #cfc6b6;
    border-radius: 50%;
    pointer-events: none;
}

.theme-map__core {
    position: absolute;
    z-index: 6;
    transform: translate(-50%, -50%);
    padding: 12px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.theme-map__core:hover {
    background: var(--surface);
}

.theme-map__core-name {
    font: 400 14px/1.25 var(--font-serif);
    text-align: center;
}

.theme-map__core-count {
    font: 400 11px var(--font-mono);
    color: var(--muted);
}

.theme-map__orb,
.theme-map__rad {
    position: absolute;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    transition: opacity 0.25s, background-color 0.2s, box-shadow 0.2s;
}

.theme-map__orb {
    left: 0;
    top: 0;
}

.theme-map__orb::before,
.theme-map__rad::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
}

.theme-map__orb:hover,
.theme-map__rad:hover {
    box-shadow: 0 0 0 6px rgba(31, 28, 23, 0.08);
}

.theme-map__orb.is-empty,
.theme-map__rad.is-empty {
    border-style: dashed;
    border-color: var(--muted);
}

.theme-map__orb.is-active,
.theme-map__rad.is-active {
    background: var(--theme-colour);
}

.theme-map__orb-label,
.theme-map__rad-label {
    position: absolute;
    font: 500 11.5px/1.3 var(--font-mono);
    color: var(--ink);
    pointer-events: none;
    transition: opacity 0.25s;
}

.theme-map__orb-label {
    left: 0;
    top: 0;
    width: 120px;
    text-align: center;
}

.theme-map__rad-label {
    width: max-content;
    padding: 1px 4px;
    background: var(--white);
}

.theme-map__spoke {
    position: absolute;
    height: 0;
    border-top: 1px dashed #c9c0b0;
    transform-origin: 0 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.theme-map__spoke.is-active {
    border-top: 1px solid var(--ink);
}

.theme-map__rad {
    transform: translate(-50%, -50%);
    color: var(--ink);
    font: 500 10px var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, opacity 0.25s, background-color 0.2s;
}

.theme-map__rad:hover {
    transform: translate(-50%, -50%) scale(1.12);
}

/* Sub-theme chips: the way in without JavaScript and on phones. Beside a working map only the
   picked sub-theme shows, as a chip that clears the filter. */
.theme-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.theme-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: 400 12px var(--font-mono);
    color: var(--ink);
    white-space: nowrap;
}

.theme-chip:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.theme-chip.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}

@media (min-width: 901px) {
    .theme-map:not([hidden]) ~ .subcategories-filter li:has(.theme-chip:not(.is-active)),
    .theme-map:not([hidden]) ~ .subcategories-filter li:first-child {
        display: none;
    }

    .theme-map:not([hidden]) ~ .subcategories-filter .theme-chip.is-active::after {
        content: "\00D7";
        font-size: 14px;
    }
}

/* The article list */
.theme-page__list {
    grid-column: 7 / 13;
    transition: opacity 0.2s;
}

.theme-page__list.is-loading {
    opacity: 0.45;
}

.theme-page__list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ink);
}

/* The whole card opens the article: the title's link is stretched over it, other links sit on top. */
.theme-post {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.theme-post__title a::after,
.list-post__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.theme-post__themes a,
.theme-post__meta a,
.list-post__themes a,
.list-post__by a {
    position: relative;
    z-index: 1;
}

.theme-post:hover .theme-post__title a,
.list-post:hover .list-post__title a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.theme-post__themes,
.theme-post__meta {
    font: 400 12px/1.5 var(--font-mono);
    color: var(--muted);
}

.theme-post__themes a,
.theme-post__meta a {
    color: inherit;
}

.theme-post__themes a:hover,
.theme-post__meta a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.theme-post__title {
    margin: 0;
    font: 400 clamp(21px, 1.8vw, 25px)/1.25 var(--font-serif);
    color: var(--ink);
}

.theme-post__title a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.theme-post__excerpt {
    margin: 0;
    font: 400 15px/1.55 var(--font-sans);
    color: var(--text);
}

.theme-page__empty {
    padding: 24px 0;
    font: 400 15px var(--font-sans);
}

/* Page numbers (theme page and other lists) */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 20px 0;
    font: 400 13px var(--font-mono);
}

.pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.pagination .page-numbers.current {
    background: var(--ink);
    color: var(--white);
}

.pagination a.page-numbers:hover {
    background: var(--surface);
}

/* Other themes */
.theme-others {
    padding-top: 72px;
}

.theme-others__title {
    margin: 0 0 24px;
    padding-top: 16px;
    border-top: 1px solid var(--ink);
    font: 300 36px var(--font-serif);
    color: var(--ink);
}

.theme-others__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.theme-others__tile {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    color: var(--ink);
}

.theme-others__tile .label {
    margin-top: auto;
    align-items: flex-start;
    line-height: 1.5;
}

.theme-others__tile .label .theme-mark {
    flex: none;
    margin-top: 0.3em;
}

.theme-others__tile:hover {
    background: var(--surface);
    color: var(--ink);
}

.theme-others__icon {
    width: 92px;
    height: 92px;
    margin-bottom: 6px;
}

.theme-others__name {
    min-width: 0;
    font: 400 clamp(16px, 1.25vw, 18px)/1.3 var(--font-serif);
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 1080px) {
    .theme-others__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Phones and small tablets: one column; the map gives way to a row of chips that stays under
   the masthead. */
@media (max-width: 900px) {
    .theme-page {
        padding-top: 28px;
    }

    .theme-page__grid {
        display: block;
    }

    /* The column dissolves into the page so the chip row can stay stuck while the list scrolls
       (a sticky element only sticks inside its parent). */
    .theme-page__side,
    .admin-bar .theme-page__side {
        display: contents;
    }

    .theme-page__intro {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }

    /* The map stays on phones, at a fixed height above the chips. */
    .theme-map {
        flex: none;
        height: 360px;
    }

    .theme-map__foot {
        margin: 8px 0 12px;
    }

    .subcategories-filter {
        position: sticky;
        top: var(--masthead);
        z-index: 5;
        margin: 0 calc(-1 * var(--page-pad));
        padding: 10px var(--page-pad);
        background: var(--white);
        border-bottom: 1px solid var(--line);
        overflow-x: auto;
    }

    .admin-bar .subcategories-filter {
        top: calc(var(--masthead) + 46px);
    }

    .theme-chips {
        flex-wrap: nowrap;
    }

    .theme-page__list {
        margin-top: 24px;
    }

    .theme-others__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-others__icon {
        width: 64px;
        height: 64px;
    }
}

/* Article ---------------------------------------------------------------------------------- */
.article {
    padding: 64px var(--page-pad) 0;
}

.article__header {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.article__themes {
    display: block;
    font: 400 13px/1.5 var(--font-mono);
    color: var(--muted);
}

.article__themes .theme-mark {
    margin-right: 10px;
    vertical-align: 0;
}

.article__themes a {
    color: var(--ink);
}

.article__themes a:hover {
    text-decoration: underline;
}

.article__title {
    margin: 0;
    font: 300 clamp(38px, 4.4vw, 62px)/1.06 var(--font-serif);
    color: var(--ink);
}

.article__standfirst {
    margin: 0;
    font: 300 clamp(19px, 1.7vw, 24px)/1.5 var(--font-serif);
    color: var(--text);
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.article__faces {
    display: flex;
}

.article__face {
    width: 36px;
    height: 36px;
    border: 2px solid var(--white);
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article__face + .article__face {
    margin-left: -10px;
}

.article__face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article__face .profile-initials {
    font: 400 12px var(--font-serif);
    color: var(--muted);
}

.article__byline {
    font: 400 14px var(--font-sans);
    color: var(--ink);
}

.article__byline a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article__date {
    font: 400 12px var(--font-mono);
    color: var(--muted);
}

.article__figure {
    max-width: 1100px;
    margin: 44px auto 0;
}

.article__figure img {
    display: block;
    width: 100%;
    height: auto;
}

.article__figure figcaption {
    padding-top: 12px;
    font: 400 12px/1.5 var(--font-mono);
    color: var(--muted);
}

.article__columns,
.article__end {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
}

.article__columns {
    margin-top: 56px;
    align-items: start;
}

.article__aside {
    grid-column: 1 / 3;
    position: sticky;
    top: calc(var(--masthead) + 32px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 6px;
}

.admin-bar .article__aside {
    top: calc(var(--masthead) + 64px);
}

.article__toc {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* A rail down the left of the entries fills in the theme colour as the article is read. */
.article__toc-links {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 14px;
}

.article__toc-rail {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.article__toc-rail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--theme-colour, var(--ink));
    transform: scaleY(var(--progress, 0));
    transform-origin: top;
}

.article__toc a {
    position: relative;
    font: 400 13px/1.45 var(--font-sans);
    color: var(--muted);
    transition: color 0.2s;
}

.article__toc a:hover {
    color: var(--ink);
}

.article__toc a[aria-current] {
    color: var(--ink);
    font-weight: 500;
}

.article__toc a[aria-current]::before {
    content: "";
    position: absolute;
    left: -17px;
    top: 0.45em;
    width: 8px;
    height: 8px;
    background: var(--theme-colour, var(--ink));
}

.article__tools {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.article__tools a,
.article__tools button {
    padding: 0;
    border: 0;
    background: none;
    font: 500 12px var(--font-mono);
    color: var(--ink);
    cursor: pointer;
}

.article__tools a:hover,
.article__tools button:hover {
    text-decoration: underline;
}

.article__text {
    grid-column: 4 / 11;
    min-width: 0;
}

.article__end {
    margin-top: 48px;
    row-gap: 28px;
}

.article__end > * {
    grid-column: 4 / 11;
}

.article__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article__tags a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: 400 12px var(--font-mono);
    color: var(--text);
}

.article__tags a:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.article__cite {
    padding: 22px 24px;
    background: var(--surface);
    scroll-margin-top: calc(var(--masthead) + 40px);
}

.article__cite-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.article__cite-head h2 {
    margin: 0;
}

.article__cite p {
    margin: 0;
    font: 400 13px/1.7 var(--font-mono);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.pill-button {
    padding: 7px 14px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    font: 500 11px var(--font-mono);
    color: var(--ink);
    cursor: pointer;
}

.pill-button:hover {
    background: var(--ink);
    color: var(--white);
}

.article__people {
    border-top: 1px solid var(--ink);
}

.person-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.person-card__photo {
    width: 96px;
    height: 96px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.person-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-card__photo .profile-initials {
    font: 300 32px var(--font-serif);
    color: var(--muted);
}

.person-card__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.person-card__name {
    font: 400 22px var(--font-serif);
}

.person-card__role {
    font: 400 14px/1.45 var(--font-sans);
    color: var(--text);
}

.person-card__more {
    font: 500 12px var(--font-mono);
}

.person-card:hover .person-card__name {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article__more {
    padding-top: 80px;
}

.article__more-title {
    margin: 0 0 20px;
    font: 300 32px var(--font-serif);
    color: var(--ink);
}

.article__more-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.article__more-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--ink);
    color: var(--ink);
}

.article__more-name {
    font: 400 22px/1.3 var(--font-serif);
}

.article__more-item:hover .article__more-name {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article__more-by {
    font: 400 12px/1.5 var(--font-mono);
    color: var(--muted);
}

.article__comments {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    padding-top: 80px;
}

.article__comments > .comments {
    grid-column: 4 / 11;
}

@media (max-width: 1080px) {
    .article__columns,
    .article__end,
    .article__comments {
        display: block;
    }

    .article__aside {
        position: static;
        margin-bottom: 32px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--line);
    }

    .article__end > * + * {
        margin-top: 28px;
    }

    .article__more-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .article {
        padding-top: 36px;
    }

    .person-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .person-card__photo {
        width: 72px;
        height: 72px;
    }
}

/* Shared page parts ------------------------------------------------------------------------ */
/* A page's opening: label + big title on the left, a short paragraph on the right. */
.page-intro {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 18px;
    align-items: end;
    padding: 64px 0 40px;
}

.page-intro__title {
    grid-column: 1 / 8;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.page-intro__title h1 {
    margin: 0;
    font: 300 clamp(44px, 5.2vw, 76px)/1 var(--font-serif);
    color: var(--ink);
}

.page-intro__text {
    grid-column: 8 / 13;
}

.page-intro__text p {
    margin: 0;
    font: 400 17px/1.6 var(--font-sans);
    color: var(--text);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ink);
    margin-bottom: 8px;
}

.section-head h2 {
    margin: 0;
    font: 300 32px var(--font-serif);
    color: var(--ink);
}

/* People without a photo yet. */
.profile-initials {
    aspect-ratio: auto;
    margin: 0;
    border: 0;
    background: var(--surface);
    color: var(--muted);
}

/* People ----------------------------------------------------------------------------------- */
.people-page {
    padding: 0 var(--page-pad);
}

.people-tabs {
    min-width: 0;
}

.people-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
}

.people-tabs__list a {
    padding: 14px 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font: 500 12px var(--font-mono);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.people-tabs__list a:hover,
.people-tabs__list a.is-current {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.people-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px var(--gap);
}

.person {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--ink);
}

.person__photo,
.profile-page__photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background: var(--surface);
    overflow: hidden;
}

.person__photo img,
.profile-page__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person__photo .profile-initials,
.profile-page__photo .profile-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 300 clamp(40px, 4vw, 64px) var(--font-serif);
}

/* The hover band of bits (js/modules/bitmap/PhotoFade.js). */
.photo-fade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.person__name {
    margin-top: 6px;
    font: 400 21px/1.25 var(--font-serif);
}

.person:hover .person__name {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.person__position {
    font: 400 14px/1.45 var(--font-sans);
    color: var(--text);
}

.person__org {
    font: 400 12px/1.45 var(--font-mono);
    color: var(--muted);
}

.person__meta {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font: 400 12px var(--font-mono);
    color: var(--muted);
}

.people-page__empty {
    padding: 32px 0;
}

/* Profile ---------------------------------------------------------------------------------- */
.profile-page {
    padding: 64px var(--page-pad) 0;
}

.profile-page__top {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 32px;
    align-items: start;
    padding-bottom: 56px;
}

.profile-page__photo-col {
    grid-column: 1 / 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-page__back {
    font: 400 12px var(--font-mono);
    color: var(--muted);
}

.profile-page__back:hover {
    color: var(--ink);
}

.profile-page__info {
    grid-column: 6 / 13;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 8px;
}

.profile-page__name {
    margin: 0;
    font: 300 clamp(40px, 4.8vw, 68px)/1.02 var(--font-serif);
    color: var(--ink);
}

.profile-page__role {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-page__position {
    font: 400 19px var(--font-sans);
    color: var(--ink);
}

.profile-page__org {
    font: 400 14px var(--font-mono);
    color: var(--muted);
}

.profile-page__links {
    list-style: none;
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.profile-page__links a {
    font: 500 12px var(--font-mono);
    color: var(--ink);
}

.profile-page__links a:hover {
    text-decoration: underline;
}

.profile-page__bio {
    max-width: 640px;
}

.profile-page__bio p {
    margin: 0 0 14px;
    font: 400 18px/1.7 var(--font-sans);
    color: #2c2822;
}

.profile-page__details {
    max-width: 640px;
    display: grid;
    gap: 6px;
}

.profile-page__details dd {
    margin: 0 0 14px;
}

.profile-page__details dd p {
    margin: 0;
    font: 400 15px/1.6 var(--font-sans);
}

.profile-page__list {
    list-style: none;
}

.profile-page__row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.profile-page__theme {
    grid-column: 1 / 4;
    display: flex;
    align-items: center;
    gap: 8px;
    font: 400 12px var(--font-mono);
    color: var(--muted);
}

.profile-page__theme .theme-mark {
    width: 8px;
    height: 8px;
}

.profile-page__title {
    grid-column: 4 / 11;
    font: 400 22px/1.3 var(--font-serif);
}

.profile-page__row:hover .profile-page__title {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.profile-page__date {
    grid-column: 11 / 13;
    text-align: right;
    font: 400 12px var(--font-mono);
    color: var(--muted);
}

@media (max-width: 1080px) {
    .people-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-intro__title,
    .page-intro__text {
        grid-column: 1 / -1;
    }

    .profile-page__photo-col {
        grid-column: 1 / 6;
    }

    .profile-page__info {
        grid-column: 7 / 13;
    }
}

@media (max-width: 760px) {
    .people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }

    .people-tabs {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 8px;
    }

    /* One row of tabs; it scrolls sideways rather than wrapping. */
    .people-tabs__list {
        flex-wrap: nowrap;
        max-width: 100%;
        gap: 0 18px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .people-tabs__list a {
        flex: none;
        font-size: 11px;
        letter-spacing: 0.04em;
    }

    .profile-page__photo-col,
    .profile-page__info {
        grid-column: 1 / -1;
    }

    .profile-page__photo-col {
        max-width: min(320px, 70%);
    }

    .profile-page__theme,
    .profile-page__title,
    .profile-page__date {
        grid-column: 1 / -1;
        text-align: left;
    }

    .profile-page__row {
        row-gap: 6px;
    }
}

/* About ------------------------------------------------------------------------------------ */
.about-page {
    padding: 0 var(--page-pad);
}

.about-hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: center;
    min-height: min(720px, calc(100vh - var(--masthead)));
    padding: 40px 0;
}

.about-hero__text {
    grid-column: 1 / 6;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-hero__text h1 {
    margin: 0;
    font: 300 clamp(44px, 5.2vw, 76px)/1 var(--font-serif);
    color: var(--ink);
}

.about-hero__standfirst {
    margin: 0;
    font: 300 clamp(19px, 1.7vw, 24px)/1.5 var(--font-serif);
    color: var(--text);
}

/* The right half of the hero, out to the page's edge and the full height of the hero: faint dots
   everywhere so the pointer's halo works anywhere in it; the attractor keeps its size in the middle. */
.about-hero__art {
    grid-column: 7 / -1;
    align-self: stretch;
    min-height: 520px;
}

/* The hero's field covers it edge to edge, white until the pointer warms it. */
.about-hero {
    position: relative;
}

.about-hero__field,
.contact-page__field {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(-1 * var(--page-pad));
    width: calc(100% + 2 * var(--page-pad));
    height: 100%;
    z-index: 0;
}

.about-hero__text,
.contact-page__grid {
    position: relative;
    z-index: 1;
}

.contact-page {
    position: relative;
}

.contact-page__field {
    left: 0;
    width: 100%;
}

.about-section {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 20px;
    padding-top: 20px;
    margin-top: 72px;
    border-top: 1px solid var(--ink);
}

.about-section__num {
    grid-column: 1 / 3;
    font: 400 13px var(--font-mono);
    color: var(--muted);
}

.about-section__body {
    grid-column: 3 / 10;
}

.about-section__title {
    grid-column: 3 / 13;
    margin: 0;
    font: 300 38px/1.15 var(--font-serif);
    color: var(--ink);
}

.about-section--wide > ul,
.about-section__link {
    grid-column: 1 / -1;
}

.about-section__link {
    font: 500 12px var(--font-mono);
    color: var(--ink);
}

.about-themes {
    list-style: none;
}

.about-themes__row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: center;
    padding: 12px 16px;
    margin: 0 -16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.about-themes__row:hover {
    background: var(--surface);
    color: var(--ink);
}

.about-themes__num {
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
    gap: 10px;
    font: 400 13px var(--font-mono);
    color: var(--muted);
}

.about-themes__icon {
    grid-column: 3 / 4;
    width: 64px;
    height: 64px;
}

.about-themes__name {
    grid-column: 4 / 8;
    font: 400 26px/1.2 var(--font-serif);
}

.about-themes__subs {
    grid-column: 8 / 12;
    font: 400 12px/1.6 var(--font-mono);
    color: var(--muted);
}

.about-themes__arrow {
    grid-column: 12 / 13;
    justify-self: end;
    font-size: 18px;
}

.about-people {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
}

.about-cta {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 16px;
    align-items: center;
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.about-cta__text {
    grid-column: 3 / 10;
    margin: 0;
    font: 300 clamp(26px, 2.6vw, 38px)/1.2 var(--font-serif);
    color: var(--ink);
}

.about-cta .button {
    grid-column: 10 / 13;
    justify-self: end;
}

/* Lists: Blogs & Updates, search results, archives ------------------------------------------ */
.list-page {
    padding: 0 var(--page-pad);
}

.list-page__items {
    border-top: 1px solid var(--ink);
}

.list-post {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: baseline;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.list-post__date {
    grid-column: 1 / 3;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.list-post__day {
    font: 300 32px/1 var(--font-serif);
    color: var(--ink);
}

.list-post__month {
    font: 400 12px var(--font-mono);
    color: var(--muted);
}

.list-post__body {
    grid-column: 3 / 11;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Plain inline text: the separators inside (" / ", ", ") carry their own spacing. */
.list-post__themes {
    display: block;
    font: 400 12px/1.5 var(--font-mono);
    color: var(--muted);
}

.list-post__themes .theme-mark {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    vertical-align: 0;
}

.list-post__themes a {
    color: inherit;
}

.list-post__themes a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.list-post__title {
    margin: 0;
    font: 400 clamp(21px, 1.9vw, 27px)/1.25 var(--font-serif);
    color: var(--ink);
}

.list-post__title a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.list-post__excerpt {
    margin: 0;
    font: 400 15px/1.55 var(--font-sans);
    color: var(--text);
}

.list-post__by {
    font: 400 12px var(--font-mono);
    color: var(--muted);
}

.list-post__by a {
    color: inherit;
}

.list-post__by a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.list-page__empty {
    padding: 28px 0;
}

@media (max-width: 1080px) {
    .about-hero__text,
    .about-hero__art {
        grid-column: 1 / -1;
    }

    .about-hero__art {
        min-height: 0;
        height: min(520px, 110vw);
    }

    .about-hero {
        row-gap: 32px;
    }

    .about-section__num,
    .about-section__body,
    .about-section__title,
    .about-cta__text,
    .about-cta .button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .about-themes__subs {
        display: none;
    }

    .about-themes__name {
        grid-column: 4 / 12;
    }

    .about-people {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .about-themes__row {
        grid-template-columns: 56px minmax(0, 1fr) 20px;
        column-gap: 14px;
    }

    .about-themes__num {
        display: none;
    }

    .about-themes__icon,
    .about-themes__name,
    .about-themes__arrow {
        grid-column: auto;
    }

    .about-themes__icon {
        width: 56px;
        height: 56px;
    }

    .about-themes__name {
        font-size: 21px;
    }

    .list-post__date,
    .list-post__body {
        grid-column: 1 / -1;
    }

    .list-post {
        row-gap: 8px;
    }
}

/* Contact ---------------------------------------------------------------------------------- */
.contact-page {
    padding: 72px var(--page-pad) 0;
}

.contact-page__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 40px;
    align-items: start;
}

.contact-page__intro {
    grid-column: 1 / 6;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-page__intro h1 {
    margin: 0;
    font: 300 clamp(44px, 5.2vw, 76px)/1 var(--font-serif);
    color: var(--ink);
}

.contact-page__lead {
    max-width: 420px;
    margin: 0;
    font: 300 22px/1.5 var(--font-serif);
    color: var(--text);
}

/* The cellular automaton: faint dots over the whole box, the pattern growing from its top. */
.contact-page__art {
    width: min(100%, 520px);
    height: 240px;
    margin-top: 12px;
}



.contact-page__form {
    grid-column: 7 / 13;
    padding: 36px;
    border: 1px solid var(--line);
    background: var(--white);
    scroll-margin-top: calc(var(--masthead) + 24px);
}

.contact-page__sent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 14px 16px;
    border-left: 2px solid var(--ink);
    background: var(--surface);
}

.contact-page__sent p {
    margin: 0;
    font: 400 14px/1.5 var(--font-sans);
}

/* Form fields: contact form and comment forms. */
.contact-page__form form,
.comments .comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-page__form form > p,
.comments .comment-form > p {
    margin: 0;
    grid-column: 1 / -1;
}

.contact-page__form .comment-form-author,
.contact-page__form .comment-form-email,
.comments .comment-form-author,
.comments .comment-form-email {
    grid-column: span 1;
}

.contact-page__form label,
.comments .comment-form label {
    display: block;
    margin-bottom: 8px;
    font: 500 11px var(--font-mono);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-page__form input[type="text"],
.contact-page__form input[type="email"],
.contact-page__form textarea,
.comments .comment-form input[type="text"],
.comments .comment-form input[type="email"],
.comments .comment-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--white);
    font: 400 16px/1.5 var(--font-sans);
    color: var(--ink);
}

.contact-page__form input:focus,
.contact-page__form textarea:focus,
.comments .comment-form input:focus,
.comments .comment-form textarea:focus {
    outline: none;
    border-color: var(--ink);
}

.contact-page__form textarea,
.comments .comment-form textarea {
    resize: vertical;
}

.contact-page__form .form-submit,
.comments .comment-form .form-submit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.contact-page__form .form-submit .button,
.comments .comment-form .submit {
    padding: 14px 26px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font: 500 13px var(--font-mono);
    cursor: pointer;
}

.contact-page__form .form-submit .button:hover,
.comments .comment-form .submit:hover {
    background: var(--white);
    color: var(--ink);
}

.contact-page__required {
    font: 400 12px var(--font-mono);
    color: var(--muted);
}

/* Comments under articles */
.comments-title,
.comment-reply-title {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ink);
    font: 300 30px var(--font-serif);
    color: var(--ink);
}

.comment-reply-title small {
    margin-left: 12px;
    font: 500 12px var(--font-mono);
}

.comments .comment-notes,
.comments .logged-in-as {
    font: 400 12px/1.5 var(--font-mono);
    color: var(--muted);
}

.comments .comment-list {
    list-style: none;
    margin: 0 0 48px;
}

.comments .comment-body {
    padding: 0 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.comments .comment-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.comments .comment-author {
    font: 400 17px var(--font-serif);
    color: var(--ink);
}

.comments .comment-date {
    font: 400 12px var(--font-mono);
    color: var(--muted);
}

.comments .comment-content p {
    margin: 0 0 10px;
    font: 400 16px/1.7 var(--font-sans);
    color: #2c2822;
}

.comments .comment-actions a {
    margin-right: 14px;
    font: 500 12px var(--font-mono);
    color: var(--ink);
}

.comments .children {
    list-style: none;
    margin-left: 28px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

/* Search results --------------------------------------------------------------------------- */
.search-page__head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 64px 0 40px;
}

.search-page__head form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.search-page__field {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ink);
    color: var(--ink);
}

.search-page__field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font: 300 clamp(32px, 4vw, 56px) var(--font-serif);
    color: var(--ink);
}

.search-page__summary {
    margin: 0;
    font: 400 13px var(--font-mono);
    color: var(--muted);
}

.search-page__group {
    margin-bottom: 40px;
}

.search-page__group h2 {
    margin: 0 0 12px;
}

.search-page__term {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 20px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.search-page__term-name {
    font: 400 26px var(--font-serif);
}

.search-page__term-in {
    font: 400 12px var(--font-mono);
    color: var(--muted);
}

.search-page__term-go {
    margin-left: auto;
    font: 500 12px var(--font-mono);
}

.search-page__term:hover .search-page__term-name {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.empty-state {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 48px 0;
}

.empty-state__bits {
    width: 100%;
    height: auto;
    fill: var(--ink);
}

.empty-state__title {
    margin: 0 0 8px;
    font: 400 26px/1.3 var(--font-serif);
    color: var(--ink);
}

.empty-state p {
    margin: 0 0 18px;
    font: 400 15px/1.55 var(--font-sans);
}

/* Basic pages (page.php) share the article layout; their label sits above the title. */
.basic-page .article__header > .label {
    margin-bottom: -4px;
}

@media (max-width: 1080px) {
    .contact-page__intro,
    .contact-page__form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .contact-page__form {
        padding: 22px;
    }

    /* Phones: the form comes straight after the intro; the automaton is left out. */
    .contact-page__art {
        display: none;
    }

    .search-page__term-name {
        font-size: 22px;
    }

    .contact-page__form form,
    .comments .comment-form {
        grid-template-columns: 1fr;
    }

    .contact-page__form .comment-form-author,
    .contact-page__form .comment-form-email,
    .comments .comment-form-author,
    .comments .comment-form-email {
        grid-column: 1 / -1;
    }

    .empty-state {
        grid-template-columns: 1fr;
    }
}

/* Not found (404) -------------------------------------------------------------------------- */
.not-found-page {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 72px var(--page-pad) 96px;
    text-align: center;
}

.digits-404 {
    display: block;
    width: min(100%, 880px);
    aspect-ratio: 176 / 63;
}

.not-found-page__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 560px;
}

.not-found-page__text h1 {
    margin: 0;
    font: 300 clamp(30px, 3.4vw, 46px)/1.15 var(--font-serif);
    color: var(--ink);
}

.not-found-page__text p {
    margin: 0;
    font: 400 16px/1.6 var(--font-sans);
    color: var(--text);
}

.not-found-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .not-found-page {
        padding-top: 48px;
    }
}

/* Menus above lists (sort, sub-theme): plain selects drawn as pills. */
.list-menus {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.list-menu select {
    max-width: 220px;
    padding: 7px 30px 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231f1c17' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 12px center;
    font: 500 12px var(--font-mono);
    color: var(--ink);
    text-overflow: ellipsis;
    cursor: pointer;
}

.list-menu select:hover {
    border-color: var(--ink);
}

.list-menu select:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* Lists with a sort menu: a count on the left, the menu on the right. */
.list-page__head,
.people-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

/* Without a date the text starts at the left edge. */
.list-post--no-date .list-post__body {
    grid-column: 1 / 10;
}

@media (max-width: 640px) {
    .list-post--no-date .list-post__body {
        grid-column: 1 / -1;
    }
}

.search-page__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.people-tools {
    padding: 0;
    border-top: 1px solid var(--ink);
}

/* Contributors, then curators: a quiet heading where each group starts. */
.people-group {
    padding-top: 36px;
}

.people-group + .people-group {
    margin-top: 56px;
    border-top: 1px solid var(--line);
}

.people-group__title {
    margin: 0 0 22px;
}

@media (max-width: 760px) {
    .people-tools {
        padding-bottom: 12px;
    }
}

/* Phones and small tablets: the masthead slides away on scrolling down (js/modules/Header.js);
   the sticky sub-theme chips on theme pages move up into its place. */
@media (max-width: 900px) {
    body.is-header-hidden .site-header {
        transform: translateY(-100%);
    }

    body.admin-bar.is-header-hidden .site-header {
        transform: translateY(calc(-100% - 46px));
    }

    .subcategories-filter {
        transition: top 0.3s ease;
    }

    body.is-header-hidden .subcategories-filter {
        top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .subcategories-filter {
        transition: none;
    }
}

/* Under 600px WordPress's admin bar scrolls away with the page, so nothing makes room for it. */
@media (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }

    .admin-bar .subcategories-filter {
        top: var(--masthead);
    }

    body.admin-bar.is-header-hidden .site-header {
        transform: translateY(-100%);
    }
}

/* 404: an invisible bitmap over the whole area; the digits are drawn where .digits-404 sits. */
.not-found-page__field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.not-found-page__text {
    position: relative;
    z-index: 1;
}
