/* ===================================================================
   Yandere Together — site styles

   Structure follows the conventions of a game-community site: sticky
   header with horizontal nav, wide hero banner, banded sections, card
   grids, multi-column footer.

   The palette is sampled from the logo rather than chosen alongside it:
   rose #F0A0B0 is the heart, crimson #A01030 and maroon #500010 are its
   shading and outline, blade-grey #B08090 is the knife steel and doubles
   as the secondary ink.

   Type is Poppins, self-hosted from the same .ttf files the launcher and
   the in-game HUD embed, so all three surfaces are set in one face.

   The page commits to one visual world, so the tokens are locked rather
   than themed; both toggle states resolve to the intended dark ground.
   =================================================================== */

@font-face {
    font-family: "Poppins";
    src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("assets/fonts/Poppins-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("assets/fonts/Poppins-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root,
:root[data-theme="dark"],
:root[data-theme="light"] {
    --ground: #0c0608;
    --surface: #150a0e;
    --surface-2: #1d0d13;
    --line: #35202a;
    --line-soft: #2a1720;
    --ink: #f8eff1;
    --ink-dim: #b08090;
    --rose: #f0a0b0;
    --rose-lit: #ffc3cf;
    --crimson: #a01030;
    --maroon: #500010;

    --body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
    --mono: Consolas, "SF Mono", ui-monospace, Menlo, monospace;

    --container: 1140px;
    --header-h: 68px;
    --radius: 10px;

    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--rose);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--rose-lit);
}

:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.25rem, 4.6vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.375rem);
    letter-spacing: -0.015em;
}

h3 {
    font-size: 1.125rem;
}

p {
    margin: 0;
    text-wrap: pretty;
}

code {
    font-family: var(--mono);
    font-size: 0.875em;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    color: var(--rose-lit);
    overflow-wrap: break-word;
}

pre {
    margin: 0;
    padding: 1.15rem 1.25rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--mono);
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--rose-lit);
    overflow-x: auto;
}

pre code {
    background: none;
    border: 0;
    padding: 0;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rose);
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 100;
    background: var(--rose);
    color: var(--maroon);
    padding: 0.6rem 1rem;
    border-radius: 6px;
}

/* -------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.18s,
        border-color 0.18s,
        color 0.18s,
        transform 0.18s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--rose);
    color: var(--maroon);
}

.btn-primary:hover {
    background: var(--rose-lit);
    color: var(--maroon);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--rose);
    color: var(--rose);
}

.btn-lg {
    padding: 0.9rem 1.9rem;
    font-size: 1rem;
}

/* A link with no destination yet — dimmed so it doesn't read as live. */
.btn.is-unset {
    opacity: 0.55;
    cursor: default;
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
}

/* Brand glyphs inside buttons. currentColor so the mark inherits the
   button's own hover and focus states rather than needing its own. */
.btn .glyph {
    width: 1.05em;
    height: 1.05em;
    fill: currentColor;
    flex: none;
}

/* -------------------------------------------------------------------
   Header
   ------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 6, 8, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-right: auto;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand img {
    width: 34px;
}

.brand b {
    font-weight: 600;
    color: var(--rose);
}

/* One item, so it needs no collapsing behaviour at any width — the
   hamburger and its panel came out with the section links. */
.nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

/* -------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(
            70% 80% at 15% 0%,
            rgba(160, 16, 48, 0.28),
            transparent 62%
        ),
        radial-gradient(
            60% 70% at 92% 20%,
            rgba(240, 160, 176, 0.1),
            transparent 60%
        ),
        linear-gradient(var(--surface), var(--ground));
}

#petals {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-inner {
    position: relative;
}

.hero h1 {
    margin-top: 1rem;
}

.hero-sub {
    margin-top: 1.25rem;
    max-width: 34rem;
    font-size: 1.125rem;
    color: var(--ink-dim);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.cta-note {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--rose);
}

/* -------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------- */
.section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

/* Kept for banding a future section against its neighbours. */
.section.alt {
    background: var(--surface);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.section h2 {
    margin-top: 0.75rem;
}


/* -------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.card {
    padding: 1.6rem;
    background: var(--ground);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.section.alt .card {
    background: var(--surface-2);
}

.card h3 {
    color: var(--rose);
}

.card p {
    margin-top: 0.6rem;
    font-size: 0.9375rem;
    color: var(--ink-dim);
}


/* -------------------------------------------------------------------
   Steps — the only numbered sequence on the page, because the order
   genuinely matters.
   ------------------------------------------------------------------- */
.steps {
    counter-reset: step;
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

.steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    gap: 0.35rem 1.25rem;
    padding: 1.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    grid-row: span 3;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--crimson);
    font-variant-numeric: tabular-nums;
}

.steps h3,
.steps p,
.steps pre {
    grid-column: 2;
}

.steps p {
    font-size: 0.9375rem;
    color: var(--ink-dim);
}

.steps pre {
    margin-top: 1rem;
    background: var(--ground);
}

/* Interface screenshots. The launcher shares this palette, so a plain border
   is enough to seat it — no drop shadow or browser chrome needed. */
.shot {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.steps .shot {
    grid-column: 2;
}

.role-cards {
    margin-top: 1.25rem;
}


/* -------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------- */
.faq {
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
}

details {
    border-bottom: 1px solid var(--line);
}

summary {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.15rem 0;
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    color: var(--ink);
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--rose);
    font-weight: 600;
    line-height: 1;
}

details[open] summary::before {
    content: "−";
    background: var(--rose);
    border-color: var(--rose);
    color: var(--maroon);
}

details > *:not(summary) {
    margin: 0 0 1.3rem 2.9rem;
    font-size: 0.9375rem;
    color: var(--ink-dim);
}

/* -------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */
.site-footer {
    background: var(--surface-2);
    border-top: 1px solid var(--line);
    padding-top: 3.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand img {
    width: 44px;
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 30rem;
    font-size: 0.875rem;
    color: var(--ink-dim);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col h4 {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
}

.footer-col a {
    font-size: 0.9375rem;
    text-decoration: none;
}

.footer-col p {
    font-size: 0.875rem;
    color: var(--ink-dim);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--line);
    font-size: 0.8125rem;
    color: var(--ink-dim);
}

/* -------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------- */
@media (max-width: 940px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

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

    .steps li {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .steps li::before {
        grid-row: auto;
    }

    .steps h3,
    .steps p,
    .steps pre,
    .steps .shot {
        grid-column: 1;
    }

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

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

    .btn {
        transition-duration: 0.01ms;
    }
}
