:root {
    --coal-950: #0f0a07;
    --coal-900: #17100c;
    --coal-850: #211712;
    --tobacco-900: #2a1a11;
    --tobacco-800: #42281a;
    --tobacco-700: #6a4228;
    --tobacco-600: #8b5632;
    --gold: #d6b06a;
    --cream: #f6ede2;
    --ink-soft: rgba(246, 237, 226, 0.86);
    --ink-muted: rgba(246, 237, 226, 0.64);
    --panel: rgba(24, 16, 11, 0.68);
    --panel-strong: rgba(17, 12, 8, 0.84);
    --line: rgba(214, 176, 106, 0.22);
    --line-strong: rgba(214, 176, 106, 0.34);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.24);
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    position: relative;
    min-height: 100vh;
    color: var(--cream);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--coal-950);
}

/* Background layer */
.bg-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--coal-950);
}

.bg-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left bottom;
    display: block;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(14, 10, 7, 0.10), rgba(14, 10, 7, 0.34)),
        radial-gradient(circle at 8% 92%, rgba(255, 112, 32, 0.22), transparent 16%),
        radial-gradient(circle at 30% 70%, rgba(226, 103, 34, 0.08), transparent 18%),
        radial-gradient(circle at 72% 16%, rgba(214, 176, 106, 0.08), transparent 22%),
        radial-gradient(circle at 58% 26%, rgba(255, 255, 255, 0.045), transparent 20%),
        linear-gradient(90deg, rgba(10, 7, 5, 0.24) 0%, rgba(10, 7, 5, 0.08) 28%, rgba(10, 7, 5, 0.03) 52%, rgba(10, 7, 5, 0.18) 100%);
}

