/* explore.css — photo-rich brutalist hub.
 *
 * Constraint: black on white, 1px borders, monospace chrome, Times serif body,
 * no shadows, no rounded corners, no gradients, no transitions. The visual
 * richness lives in the place photographs, the typographic hierarchy, and the
 * inline mini-constellation SVG. Hover convention is the standard #fffacd.
 */

/* The hub takes a wider canvas than the standard 760px text column. We override
 * the inherited `main { max-width }` only on this page. */
main { max-width: 1080px; }

/* ─────────────── HERO ─────────────── */
.ex-hero {
    margin: 6px 0 32px;
    border: 1px solid #000;
    background: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    min-height: 280px;
}
.ex-hero-text {
    padding: 26px 28px 22px;
    border-right: 1px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ex-hero-title {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 18px;
    color: #000;
    /* h1 base style adds border-top; we override here. */
    border: 0;
    padding: 0;
}
.ex-hero-sub {
    font-family: "Times New Roman", Times, serif;
    font-size: 19px;
    font-style: italic;
    line-height: 1.5;
    color: #222;
    margin: 0 0 20px;
    max-width: 44ch;
}
.ex-hero-meta {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12px;
    color: #555;
    padding-top: 12px;
    border-top: 1px solid #000;
    margin: 0;
}
.ex-hero-meta a { color: #000; }

.ex-hero-graph {
    padding: 14px 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ex-hero-graph svg {
    width: 100%;
    height: auto;
    max-height: 252px;
}

/* ─────────────── shared section labels ─────────────── */
.ex-section { margin-top: 40px; }
.ex-section-label {
    /* Reset h2 base styles (which set border-top, uppercase). We keep the
       brutalist uppercase, but allow this lighter version. */
    font-family: ui-monospace, Menlo, monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0 0 8px;
    padding: 10px 0;
    border-top: 2px solid #000;
    border-bottom: 1px solid #000;
}
.ex-section-blurb {
    font-family: "Times New Roman", Times, serif;
    font-size: 15.5px;
    line-height: 1.55;
    color: #333;
    margin: 12px 0 18px;
    max-width: 70ch;
}

/* ─────────────── WHERE TO BEGIN — 3 cards ─────────────── */
.ex-begin { margin-top: 32px; }
.ex-begin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
}
.ex-begin-card {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    background: #fff;
    color: #000;
    text-decoration: none;
    min-height: 300px;
}
.ex-begin-card:hover { background: #fffacd; }
.ex-card-visual {
    height: 160px;
    border-bottom: 1px solid #000;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ex-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ex-card-monogram {
    background: #fff;
}
.ex-monogram-text {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -2px;
    color: #000;
    line-height: 1;
}
.ex-card-graphmini svg {
    width: 100%;
    height: 100%;
    max-height: 158px;
    object-fit: contain;
}
.ex-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.ex-card-kicker {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #555;
}
.ex-card-title {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}
.ex-card-blurb {
    font-family: "Times New Roman", Times, serif;
    font-size: 14.5px;
    line-height: 1.5;
    color: #222;
    margin: 0;
    flex: 1;
}
.ex-card-cta {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #000;
    padding-top: 8px;
    border-top: 1px solid #000;
    margin-top: 6px;
}

/* ─────────────── BY PLACE — photo grid ─────────────── */
.ex-places-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
}
.ex-place-card {
    display: block;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    background: #fff;
    color: #000;
    text-decoration: none;
    overflow: hidden;
}
.ex-place-card:hover { background: #fffacd; }
.ex-place-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-bottom: 1px solid #000;
}
.ex-place-img-blank {
    background: #fff;
}
.ex-place-img-placeholder {
    /* Wrapper around the inline SVG placeholder. Same 4:3 lock as the
       photo variant so the grid stays uniform. */
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid #000;
    overflow: hidden;
    background: #fff;
}
.ex-place-img-placeholder svg {
    display: block;
    width: 100%;
    height: 100%;
}
.ex-place-body {
    padding: 10px 12px 14px;
}
.ex-place-name {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #000;
}
.ex-place-meta {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 10.5px;
    color: #555;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}
.ex-place-region {
    font-family: "Times New Roman", Times, serif;
    font-size: 13.5px;
    color: #333;
    line-height: 1.45;
}

/* ─────────────── BY PERSON — monogram grid ─────────────── */
.ex-figures-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
}
.ex-figure-card {
    display: flex;
    gap: 0;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    background: #fff;
    color: #000;
    text-decoration: none;
    min-height: 130px;
}
.ex-figure-card:hover { background: #fffacd; }
.ex-figure-monogram {
    flex: 0 0 100px;
    border-right: 1px solid #000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ex-figure-monogram .ex-monogram-text {
    font-size: 38px;
    letter-spacing: -1px;
}
.ex-figure-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.ex-figure-name {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 13.5px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}
.ex-figure-cat {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}
.ex-figure-bio {
    font-family: "Times New Roman", Times, serif;
    font-size: 13px;
    line-height: 1.45;
    color: #222;
    margin: 0;
}

/* ─────────────── BY THREAD — reading paths ─────────────── */
.ex-threads {
    border-top: 1px solid #000;
}
.ex-thread-strip {
    padding: 14px 0;
    border-bottom: 1px solid #000;
}
.ex-thread-head {
    margin-bottom: 8px;
}
.ex-thread-label {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #000;
}
.ex-thread-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ex-thumb {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 180px;
    min-height: 80px;
    padding: 8px 10px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    text-decoration: none;
}
.ex-thumb:hover { background: #fffacd; }
.ex-thumb-kicker {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    margin-bottom: 4px;
}
.ex-thumb-title {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12.5px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

/* ─────────────── BY TIMELINE ─────────────── */
.ex-timeline { border-top: 1px solid #000; }
.ex-timeline-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #000;
}
.ex-timeline-label {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12.5px;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.2px;
}
.ex-timeline-blurb {
    font-family: "Times New Roman", Times, serif;
    font-size: 14.5px;
    line-height: 1.55;
    color: #222;
}

/* ─────────────── tablet ─────────────── */
@media (max-width: 1024px) {
    main { max-width: 100%; padding-left: 18px; padding-right: 18px; }
    .ex-places-grid,
    .ex-figures-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ex-begin-grid {
        grid-template-columns: 1fr;
    }
    .ex-begin-card { min-height: 0; }
}

/* ─────────────── mobile ─────────────── */
@media (max-width: 640px) {
    .ex-hero {
        grid-template-columns: 1fr;
    }
    .ex-hero-text { border-right: 0; border-bottom: 1px solid #000; padding: 20px 18px; }
    .ex-hero-title { font-size: 26px; }
    .ex-hero-sub { font-size: 17px; }
    .ex-hero-graph { padding: 12px; }
    .ex-hero-graph svg { max-height: 160px; }

    .ex-places-grid,
    .ex-figures-grid,
    .ex-begin-grid {
        grid-template-columns: 1fr;
        border-left: 0;
    }
    .ex-place-card,
    .ex-figure-card,
    .ex-begin-card {
        border-right: 0;
    }
    .ex-timeline-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .ex-thumb { width: 100%; }
    .ex-figure-monogram { flex: 0 0 78px; }
    .ex-figure-monogram .ex-monogram-text { font-size: 30px; }
}

/* ─────────────── design experiments list (link-only, no thumbnails) ─────────────── */
.ex-design-list {
    list-style: none;
    counter-reset: dx;
    padding: 0;
    margin: 18px 0 0;
    border-top: 1px solid #000;
}
.ex-design-list li {
    counter-increment: dx;
    border-bottom: 1px solid #000;
    padding: 0;
}
.ex-design-list li a {
    display: block;
    padding: 14px 16px 14px 56px;
    color: inherit;
    text-decoration: none;
    position: relative;
    line-height: 1.5;
    font-size: 14.5px;
}
.ex-design-list li a::before {
    content: counter(dx, decimal-leading-zero);
    position: absolute;
    left: 16px;
    top: 16px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #555;
}
.ex-design-list li a:hover { background: #fffacd; }
.ex-design-list strong {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 13px;
    font-weight: 700;
    margin-right: 6px;
}
.ex-design-list em {
    font-style: italic;
    color: #444;
    margin-right: 4px;
}
.ex-design-list code {
    background: #f0f0f0;
    padding: 0 4px;
    font-size: 0.9em;
}

/* ─────────────── documented-record grid ───────────────
 *
 * Added 2026-06 alongside the 30-place / 30-case / 30-figure corpus
 * expansion. Each bucket is a list of /g/{key} entries grouped by
 * glossary category (incident / wave / phenomenon / figure / …).
 * Brutalist three-column responsive grid; on mobile collapses to one
 * column.
 */
.ex-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.ex-record-bucket {
    border: 1px solid #000;
    padding: 12px 14px 14px;
    background: #fff;
}
.ex-record-cat {
    margin: 0 0 4px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #000;
    border: 0;
    padding: 0;
}
.ex-record-count {
    font-weight: 400;
    color: #777;
}
.ex-record-blurb {
    margin: 0 0 10px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 11px;
    color: #666;
}
.ex-record-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 260px;
    overflow-y: auto;
    border-top: 1px dashed #aaa;
    padding-top: 6px;
}
.ex-record-list li {
    margin: 0 0 1px;
    font-family: Times, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.35;
}
.ex-record-list li a {
    display: block;
    padding: 3px 6px;
    color: #000;
    text-decoration: none;
    border-left: 2px solid transparent;
}
.ex-record-list li a:hover {
    background: #fffacd;
    border-left-color: #000;
}
