/* ============================================================================
   explore_v1.css — VARIANT 1 · BRUTALIST INDEX

   Philosophy: Wim Crouwel × Massimo Vignelli MoMA catalog × Karl Gerstner.
   Extreme reduction. Two colors. No images. Type-as-architecture.
   All-caps monospace navigation. Times serif body. NO accent color.
   ========================================================================== */


/* ─────────────── reset & root ─────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body.b {
    background: #ffffff;
    color: #000000;
    overflow-x: hidden;
    /* The only two colors allowed in this variant. No yellow. No grey except
       as opacity on the foreground (used VERY sparingly for type-rule meta). */
    font-family: "Times New Roman", Times, "Liberation Serif", serif;
    font-size: 17px;
    line-height: 1.45;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

/* ─────────────── monospace utility ─────────────── */
.b a,
.b-brand, .b-nav a,
.b-folio, .b-mast-counts, .b-mast-jump a,
.b-row-num, .b-row-meta, .b-row-spine, .b-spine-kind,
.b-colo-list dt, .b-colo-list dd {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ─────────────── links — only state is an underline; no color shift ─────────────── */
.b a {
    color: #000;
    text-decoration: none;
}
.b a:hover,
.b a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.b a:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* ─────────────── topbar — caps mono, sharp rule ─────────────── */
.b-top {
    border-bottom: 2px solid #000;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}
.b-top-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.b-brand {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-decoration: none;
}
.b-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.b-nav a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.b-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* ─────────────── main column — single, no max-width games ─────────────── */
.b-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─────────────── block — each block is a viewport-height stanza ─────────────── */
.b-block {
    min-height: 100svh;
    min-height: 100vh; /* fallback for browsers without svh */
    padding: 56px 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-top: 2px solid #000;
}
.b-block:first-of-type {
    border-top: 0;
    padding-top: 32px;
}

/* ─────────────── folio — page-number-style figures in the margin ─────────────── */
.b-folio {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 48px;
}
.b-folio-num {
    font-size: 13px;
    font-weight: 700;
}
.b-folio-label { }
.b-folio-rule {
    flex: 1;
    height: 2px;
    background: #000;
    display: inline-block;
}
.b-folio-meta {
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 1.6px;
}

/* ─────────────── masthead ─────────────── */
.b-mast {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: clamp(48px, 14vw, 132px);
    line-height: 0.92;
    letter-spacing: -0.02em;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 36px;
    /* Hyphenation only at our explicit &shy; points; never auto-break elsewhere. */
    overflow-wrap: break-word;
}
.b-mast-blurb {
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(17px, 2.4vw, 22px);
    line-height: 1.45;
    max-width: 32ch;
    margin: 0 0 56px;
}

/* ─────────────── masthead counts — page-number-style figures ─────────────── */
.b-mast-counts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 32px;
    margin-bottom: 56px;
    max-width: 520px;
}
.b-count {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 2px solid #000;
    padding-top: 8px;
}
.b-count-num {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}
.b-count-label {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

/* ─────────────── masthead jump links ─────────────── */
.b-mast-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* ─────────────── section headers — typeset huge, ranged-left ─────────────── */
.b-section-h {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: clamp(40px, 11vw, 96px);
    line-height: 0.9;
    letter-spacing: -0.02em;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 28px;
}

.b-section-blurb {
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.5;
    max-width: 36ch;
    margin: 0 0 48px;
}

/* ─────────────── lists — numbered, dashed rule per row ─────────────── */
.b-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 2px solid #000;
}
.b-row {
    border-bottom: 1px solid #000;
}
.b-row-link {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 14px 0;
    text-decoration: none;
    color: #000;
}
.b-row-link:hover,
.b-row-link:focus-visible {
    text-decoration: none; /* override the body-link rule — we want a custom hover */
}
.b-row-link:hover .b-row-name,
.b-row-link:focus-visible .b-row-name {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.b-row-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-align: right;
    padding-top: 8px;
}
.b-row-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.b-row-name {
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(20px, 3.4vw, 30px);
    line-height: 1.15;
    font-weight: 400;
}
.b-row-meta {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* themes — multi-line spine inside the row */
.b-row-theme,
.b-row-period {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 16px 0;
}
.b-row-theme .b-row-num,
.b-row-period .b-row-num {
    padding-top: 10px;
}
.b-row-spine {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}
.b-spine-link {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 6px 0;
    border-top: 1px dashed #000;
    text-decoration: none;
}
.b-spine-link:hover,
.b-spine-link:focus-visible {
    text-decoration: none;
}
.b-spine-link:hover .b-spine-title,
.b-spine-link:focus-visible .b-spine-title {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}
.b-spine-kind {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.b-spine-title {
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.3;
}
.b-spine-empty {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 6px 0;
    border-top: 1px dashed #000;
}

/* ─────────────── bar — the only non-text element ─────────────── */
.b-bar {
    width: 56px;
    height: 56px;
    background: #000;
    margin-top: auto;
    /* Pushed to the bottom of the block by the parent's flex column. */
}
/* On the masthead the bar reads as a colophon ink-block; smaller. */
.b-masthead .b-bar {
    width: 40px;
    height: 40px;
}

/* ─────────────── colophon ─────────────── */
.b-colophon { }
.b-colo-list {
    border-top: 2px solid #000;
    margin: 0 0 40px;
}
.b-colo-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #000;
}
.b-colo-list dt {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.b-colo-list dd {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.b-colo-list a {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}
.b-end {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: #000;
    margin-top: auto;
}

/* ─────────────── mobile — single column, tighter padding ─────────────── */
@media (max-width: 640px) {
    .b-main { padding: 0 14px; }
    .b-top-inner { padding: 10px 14px; gap: 10px; }
    .b-nav { gap: 10px; }
    .b-nav a { font-size: 10.5px; letter-spacing: 1.2px; }

    .b-block {
        padding: 40px 0 56px;
    }
    .b-block:first-of-type { padding-top: 24px; }

    .b-folio { margin-bottom: 32px; gap: 10px; }

    .b-mast { margin-bottom: 28px; }
    .b-mast-blurb { margin-bottom: 36px; }
    .b-mast-counts {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 18px;
        margin-bottom: 36px;
    }
    .b-count-num { font-size: 36px; }

    .b-section-h { margin-bottom: 20px; }
    .b-section-blurb { margin-bottom: 36px; }

    .b-row-link,
    .b-row-theme,
    .b-row-period {
        grid-template-columns: 48px 1fr;
        gap: 12px;
    }
    .b-row-num { font-size: 10.5px; }
    .b-row-name { font-size: 22px; }

    .b-spine-link {
        grid-template-columns: 28px 1fr;
        gap: 8px;
    }
    .b-spine-title { font-size: 15px; }

    .b-colo-row {
        grid-template-columns: 72px 1fr;
        gap: 12px;
    }

    .b-bar { width: 44px; height: 44px; }
    .b-masthead .b-bar { width: 32px; height: 32px; }
}

/* ─────────────── reduced motion — nothing animates anyway ─────────────── */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
}
