/* franklin.art — 2026 stylesheet
   Drop-in replacement for 2023.style.css, written against the existing markup:
     header > (video, h1 > a)
     #nav-main > (nav > ul > li > h3 + ul, #mobile-nav, main)
     footer
   Type: Libre Caslon Display, Libre Caslon Text, Libre Franklin.
   Palette: white wall, black ink, and the studio oxides. */

@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Libre+Franklin:wght@400;500;600&display=swap');

:root {
    --wall: #ffffff;
    --ink: #000000;
    --ink-2: #555555;      /* secondary text: labels, publication lines, footer */
    --hairline: #d4d4d4;
    --ochre: #c4952f;      /* yellow oxide */
    --oxide: #8c2f1e;      /* red oxide: hover and focus */

    --serif-display: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, serif;
    --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
    --sans: 'Libre Franklin', 'Franklin Gothic Book', 'Helvetica Neue', Arial, sans-serif;

    --gutter: clamp(1rem, 4vw, 3rem);
    --col-gap: clamp(1.5rem, 4vw, 4rem);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--wall);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 var(--gutter);
    background: var(--wall);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.6;
    font-kerning: normal;
}

img { max-width: 100%; height: auto; }

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}
a:hover { color: var(--oxide); }

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

/* Libre Caslon Text italic puts a historical st ligature in its standard set; keep it out */
i, em, cite { font-variant-ligatures: no-common-ligatures; }

/* ---------- Masthead ---------- */

header { padding-top: clamp(1.25rem, 3vw, 2.25rem); }

header video { display: none; } /* retired; safe to delete from the template */

header h1 {
    margin: 0 0 0 -0.04em; /* optical: pull the F's serif to the margin */
    font-family: var(--serif-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 9vw, 8.25rem);
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: none;
}

header h1 a { color: var(--ink); text-decoration: none; }
header h1 a:hover { color: var(--ink); }

/* The palette rule: a dab of yellow oxide, a dab of red oxide, then black, which is the blue */
header::after {
    content: "";
    display: block;
    height: 4px;
    margin-top: clamp(0.75rem, 2vw, 1.5rem);
    background: linear-gradient(to right,
        var(--ochre) 0 1.5rem,
        var(--oxide) 1.5rem 3rem,
        var(--ink) 3rem);
}

/* ---------- Index and content ---------- */

#nav-main {
    display: flex;
    align-items: flex-start;
    gap: var(--col-gap);
    margin-top: clamp(2rem, 5vw, 3.5rem);
    background: none;
}

nav {
    flex: 0 0 11.5rem;
    font-family: var(--sans);
    text-transform: none;
}

nav ul { list-style: none; margin: 0; padding: 0; }
nav li { margin: 0; padding: 0; }
nav > ul > li + li { margin-top: 1.35rem; }

nav h3 {
    margin: 0 0 0.3rem;
    padding: 0;
    background: none;
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.3;
    text-transform: none;
}

nav ul ul li { font-size: 0.875rem; line-height: 1.75; }

nav a {
    padding: 0;
    background: none;
    color: var(--ink);
    text-decoration: none;
}
nav a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--oxide);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}

#mobile-nav { display: none; }

main {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

main p, main ul, main ol, main dl, main blockquote { max-width: 36em; text-wrap: pretty; }
main p, main ul, main ol, main blockquote, main table, main figure { margin: 0 0 1.1em; }
main a { color: var(--ink); }
main img { box-shadow: 0 0 0 1px rgb(0 0 0 / 0.07); } /* keeps white paper edges legible on white */
main > a:has(> img), main > img { display: block; width: fit-content; margin-bottom: 1.25rem; }

/* Page titles are the h3 at the top of main */
main h3 {
    max-width: 18em;
    margin: 1.4em 0 0.45em;
    font-family: var(--serif-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
main > h3:first-child { margin-top: 0; }

/* Art pages: the title sits close under the image, like a label */
main :is(img, p:has(> img), a:has(> img)) + h3 { margin-top: 0.5em; }

main h1, main h2 { font-family: var(--serif-display); font-weight: 400; line-height: 1.1; text-transform: none; }
main h4, main h5 { font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.3; }

main blockquote { margin-left: 1.5em; padding: 0; font-size: 1.0625rem; }

main table { border-collapse: collapse; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.45; }
main th, main td { text-align: left; vertical-align: top; padding: 0.6em 1.25em 0.6em 0; border-bottom: 1px solid var(--hairline); }

/* Art pages: the year | medium | size line, the groups line and the image sizes read as a wall label */
main :is(p, div):has(> a[href*="/show-art/"]),
main :is(p, div):has(> a[href*="/art-image/"]) {
    font-family: var(--sans);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--ink-2);
}
main :is(p, div):has(> a[href*="/show-art/"]) a,
main :is(p, div):has(> a[href*="/art-image/"]) a { color: var(--ink); text-decoration-color: #b8b8b8; }
main :is(p, div):has(> a[href*="/show-art/"]) a:hover,
main :is(p, div):has(> a[href*="/art-image/"]) a:hover { color: var(--oxide); text-decoration-color: currentColor; }

/* Art archive: thumbnails get breathing room instead of abutting */
main a:has(> img[src$="/thumb.jpg"]) {
    display: inline-block;
    margin: 0 0.9rem 0.9rem 0;
    vertical-align: bottom;
}
main a > img[src$="/thumb.jpg"] { display: block; }

/* Exhibitions, residencies and other year lists */
.year-item-list {
    display: block;
    max-width: 44rem;
    margin: 0 0 3rem;
    border-top: 1px solid var(--ink);
}

.year-item {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    column-gap: 1.5rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--hairline);
}

.year, .item { padding: 0; }
.year { font-family: var(--serif-display); font-size: 1.25rem; line-height: 1.35; }
.item { line-height: 1.45; }

.microdata { display: none; }

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

footer {
    margin-top: clamp(5rem, 12vh, 8rem);
    padding: 1.5rem 0 3rem;
    border-top: 1px solid var(--ink);
    background: none;
    color: var(--ink-2);
    text-align: left;
    font-family: var(--sans);
    font-size: 0.8125rem;
    line-height: 1.6;
}
footer p { margin: 0 0 0.35rem; }
footer a { color: var(--ink); }

/* ---------- Phones ---------- */

@media (max-width: 48em) {

    header h1 { font-size: 13.4vw; } /* spans the measure */

    #nav-main {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 0.5rem;
    }

    nav { display: none; }

    #mobile-nav {
        display: block;
        margin: 0 0 2rem;
        padding: 0;
        background: none;
        color: var(--ink);
        font-family: var(--sans);
        font-size: 1rem;
        text-transform: none;
    }

    #mobile-nav label {
        display: block;
        margin: 0;
        padding: 0.6rem 0;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 600;
    }

    #mobile-nav .section { border-top: 1px solid var(--hairline); }

    #mobile-nav a {
        margin: 0;
        padding: 0.3rem 0 0.3rem 1rem;
        color: var(--ink);
        text-decoration: none;
    }
    #mobile-nav a:hover { color: var(--oxide); background: none; }

    /* Open/close mechanics, unchanged from 2023 */
    #mobile-nav input { display: none; }
    .section, .section div { display: none; }
    #menu:checked ~ div { display: block; }
    #mobile-nav input:checked ~ div { display: flex; flex-flow: column; }

    main h3 { font-size: clamp(1.875rem, 8vw, 2.5rem); }

    .year-item { grid-template-columns: 3.75rem minmax(0, 1fr); column-gap: 1rem; }
}

@media print {
    nav, #mobile-nav { display: none; }
    header::after { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
