/* The Gogolis — thegogolis.com
   Forked from urbanarmy.github.io/styles/styles.css. Same token architecture,
   light-first, no webfont. See BRAND.md and DECISIONS.md rows 11 and 12. */

/* ─── Variables — light is the default ─── */
:root {
    --bg: #FFF8EE;
    --bg-card: rgba(43, 35, 33, 0.035);
    --bg-card-hover: rgba(43, 35, 33, 0.06);
    --text: #2B2321;
    --text-muted: rgba(43, 35, 33, 0.62);
    --text-dim: rgba(43, 35, 33, 0.40);
    --accent: #E2574B;
    --accent-bright: #C8402F;
    --accent-soft: rgba(226, 87, 75, 0.10);
    --accent-line: rgba(226, 87, 75, 0.22);
    --border: rgba(43, 35, 33, 0.10);
    --border-hover: rgba(43, 35, 33, 0.18);
    --glow: rgba(226, 87, 75, 0.14);
    --nav-bg: rgba(255, 248, 238, 0.82);
    --h1-from: #2B2321;
    --h1-to: rgba(43, 35, 33, 0.72);
    --selection-bg: rgba(226, 87, 75, 0.22);
    --selection-color: #2B2321;
    --shadow-card: 0 18px 44px rgba(43, 35, 33, 0.10);
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #17131A;
    --bg-card: rgba(255, 255, 255, 0.045);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text: #F2EAE2;
    --text-muted: rgba(242, 234, 226, 0.60);
    --text-dim: rgba(242, 234, 226, 0.38);
    --accent: #FF8B7A;
    --accent-bright: #FFA694;
    --accent-soft: rgba(255, 139, 122, 0.12);
    --accent-line: rgba(255, 139, 122, 0.24);
    --border: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 255, 255, 0.18);
    --glow: rgba(255, 139, 122, 0.22);
    --nav-bg: rgba(23, 19, 26, 0.78);
    --h1-from: #F2EAE2;
    --h1-to: rgba(242, 234, 226, 0.68);
    --selection-bg: rgba(255, 139, 122, 0.30);
    --selection-color: #FFF8EE;
    --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}

/* Character colours — spectrum order. See CHARACTERS.md. */
:root {
    --gogoli-gambo: #D93A2B;
    --gogoli-poff: #EE8A2E;
    --gogoli-nibs: #E9C245;
    --gogoli-lilly: #8CC63F;
    --gogoli-toti: #79C7CE;
    --gogoli-mimi: #EF8AA6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.4s ease, color 0.4s ease;
}

img {
    max-width: 100%;
}

/* ─── Navigation ─── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 0 32px;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}

.nav-brand:hover {
    opacity: 0.72;
    color: var(--text);
    text-decoration: none;
}

/* The mark: six dots, one per Gogoli, in spectrum order. */
.brand-mark {
    display: block;
    width: 54px;
    height: auto;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

/* ─── Hamburger menu (mobile) ─── */
#nav-toggle {
    display: none;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

#nav-toggle:checked~.nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#nav-toggle:checked~.nav-hamburger span:nth-child(2) {
    opacity: 0;
}

#nav-toggle:checked~.nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero ─── */
.hero {
    width: 100%;
    max-width: 960px;
    padding: 88px 32px 64px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, 100vw);
    height: 520px;
    background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-bright);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--accent-line);
}

h1 {
    margin: 24px 0 16px;
    font-size: clamp(38px, 6.5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    background: linear-gradient(160deg, var(--h1-from) 0%, var(--h1-to) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    max-width: 560px;
    margin: 0 auto 36px;
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 6px;
    padding: 14px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px var(--glow);
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px var(--glow);
    color: #fff;
    text-decoration: none;
}

.cta-ghost {
    background: none;
    color: var(--text);
    border: 1px solid var(--border-hover);
    box-shadow: none;
}

.cta-ghost:hover {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: none;
}

/* ─── Sections ─── */
.section {
    width: 100%;
    max-width: 960px;
    padding: 0 32px 72px;
}

h2 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.section-intro {
    margin: 0 0 26px;
    font-size: 15px;
    color: var(--text-muted);
    max-width: 620px;
}

/* ─── Songs ─── */
.songs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 860px) {
    .songs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .songs {
        grid-template-columns: 1fr;
    }
}

.song-title {
    margin: 14px 0 2px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text);
}

.song-meta {
    margin: 0;
    font-size: 13px;
    color: var(--text-dim);
}

