/* ==========================================================================
   Hype/Volume — Ghost theme
   Black ground. Green is the light. Purple is the night out.
   ========================================================================== */

:root {
    --hv-green: var(--ghost-accent-color, #22E400);
    --hv-purple: #8B3DFF;
    --hv-ink: #0B0B0A;
    --hv-ink-2: #151513;
    --hv-ink-3: #1A1917;
    --hv-line: #262522;
    --hv-line-2: #3A3934;
    --hv-text: #EDEBE4;
    --hv-text-2: #E2DFD6;
    --hv-text-3: #C9C6BC;
    --hv-muted: #A3A097;
    --hv-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
    --hv-wordmark: 'Archivo', 'Arial Black', sans-serif;
    --hv-serif: 'Newsreader', Georgia, serif;
    --hv-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
    --hv-max: 1280px;
}

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

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

body {
    margin: 0;
    background: var(--hv-ink);
    color: var(--hv-text);
    font-family: var(--hv-serif);
    font-size: 18px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--hv-text); }
a:hover { color: var(--hv-green); }

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

.hv-skip {
    position: absolute; left: -9999px; top: 8px;
    background: var(--hv-green); color: var(--hv-ink);
    padding: 10px 14px; font-family: var(--hv-mono); z-index: 100;
}
.hv-skip:focus { left: 8px; }

