/* Planet Arrival: intentionally calm, dependency-free, responsive styles. */
:root {
    color-scheme: dark;
    --bg: #0a0d23;
    --surface: #1e223f;
    --surface-2: #272a4c;
    --text: #f8f5ff;
    --muted: #d1d3e6;
    --line: #747695;
    --accent: #ffd2a1;
    --accent-text: #202039;
    --link: #d4e6ff;
    --focus: #ffd2a1;
    --shadow: 0 12px 36px rgba(0, 0, 0, .12);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #fbf9fd;
    --surface: #ffffff;
    --surface-2: #f0edf8;
    --text: #28213f;
    --muted: #49445e;
    --line: #817c96;
    --accent: #4a2e69;
    --accent-text: #ffffff;
    --link: #4d286d;
    --focus: #8a4d1e;
    --shadow: 0 12px 32px rgba(40, 33, 63, .065);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1.5rem;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    font-size: 1.05rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--link);
    text-underline-offset: .18em;
    text-decoration-thickness: .08em;
}

a:hover {
    text-decoration-thickness: .16em;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
    border-radius: 3px;
}

::selection {
    background: var(--accent);
    color: var(--accent-text);
}

.shell {
    width: min(100% - 2.5rem, 1120px);
    margin-inline: auto;
}

.reading {
    max-width: 71ch;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -10rem;
    z-index: 10;
    padding: .75rem 1rem;
    color: #17142b;
    background: #ffe2b6;
    font-weight: 700;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    z-index: 10;
}

.site-header-inner {
    min-height: 92px;
    display: flex;
    gap: 1.4rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-block: .9rem;
}

.brand {
    display: inline-flex;
    gap: .8rem;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 850;
    letter-spacing: .01em;
    font-size: 1.12rem;
    white-space: nowrap;
}

.brand img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.nav {
    display: flex;
    align-items: center;
    gap: .3rem .65rem;
    flex-wrap: wrap;
}

.nav a {
    padding: .55rem .55rem;
    color: var(--text);
    text-decoration: none;
    border-radius: .4rem;
}

.nav a:hover, .nav a[aria-current="page"] {
    background: var(--surface-2);
}

.nav a.nav-cta {
    background: var(--accent);
    color: var(--accent-text);
    padding: .57rem 1rem;
    font-weight: 750;
}

.nav a.nav-cta:hover {
    text-decoration: underline;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid var(--line);
    color: var(--text);
    background: transparent;
    padding: .52rem .72rem;
    border-radius: .4rem;
    cursor: pointer;
}

.theme-switch:hover {
    background: var(--surface-2);
}

h1, h2, h3 {
    line-height: 1.23;
    letter-spacing: -.027em;
    margin: 0 0 .85rem;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    max-width: 17ch;
}

h2 {
    font-size: clamp(1.6rem, 3.1vw, 2.2rem);
}

h3 {
    font-size: 1.22rem;
}

p {
    margin: 0 0 1.15rem;
}

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