/* Click-to-load YouTube facade. Nothing is requested from Google's player
   until this button is pressed. See COMPLIANCE.md. */
.yt-facade {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    background: var(--bg-card);
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.yt-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.yt-facade:hover,
.yt-facade:focus-visible {
    transform: translateY(-4px);
    border-color: var(--accent-line);
    box-shadow: var(--shadow-card);
}

.yt-facade:hover img {
    transform: scale(1.04);
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 248, 238, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, background 0.3s;
}

.play-badge svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
    fill: #2B2321;
}

.yt-facade:hover .play-badge {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}

/* The injected player replaces the button entirely. */
.songs iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 22px;
    display: block;
    background: #000;
}

/* ─── Cast ─── */
.cast {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 860px) {
    .cast {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .cast {
        grid-template-columns: 1fr;
    }
}

.cast-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border-radius: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.35s ease, background 0.3s, border-color 0.3s, box-shadow 0.35s ease;
}

.cast-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--gogoli-color);
}

.cast-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.cast-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--gogoli-color);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.cast-card h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.cast-card p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    flex-grow: 1;
}

.cast-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--gogoli-color);
    text-decoration: none;
    align-self: flex-start;
}

.cast-link:hover {
    color: var(--gogoli-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cast-soon {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    align-self: flex-start;
}

/* ─── Features grid ─── */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
    }
}

.feature {
    display: block;
    padding: 28px;
    border-radius: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

a.feature:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.feature strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.feature span {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── Grown-ups panel ─── */
.panel {
    padding: 32px;
    border-radius: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.panel p:last-child {
    margin-bottom: 0;
}

/* ─── Typography ─── */
p {
    margin: 0 0 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

a {
    color: var(--accent-bright);
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s, color 0.2s;
}

a:hover {
    text-decoration-color: var(--accent-bright);
    color: var(--accent-bright);
}

ul,
ol {
    margin: 0 0 16px;
    padding-left: 20px;
    color: var(--text-muted);
}

li {
    margin-bottom: 6px;
}

/* ─── Card (subpages) ─── */
.card {
    max-width: 720px;
    width: 100%;
    padding: 56px 40px;
    margin: 48px 16px;
    border-radius: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    line-height: 1.7;
}

.card h1 {
    font-size: clamp(24px, 4vw, 32px);
}

.card h2 {
    font-size: 17px;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-top: 36px;
    margin-bottom: 10px;
}

.effective {
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-dim);
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.back:hover {
    color: var(--text);
}

/* ─── Footer ─── */
footer {
    width: 100%;
    max-width: 960px;
    padding: 48px 32px 64px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-col h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 0 0 14px;
}

.footer-col p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.8;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 2;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--text);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ─── Theme toggle ─── */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.theme-toggle-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.3s;
}

.theme-toggle-label.active {
    color: var(--text-muted);
}

.theme-toggle-track {
    position: relative;
    width: 56px;
    height: 30px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s;
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: transform 0.3s ease, background 0.3s;
}

[data-theme="light"] .theme-toggle-thumb {
    transform: translateX(26px);
}

.theme-toggle:hover .theme-toggle-track {
    border-color: var(--border-hover);
}

/* ─── Focus ─── */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ─── Selection ─── */
::selection {
    background: var(--selection-bg);
    color: var(--selection-color);
}

/* ─── Scroll animations ───
   Scoped to .js so the page is fully visible when JavaScript is unavailable.
   The sibling site sets opacity:0 unconditionally and renders blank without JS. */
.js .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {

    .js .fade-in,
    .js .fade-in.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .hero {
        padding: 60px 20px 44px;
    }

    .section {
        padding: 0 20px 56px;
    }

    .panel {
        padding: 24px 20px;
    }

    .card {
        padding: 40px 20px;
        margin: 32px 16px;
    }

    nav {
        padding: 0 20px;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
    }

    #nav-toggle:checked~.nav-links {
        display: flex;
    }

    .nav-links a {
        padding: 12px 20px;
        font-size: 15px;
    }

    footer {
        padding: 36px 20px 48px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 16px 40px;
    }

    .section {
        padding: 0 16px 48px;
    }

    .card {
        padding: 32px 16px;
        margin: 24px 12px;
    }

    nav {
        padding: 0 16px;
    }

    .nav-links a {
        padding: 12px 16px;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .cta {
        width: 100%;
        justify-content: center;
        margin: 6px 0;
    }

    footer {
        padding: 32px 16px 40px;
    }

    .footer-grid {
        gap: 28px;
    }
}
