:root {
    --bg: #2d142c;
    --surface: #351c34;
    --raised: #46233f;
    --line: #66405b;
    --ink: #fff4ed;
    --muted: #d6b8c9;
    --accent: #ff9d90;
    --blue: #ee4540;
    --mint: #d0e4c0;
    --cranberry: #c72c41;
    --wine: #801336;
    --berry: #510a32;
    --gold: #ffd694;
    --page: 1200px;
    --mobile-nav-height: 66px;
    font-family: Manrope, 'Segoe UI', sans-serif;
}
body { background: var(--bg); }
.topbar { max-width: var(--page); height: 78px; margin: auto; padding: 0 28px; border: 0; }
.brand { gap: 10px; min-width: auto; letter-spacing: -.065em; }
.brand img { flex: 0 0 auto; }
.topbar nav { gap: 26px; }
.top-link { color: var(--muted); }
.top-link:hover, .top-link[aria-current] { color: var(--ink); }
.button, .search-form button {
    background: var(--blue);
    color: #210e20;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
}
.button:hover, .search-form button:hover { background: #ff7767; color: #210e20; }
.home-main { max-width: var(--page); margin: auto; padding: 10px 28px 62px; }
.winter-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 335px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, .58fr);
    align-items: center;
    border: 1px solid #a55261;
    border-radius: 26px;
    background: radial-gradient(ellipse at 78% 106%, #c72c41 0%, transparent 61%), linear-gradient(115deg, var(--berry), var(--wine));
}
.winter-copy { z-index: 1; padding: 48px 0 44px 56px; }
.winter-copy h1 { margin: 0 0 15px; font-size: clamp(2.65rem, 5.2vw, 4.35rem); font-weight: 800; letter-spacing: -.072em; line-height: 1.03; }
.winter-copy > p { margin-bottom: 24px; color: #ffe0e0; }
.hero-search { max-width: 530px; box-shadow: 0 9px 24px #2d142c4d; background: #2d142c; border-color: #e18b91; }
.hero-search input::placeholder { color: var(--muted); }
.hero-category, .section-text-link { text-decoration: underline; text-underline-offset: 3px; }
.hero-category { display: inline-block; margin-top: 14px; color: #fff0e8; font-size: .875rem; font-weight: 750; }
.section-text-link { color: var(--accent); }
.holiday-lights { position: absolute; z-index: 2; pointer-events: none; width: min(56%, 580px); right: -12px; top: -13px; height: 38px; padding: 13px 18px 0; display: flex; justify-content: space-between; border-bottom: 1px solid #ffd69475; border-radius: 0 0 48% 47%; transform: rotate(-3deg); }
.holiday-lights i { position: relative; top: calc(10px + var(--drop)); width: 7px; height: 11px; border-radius: 65% 65% 55% 55%; color: var(--gold); background: currentColor; box-shadow: 0 0 9px currentColor; }
.holiday-lights i:nth-child(3n + 2) { color: #ff9b8d; }
.holiday-lights i:nth-child(3n + 3) { color: #fff4ed; }
.holiday-art { width: 100%; height: 100%; min-height: 285px; display: grid; place-items: center; position: relative; pointer-events: none; }
.holiday-art::before { content: ''; position: absolute; width: 80%; aspect-ratio: 1.28; background: radial-gradient(ellipse, #ffad685e, transparent 68%); }
.snow-specks { position: absolute; inset: 12% 9%; background: radial-gradient(circle at 8% 40%, #ffe3ca 0 1px, transparent 2.5px), radial-gradient(circle at 23% 54%, #ffe3ca 0 1.5px, transparent 3px), radial-gradient(circle at 17% 26%, #ffe3ca 0 2px, transparent 3px), radial-gradient(circle at 78% 22%, #ffe3ca 0 1.5px, transparent 3px), radial-gradient(circle at 92% 53%, #ffe3ca 0 2px, transparent 3px), radial-gradient(circle at 84% 67%, #ffe3ca 0 1.5px, transparent 2.5px), radial-gradient(circle at 72% 80%, #ffe3ca 0 1px, transparent 2px); opacity: .8; }
.tree { position: relative; width: 218px; height: 245px; margin-top: 17px; transform: rotate(5deg); filter: drop-shadow(0 15px 20px #350a2b76); }
.tree-branch, .tree-trunk, .tree-star { position: absolute; left: 50%; transform: translateX(-50%); }
.tree-branch { clip-path: polygon(50% 0, 64% 30%, 76% 51%, 72% 52%, 88% 76%, 84% 77%, 100% 96%, 73% 100%, 50% 96%, 27% 100%, 0 96%, 16% 77%, 12% 76%, 28% 52%, 24% 51%, 36% 30%); background: linear-gradient(108deg, #ffa388, var(--blue) 48%, var(--cranberry) 51%, #8c1940 100%); height: 112px; }
.branch-bottom { width: 209px; top: 101px; }
.branch-middle { width: 165px; top: 65px; }
.branch-top { width: 116px; height: 105px; top: 32px; }
.tree-trunk { width: 22px; height: 32px; bottom: 16px; border-radius: 3px; background: #5a1337; }
.tree-star { width: 52px; height: 52px; top: -7px; background: linear-gradient(110deg, #fff6d2, #ffb864); clip-path: polygon(50% 0, 61% 35%, 98% 36%, 69% 59%, 79% 96%, 50% 75%, 21% 96%, 31% 59%, 2% 36%, 39% 35%); z-index: 2; }
.tree-chain { position: absolute; height: 35px; border-bottom: 4px dotted #ffd694; border-radius: 0 0 50% 60%; transform: rotate(-12deg); }
.chain-upper { width: 65px; left: 74px; top: 67px; }
.chain-middle { width: 116px; left: 50px; top: 111px; }
.chain-lower { width: 152px; left: 33px; top: 153px; }
.tree-bauble { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #ffe7d3; box-shadow: 0 0 8px #ffe7d388; }
.bauble-one { top: 108px; left: 121px; }
.bauble-two { top: 145px; left: 68px; }
.bauble-three { top: 166px; left: 138px; }
.home-section { margin-top: 36px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.section-heading h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); font-weight: 800; margin: 0; }
.section-heading > a { font-size: .875rem; font-weight: 750; color: var(--accent); }
.section-heading > a:hover { text-decoration: underline; }
.section-heading > a span { margin-left: 5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.home-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.topic-tile { display: flex; align-items: center; gap: 11px; padding: 10px 13px; min-height: 58px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.topic-tile:hover, .channel-card:hover { border-color: var(--accent); background: var(--raised); }
.topic-tile strong { font-size: .9rem; overflow-wrap: anywhere; }
.topic-tile small { color: var(--muted); margin-left: auto; font-size: .8125rem; }
.tile-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 auto; background: #6b273d; color: #ffb4a3; border-radius: 9px; }
.tile-icon svg, .topic-icon svg { width: 20px; height: 20px; display: block; }
.home-main .channel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.channel-card { border-color: var(--line); padding: 0; }
.channel-card-link { display: flex; flex: 1; flex-direction: column; padding: 15px 14px 0; border-radius: inherit; }
.card-top { justify-content: flex-start; gap: 12px; margin: 0; }
.card-top .avatar { width: 68px; height: 68px; flex: 0 0 68px; border-radius: 14px; }
.avatar-fallback { color: #ffe0d8; background: var(--wine); }
.card-title { min-width: 0; }
.channel-card h3 { font-size: .97rem; line-height: 1.28; min-height: 0; margin: 0 0 2px; overflow-wrap: anywhere; }
.channel-card-link:is(:hover, :focus-visible) h3 { color: var(--accent); }
.channel-handle { color: var(--muted); font-size: .8125rem; }
.card-description { line-height: 1.45; height: 2.9em; -webkit-line-clamp: 2; margin: 11px 0 12px; font-size: .875rem; }
.card-bottom { border-color: var(--line); min-height: 44px; }
.card-bottom .card-subscribers { color: var(--muted); font-size: .8125rem; flex-wrap: nowrap; white-space: nowrap; }
.card-bottom svg { color: var(--muted); }
.card-bottom .category-label { display: block; width: fit-content; background: #5a273e; color: #ffddd7; font-size: .8125rem; }
.submission-strip { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.submission-strip h2 { margin: 0 0 8px; }
.submission-strip p { margin: 0; }
.directory-layout { max-width: var(--page); grid-template-columns: 225px minmax(0, 1fr); border-top: 1px solid var(--line); }
.topic-nav a.selected { background: var(--wine); color: var(--ink); }
.directory-main, .page-shell { padding-bottom: 54px; }
.page-shell { max-width: var(--page); }
.detail-main > .avatar {
    width: clamp(120px, 14vw, 152px);
    height: auto;
    aspect-ratio: 1;
    border-radius: 28px;
}
.detail-main > .avatar-fallback { font-size: 3rem; }
.sidebar-note a, .text-link, .discovery-strip a, .check-label a { color: var(--accent); }
.search-form, .submission-form input:not([type=checkbox]), .submission-form textarea, .submission-form select { border-color: var(--line); }
.search-form > svg, .search-form input::placeholder { color: var(--muted); }
.faq { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 22px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary span { display: none; }
.faq details p { margin: 9px 0 0; }
.site-footer { border-top: 1px solid var(--line); max-width: var(--page); margin: auto; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 14px 32px; flex-wrap: wrap; }
.footer-id { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.site-footer small { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .875rem; color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.mobile-bottom-nav { display: none; }
@media (max-width: 1000px) {
    .home-main .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .winter-copy { padding-left: 36px; }
}
@media (max-width: 800px) {
    html { scroll-padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px)); }
    body { padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px)); }
    .mobile-bottom-nav {
        display: grid;
        position: fixed;
        z-index: 20;
        inset: auto 0 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: var(--mobile-nav-height);
        padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px));
        background: var(--bg);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 24px #200c1b55;
    }
    .mobile-bottom-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        min-height: 54px;
        border-radius: 10px;
        color: var(--muted);
        font-size: .875rem;
        font-weight: 700;
        outline-offset: -3px;
    }
    .mobile-bottom-nav a:hover, .mobile-bottom-nav a[aria-current="page"] { color: var(--accent); background: var(--surface); }
    .mobile-bottom-nav svg { width: 22px; height: 22px; stroke-linejoin: round; }
    .topbar, .home-main { padding-inline: 20px; }
    .top-link { display: inline; }
    .winter-hero { min-height: 300px; grid-template-columns: minmax(0, 1fr) minmax(145px, .45fr); }
    .winter-copy { padding: 44px 0 36px 25px; }
    .tree { transform: rotate(5deg) scale(.73); }
    .home-main .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer { padding-inline: 20px; }
}
@media (max-width: 570px) {
    .topbar { height: 66px; }
    .topbar, .home-main, .site-footer { padding-inline: 14px; }
    .brand img { width: 33px; height: 33px; }
    .topbar nav { gap: 13px; }
    .top-link { display: none; }
    .winter-hero { display: block; min-height: 0; border-radius: 18px; }
    .winter-copy { position: relative; padding: 42px 15px 20px; }
    .winter-copy h1 { font-size: clamp(2rem, 7.4vw, 2.7rem); }
    .winter-copy > p { max-width: 23ch; margin-bottom: 16px; font-size: .95rem; }
    .holiday-lights { width: 90%; }
    .holiday-art { position: absolute; inset: 103px 7px auto auto; width: 96px; height: 96px; min-height: 0; overflow: hidden; opacity: .58; }
    .holiday-art .tree { position: absolute; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%) rotate(7deg) scale(.34); }
    .home-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .topic-tile { padding: 8px; gap: 6px; }
    .topic-tile strong { font-size: .8rem; }
    .tile-icon { width: 27px; height: 27px; }
    .tile-icon svg { width: 17px; height: 17px; }
    .home-main .channel-grid { grid-template-columns: 1fr; gap: 8px; }
    .submission-strip { padding: 18px; }
}
