@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --ink: #171717;
    --paper: #f4f1ea;
    --paper-deep: #e9e5dc;
    --charcoal: #242424;
    --muted: #746f66;
    --line: rgba(23, 23, 23, .14);
    --signal: #e43d30;
    --sun: #f4bd2f;
    --leaf: #3c8c58;
    --social-icon: #f4bd2f;
    --social-icon-hover: #e43d30;
    --display: 'Space Grotesk', sans-serif;
    --body: 'DM Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.6;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0;
}

h2 {
    text-transform: uppercase;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.site-nav {
    background: var(--ink);
    border-bottom: 3px solid var(--signal);
    padding: .8rem 0;
}

.navbar-brand {
    font-size: 1rem;
    letter-spacing: .08em;
}

.navbar-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-right: .65rem;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, .35);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, .68);
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff;
}

.nav-main {
    gap: .35rem;
}

.nav-actions .nav-link {
    padding-right: 0;
}

.ticker-bar {
    background: var(--charcoal) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: .78rem;
}

.ticker-track {
    gap: 2rem;
    width: max-content;
    white-space: nowrap;
    animation: ticker-scroll 32s linear infinite;
    will-change: transform;
}

.ticker-viewport {
    overflow: hidden;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.ticker-track a:hover {
    color: var(--sun) !important;
}

.badge.bg-danger {
    background: var(--signal) !important;
}

.btn {
    border-radius: 2px;
    font-family: var(--display);
    font-weight: 700;
}

.btn-primary,
.btn-signal {
    background: var(--signal);
    border-color: var(--signal);
    color: #fff;
}

.btn-primary:hover,
.btn-signal:hover {
    background: #bd2d26;
    border-color: #bd2d26;
    color: #fff;
}

.btn-outline-primary {
    color: var(--signal);
    border-color: var(--signal);
}

.btn-outline-primary:hover {
    background: var(--signal);
    border-color: var(--signal);
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--ink);
    color: var(--ink);
    background: transparent;
    border-radius: 2px;
    padding: 10px 16px;
    font-family: var(--display);
    font-weight: 700;
}

.btn-outline:hover {
    background: var(--ink);
    color: #fff;
}

.section {
    padding: 72px 0;
}

.wrap {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.card,
.product-card,
.tier-card,
.summary-box,
.newsletter-box {
    border: 1px solid var(--line);
    border-radius: 2px;
    background: rgba(255, 255, 255, .48);
    box-shadow: 0 8px 24px rgba(23, 23, 23, .05);
}

.card {
    overflow: hidden;
}

.card-title,
.product-card h3,
.thread-row h3 {
    font-family: var(--display);
}

.card-body,
.product-card .body {
    padding: 1.25rem;
}

.card-img-top {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--paper-deep);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.product-card {
    overflow: hidden;
}

.product-card .thumb {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--paper-deep);
}

.product-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-row-product {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 220px;
}

.cart-product-image {
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper-deep);
    color: var(--sun);
    font: 700 1rem var(--display);
}

.cart-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: .25rem;
}

.qty-input {
    width: 4.5rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--line);
}

.summary-line>span:last-child {
    flex: 0 0 auto;
    font-weight: 700;
    text-align: right;
}

.summary-line.total {
    border-bottom: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.product-card .cat,
.tier-name,
.hero-eyebrow {
    color: var(--signal);
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .11em;
}

.product-card h3 {
    font-size: 1.15rem;
    margin: .45rem 0 1rem;
}

.price-tag {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 8px;
    background: var(--sun);
    font-family: var(--display);
    font-weight: 700;
}

.buy-row {
    display: flex;
    gap: .5rem;
}

.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.cat-pills a {
    border: 1px solid var(--line);
    padding: .45rem .8rem;
    text-decoration: none;
    font-size: .8rem;
}

.cat-pills a.active,
.cat-pills a:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.thread-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 0;
}

.thread-row h3 {
    margin: 0 0 .25rem;
    font-size: 1.08rem;
}

.forum-list {
    overflow: hidden;
}

.forum-thread {
    border-bottom: 1px solid var(--line);
    transition: background-color .2s ease;
}

.forum-thread:last-child {
    border-bottom: 0;
}

.forum-thread:hover {
    background: rgba(244, 189, 47, .12);
}

.forum-post-content {
    font-size: 1.06rem;
    line-height: 1.8;
    white-space: normal;
}

