.banner {
    position: relative;
    display: grid;
    min-height: min(720px, calc(100dvh - 76px));
    place-items: center;
    margin-bottom: 64px;
    overflow: hidden;
    background-color: var(--bg-base);
    background-image: radial-gradient(var(--bg-dot) 2.5px, transparent 2.5px);
    background-size: 22px 22px;
}



.banner-content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 22px;
    width: min(calc(100% - 32px), 940px);
    padding: 48px 20px;
    text-align: center;
}

.banner-logo {
    width: clamp(96px, 13vw, 168px);
}

.banner-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

.banner-kicker {
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--py-yellow);
    box-shadow: 0 var(--brick-depth) 0 color-mix(in srgb, var(--py-yellow) 68%, #000);
    font-family: var(--font-pixel);
    font-size: 0.7em;
}

/* Banner-reference title: per-letter colors sampled from the banner (P=red
   Y=yellow C=blue O=cream N=purple / C=purple H=blue I=yellow N=red A=cream),
   "2026" beveled gray. Black 8-direction pixel outline per Frost's final call
   (an outline-free variant was tried and rejected). */
.banner-title {
    display: grid;
    justify-items: center;
    gap: 0.1em;
    margin: 0;
    font-family: var(--font-pixel);
    font-weight: 400;
    font-synthesis: none;
    font-size: clamp(1.8em, 6vw, 4.4em);
    line-height: 1.3;
}

.banner-title-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.06em;
}

/* Black pixel outline restored per Frost (2026-07-02) — per-letter banner
   colors stay; 8-direction ink outline + soft drop. */
.banner-title .lt {
    text-shadow:
        3px 0 0 var(--ink), -3px 0 0 var(--ink),
        0 3px 0 var(--ink), 0 -3px 0 var(--ink),
        3px 3px 0 var(--ink), -3px 3px 0 var(--ink),
        3px -3px 0 var(--ink), -3px -3px 0 var(--ink),
        7px 8px 0 rgba(26, 26, 26, 0.25);
}

