/* ── /blog and /blog/<slug> ────────────────────────────────────────────────────
   Loaded only by blog.php and blog-post.php.

   v1.4 (Sep 27 2026): built from the same design language as /reserve, measured
   from the rendered page rather than guessed:
     - Inter throughout; headings 800 weight, -0.03em tracking, #1d1d1f
     - eyebrows: 0.82rem / 600 / uppercase / 0.12em / rgba(0,0,0,.4)
     - white cards: 22px radius, 0 4px 18px rgba(11,11,12,.06)
     - dark pill buttons (#1d1d1f, 999px)
     - 1320px content width, 3rem gutters; the blooms colour fields behind
   Layout follows hardware-brand journals (Teenage Engineering "now",
   Elgato): a large lead story with a big photo, a grid of image cards, and
   articles with a full-width photo and a wide text column.
   ─────────────────────────────────────────────────────────────────────────── */

body.page-blog {
    --bx-ink: #1d1d1f;
    --bx-body: #3a3a3c;
    --bx-muted: rgba(0, 0, 0, 0.5);
    --bx-faint: rgba(0, 0, 0, 0.4);
    --bx-accent: #FF4D14;
    --bx-card-shadow: 0 4px 18px rgba(11, 11, 12, 0.06);
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
}

.bx-page {
    position: relative;
    z-index: 1;
    padding: 7.5rem 0 5rem;
}

.bx-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 3rem;
    box-sizing: border-box;
}

.bx-eyebrow {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bx-faint);
    margin: 0 0 0.9rem;
}

.bx-eyebrow a { color: inherit; text-decoration: none; }
.bx-eyebrow a:hover { color: var(--bx-ink); }

.bx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    background: var(--bx-ink);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bx-btn--ghost {
    background: #fff;
    color: var(--bx-ink);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   INDEX
   ============================================================ */

.bx-head {
    max-width: 820px;
    margin: 0 0 2.75rem;
}

.bx-head__title {
    font-size: clamp(2.6rem, 5.2vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.02;
    color: var(--bx-ink);
    margin: 0 0 1rem;
}

.bx-head__sub {
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--bx-muted);
    margin: 0;
}

.bx-head__sub a { color: var(--bx-ink); text-decoration: underline; text-underline-offset: 2px; }

/* Lead story: big photo left, text right, one white card. */
.bx-lead {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--bx-card-shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bx-lead:hover,
.bx-card:hover {
    box-shadow: 0 10px 34px rgba(11, 11, 12, 0.1);
    transform: translateY(-2px);
}

.bx-lead:hover .bx-btn { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); }

.bx-lead__media {
    position: relative;
    min-height: 440px;
    background: #f5f5f7;
}

.bx-lead__media img,
.bx-card__media img,
.bp-hero img,
.bx-by img,
.bp-byline img {
    /* style.min.css fades images in via .loaded; do not depend on it here. */
    opacity: 1;
    animation: none;
}

/* Absolutely placed so a portrait photo cannot stretch the card: the text
   column sets the height, the photo fills it. */
.bx-lead__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bx-lead__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.25rem;
}

.bx-lead__title {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--bx-ink);
    margin: 0 0 1rem;
}

.bx-lead__dek {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--bx-muted);
    margin: 0 0 2rem;
}

.bx-lead__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.bx-by {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--bx-ink);
}

.bx-by img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.bx-more {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--bx-ink);
    margin: 4rem 0 1.5rem;
}

.bx-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bx-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--bx-card-shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bx-card__media { aspect-ratio: 3 / 2; background: #f5f5f7; }
.bx-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bx-card__body { padding: 1.5rem 1.6rem 1.75rem; }

.bx-card__title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--bx-ink);
    margin: 0 0 0.6rem;
}

.bx-card__dek {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--bx-muted);
    margin: 0;
}

.bx-empty {
    font-size: 1.05rem;
    color: var(--bx-muted);
}

/* ============================================================
   POST
   ============================================================ */

.bp {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 3rem;
    box-sizing: border-box;
}

.bp-head {
    max-width: 920px;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.bp-title {
    font-size: clamp(2.4rem, 5vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.04;
    color: var(--bx-ink);
    margin: 0 0 1.1rem;
}

.bp-dek {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.55;
    color: var(--bx-muted);
    margin: 0 auto 1.75rem;
    max-width: 44em;
}

.bp-byline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--bx-muted);
}