.forum-post-card {
    border-top: 4px solid var(--signal);
}

.avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--leaf);
    color: #fff;
    font-weight: 700;
}

.thread-meta,
.thread-stats,
.text-muted {
    color: var(--muted) !important;
    font-size: .82rem;
}

.thread-stats {
    text-align: right;
}

.thread-stats strong {
    display: block;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.25rem;
}

.pin {
    color: var(--signal);
    font-size: .68rem;
    margin-right: .5rem;
    letter-spacing: .08em;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tier-card {
    padding: 1.5rem;
}

.tier-card.featured {
    border-top: 4px solid var(--signal);
    transform: translateY(-8px);
}

.tier-price {
    font: 700 2rem var(--display);
    margin: .7rem 0 1rem;
}

.tier-price span {
    font: 500 .85rem var(--body);
    color: var(--muted);
}

.tier-card li {
    margin: .5rem 0;
}

.join-note {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--sun);
    background: var(--paper-deep);
}

.join-note a {
    color: var(--signal);
    font-weight: 700;
}

.donation-modal {
    border: 0;
    border-radius: 2px;
}

.donation-modal .modal-header {
    border-bottom: 1px solid var(--line);
}

.donation-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.donation-amounts label {
    border: 1px solid var(--line);
    padding: .55rem .8rem;
    cursor: pointer;
}

.donation-modal .input-group-text {
    background: var(--paper-deep);
    border-color: var(--line);
}

.donation-modal .form-text {
    color: var(--muted);
}

.donation-amounts label:has(input:checked) {
    border-color: var(--signal);
    background: rgba(228, 61, 48, .1);
}

.donation-amounts input {
    accent-color: var(--signal);
    margin-right: .35rem;
}

.newsletter-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--ink);
    color: #fff;
}

.newsletter-box .form-control {
    min-width: 0;
}

.newsletter-box .btn-primary {
    white-space: nowrap;
}

.field {
    flex: 1 1 240px;
}

.auth-shell {
    max-width: 480px;
}

.auth-card {
    background: rgba(255, 255, 255, .72);
}

.auth-switch {
    margin: 1.25rem 0 0;
    font-size: .875rem;
}

.auth-switch a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-demo {
    margin: .4rem 0 0;
    color: var(--muted);
    font-size: .75rem;
}

.order-success-shell {
    max-width: 820px;
}

.about-hero {
    padding: 6rem 0 5rem;
    background: var(--charcoal);
    color: #fff;
    border-bottom: 4px solid var(--signal);
}

.about-hero h1 {
    max-width: 760px;
}

.about-hero .lead {
    max-width: 640px;
    color: rgba(255, 255, 255, .72);
}

.about-pullquote {
    padding: 2rem;
    border-left: 4px solid var(--sun);
    background: var(--paper-deep);
}

.about-pullquote p {
    margin: 1rem 0 0;
    font: 700 1.4rem/1.35 var(--display);
}

.about-band {
    background: var(--paper-deep);
}

.about-join-card {
    border-top: 4px solid var(--signal);
}

.about-social-link {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .52);
    font-family: var(--display);
    font-weight: 700;
    text-decoration: none;
}

.about-social-link:hover {
    color: var(--signal);
    border-color: var(--signal);
}

.field label {
    display: block;
    font-size: .8rem;
    margin-bottom: .35rem;
}

input,
textarea,
select,
.form-control {
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: .7rem .8rem;
    background: rgba(255, 255, 255, .8);
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    border-color: var(--signal);
    box-shadow: 0 0 0 3px rgba(228, 61, 48, .16);
}

footer {
    background: var(--ink) !important;
}

footer .text-muted,
footer .text-muted a {
    color: rgba(255, 255, 255, .62) !important;
}

footer h5,
footer a {
    color: #fff;
}

footer a:hover {
    color: var(--sun) !important;
}

.site-footer {
    margin-top: 4rem;
    padding: 3.5rem 0 1.25rem;
    background: var(--ink);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
}