.hv-wrap {
    max-width: var(--hv-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.hv-green { color: var(--hv-green); }
.hv-muted { color: var(--hv-muted); }

/* ---------- Type ---------- */

.hv-display {
    margin: 0;
    font-family: var(--hv-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: 0.005em;
}
.hv-display a { text-decoration: none; }
.hv-display,
.hv-card-title,
.hv-pick-title,
.hv-content h2,
.hv-content h3 {
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    text-wrap: balance;
    max-width: 100%;
}
.hv-display-hero { font-size: clamp(38px, 11vw, 128px); line-height: 0.92; }
.hv-display-article { font-size: clamp(38px, 12vw, 140px); line-height: 0.92; }
.hv-display-xl { font-size: clamp(34px, 9vw, 88px); }
.hv-display-lg { font-size: clamp(32px, 8vw, 72px); }
.hv-display-md { font-size: clamp(36px, 4vw, 48px); }

.hv-kicker, .hv-mono, .hv-meta, .hv-label {
    margin: 0;
    font-family: var(--hv-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hv-meta { color: var(--hv-muted); letter-spacing: 0.08em; }
.hv-meta-rule { border-top: 1px solid var(--hv-line); padding-top: 18px; }
.hv-label { font-size: 12px; color: var(--hv-muted); }

.hv-lede { margin: 0; font-size: 22px; line-height: 1.45; color: var(--hv-text-3); max-width: 600px; }
.hv-lede-lg { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.4; max-width: 760px; }

/* ---------- Buttons ---------- */

.hv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 14px 22px;
    border: 0;
    font-family: var(--hv-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}
.hv-btn-green { background: var(--hv-green); color: var(--hv-ink); }
.hv-btn-green:hover { background: var(--hv-text); color: var(--hv-ink); }
.hv-btn-dark { background: var(--hv-ink); color: var(--hv-text); padding: 18px 28px; }
.hv-btn-dark:hover { background: var(--hv-green); color: var(--hv-ink); }
.hv-btn-outline { border: 1px solid var(--hv-text); background: transparent; color: var(--hv-text); align-self: flex-start; }
.hv-btn-outline:hover { border-color: var(--hv-green); color: var(--hv-green); }

/* ---------- Header ---------- */

.hv-header { border-bottom: 1px solid var(--hv-line); }
.hv-header-inner {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hv-wordmark {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    color: #FFFFFF;
    font-family: var(--hv-wordmark);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.01em;
}
.hv-wordmark:hover { color: #FFFFFF; }
.hv-wordmark-bar { display: block; height: 6px; background: var(--hv-purple); }

.hv-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    font-family: var(--hv-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hv-nav .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hv-nav a { text-decoration: none; }
.hv-nav .nav-current a { color: var(--hv-green); }
.hv-nav .hv-btn { font-size: 13px; padding: 12px 18px; }

/* ---------- Homepage lead ---------- */

.hv-lead {
    padding-top: 56px;
    padding-bottom: 72px;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-end;
}
.hv-lead-text {
    flex: 1 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hv-lead-img {
    flex: 1 1 480px;
    min-width: 0;
    border: 1px solid #2E2D29;
    background: var(--hv-ink-3);
}
.hv-lead-img img { width: 100%; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; }

/* ---------- Volume meter ---------- */

.hv-meter {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 56px;
}
.hv-meter span { flex: 1 1 0; background: #2E2D29; }
.hv-meter span.p { background: var(--hv-purple); }
.hv-meter span.g { background: var(--hv-green); }

/* ---------- Sections ---------- */

.hv-section { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.hv-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.hv-more:not(:has(.hv-card)) { display: none; }

/* Turn It Up */
.hv-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.hv-pick { border-top: 3px solid var(--hv-green); padding-top: 20px; }
.hv-pick a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.hv-pick-title { margin: 0; font-family: var(--hv-display); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; }
.hv-pick-text { margin: 0; font-size: 19px; line-height: 1.5; color: var(--hv-text-3); }
.hv-pick a:hover .hv-pick-title { color: var(--hv-green); }

/* Cards */
.hv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; }
.hv-card-link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.hv-card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #2E2D29; }
.hv-card-title { margin: 0; font-family: var(--hv-display); font-weight: 400; font-size: 34px; line-height: 0.98; text-transform: uppercase; }
.hv-card-excerpt { margin: 0; font-size: 19px; line-height: 1.5; color: var(--hv-text-3); }
.hv-card-link:hover .hv-card-title { color: var(--hv-green); }

/* Archive headers */
.hv-archive-head { padding-top: 72px; padding-bottom: 16px; display: flex; flex-direction: column; gap: 20px; }
.hv-error { padding-bottom: 120px; }

/* ---------- Event band (purple) ---------- */

.hv-event { background: var(--hv-purple); color: #FFFFFF; }
.hv-event-inner {
    padding-top: 64px;
    padding-bottom: 64px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}
.hv-event-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hv-event .hv-kicker { font-weight: 500; letter-spacing: 0.14em; }
.hv-event-blurb { margin: 0; font-size: 21px; line-height: 1.45; max-width: 600px; }
.hv-event .hv-mono { font-size: 14px; letter-spacing: 0.06em; }

/* ---------- Event cards (several events at once) ---------- */

.hv-events { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 32px; }
.hv-event-page { margin-top: 32px; }
.hv-event .hv-link-more { color: #FFFFFF; }
.hv-event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.hv-event-card { background: var(--hv-ink); border: 1px solid rgba(255,255,255,0.25); }
.hv-event-card a { display: flex; flex-direction: column; gap: 12px; padding: 0 0 22px; text-decoration: none; color: var(--hv-text); }
.hv-event-card a > :not(img) { margin-left: 22px; margin-right: 22px; }
.hv-event-card a > :first-child:not(img) { margin-top: 22px; }
.hv-event-card-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hv-event-card .hv-mono { color: var(--hv-green); letter-spacing: 0.08em; }
.hv-event-card-title { margin: 0; font-family: var(--hv-display); font-weight: 400; font-size: 32px; line-height: 0.98; text-transform: uppercase; overflow-wrap: break-word; }
.hv-event-card .hv-event-card-cta { color: var(--hv-text); }
.hv-event-card a:hover .hv-event-card-title { color: var(--hv-green); }

/* ---------- Section chips ---------- */

.hv-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hv-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--hv-line-2);
    font-family: var(--hv-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}
.hv-chip:hover { border-color: var(--hv-green); }
.page-template .hv-chip-on,
.paged .hv-chip-on,
body:not(.tag-template) .hv-chip-on { background: var(--hv-green); border-color: var(--hv-green); color: var(--hv-ink); }

.hv-link-more { text-decoration: none; color: var(--hv-green); }

/* ---------- Subscribe ---------- */

.hv-subscribe {
    padding-top: 88px;
    padding-bottom: 88px;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-end;
}
.hv-subscribe-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hv-form { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hv-form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hv-form input {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 52px;
    background: var(--hv-ink-2);
    color: var(--hv-text);
    border: 1px solid var(--hv-line-2);
    padding: 14px 16px;
    font-family: var(--hv-mono);
    font-size: 15px;
}
.hv-form input::placeholder { color: #8E8B82; }
.hv-form .hv-btn { min-height: 52px; font-size: 15px; padding: 14px 24px; }
.hv-form-msg { display: none; margin: 6px 0 0; font-family: var(--hv-mono); font-size: 14px; }
.hv-form.success .hv-form-success { display: block; color: var(--hv-green); }
.hv-form.error .hv-form-error { display: block; color: #FF8A7A; }
.hv-form.loading .hv-btn { opacity: 0.6; }

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

.hv-footer { border-top: 1px solid var(--hv-line); }
.hv-footer-inner {
    padding-top: 40px;
    padding-bottom: 56px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
}
.hv-footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.hv-lockup {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    align-self: flex-start;
    text-decoration: none;
    font-family: var(--hv-wordmark);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 40px;
    line-height: 0.95;
    letter-spacing: -0.01em;
}
.hv-lockup-top { color: #FFFFFF; }
.hv-lockup-bottom { color: var(--hv-green); }
.hv-lockup-bar { display: block; height: 10px; background: var(--hv-purple); }
.hv-footer-tagline { margin: 0; font-size: 18px; line-height: 1.5; color: var(--hv-muted); }
.hv-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--hv-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--hv-muted);
}
.hv-footer-meta a { text-decoration: none; color: var(--hv-text); }
.hv-footer-meta .nav { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Pagination ---------- */

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 0 24px;
    font-family: var(--hv-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hv-muted);
}
.pagination a { text-decoration: none; color: var(--hv-green); }

/* ---------- Article ---------- */

.hv-article-head {
    max-width: 1040px;
    margin: 0 auto;
    padding: 72px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hv-article-image { margin-top: 0; margin-bottom: 0; }
.hv-article-image img { width: 100%; max-height: 80vh; object-fit: cover; border: 1px solid #2E2D29; }
.hv-article-image figcaption,
.hv-content figcaption {
    margin-top: 10px;
    font-family: var(--hv-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hv-muted);
}

.hv-content {
    max-width: 748px; /* 700px of text + gutters */
    margin: 0 auto;
    padding: 64px 24px 72px;
    font-size: 21px;
    line-height: 1.7;
    color: var(--hv-text-2);
}
.hv-content-page { padding-top: 40px; }
.hv-content > * { margin-top: 0; margin-bottom: 0; }
.hv-content > * + * { margin-top: 28px; }

/* Drop cap on the first paragraph of a dispatch */
.post-template .hv-content > p:first-child::first-letter {
    float: left;
    font-family: var(--hv-display);
    font-size: 76px;
    line-height: 0.8;
    padding: 8px 12px 0 0;
    color: var(--hv-green);
}

.hv-content a { color: var(--hv-text); text-decoration-color: var(--hv-green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hv-content a:hover { color: var(--hv-green); }

.hv-content h2, .hv-content h3, .hv-content h4 {
    font-family: var(--hv-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
    color: var(--hv-text);
}
.hv-content h2 { font-size: 40px; margin-top: 56px; }
.hv-content h3 { font-size: 30px; margin-top: 44px; }
.hv-content h4 { font-size: 24px; margin-top: 36px; }

.hv-content ul, .hv-content ol { padding-left: 1.2em; }
.hv-content li + li { margin-top: 8px; }
.hv-content li::marker { color: var(--hv-green); }

.hv-content hr {
    border: 0;
    height: 6px;
    width: 72px;
    background: var(--hv-purple);
    margin: 56px 0;
}

/* Standard quote card */
.hv-content blockquote:not(.kg-blockquote-alt) {
    margin-left: 0;
    margin-right: 0;
    padding: 0 0 0 28px;
    border-left: 3px solid var(--hv-purple);
    font-style: italic;
    color: var(--hv-text);
}

/* Alternative quote card = the big pull quote */
.hv-content blockquote.kg-blockquote-alt {
    margin: 44px 0;
    padding: 32px 0;
    border-top: 3px solid var(--hv-green);
    border-bottom: 1px solid var(--hv-line);
    font-family: var(--hv-display);
    font-style: normal;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.08;
    text-align: left;
    text-transform: uppercase;
    color: var(--hv-text);
}

/* Callout card = the "Turn It Up" details box */
.hv-content .kg-callout-card {
    margin: 44px 0;
    padding: 28px;
    background: transparent;
    border: 2px solid var(--hv-green);
    border-radius: 0;
    color: var(--hv-text);
}
.hv-content .kg-callout-emoji { display: none; }
.hv-content .kg-callout-text { font-size: 19px; line-height: 1.6; }
.hv-content .kg-callout-text strong {
    font-family: var(--hv-mono);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hv-muted);
}

.hv-content figure { margin-left: 0; margin-right: 0; }
.hv-content figure img { border: 1px solid #2E2D29; }

/* Ghost editor card widths (required) */
.hv-content .kg-width-wide {
    position: relative;
    width: min(1040px, calc(100vw - 48px));
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
}
.hv-content .kg-width-full {
    position: relative;
    width: 100vw;
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
}
.hv-content .kg-width-full img { border-left: 0; border-right: 0; }

.hv-content .kg-bookmark-card a { text-decoration: none; }
.hv-content .kg-button-card .kg-btn,
.hv-content .kg-product-card .kg-product-card-button {
    background: var(--hv-green);
    color: var(--hv-ink);
    border-radius: 0;
    font-family: var(--hv-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
    body { font-size: 17px; }
    .hv-content { font-size: 19px; padding-top: 48px; }
    .hv-lead { padding-top: 40px; gap: 32px; }
    .hv-section { padding-top: 56px; padding-bottom: 56px; }
    .hv-subscribe { padding-top: 64px; padding-bottom: 64px; }
    .hv-nav { gap: 10px 18px; }
    .hv-nav .nav { gap: 10px 18px; }
}
