@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');
body, body h1, body h2, body h3, body p, body a, body button, body span, body blockquote {
    font-family: 'Source Serif 4', Georgia, serif !important;
    font-optical-sizing: auto;
}
.site-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    background: linear-gradient(155deg, rgba(255,255,255,.28), rgba(255,255,255,.1));
    border-bottom: 1px solid rgba(255,255,255,.68);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 3px 9px rgba(0,0,0,.1);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
}
.site-menu a {
    display: inline;
    color: #111;
    font: 700 1rem/1.6 "Nunito", sans-serif;
    text-decoration: none;
}
.site-menu a:hover,
.site-menu a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}
body.with-site-menu { padding-top: 4.5rem; }
.site-menu a::before { content: ''; display: inline-block; width: 18px; height: 18px; margin-right: 7px; vertical-align: -3px; background: center / contain no-repeat; }
.site-menu a[href="index.html"]::before { background-image: url('assets/nav-home.svg'); }
.site-menu a[href="projects.html"]::before { background-image: url('assets/nav-exhibits.svg'); }
.site-menu a[href="cv.html"]::before { background-image: url('assets/nav-cv.svg'); }

/* Shared type scale for the homepage, project catalogue and CV. */
.toc-bubbles, .project-index-track {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px !important;
    padding: 0 !important;
}
.toc-bubbles a, .project-index-track > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    line-height: 1.4 !important;
    text-align: center;
}
:root {
    --text-body: 18px;
    --text-small: 14px;
    --text-control: 16px;
    --text-section: 27px;
    --text-subheading: 22px;
    --text-page: 36px;
}
body { font-size: var(--text-body) !important; line-height: 1.6; }
body h1:not(.hero-text) { font-size: var(--text-page) !important; line-height: 1.25; }
body h1:not(.hero-text) {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    overflow-wrap: break-word;
}
body h2, .content-box h2, .talks-section .header-row h2,
.grid article h2 { font-size: var(--text-section) !important; line-height: 1.3; letter-spacing: 0; }
body h3 { font-size: var(--text-subheading) !important; line-height: 1.35; }
.content-box p { font-size: var(--text-body) !important; line-height: 1.6; }
.site-menu a, .motion-toggle, .project-index-track > a,
.toc-bubbles a, .view-all, .exhibit-section summary {
    font-size: var(--text-control) !important;
}
.section-nav a, .motion-toggle, .read-more {
    font-size: 16px !important;
    min-height: 44px !important;
}
.poster-row .poster figcaption .subtitle, .primary-credit,
.inline-gallery figcaption, .exhibit-pair figcaption,
.series-work figcaption, .media-credit, footer {
    font-size: var(--text-small) !important;
    line-height: 1.5;
}
@media (max-width: 720px) {
    :root { --text-body: 17px; --text-section: 25px; --text-subheading: 21px; --text-page: 32px; }
}