.site-footer h4 {
    margin: 0 0 .9rem;
    color: #fff;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: rgba(255, 255, 255, .62);
    font-size: .86rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li+li {
    margin-top: .45rem;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--sun);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.site-footer .social-links a {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(244, 189, 47, .55);
    color: var(--social-icon);
    font-size: 1rem;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.site-footer .social-links a:hover,
.site-footer .social-links a:focus-visible {
    background: var(--social-icon-hover);
    border-color: var(--social-icon-hover);
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    margin-top: 2.5rem;
    padding-top: 1rem;
    color: rgba(255, 255, 255, .45);
    font-size: .75rem;
}

.hero {
    background: var(--charcoal);
    color: #fff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero:after {
    content: '';
    position: absolute;
    right: -4rem;
    bottom: -5rem;
    width: 18rem;
    height: 18rem;
    border: 2rem solid var(--signal);
    transform: rotate(18deg);
    opacity: .9;
}

.video-panel {
    position: relative;
    z-index: 1;
    background: var(--paper);
    color: var(--ink);
    border: 8px solid #fff;
    box-shadow: 16px 16px 0 var(--signal);
}

.video-frame {
    aspect-ratio: 16 / 9;
    background: var(--paper-deep);
    position: relative;
}

.video-meta {
    padding: 1rem;
}

.play-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--signal);
    position: relative;
}

.circle:after {
    content: '';
    position: absolute;
    left: 26px;
    top: 20px;
    border-left: 18px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.home-band {
    background: var(--paper-deep);
}

.media-card,
.product-mini {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.product-mini-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--paper-deep);
}

.media-card {
    border: 1px solid var(--line);
    background: var(--paper);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.product-detail-image {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

.product-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-image-placeholder {
    color: var(--sun);
    font: 700 clamp(4rem, 12vw, 8rem) var(--display);
}

.product-price {
    margin: 1rem 0;
    color: var(--signal);
    font: 700 2rem var(--display);
}

.product-description {
    max-width: 52ch;
    color: var(--muted);
    font-size: 1rem;
}

.media-card:hover,
.product-mini:hover {
    color: inherit;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(23, 23, 23, .1);
}

.media-card-image {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: var(--charcoal);
}

.media-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 8px;
    background: var(--signal);
    color: #fff;
    font: 700 .72rem var(--display);
    text-transform: uppercase;
}

.media-card-body {
    padding: 1rem;
}

.media-card-body h3 {
    margin: .5rem 0 0;
    font-size: 1.05rem;
}

.podcast-band {
    background: var(--charcoal);
    color: #fff;
}

.episode-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 190px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-left: 8px solid var(--sun);
    background: rgba(0, 0, 0, .18);
}

.episode-mark {
    display: grid;
    place-items: center;
    flex: 0 0 86px;
    height: 86px;
    background: var(--signal);
    color: #fff;
    font: 700 1.7rem var(--display);
    transform: rotate(-7deg);
}

.source-card {
    border-top: 4px solid var(--leaf);
}

.source-label {
    color: var(--leaf);
    font: 700 .72rem var(--display);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.admin-tabs .btn {
    font-size: .82rem;
}

.admin-stat {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-top: 4px solid var(--signal);
    background: rgba(255, 255, 255, .52);
}

.admin-stat span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.admin-stat strong {
    display: block;
    margin-top: .35rem;
    font: 700 2.15rem var(--display);
}

.admin-table {
    --bs-table-bg: transparent;
}

.admin-table th {
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table td {
    min-width: 120px;
}

.admin-table td:first-child {
    min-width: 220px;
}

.admin-table small {
    font-size: .78rem;
}

.admin-status {
    width: auto;
    min-width: 112px;
}

.product-mini {
    border: 1px solid var(--line);
    background: var(--paper);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-mini-art {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: var(--ink);
    color: var(--sun);
    font: 700 4rem var(--display);
}

.product-mini-copy {
    padding: 1rem;
}

.product-mini-copy h3 {
    margin: .4rem 0 .7rem;
    font-size: 1.08rem;
}

.product-mini-copy strong {
    color: var(--signal);
    font-family: var(--display);
}

@media (max-width: 767.98px) {
    .section {
        padding: 48px 0;
    }

    .hero {
        padding: 4rem 0;
    }

    .video-panel {
        margin-top: 2.5rem;
        box-shadow: 8px 8px 0 var(--signal);
    }

    .tier-grid {
        grid-template-columns: 1fr;
    }

    .tier-card.featured {
        transform: none;
    }

    .thread-row {
        grid-template-columns: 36px 1fr;
    }

    .thread-stats {
        grid-column: 2;
        text-align: left;
    }

    .episode-card {
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important;
    }

    .ticker-track {
        animation: ticker-scroll 32s linear infinite !important;
    }
}