.lead {
    font-size: clamp(1.1rem, 1.9vw, 1.3rem);
    line-height: 1.65;
    max-width: 60ch;
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .115em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

:root[data-theme="light"] .eyebrow {
    color: #634477;
}

.section {
    padding-block: clamp(3rem, 6vw, 5.2rem);
}

.section + .section {
    border-top: 1px solid var(--line);
}

.section-intro {
    max-width: 74ch;
    margin-bottom: 2rem;
}

.section-intro p {
    color: var(--muted);
}

.hero {
    padding-block: clamp(2.8rem, 6vw, 5rem) 2.5rem;
    border-bottom: 1px solid var(--line);
}

.hero-content {
    max-width: 860px;
}

.hero .lead {
    max-width: 66ch;
}

.hero .shell {
    display: flex;
    gap: 40px;
}

@media (max-width: 600px) {
    .hero .shell {
        display: block;
    }
    .hero .shell .image {
        margin-top: 1.5rem;
        text-align: center;
    }
    .hero .shell .image img {
        margin-left: auto;
        margin-right: auto;
    }
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    align-items: center;
    margin: 1.8rem 0;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    padding: .82rem 1.35rem;
    border-radius: .62rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    min-height: 50px;
}

.button-primary {
    color: var(--accent-text);
    background: var(--accent);
    border: 2px solid var(--accent);
}

.button-primary:hover {
    text-decoration: underline;
}

.button-secondary {
    color: var(--text);
    background: transparent;
    border: 2px solid var(--line);
}

.button-secondary:hover {
    background: var(--surface-2);
}

.small-note {
    color: var(--muted);
    font-size: .91rem;
}

.hero-visual {
    margin-top: 2.2rem;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    border-radius: 1.1rem;
}

.hero-visual img {
    width: 100%;
}

.card-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card-grid.two {
    grid-template-columns:repeat(2, minmax(0, 1fr));
}

.card {
    border: 1px solid var(--line);
    border-radius: .95rem;
    background: var(--surface);
    padding: 1.5rem;
}

.card.discord, .card.youtube, .card.instagram {
    position: relative;
    overflow: hidden;
}
.card.discord:after, .card.youtube:after, .card.instagram:after {
    position: absolute;
    top: -50px;
    right: 0;
    display: block;
    background-size: 100px;
    background-position: top right;
    background-repeat: no-repeat;
    pointer-events: none;
    height: 100%;
    width: 100%;
    content: "";
    transform: rotate(15deg);
    opacity: 0.1;
}
.card.discord:after {
    background-image: url(../img/discord.png);
}
.card.youtube:after {
    background-image: url(../img/youtube.png);
}
.card.instagram:after {
    background-image: url(../img/instagram.png);
}

.card p {
    color: var(--muted);
}

.card .meta {
    margin-bottom: .75rem;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.card a.inline {
    display: inline-block;
    margin-top: .6rem;
    font-weight: 750;
}

.list-clean {
    padding-left: 1.25rem;
}

.list-clean li {
    margin-block: .5rem;
}

.band {
    padding: clamp(1.5rem, 4vw, 2.6rem);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: var(--surface);
}

.band p {
    color: var(--muted);
}

.quiet-strip {
    margin-top: 2rem;
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.quiet-strip picture, .quiet-strip img {
    border-radius: 1rem;
}

.quiet-strip img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.note {
    padding: 1.25rem 1.4rem;
    border-left: 4px solid var(--accent);
    background: var(--surface-2);
    border-radius: 0 .55rem .55rem 0;
}

.note p {
    margin: 0;
}

.faq-list details {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
    border-top: 1px solid var(--line);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 750;
    padding: .2rem 1.4rem .2rem .1rem;
}

.faq-list details p {
    max-width: 70ch;
    color: var(--muted);
    padding-top: .7rem;
}

.social-list {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.social-list .card a {
    font-weight: 800;
}

.social-list .priority {
    border: 2px solid var(--accent);
}

.social-list .priority p {
    color: var(--text);
}

.article-top {
    padding-block: 3.5rem 1.9rem;
}

.article-top h1 {
    max-width: 22ch;
}

.breadcrumb {
    margin-bottom: 1.45rem;
    color: var(--muted);
    font-size: .93rem;
}

.breadcrumb a {
    color: var(--link);
}

.article {
    padding-bottom: 4rem;
}

.article .reading > section {
    margin-top: 2.8rem;
}

.article h2 {
    margin-bottom: 1rem;
}

.article h3 {
    margin-top: 1.5rem;
}

.article ul {
    padding-left: 1.5rem;
}

.article li {
    margin-bottom: .65rem;
}

.article .source-list {
    overflow-wrap: anywhere;
}

.article .source-list li {
    padding-left: .15rem;
    margin-block: .8rem;
}

.article .source-list a {
    overflow-wrap: anywhere;
}

.article .source-list span {
    color: var(--muted);
}

.article .source-link {
    font-size: .9em;
    white-space: nowrap;
}

.article-nav {
    border-top: 1px solid var(--line);
    padding-top: 1.8rem;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-banner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: clamp(1.5rem, 4vw, 2.6rem);
}

.cta-banner h2 {
    max-width: 40ch;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 2.4rem;
    background: var(--surface);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
}

.footer-links {
    display: flex;
    align-content: start;
    justify-content: flex-end;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: .55rem 1.1rem;
}

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

.footer-bottom {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: .87rem;
}

.only-screen-reader {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 830px) {
    .site-header-inner {
        justify-content: center;
    }

    .nav {
        justify-content: center;
    }

    .card-grid, .social-list {
        grid-template-columns:1fr 1fr;
    }

    .quiet-strip {
        grid-template-columns:1fr;
    }

    .footer-inner {
        grid-template-columns:1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 1rem;
    }

    .shell {
        width: min(100% - 2rem, 1120px);
    }

    .site-header-inner {
        justify-content: flex-start;
        gap: .9rem;
    }

    .nav {
        justify-content: flex-start;
        gap: .1rem .35rem;
    }

    .nav a {
        padding: .45rem;
    }

    .theme-switch {
        padding: .45rem;
    }

    .card-grid, .card-grid.two, .social-list {
        grid-template-columns:1fr;
    }

    .card {
        padding: 1.2rem;
    }

    .hero {
        padding-top: 2.1rem;
    }

    .hero-visual {
        margin-top: 1.5rem;
    }

    .button {
        width: 100%;
    }

    .cta-row {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media (forced-colors: active) {
    .button, .nav-cta, .theme-switch, .card, .hero-visual {
        border: 1px solid CanvasText;
    }
}