.site-layer {
    position: relative;
    z-index: 1;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover,
a:focus {
    color: #f1c97d;
    text-decoration: none;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: var(--tobacco-800);
    color: var(--cream);
    border: 1px solid var(--gold);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 1rem;
    color: var(--cream);
}

.site-nav {
    background: rgba(15, 10, 7, 0.52) !important;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(9px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.navbar-brand,
.nav-link {
    color: var(--cream) !important;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-link {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--gold) !important;
}

.brand-mark {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

/* Full-width top image */
.summit-band {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
    line-height: 0;
    z-index: 1;
}

.summit-image {
    display: block;
    width: 100%;
    height: auto;
}

.clean-time-bar {
    padding: 0;
    margin: 0;
}

.clean-time-bar-top {
    padding: 0;
    margin: 0;
}

.clean-time-bar-top .container {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.status-band {
    padding: 0.25rem 0 0.625rem;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.status-row .clean-time-chip {
    margin: 0;
}

.status-row .identity-badge--ukraine {
    margin: 0;
}

.status-welcome {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(15, 10, 7, 0.66);
    border: 1px solid rgba(214, 176, 106, 0.22);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    color: var(--cream);
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    font-size: 0.92rem;
}

.hero {
    padding: 0 0 0.625rem;
}

.hero-panel {
    border-radius: 1.6rem;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(35, 22, 14, 0.82), rgba(18, 12, 8, 0.72)),
        rgba(24, 16, 11, 0.72);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    margin-top: 0;
}

.hero-copy {
    padding: 2.35rem 2.25rem;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.identity-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.identity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(214, 176, 106, 0.10);
    border: 1px solid rgba(214, 176, 106, 0.18);
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.identity-badge--ukraine {
    background:
        linear-gradient(
            180deg,
            rgba(0, 87, 183, 0.24) 0%,
            rgba(0, 87, 183, 0.14) 49%,
            rgba(255, 215, 0, 0.22) 50%,
            rgba(255, 215, 0, 0.14) 100%
        ),
        rgba(214, 176, 106, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.28);
    color: #fff7d6;
}

.identity-badge--ukraine .badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1rem;
    flex: 0 0 auto;
}

.identity-badge--ukraine .badge-text {
    display: inline-block;
    line-height: 1.1;
    white-space: nowrap;
}

.display-headline {
    font-size: clamp(1.35rem, 2vw, 2.1rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    text-wrap: balance;
    color: #fff4e7;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.hero-standfirst {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--gold);
    font-weight: 700;
    max-width: 42rem;
    margin-bottom: 0.65rem;
}

.lead-copy {
    max-width: 44rem;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.6;
}

.hero-meta {
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.hero-tagline {
    color: var(--gold);
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero-image-wrap {
    min-height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 1.75rem 1.75rem 0 1rem;
    background:
        radial-gradient(circle at top right, rgba(214, 176, 106, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.24));
}

.hero-image {
    max-height: 540px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.34));
}

.clean-time-chip,
.clean-time-bar form.counter,
.clean-time-bar .counter,
.clean-time-bar .clean-time {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(15, 10, 7, 0.66);
    border: 1px solid rgba(214, 176, 106, 0.22);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    max-width: 100%;
    flex-wrap: wrap;
    color: var(--cream);
}

.clean-time-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    font-weight: 800;
}

.clean-time-value {
    font-weight: 700;
    color: var(--cream);
    white-space: normal;
    line-height: 1.25;
}

.section-pad {
    padding: 0.625rem 0;
}

.section-first {
    padding-top: 0.625rem;
}

.section-title {
    font-size: clamp(1.85rem, 3vw, 2.8rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: #fff2e4;
    text-wrap: balance;
}

.section-title.alt {
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--ink-muted);
    max-width: 50rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-subtitle.alt {
    max-width: 44rem;
}

.content-card,
.feature-panel,
.stack-card {
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.content-card {
    height: 100%;
    border-radius: 1.25rem;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
        var(--panel);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.content-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.card-kicker,
.stack-label,
.tao-kicker,
.tao-book {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.card-title {
    font-size: 1.45rem;
    line-height: 1.18;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff1e2;
}

.card-copy {
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 1rem;
}

.feature-panel {
    border-radius: 1.4rem;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(30, 19, 12, 0.76), rgba(16, 11, 8, 0.72)),
        var(--panel);
}

.feature-meme {
    width: 30%;
    height: auto;
    display: inline-block;
    margin: 1rem;
    vertical-align: top;
    border-radius: 1rem;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.25);
}

.feature-quote {
    font-size: 1.35rem;
    line-height: 1.4;
    color: var(--gold);
    font-style: italic;
    max-width: 40rem;
}

.stack-card {
    height: 100%;
    border-radius: 1.2rem;
    padding: 1rem;
    background: rgba(19, 13, 9, 0.76);
}

.stack-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stack-list li + li {
    margin-top: 0.8rem;
}

.stack-list a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
}

.stack-list a:hover,
.stack-list a:focus {
    color: var(--gold);
}

.btn-tobacco {
    --bs-btn-bg: #8c5630;
    --bs-btn-border-color: #8c5630;
    --bs-btn-hover-bg: #a16439;
    --bs-btn-hover-border-color: #a16439;
    --bs-btn-color: #fff;
    --bs-btn-padding-x: 1.05rem;
    --bs-btn-padding-y: 0.7rem;
    --bs-btn-font-weight: 700;
    box-shadow: 0 10px 24px rgba(140, 86, 48, 0.18);
}

.btn-outline-tobacco {
    --bs-btn-color: var(--gold);
    --bs-btn-border-color: rgba(214, 176, 106, 0.42);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(214, 176, 106, 0.12);
    --bs-btn-hover-border-color: rgba(214, 176, 106, 0.66);
    --bs-btn-padding-x: 1.05rem;
    --bs-btn-padding-y: 0.7rem;
    --bs-btn-font-weight: 700;
}

/* Tao band */
.tao-band {
    padding: 0 0 0.25rem;
}

#random-tao.tao-card,
.tao-chapter-block {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(214, 176, 106, 0.24);
    background:
        linear-gradient(180deg, rgba(26, 18, 12, 0.88), rgba(14, 10, 7, 0.90)),
        rgba(20, 14, 10, 0.86);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(14px);
    color: var(--cream);
}

.tao-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.15rem 1.1rem;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
        rgba(10, 7, 5, 0.30);
    border: 1px solid rgba(214, 176, 106, 0.14);
    text-align: left;
}

.tao-kicker {
    margin: 0 0 0.5rem;
}

.tao-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.28;
    font-weight: 700;
    color: #fff2e4;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.tao-attrib {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tao-attrib span {
    color: var(--ink-soft);
}

.tao-content {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.85rem;
    min-width: 0;
}

.tao-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.9rem;
    margin: 0;
    padding: 0 0.15rem;
}

.tao-book {
    margin: 0;
    font-size: 0.72rem;
}

.tao-chapter-form {
    margin: 0;
}

.tao-link-button {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: var(--cream);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(214, 176, 106, 0.45);
    text-underline-offset: 0.14em;
}

.tao-link-button:hover,
.tao-link-button:focus {
    color: var(--gold);
    text-decoration-color: var(--gold);
}

.tao-link-button:focus {
    outline: none;
}

.tao-excerpt {
    display: flex;
    align-items: center;
    min-width: 0;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(22, 16, 12, 0.88), rgba(16, 12, 9, 0.92));
    color: #f6ede2;
    padding: 1.15rem 1.25rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 22px rgba(0, 0, 0, 0.14);
}

.tao-excerpt-chapter {
    display: block;
    padding-bottom: 0.35rem;
}

.tao-text {
    margin: 0;
    color: #f6ede2;
    font-size: 1.04rem;
    line-height: 1.75;
    text-wrap: pretty;
}

.tao-excerpt-chapter .tao-text {
    margin-bottom: 0.8rem;
}

.tao-verse {
    color: var(--gold);
    font-weight: 700;
    margin-right: 0.3rem;
}

/* Footer */
footer,
.site-footer {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0.25rem;
}

footer.section-pad,
.site-footer.section-pad {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.footer-panel,
footer .footer-panel {
    border-radius: 1.3rem;
    padding: 2rem 1.5rem;
    background:
        linear-gradient(180deg, rgba(28, 18, 12, 0.88), rgba(14, 10, 7, 0.90)),
        var(--panel-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-copy,
.footer-meta {
    color: var(--ink-muted);
}

.footer-meta a,
.footer-copy a {
    color: var(--cream);
    text-decoration: none;
}

.footer-meta a:hover,
.footer-copy a:hover {
    color: var(--gold);
}

.weather-card {
    display: block;
    height: 100%;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        rgba(53, 33, 21, 0.76);
    border: 1px solid rgba(214, 176, 106, 0.20);
    color: var(--cream);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.weather-card:hover {
    border-color: rgba(214, 176, 106, 0.34);
}

.weather-label {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.73rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.weather-city {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.weather-list li {
    color: var(--ink-soft);
    margin-bottom: 0.22rem;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    gap: 1rem;
}

.footer-link-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.footer-badges img {
    max-height: 36px;
    width: auto;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-copy {
        padding: 1.7rem;
    }

    .hero-image {
        max-height: 390px;
    }

    #random-tao.tao-card,
    .tao-chapter-block {
        grid-template-columns: 1fr;
    }

    .tao-head {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .display-headline {
        line-height: 1.02;
    }

    .hero-image {
        max-height: 300px;
    }

    .clean-time-chip,
    .clean-time-bar form.counter,
    .clean-time-bar .counter,
    .clean-time-bar .clean-time {
        width: 100%;
        border-radius: 1rem;
    }

    .status-row {
        align-items: stretch;
    }

    .status-row .clean-time-chip,
    .status-row .identity-badge--ukraine {
        width: 100%;
        justify-content: center;
    }

    .status-row .status-welcome {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.85rem;
        overflow-x: auto;
    }

    .identity-row {
        gap: 0.5rem;
    }

    .identity-badge--ukraine .badge-text {
        white-space: normal;
    }

    .tao-band {
        padding-bottom: 0.25rem;
    }

    #random-tao.tao-card,
    .tao-chapter-block {
        padding: 0.9rem;
        border-radius: 1rem;
        gap: 0.85rem;
    }

    .tao-content {
        gap: 0.7rem;
    }

    .tao-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }

    .tao-excerpt {
        padding: 0.95rem 1rem;
    }

    .tao-text {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .feature-meme {
        width: 45%;
        margin: 0.5rem;
    }
}