/* Public homepage stylesheet. */

/* Load local brand fonts. */
@font-face {
    font-family: "Conthrax";
    src: url("/assets/fonts/conthrax-sb.otf") format("opentype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "New Brilliant";
    src: url("/assets/fonts/new-brilliant.otf") format("opentype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

/* Define public-surface tokens. */
:root {
    color-scheme: dark;
    font-size: 14px;
    --public-bg: #080808;
    --public-panel: rgba(14, 14, 14, 0.88);
    --public-border: rgba(255, 255, 255, 0.12);
    --public-text: #aaaaaa;
    --public-text-strong: #ffffff;
    --public-accent: #b40000;
    --public-accent-soft: #eaca40;
    --public-link: #f00d0d;
    --public-link-hover: #eaeaea;
    --public-brand-image: url("/assets/images/sonic-unicorn.png");
    --public-radius-card: 8px;
    --public-red-border: rgba(180, 0, 0, 0.32);
    --public-red-border-strong: rgba(180, 0, 0, 0.7);
    --public-red-focus: 0 0 0 3px rgba(180, 0, 0, 0.24);
}

/* Reset the shared page box model. */
* {
    box-sizing: border-box;
}

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Lay out the public surface. */
body {
    background: var(--public-bg);
    color: var(--public-text);
    font-family: Calibri, Verdana, sans-serif;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--public-link-hover);
    text-decoration: underline;
}

a:focus-visible {
    color: var(--public-link-hover);
    outline: 2px solid var(--public-accent-soft);
    outline-offset: 4px;
    text-decoration: none;
}

.link-no-hover-underline:hover,
.link-no-hover-underline:focus-visible {
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.public-page {
    margin: 0;
    min-height: 100vh;
    width: 100%;
}

/* Render the full-viewport hero. */
.public-hero {
    align-items: center;
    background: var(--public-bg);
    display: grid;
    isolation: isolate;
    justify-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    padding:
        max(36px, env(safe-area-inset-top))
        max(20px, env(safe-area-inset-right))
        max(82px, env(safe-area-inset-bottom))
        max(20px, env(safe-area-inset-left));
    position: relative;
    text-align: center;
}

.public-hero::before {
    background-image: var(--public-brand-image);
    background-position: 50% 46%;
    background-repeat: no-repeat;
    background-size: clamp(920px, 62vw, 1520px) auto;
    content: "";
    filter: blur(12px) saturate(150%);
    inset: -8%;
    opacity: 0.54;
    pointer-events: none;
    position: absolute;
    transform: scale(1.04);
    z-index: -2;
}

.public-hero::after {
    background: rgba(0, 0, 0, 0.34);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.hero-inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 1280px;
    min-width: 0;
    width: 100%;
}

.dj-name {
    color: var(--public-accent);
    font-family: "New Brilliant", Tahoma, sans-serif;
    font-size: 6.4rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.92;
    margin: 0 auto;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: center;
    text-shadow:
        -2px 0 0 rgba(76, 0, 0, 0.75),
        2px 0 0 rgba(76, 0, 0, 0.75),
        0 -2px 0 rgba(76, 0, 0, 0.75),
        0 2px 0 rgba(76, 0, 0, 0.75),
        0 0 6px rgba(255, 0, 0, 0.86),
        0 0 18px rgba(192, 0, 0, 0.62),
        0 0 38px rgba(192, 0, 0, 0.28);
    width: 100%;
}

/* Render compact current hero signals. */
.hero-signals {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    justify-content: center;
    margin: 24px auto 0;
    max-width: min(100%, 900px);
    min-width: 0;
    width: 100%;
}

.hero-signal {
    align-content: center;
    align-items: center;
    background:
        linear-gradient(90deg, transparent, rgba(64, 0, 0, 0.34), transparent);
    border-bottom: 1px solid var(--public-red-border);
    border-top: 1px solid var(--public-red-border);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.22),
        inset 0 -1px 0 rgba(234, 202, 64, 0.12);
    display: inline-flex;
    flex: 1 1 280px;
    flex-wrap: wrap;
    gap: 5px 10px;
    justify-content: center;
    min-height: 56px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 9px 16px;
    text-align: left;
}

.hero-signal-label {
    color: var(--public-text-strong);
    font-family: "Conthrax", Tahoma, sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-signal-title {
    color: var(--public-text-strong);
    font-size: 1.07rem;
    line-height: 1.25;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.hero-signal-meta {
    color: var(--public-text);
    font-size: 0.98rem;
    line-height: 1.35;
    min-width: 0;
    overflow-wrap: anywhere;
}

.hero-signal-action,
.hero-signal-note {
    border: 1px solid rgba(180, 0, 0, 0.5);
    border-radius: 999px;
    color: var(--public-text-strong);
    font-family: "Conthrax", Tahoma, sans-serif;
    font-size: 0.76rem;
    padding: 8px 12px;
    text-transform: uppercase;
}

.hero-signal-note {
    border-color: rgba(234, 202, 64, 0.42);
    color: var(--public-accent-soft);
}

.hero-signal-action:hover,
.hero-signal-action:focus-visible {
    border-color: rgba(234, 202, 64, 0.62);
    color: var(--public-link-hover);
    text-decoration: none;
}

/* Render the platform-link cluster. */
.platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 1200px) {
    .dj-name {
        font-size: 4.5rem;
    }
}

@media (max-width: 900px) {
    .dj-name {
        font-size: 3.1rem;
    }
}

.hero-platforms {
    margin-top: 28px;
    max-width: 600px;
    min-width: 0;
    width: 100%;
}

.platform-link {
    align-items: center;
    background: var(--public-panel);
    border: 1px solid var(--public-border);
    border-radius: var(--public-radius-card);
    display: grid;
    height: 58px;
    justify-items: center;
    margin: 0;
    box-shadow:
        0 0 0 1px rgba(64, 0, 0, 0.62),
        0 0 10px rgba(192, 0, 0, 0.26);
    transition:
        background-color 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease;
    width: 58px;
}

.platform-link:hover,
.platform-link:focus-visible {
    border-color: var(--public-red-border-strong);
    box-shadow:
        0 0 0 1px rgba(64, 0, 0, 0.9),
        0 0 12px rgba(192, 0, 0, 0.44),
        0 0 24px rgba(192, 0, 0, 0.2);
    text-decoration: none;
}

.platform-link img {
    display: block;
    height: auto;
    max-height: 38px;
    max-width: 42px;
    width: auto;
}

/* Render the downlink into the mix archive. */
.hero-scroll {
    align-items: center;
    background: rgba(8, 8, 8, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    bottom: max(26px, env(safe-area-inset-bottom));
    color: var(--public-text-strong);
    column-gap: 10px;
    display: inline-grid;
    font-family: "Conthrax", Tahoma, sans-serif;
    font-size: 0.74rem;
    grid-template-columns: auto auto;
    min-height: 44px;
    left: 50%;
    place-items: center;
    position: absolute;
    padding: 0 16px;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.hero-scroll::after {
    border-bottom: 2px solid var(--public-text-strong);
    border-right: 2px solid var(--public-text-strong);
    content: "";
    height: 10px;
    margin-top: -4px;
    transform: rotate(45deg);
    width: 10px;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
    border-color: var(--public-red-border-strong);
    box-shadow: var(--public-red-focus);
}

@media (prefers-reduced-motion: no-preference) {
    .hero-scroll {
        animation: hero-scroll-pulse 1800ms ease-in-out infinite;
    }
}

@keyframes hero-scroll-pulse {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* Render archive sections. */
.content-column {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 760px;
    padding: 72px 20px 96px;
    width: 100%;
}

.mix-blocks {
    flex: 0 0 auto;
    margin: 0 auto;
    max-width: 100%;
    text-align: left;
    width: 100%;
}

.mix-blocks + .mix-blocks {
    margin-top: 36px;
}

.mix-block {
    background:
        linear-gradient(90deg, rgba(64, 0, 0, 0.34), rgba(14, 14, 14, 0.7));
    border: 1px solid rgba(180, 0, 0, 0.2);
    border-left: 3px solid rgba(234, 202, 64, 0.36);
    border-radius: var(--public-radius-card);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    color: var(--public-text);
    display: flex;
    flex-direction: column;
    font-size: 1.06rem;
    line-height: 1.35;
    margin-bottom: 10px;
    padding: 12px 14px 13px;
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.mix-block:hover,
.mix-block:focus-within {
    border-color: rgba(234, 202, 64, 0.32);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.24),
        0 0 18px rgba(192, 0, 0, 0.18);
}

.mix-title {
    color: inherit;
    font-family: Calibri, Verdana, sans-serif;
    font-size: 1.04em;
    font-weight: 700;
    line-height: 1.26;
    margin: 0;
    overflow-wrap: anywhere;
}

.mix-title sup {
    color: var(--public-accent-soft);
    display: inline-block;
    font-family: "Conthrax", Tahoma, sans-serif;
    font-size: 0.64em;
    font-weight: 400;
    margin-right: 4px;
    min-width: 2.2ch;
    text-align: right;
    vertical-align: baseline;
}

.mix-block.latest-mix {
    border-left-color: rgba(234, 202, 64, 0.58);
    color: var(--public-text-strong);
}

.mix-name {
    color: var(--public-accent-soft);
    font-size: 1.08em;
}

.brackets,
.mix-links {
    color: var(--public-text);
    font-size: 0.94em;
    line-height: 1.5;
    padding-left: 0;
}

.mix-links {
    color: var(--public-text-strong);
    margin-top: 1px;
    overflow-wrap: anywhere;
}

.mix-links a {
    font-family: Calibri, Verdana, sans-serif;
    font-size: 1.02em;
    font-variant: small-caps;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.text {
    color: var(--public-text);
}

details {
    margin-top: 15px;
}

summary {
    cursor: pointer;
}

/* Render optional communication content. */
.communication-block {
    margin: 28px auto 0;
    max-width: 600px;
}

.communication-block h2 {
    color: var(--public-text-strong);
    font-family: "Conthrax", Tahoma, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.communication-block p {
    line-height: 1.6;
    margin: 0;
}

/* Adapt the public page for smaller screens. */
@media (max-width: 600px) {
    .public-hero {
        padding:
            max(24px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            max(78px, env(safe-area-inset-bottom))
            max(16px, env(safe-area-inset-left));
    }

    .public-hero::before {
        background-size: 760px auto;
        filter: blur(12px) saturate(135%);
        opacity: 0.46;
    }

    .dj-name {
        font-size: 2.74rem;
        line-height: 0.96;
        text-shadow:
            -1px 0 0 rgba(76, 0, 0, 0.92),
            1px 0 0 rgba(76, 0, 0, 0.92),
            0 0 5px rgba(255, 0, 0, 0.8),
            0 0 14px rgba(192, 0, 0, 0.48);
    }

    .hero-signals {
        gap: 8px;
        margin-top: 18px;
    }

    .hero-signal {
        display: grid;
        justify-items: center;
        padding: 9px 12px;
        text-align: center;
        width: 100%;
    }

    .hero-signal-action,
    .hero-signal-note {
        padding: 7px 10px;
    }

    .hero-platforms {
        display: grid;
        gap: clamp(3px, 1.2vw, 5px);
        grid-auto-columns: clamp(28px, 9.6vw, 36px);
        grid-auto-flow: column;
        grid-template-columns: none;
        justify-content: center;
        margin-top: 26px;
        max-width: 100%;
        width: max-content;
    }

    .platform-link {
        aspect-ratio: 1;
        height: auto;
        width: 100%;
    }

    .platform-link img {
        max-height: 26px;
        max-width: 28px;
    }

    .content-column {
        max-width: 600px;
        padding: 48px 12px 72px;
    }

    .mix-block {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .dj-name {
        font-size: 1.44rem;
    }

    .brackets,
    .mix-links {
        padding-left: 0;
    }
}

@media (max-width: 420px) {
    .hero-platforms {
        gap: clamp(3px, 1.2vw, 5px);
        grid-auto-columns: clamp(28px, 9.6vw, 36px);
        grid-auto-flow: column;
        grid-template-columns: none;
        max-width: 100%;
    }

    .platform-link {
        aspect-ratio: 1;
        height: auto;
        width: 100%;
    }

    .platform-link img {
        max-height: 26px;
        max-width: 28px;
    }
}

@media (max-width: 340px) {
    .hero-platforms {
        gap: clamp(3px, 1.2vw, 5px);
        grid-auto-columns: clamp(28px, 9.6vw, 36px);
        grid-auto-flow: column;
        grid-template-columns: none;
        max-width: 100%;
    }

    .platform-link {
        aspect-ratio: 1;
        height: auto;
        width: 100%;
    }

    .dj-name {
        font-size: 1.3rem;
    }

    .platform-link img {
        max-height: 26px;
        max-width: 28px;
    }
}
