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

:root {
    --bg: #111111;
    --surface: #1a1a1a;
    --text: #e8e4dc;
    --muted: #888888;
    --border: rgba(255, 255, 255, 0.08);
}

html,
body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
}

body {
    overflow-x: hidden;
}

.page-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 3rem 2rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-size: 0.75rem;
}

h1 {
    margin-bottom: 2.5rem;
    color: var(--text);
    font-family: "EB Garamond", serif;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1;
}

.download-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin: 1.4rem 0 2rem;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    color: rgba(232, 228, 220, 0.78);
    font-family: "DM Mono", monospace;
    font-size: 0.72rem;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.download-link:hover {
    border-color: rgba(255, 255, 255, 0.36);
    color: var(--text);
}

.download-link svg {
    width: 0.95rem;
    height: 0.95rem;
}

.stack-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    border-radius: 10px 10px 0 0;
}

.stack-row {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-width: 0;
}

.row-1 { z-index: 10; }
.row-2 { z-index: 9; }
.row-3 { z-index: 8; }
.row-4 { z-index: 7; }
.row-5 { z-index: 6; }
.row-6 { z-index: 5; }
.row-7 { z-index: 4; }
.row-8 { z-index: 3; }

.tab,
.pill {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex: 0 0 auto;
    border-radius: 8px 8px 0 0;
    padding: 0 1.35rem;
    font-family: "EB Garamond", serif;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: filter 0.2s;
}

.stack-row:hover .tab,
.stack-row:hover .pill {
    filter: brightness(1.12);
}

.wide { min-width: 340px; }
.large { min-width: 300px; }
.medium { min-width: 260px; }
.compact { min-width: 200px; }

.mail-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    opacity: 0.9;
}

.fill {
    flex: 1 1 auto;
    height: 48px;
    min-width: 0;
}

.rounded-top {
    border-radius: 0 10px 0 0;
}

.band-maroon { background: #7a1e42; color: #f0e8e0; }
.fill-maroon { background: #6b1030; }
.band-orange { background: #e05828; color: #f5e8dc; }
.fill-orange-short { flex: 0.2; background: #d04820; }
.fill-maroon-tail { flex: 0.4; background: #7a0e38; }
.band-indigo { background: #3a28a0; color: #d8d4f8; }
.band-black { border: 1px solid #333333; background: #111111; color: #e0dcd8; }
.band-teal { background: #1a7a5a; color: #c8f0e0; }
.band-red { background: #c82818; color: #f8dcd8; }
.fill-teal { background: #1a6a4a; }
.band-blue { background: #2a4ab0; color: #d0d8f8; }
.band-purple { background: #5a1e70; color: #e0d0f0; }
.fill-red-dark { background: #b82010; }
.band-red-soft { background: #c03020; color: #f5e0dc; }
.fill-red-short { flex: 0.1; background: #b01c0e; }
.fill-red-tail { flex: 0.3; background: #c03020; }
.band-yellow { background: #e8c820; color: #14100a; font-weight: 500; }
.band-blue-mid { background: #2b4ea8; color: #d0d8f8; }
.band-pink { background: #c43068; color: #fce0ec; }
.fill-blue-tail { flex: 0.5; background: #2244b8; }
.band-blue-dark { background: #1a3db0; color: #c8d4f8; }

.meta-strip {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    border-radius: 0 0 6px 6px;
    padding: 1.4rem 1.8rem 2rem;
    background: #1a3db0;
    color: rgba(255, 255, 255, 0.58);
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    line-height: 1.7;
}

.meta-notes {
    font-size: 0.68rem;
}

.page-bottom {
    height: 4rem;
}

@media (max-width: 860px) {
    .page-shell {
        padding: 2rem 1rem 0;
    }
}

@media (max-width: 720px) {
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.7rem;
    }

    h1 {
        margin-bottom: 1rem;
        font-size: clamp(2.5rem, 14vw, 3.5rem);
    }

    .download-row {
        margin: 1rem 0 1.5rem;
    }

    .download-link {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 92px;
    }

    .stack-rows {
        gap: 0.45rem;
        border-radius: 0;
    }

    .stack-row {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 0.35rem;
    }

    .tab,
    .pill {
        width: 100%;
        min-width: 0;
        height: 46px;
        justify-content: flex-start;
        border-radius: 8px;
        padding: 0 1rem;
        font-size: 1rem;
    }

    .fill {
        display: none;
    }

    .meta-strip {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 0.4rem;
        border-radius: 8px;
        padding: 1rem;
    }

    .meta-strip br {
        display: none;
    }
}

@media (max-width: 420px) {
}