.banner-title .lt-gap { width: 0.5em; }
.banner-title .lt-red { color: var(--py-red); }
.banner-title .lt-yellow { color: var(--py-yellow); }
.banner-title .lt-blue { color: var(--py-blue); }
.banner-title .lt-cream { color: #f5dc85; }
.banner-title .lt-purple { color: var(--py-purple); }

.banner-title-year {
    color: #adb0b5;
    font-size: 0.82em;
    text-shadow:
        3px 0 0 var(--ink), -3px 0 0 var(--ink),
        0 3px 0 var(--ink), 0 -3px 0 var(--ink),
        3px 3px 0 var(--ink), -3px 3px 0 var(--ink),
        3px -3px 0 var(--ink), -3px -3px 0 var(--ink),
        5px 5px 0 rgba(26, 26, 26, 0.35);
}

.banner-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65em;
    margin: 0;
    padding: 10px 16px;
    border: 2px solid var(--ink);
    border-radius: 9px;
    background: var(--paper);
    box-shadow: 0 var(--brick-depth) 0 color-mix(in srgb, var(--paper) 68%, #000);
    color: var(--ink);
    font-family: var(--font-pixel);
    font-size: clamp(0.7em, 1.8vw, 0.9em);
    font-synthesis: none;
    line-height: 1.6;
}

.banner-meta-separator {
    width: 0.35em;
    height: 0.35em;
    flex: 0 0 auto;
    background: var(--py-red);
}

.pycon-site:lang(zh-hans) .banner-meta-venue {
    transform: translateY(-0.18em);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.cta-buttons > a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    --brick-color: var(--py-yellow);
    border: 0;
    border-radius: 9px;
    background: var(--brick-color);
    box-shadow: 0 var(--brick-depth) 0 color-mix(in srgb, var(--brick-color) 68%, #000);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.cta-buttons > a:nth-child(2n) { --brick-color: var(--py-blue); }
.cta-buttons > a:nth-child(3n) { --brick-color: var(--py-red); }

.cta-buttons > a:hover {
    box-shadow: 0 calc(var(--brick-depth) + 3px) 0 color-mix(in srgb, var(--brick-color) 68%, #000);
    color: var(--ink);
    transform: translate(2px, 2px);
}

.home-brick-wall {
    column-count: 1;
    width: min(calc(100% - 48px), 1080px);
    padding: 26px 0 80px;
}

.home-highlights {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1fr;
    gap: 22px;
    width: min(calc(100% - 48px), 1080px);
    margin: 0 auto;
    padding: 32px 0 12px;
}

.home-highlight {
    --brick-color: var(--py-yellow);
    --brick-on: var(--ink);
    position: relative;
    min-height: 190px;
    padding: 30px 24px 24px;
    border-radius: 12px;
    background: var(--brick-color);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 38%);
    box-shadow: 0 var(--brick-depth) 0 color-mix(in srgb, var(--brick-color) 68%, #000);
    color: var(--brick-on);
}

.home-highlight::before,
.home-highlight::after {
    position: absolute;
    left: 22px;
    right: 22px;
    background-repeat: repeat-x;
    background-size: 30px 18px;
    content: "";
    pointer-events: none;
}

.home-highlight::before {
    top: -9px;
    height: 18px;
    background-image: radial-gradient(circle at 9px center, color-mix(in srgb, var(--brick-color) 82%, #000) 0 7px, transparent 7px);
}

.home-highlight::after {
    top: -9px;
    height: 9px;
    background-image: radial-gradient(circle at 9px 4px, rgba(255, 255, 255, 0.35) 0 5px, transparent 5px);
}

/* Hover feedback via deeper plastic edge only — transform would fight the
   stagger offsets on .highlight-purple/.highlight-red. Text keeps --brick-on. */
.home-highlight:hover {
    box-shadow: 0 calc(var(--brick-depth) + 3px) 0 color-mix(in srgb, var(--brick-color) 62%, #000);
}

.home-highlight h2 { color: inherit; font-size: 1.35em; }
.home-highlight p { margin: 0; }
.highlight-label { margin-bottom: 10px !important; font-family: var(--font-pixel); font-size: 0.62em; }
.home-highlight { text-decoration: none; }
.highlight-purple { --brick-color: var(--py-purple); --brick-on: var(--brick-on-dark); transform: translateY(16px); }
.highlight-blue { --brick-color: var(--py-blue); }
.highlight-red { --brick-color: var(--py-red); --brick-on: var(--brick-on-light); transform: translateY(28px); }
.highlight-yellow { --brick-color: var(--py-yellow); }
.highlight-green { --brick-color: var(--py-green); }

.home-brick-wall .home-brick {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin: 0 0 30px;
}


.brick-yellow { --brick-color: var(--py-yellow); --brick-on: var(--brick-on-light); }
.brick-blue { --brick-color: var(--py-blue); --brick-on: var(--brick-on-light); }
.brick-red { --brick-color: var(--py-red); --brick-on: var(--brick-on-light); }
.brick-green { --brick-color: var(--py-green); --brick-on: var(--brick-on-light); }
.brick-purple { --brick-color: var(--py-purple); --brick-on: var(--brick-on-dark); }

.home-brick .card-body {
    padding: 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
}

.home-speakers {
    width: min(calc(100% - 48px), 1080px);
    margin: 0 auto;
    padding: 12px 0 88px;
}

.home-speakers-header {
    width: min(100%, 720px);
    margin: 0 auto 38px;
    padding: 26px 28px 22px;
    border: var(--border-ink);
    border-radius: 10px;
    border-bottom: calc(var(--brick-depth) + 2px) solid color-mix(in srgb, var(--py-yellow) 70%, #000);
    background: var(--py-yellow);
    text-align: center;
}

.home-speakers-header h2 {
    margin: 0 0 10px;
    font-family: var(--font-pixel);
    font-size: clamp(1.2em, 3vw, 1.8em);
    font-weight: 400;
    font-synthesis: none;
}

.home-speakers-header p {
    margin: 0;
}

.home-speakers-kicker {
    margin-bottom: 10px !important;
    font-family: var(--font-pixel);
    font-size: 0.58em;
    line-height: 1.7;
}

.home-speaker-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-speaker {
    --speaker-color: var(--py-yellow);
    position: relative;
    min-width: 0;
    padding: 14px;
    border-radius: 12px;
    border-bottom: 2px solid var(--ink);
    background: var(--speaker-color);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 38%);
    box-shadow: 0 var(--brick-depth) 0 color-mix(in srgb, var(--speaker-color) 68%, #000);
}

.home-speaker::before {
    position: absolute;
    top: -9px;
    left: 18px;
    right: 18px;
    height: 18px;
    background-image: radial-gradient(circle at 9px center, color-mix(in srgb, var(--speaker-color) 82%, #000) 0 7px, transparent 7px);
    background-repeat: repeat-x;
    background-size: 30px 18px;
    content: "";
    pointer-events: none;
}

.home-speaker-portrait {
    aspect-ratio: 1;
    overflow: hidden;
    border: var(--border-ink);
    border-radius: 9px;
    background: var(--paper-muted);
}

.home-speaker-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-speaker-info {
    min-height: 112px;
    margin-top: 12px;
    padding: 14px 12px 12px;
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink);
    text-align: center;
}

.home-speaker-info h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 1.15em;
}

.home-speaker-info p {
    margin: 7px 0 0;
    overflow-wrap: anywhere;
    color: var(--ink-soft);
    font-size: 0.88em;
    line-height: 1.5;
}

.speaker-yellow { --speaker-color: var(--py-yellow); }
.speaker-blue { --speaker-color: var(--py-blue); }
.speaker-red { --speaker-color: var(--py-red); }
.speaker-green { --speaker-color: var(--py-green); }
.speaker-purple { --speaker-color: var(--py-purple); }

@media (max-width: 900px) {
    .home-highlights { grid-template-columns: 1fr 1fr; }
    .home-highlight:last-child { grid-column: 1 / -1; transform: none; }
    .home-speaker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .banner {
        min-height: 520px;
        background-position: center;
    }

    .banner-title {
        gap: 0.28em;
        font-size: 1.45em;
    }


    .home-brick-wall { width: min(calc(100% - 28px), 640px); }

    .home-highlights { grid-template-columns: 1fr; width: min(calc(100% - 28px), 640px); }
    .highlight-purple,
    .highlight-red { transform: none; }

    .home-speakers {
        width: min(calc(100% - 28px), 640px);
        padding-bottom: 64px;
    }

    .home-speakers-header {
        margin-bottom: 30px;
        padding: 22px 18px 18px;
    }

    .home-speaker-grid { grid-template-columns: 1fr; }
    .home-speaker-info { min-height: 0; }
}