.bp-byline strong { color: var(--bx-ink); font-weight: 600; }

.bp-byline img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.bp-hero {
    margin: 0 0 2.5rem;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--bx-card-shadow);
    background: #f5f5f7;
}

/* Cropped to a wide banner: several images in /images are portrait
   (cali.jpg is 1920x2880) and would otherwise render as a very tall slab. */
.bp-hero img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 5;
    max-height: 320px;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}

/* Article + sidebar. With an event attached the post is two columns: the
   text (~800px) and a sticky event card with the map, so the page uses the
   full 1320px width instead of one narrow column in the middle. */
.bp-layout {
    max-width: 880px;
    margin: 0 auto;
}

.bp-layout--aside {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 4rem;
    align-items: start;
}

.bp-aside {
    position: sticky;
    top: 7rem;
    display: grid;
    gap: 1.25rem;
}

.bp-event {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    box-shadow: var(--bx-card-shadow);
    padding: 1.6rem 1.6rem 1.75rem;
}

.bp-event__list { margin: 0 0 1.4rem; }
.bp-event__list > div { padding: 0.8rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
.bp-event__list > div:first-child { padding-top: 0; }
.bp-event__list > div:last-child { border-bottom: 0; }
.bp-event__list dt {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bx-faint);
    margin: 0 0 0.25rem;
}
.bp-event__list dd {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--bx-ink);
}
.bp-event__sub { color: var(--bx-muted); font-size: 0.88rem; }
.bp-event__btn { width: 100%; box-sizing: border-box; }

.bp-map {
    position: relative;
    display: block;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--bx-card-shadow);
    background: #f5f5f7;
}
.bp-map img { display: block; width: 100%; height: auto; opacity: 1; animation: none; }
.bp-map__cta {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    color: var(--bx-ink);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.bp-map:hover .bp-map__cta { background: var(--bx-ink); color: #fff; }

/* In-article photo */
.bp-body .bp-figure { margin: 2em 0; }
.bp-body .bp-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--bx-card-shadow);
    opacity: 1;
    animation: none;
}
.bp-body .bp-figure figcaption {
    font-size: 0.88rem;
    color: var(--bx-muted);
    margin-top: 0.7rem;
}

.bp-body {
    font-size: 1.18rem;
    line-height: 1.75;
    color: var(--bx-body);
}

.bp-body > :first-child { margin-top: 0; }
.bp-body p { margin: 0 0 1.3em; }

.bp-body h2 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--bx-ink);
    margin: 2.2em 0 0.7em;
}

.bp-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--bx-ink);
    margin: 1.9em 0 0.45em;
}

.bp-body strong { color: var(--bx-ink); font-weight: 600; }

.bp-body a {
    color: var(--bx-ink);
    text-decoration: underline;
    text-decoration-color: var(--bx-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.bp-body a:hover { color: var(--bx-accent); }

.bp-body ul { margin: 0 0 1.3em; padding-left: 1.2em; }
.bp-body li { margin: 0 0 0.45em; }

/* Event details: a short list between two rules, no panel. */
.bp-body .bp-details {
    list-style: none;
    margin: 0 0 1.8em;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.bp-body .bp-details li { margin: 0 0 0.4em; }
.bp-body .bp-details li:last-child { margin-bottom: 0; }

.bp-body .bp-sign {
    font-weight: 600;
    color: var(--bx-ink);
    margin-top: 2em;
}

.bp-foot {
    margin: 3rem 0 0;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .bp-layout--aside { grid-template-columns: 1fr; gap: 2.5rem; }
    .bp-aside { position: static; grid-template-columns: 1fr 1fr; }
    .bx-lead { grid-template-columns: 1fr; }
    .bx-lead__media { min-height: 0; aspect-ratio: 16 / 10; }
    .bx-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .bp-aside { grid-template-columns: 1fr; }
    .bx-page { padding-top: 6rem; }
    .bx-wrap, .bp { padding: 0 1.1rem; }
    .bx-lead__body { padding: 1.75rem 1.5rem 2rem; }
    .bx-grid { grid-template-columns: 1fr; }
    .bp-hero img { aspect-ratio: 4 / 3; }
    .bp-body { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    .bx-lead, .bx-card, .bx-btn { transition: none; }
    .bx-lead:hover, .bx-card:hover { transform: none; }
}
