/*
 * Hub Report front page: Direction A, "Wood Type".
 * Brand sheet: https://claude.ai/artifact/LQpuf21e4U8pjjdLU5Bcir
 */

:root {
    --hub-red: #C8102E;
    --ink: #111111;
    --paper: #ffffff;
    --slug: #6B6B6B;  /* sources and meta: a step lighter than ink, still 5.3:1 on white */
    --link-hover: #B30F17;

    --display: 'Anton', 'Impact', sans-serif;
    --text: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;

    --page-max: 1280px;
    --gutter: 32px;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover, a:focus-visible { color: var(--link-hover); text-decoration: underline; }

/* Edition strip: black for AM, Hub Red for PM -- the one AM/PM difference */
.edition-strip {
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.pm-edition .edition-strip { background: var(--hub-red); }
.edition-strip-inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 10px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
}
.edition-strip .weather {
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
}

.page {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 var(--gutter) 48px;
}

/* Masthead */
.masthead {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 24px 0 16px;
    border-bottom: 10px solid var(--ink);
}
.wordmark {
    --wm: 92px;  /* slab type size; the BOSTON tab is sized from it so it stays fitted */
    margin: 0;
    display: flex;
    align-items: stretch;
    font-family: var(--display);
    font-weight: 400;
    line-height: 1;
}
.wordmark-slab {
    background: var(--hub-red);
    color: var(--paper);
    font-size: var(--wm);
    padding: 10px 22px 6px;
}
.wordmark-tab {
    background: var(--ink);
    color: var(--paper);
    /* BOSTON fills ~87% of the slab height: Anton's six letters span ~2.8em */
    font-size: calc(var(--wm) * 0.364);
    line-height: 0.92;
    padding: 0 0.1em;
    writing-mode: vertical-rl;
    text-align: center;
}
.tagline {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
    text-align: right;
}

/* Shared small type */
.label {
    margin: 0;
    color: var(--hub-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.source {
    color: var(--slug);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.snark {
    margin: 0;
    color: var(--hub-red);
    font-size: 16px;
    font-style: italic;
    font-weight: 600;
}

/* Lead */
.lead {
    padding: 28px 0 32px;
    border-bottom: 4px solid var(--ink);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lead-photo {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    display: block;
    margin-bottom: 6px;
    background: #eeeeee;
}
.lead-headline {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(48px, 7vw, 104px);
    line-height: 0.92;
    text-transform: uppercase;
}
.lead > .source { margin: 0; font-size: 13px; }
.lead-links {
    list-style: none;
    margin: 6px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--ink);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 32px;
}
.lead-links li { font-size: 18px; font-weight: 500; line-height: 1.3; }

.message {
    margin: 40px 0;
    font-family: var(--display);
    font-size: 36px;
    text-transform: uppercase;
}

/* Clusters */
.columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 28px;
}
.column {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 34px;
    min-width: 0;
}
.column:first-child { padding-left: 0; }
.column:last-child { padding-right: 0; }
.column + .column { border-left: 1px solid var(--ink); }

.cluster { display: flex; flex-direction: column; gap: 10px; }
.cluster-lede {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: 30px;
    line-height: 1.02;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.cluster-links {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--ink);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cluster-links li { font-size: 17px; font-weight: 500; line-height: 1.3; }
.cluster-links .source, .lead-links .source { white-space: nowrap; }

/* Footer */
.footer {
    margin-top: 48px;
    padding-top: 14px;
    border-top: 10px solid var(--ink);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.footer-mark { display: flex; align-items: center; gap: 12px; }
.mark {
    background: var(--hub-red);
    color: var(--paper);
    font-family: var(--display);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    padding: 4px 8px 2px;
}

.debug {
    margin: 48px 0 0;
    color: var(--slug);
    font-size: 12px;
    text-align: center;
}

/* Tablet: two columns */
@media (max-width: 1000px) {
    .wordmark { --wm: 72px; }
    .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .column:nth-child(3) {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 4px solid var(--ink);
        margin-top: 34px;
        padding: 28px 0 0;
    }
    .column:nth-child(2) { padding-right: 0; }
}

/* Phone: one column */
@media (max-width: 680px) {
    :root { --gutter: 16px; }
    .edition-strip { font-size: 11px; }
    .masthead { padding: 14px 0 12px; border-bottom-width: 8px; }
    .wordmark { --wm: 50px; }
    .wordmark-slab { padding: 6px 12px 3px; }
    .tagline { display: none; }
    .lead { padding: 18px 0 20px; }
    .lead-headline { font-size: 42px; }
    .lead-links { grid-template-columns: minmax(0, 1fr); }
    .lead-links li { font-size: 17px; }
    .columns { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
    .column, .column:nth-child(2), .column:nth-child(3) {
        padding: 0;
        border-left: 0;
        border-top: 0;
        margin-top: 0;
        gap: 0;
    }
    .cluster { padding: 22px 0; border-bottom: 1px solid var(--ink); }
    .cluster-lede { font-size: 28px; }
    .cluster-links { border-top: 0; padding-top: 4px; }
    .footer { margin-top: 24px; border-top-width: 8px; }
}
