/* Artoveya's Artist Nook - public site.
   Direction (owner, 2026-10-12, second mockup): painterly - liquid paint splashes, DM Serif Display headlines - in a
   LIGHT and a DARK theme. Restraint pass (owner's review, 2026-10-12): "a beautiful gallery with a rebellious streak,
   not a paint factory". ~80% restrained interface, ~20% colour, and every colour has a job. Warm off-white + deep
   navy (light), deep navy + warm off-white (dark), and THREE accents only: --pink (action: buttons, eyebrows,
   focus), --blue (trust/info: verified), --gold (rank: crown, trophy, #1, the founding badge). Paint lives in the
   two corner accents and the hero; the artwork supplies the rest. Do not add splashes mid-page. Theme = html[data-theme] (set before the
   CSS loads by the inline script in partials/head.php; the media query below covers a browser with no JS).
   The paint (splashes, ribbons) is saturated colour that reads on both themes; the artwork cards are paintings and
   do not theme; the closing landscape takes its sky from the --bn-* variables. */

:root {
    --bg:          #faf7f2;
    --bg-tint:     #f3eee5;
    --surface:     #fffdf9;
    --surface-2:   #f5f0e7;
    --line:        #e8e1d5;
    --line-strong: #d6ccbb;
    --text:        #14213d;
    --muted:       #586379;
    --pink:        #d61f78;
    --pink-soft:   #fbe4ee;
    --blue:        #1f66d6;
    --gold:        #c98a00;
    --gold-soft:   #fbefd2;
    --shadow:      0 10px 30px -14px rgb(20 33 61 / .16);
    --shadow-lg:   0 24px 60px -22px rgb(20 33 61 / .28);
    --print:       #ffffff;
    --note:        #fffdf6;

    /* the one gradient, pink into gold: the brand line and the hero's key word only - buttons are solid */
    --grad:      var(--pink);
    --grad-text: linear-gradient(90deg, var(--pink) 0%, #ea5a3a 50%, var(--gold) 100%);

    /* the closing landscape - a sunrise */
    --bn-sky-top: #bfe0ff; --bn-sky-bottom: #ffe1ef; --bn-orb: #fff3c4; --bn-stars: 0;
    --bn-m1: #c6d1f0; --bn-m2: #9fb0dd; --bn-m3: #6a77ad; --bn-rock: #8e7fa6; --bn-grass: #7cc576;
    --bn-roof: #5b5f9e; --bn-window: #ffe9a8; --bn-fall: #ffffff; --bn-bird: #4b4470;

    --radius: 16px;
    --wrap:   1220px;
    --serif:  "DM Serif Display", Georgia, serif;
    --sans:   "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --hand:   "Caveat", "Segoe Print", cursive;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b1120; --bg-tint: #0f172b; --surface: #131c33; --surface-2: #19233e; --line: #232f4d; --line-strong: #33406a;
        --text: #f4efe6; --muted: #9ba5bd; --pink: #ff5aa2; --pink-soft: #3a1630;
        --blue: #6aa2ff; --gold: #f5b301; --gold-soft: #3a2c0a;
        --shadow: 0 10px 30px -12px rgb(0 0 0 / .6); --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / .75);
        --print: #f3eee6; --note: #fbf6ea;
        --bn-sky-top: #0b0a26; --bn-sky-bottom: #3b1f5e; --bn-orb: #f2eeff; --bn-stars: 1;
        --bn-m1: #2c2552; --bn-m2: #211b40; --bn-m3: #150f2b; --bn-rock: #2a2148; --bn-grass: #2f6b4a;
        --bn-roof: #241c46; --bn-window: #ffd27a; --bn-fall: #cfd8ff; --bn-bird: #cfc8f0;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0b1120; --bg-tint: #0f172b; --surface: #131c33; --surface-2: #19233e; --line: #232f4d; --line-strong: #33406a;
    --text: #f4efe6; --muted: #9ba5bd; --pink: #ff5aa2; --pink-soft: #3a1630;
    --blue: #6aa2ff; --gold: #f5b301; --gold-soft: #3a2c0a;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / .6); --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / .75);
    --print: #f3eee6; --note: #fbf6ea;
    --bn-sky-top: #0b0a26; --bn-sky-bottom: #3b1f5e; --bn-orb: #f2eeff; --bn-stars: 1;
    --bn-m1: #2c2552; --bn-m2: #211b40; --bn-m3: #150f2b; --bn-rock: #2a2148; --bn-grass: #2f6b4a;
    --bn-roof: #241c46; --bn-window: #ffd27a; --bn-fall: #cfd8ff; --bn-bird: #cfc8f0;
    color-scheme: dark;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--sans);
    transition: background-color .25s ease, color .25s ease;
}
main { overflow-x: clip; }            /* splashes bleed past the edges; never a sideways scroll */
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-top: .35rem; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: .55rem 0 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.muted { color: var(--muted); }
.small { font-size: .84rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
:focus-visible { outline: 2.5px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
    margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .55em;
    color: var(--pink); font-size: .74rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
}
.eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 33rem; }

/* ---- buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 .92rem/1 var(--sans); white-space: nowrap; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn-grad { background: var(--pink); color: #fff; box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--pink) 70%, transparent); }
.btn-grad:hover { background: color-mix(in srgb, var(--pink) 88%, #000); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--pink); }
.btn-sm { padding: .55rem 1.05rem; font-size: .86rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; margin-top: 1.1rem; }

.badge {
    display: inline-block; padding: .22rem .6rem; border-radius: 999px;
    background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
    font: 700 .66rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle;
}
.badge-grad { background: var(--gold-soft); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }

/* colour tones for icon circles and stat icons */
/* Restraint pass: the old eight-colour set folds onto the three accents (and muted), names kept so the data files
   need not change. */
.tone-pink, .tone-red                   { --tone: var(--pink); }
.tone-blue, .tone-cyan, .tone-green     { --tone: var(--blue); }
.tone-yellow, .tone-orange              { --tone: var(--gold); }
.tone-purple                            { --tone: var(--muted); }

/* ---- decoration layers ---- */
.deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.deco svg { position: absolute; display: block; }
.splash { filter: drop-shadow(0 6px 10px rgb(0 0 0 / .12)); }
/* The paint accent pinned to the viewport's bottom-left corner, bleeding off both edges. z-index 1 and FIRST in
   <main>: it paints over the section backgrounds but under every .wrap (also z-index 1, later in the DOM). */
.accent-bl {
    position: fixed; z-index: 1; left: -3vw; bottom: -4vh; width: clamp(120px, 15vw, 250px); height: auto;
    pointer-events: none; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .18));
}
@media (max-width: 560px) { .accent-bl { width: 96px; opacity: .85; } }
/* Its partner, pinned to the top-right corner just below the sticky header (74px row + 1px border). Restraint pass
   (2026-10-12): it used to paint OVER the content (z 30) and sat on the leaderboard and the model's head; now it is
   z 1 like its partner - over section backgrounds, under every .wrap - so it frames the page and never covers it. */
.accent-tr {
    position: fixed; z-index: 1; top: 75px; right: 0; width: clamp(220px, 26vw, 400px); height: auto;
    pointer-events: none; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .18));
}
@media (max-width: 760px) { .accent-tr { width: 165px; opacity: .85; } }
/* Phones and tablets: neither accent is sticky - they anchor to <main> instead (top-right under the header,
   bottom-left above the footer) and scroll away with the page. */
main { position: relative; }
@media (max-width: 979px) {
    .accent-tr { position: absolute; top: 0; }
    .accent-bl { position: absolute; bottom: 0; left: -3vw; }
}

/* ---- header ---- */
.site-header {
    position: sticky; top: 0; z-index: 40;   /* above the content AND .accent-tr (30) - and the Join form (31) - always */
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-dots { position: relative; width: 22px; height: 30px; flex: none; }
.brand-dots i { position: absolute; border-radius: 50%; }
.brand-dots i:nth-child(1) { width: 12px; height: 12px; left: 0; top: 9px; background: var(--blue); }
.brand-dots i:nth-child(2) { width: 7px; height: 7px; left: 12px; top: 2px; background: var(--pink); }
.brand-dots i:nth-child(3) { width: 8px; height: 8px; left: 13px; top: 21px; background: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 400 1.85rem/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand-sub {
    margin-top: 3px; font: 700 .58rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.site-nav { display: flex; align-items: center; gap: 1.25rem; flex: 1; min-width: 0; }
.site-nav ul { display: flex; gap: 1.35rem; margin-left: .5rem; }
.site-nav ul a { font-size: .92rem; font-weight: 600; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--pink); }
.site-nav ul a[aria-current="page"] { color: var(--pink); border-bottom-color: var(--pink); }
.search { position: relative; margin-left: auto; flex: 0 1 250px; min-width: 140px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 17px; height: 17px; }
.search input {
    width: 100%; padding: .62rem 1rem .62rem 2.5rem;
    background: var(--surface); color: var(--text);
    border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: .85rem;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--pink); }
.auth { display: flex; gap: .55rem; }

.theme-toggle, .nav-toggle {
    flex: none; display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--pink); color: var(--pink); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
.nav-toggle { display: none; gap: 4px; align-content: center; }
.nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

@media (max-width: 1100px) {
    .nav-toggle { display: grid; }
    .theme-toggle { margin-left: auto; }
    .site-nav {
        display: none; position: absolute; top: 74px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 1rem;
        padding: 18px 16px 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; gap: .15rem; margin: 0; }
    .site-nav ul a { display: block; padding: .55rem 0; }
    .search { margin-left: 0; flex: none; }
}

/* ---- hero ---- */
.hero { position: relative; padding: 64px 0 72px; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 75% 45%, color-mix(in srgb, var(--surface-2) 80%, transparent), transparent 26rem);
    pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.02fr 1fr; } }
/* Above the corner accents (z 1, earlier in <main>): the model keeps its silhouette, the splash frames it from behind. */
.hero-grid { z-index: 2; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); line-height: .98; margin: 1.1rem 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; margin: 2.6rem 0 0; }
.stat { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; }
.stat-icon { grid-row: span 2; color: var(--tone); }
.stat-icon .icon { width: 34px; height: 34px; }
.stat dd { margin: 0; font-weight: 800; font-size: 1.2rem; line-height: 1.1; }
.stat dt { color: var(--muted); font-size: .8rem; }


/* The art sits on the section's bottom edge: it stretches the full row and eats the hero's bottom padding, so the
   splash and the model stand on the next section instead of floating mid-hero. */
.hero-art { position: relative; align-self: stretch; min-height: 660px; margin-bottom: -72px; isolation: isolate; }
.hero-paint {
    position: absolute; z-index: 1; right: calc(-4% + 60px); bottom: 0; width: auto; height: 100%;
    max-height: none; object-fit: contain; object-position: bottom right;
    filter: drop-shadow(0 24px 28px rgb(14 11 23 / .12));
}

.hero-artist {
    position: absolute; z-index: 2; right: calc(7% - 15px); bottom: 0; width: auto; height: 90%;
    max-height: none; object-fit: contain; object-position: bottom right;
    filter: drop-shadow(0 28px 32px rgb(14 11 23 / .18));
}
/* Mirrored on about half the loads (pages/home.php): twice the poses from the same files. */
.hero-artist.is-flipped { transform: scaleX(-1); }
/* Permanent sticker, layered above both independent art layers; it is never part of a model image. */
.hero-sticker {
    position: absolute; z-index: 3; right: -1%; bottom: 8%; margin: 0;
    padding: 14px 18px; background: var(--note); color: #2a2238; border-radius: 4px;
    font: 600 1.55rem/1.05 var(--hand); transform: rotate(9deg); box-shadow: var(--shadow);
}
.hero-sticker span { color: #d61f78; }

/* ---- sections ---- */
.section { position: relative; padding: 76px 0; }
.section > .wrap { z-index: 1; }
.section-tint { background: var(--bg-tint); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 2rem; }
.section-head > div { max-width: 46rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }

/* ---- featured + leaderboard ---- */
.featured-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 1080px) { .featured-grid { grid-template-columns: 1fr 320px; } }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-art { aspect-ratio: 4 / 3; overflow: hidden; }
.card-art svg, .card-art img { display: block; width: 100%; height: 100%; transition: transform .4s ease; }
.card-art img { object-fit: cover; }
.card:hover .card-art svg, .card:hover .card-art img { transform: scale(1.04); }
.card-meta { display: flex; align-items: center; gap: .7rem; padding: 12px 14px; }
.card-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.card-who strong { display: flex; align-items: center; gap: .3rem; font-size: .95rem; }
.tags { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crown { color: var(--gold); display: inline-flex; }
.crown .icon { width: 16px; height: 16px; }
.verified { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); color: #fff; }
.verified .icon { width: 11px; height: 11px; stroke-width: 3; }
.likes { display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.likes .icon, .score .icon { color: currentColor; opacity: .75; width: 14px; height: 14px; }

.avatar {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong);
    font: 700 .95rem/1 var(--sans);
}
.avatar-sm { width: 32px; height: 32px; font-size: .8rem; }

.leaderboard { align-self: start; }
.panel-title { display: flex; align-items: center; gap: .55rem; font: 400 1.35rem/1.2 var(--serif); }
.trophy { color: var(--gold); display: inline-flex; }
.trophy .icon { width: 24px; height: 24px; }
.tabs { display: flex; gap: 4px; margin: 1.1rem 0 .6rem; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.tabs button {
    flex: 1; padding: .5rem 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
    font: 600 .8rem/1 var(--sans); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(20 33 61 / .14); }
.board li { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; font-size: .9rem; font-weight: 600; }
.board a { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board a:hover { color: var(--pink); }
.rank { width: 24px; height: 24px; display: grid; place-items: center; flex: none; border-radius: 50%; font-size: .8rem; font-weight: 800; color: var(--muted); }
.rank-1 { background: var(--gold); color: #241900; }
.rank-2, .rank-3 { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); }
.score { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- projects ---- */
.projects { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-art { height: 150px; overflow: hidden; }
.project-art svg { display: block; width: 100%; height: 100%; }
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project-body .btn { align-self: flex-start; margin-top: auto; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.project h3 { font: 400 1.5rem/1.2 var(--serif); }
.project-facts { display: flex; gap: 2rem; margin: 1rem 0 1.3rem; }
.project-facts dt { color: var(--muted); font-size: .76rem; }
.project-facts dd { margin: 0; font-weight: 800; }
.project-empty { padding: 26px; background: transparent; border: 2px dashed var(--line-strong); box-shadow: none; justify-content: center; }
.project-empty .btn { align-self: flex-start; margin-top: 1.2rem; }
.project-plus { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); margin-bottom: .9rem; }

/* ---- how it works ---- */
/* One column: the four steps in a row, the community card under them (a side column squeezed step 4 onto a second
   line and broke the 1 -> 2 -> 3 -> 4 run). */
.how-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.how-title { position: relative; display: inline-block; }
.brush { position: absolute; left: 100%; top: 50%; width: 240px; height: 48px; margin-left: 16px; transform: translateY(-40%) rotate(-3deg); color: var(--pink); }
.brush svg { width: 100%; height: 100%; }
@media (max-width: 760px) { .brush { display: none; } }
.steps { display: grid; gap: 24px 16px; margin-top: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; text-align: center; padding: 0 6px; }
.step-icon {
    display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 1rem; border-radius: 50%;
    background: color-mix(in srgb, var(--tone) 10%, var(--surface)); color: var(--tone);
    border: 1.5px solid color-mix(in srgb, var(--tone) 28%, transparent);
}
.step-icon .icon { width: 30px; height: 30px; }
.steps h3 { font-size: .98rem; }
.steps p { font-size: .88rem; }
.steps .later .step-icon { opacity: .8; }
.steps .badge { margin-left: .2rem; }
@media (min-width: 900px) {
    .steps li:not(:last-child)::after {   /* the arrow to the next step */
        content: "\2192"; position: absolute; right: -14px; top: 22px; color: var(--muted); font-size: 1.4rem;
    }
}
.side-card { display: flex; gap: 16px; align-items: flex-start; padding: 26px; }
.side-card h3 { font: 400 1.4rem/1.2 var(--serif); }
.side-card .btn { margin-top: 1.1rem; }
@media (min-width: 760px) {
    .side-card { align-items: center; gap: 24px; padding: 26px 32px; }
    .side-card > div { flex: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .35rem 2rem; }
    .side-card h3, .side-card p { grid-column: 1; margin: 0; }
    .side-card .btn { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
.palette-art { width: 74px; flex: none; }

/* ---- the closing banner ---- */
.banner { position: relative; min-height: 440px; display: grid; align-items: start; overflow: hidden; }
.banner-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
/* The painting is bright on both themes, so the copy gets its own dark pool of light to sit in, whatever the theme. */
.banner::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(ellipse 46rem 20rem at 50% 32%, rgb(12 8 24 / .7), transparent 75%),
        linear-gradient(to bottom, rgb(12 8 24 / .35), transparent 40%);
}
.banner-copy h2, .banner-copy p:not(.eyebrow) { color: #fff; }
.banner-copy h2, .banner-copy p { text-shadow: 0 2px 14px rgb(0 0 0 / .45); }
.banner-art .bn-stars { fill: #fff; opacity: var(--bn-stars); }
.banner-art .bn-orb    { fill: var(--bn-orb); }
.banner-art .bn-m1     { fill: var(--bn-m1); }
.banner-art .bn-m2     { fill: var(--bn-m2); }
.banner-art .bn-m3     { fill: var(--bn-m3); }
.banner-art .bn-rock   { fill: var(--bn-rock); }
.banner-art .bn-grass  { fill: var(--bn-grass); }
.banner-art .bn-roof   { fill: var(--bn-roof); }
.banner-art .bn-window { fill: var(--bn-window); }
.banner-art .bn-fall   { fill: var(--bn-fall); opacity: .75; }
.banner-art .bn-bird   { fill: none; stroke: var(--bn-bird); stroke-width: 2; }
.banner .deco { z-index: 2; }
.banner-copy { z-index: 3; text-align: center; padding-top: 56px; padding-bottom: 170px; }
.banner-copy .eyebrow { justify-content: center; }
.banner-copy p:not(.eyebrow) { max-width: 34rem; margin: .8rem auto 1.6rem; }
.banner-copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }

/* ---- soon ---- */
.soon { min-height: 62vh; display: grid; align-items: center; }
.soon h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: .8rem 0 0; }
.soon .btn { margin-top: 2rem; }
.d-soon-1 { width: 220px; right: 6%; top: 10%; }
.d-soon-2 { width: 130px; right: 22%; bottom: 8%; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }
.footer-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
.footer-links a:hover { color: var(--pink); }
.footer-end { text-align: right; }
.footer-end p { margin: 0; }
@media (max-width: 760px) { .footer-end { text-align: left; } }

/* ---- small screens ---- */
@media (max-width: 979px) {
    .hero { padding-top: 40px; }
    .hero-art { min-height: 0; aspect-ratio: 1 / 1.12; max-width: 620px; width: 100%; margin: 10px auto -72px; }
    /* Single column (phones, portrait tablets): the splash and the model are centred on the column instead of
       hugging the right edge. The model sits a touch right of the splash's centre, as it does on desktop. */
    .hero-paint  { left: 50%; right: auto; bottom: 0; width: auto; height: 100%; object-position: bottom center; transform: translateX(-50%); }
    .hero-artist { left: calc(50% + 4%); right: auto; bottom: 0; width: auto; height: 86%; transform: translateX(-50%); }
    .hero-artist.is-flipped { transform: translateX(-50%) scaleX(-1); }
}
@media (max-width: 560px) {
    .header-row { gap: .75rem; }
    .brand-name { font-size: 1.6rem; }
    .hero-sticker { font-size: 1.15rem; padding: 10px 12px; right: 0; }
    .hero-artist { height: 84%; }
    .stats { gap: 1.2rem 1.6rem; }
    .banner-copy { padding-bottom: 150px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

/* ---- join (/join): copy left, the step card right ---- */
.join { padding-top: 56px; }
.section.join > .wrap { z-index: 31; }   /* the form sits above .accent-tr (30) - .wrap is the stacking context that counts */
.join-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .join-grid { grid-template-columns: minmax(0, 1fr) 460px; } }
.join-copy h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; margin: 1rem 0 0; }
.join-perks { display: grid; gap: 18px; margin-top: 2rem; }
.join-perks li { display: flex; gap: 14px; align-items: center; }
.join-perks .step-icon { width: 52px; height: 52px; margin: 0; flex: none; }
.join-perks .step-icon .icon { width: 22px; height: 22px; }
.join-perks div { display: flex; flex-direction: column; }
.join-perks span:not(.step-icon) { color: var(--muted); font-size: .92rem; }
.join-card { position: relative; z-index: 31; padding: 28px; box-shadow: var(--shadow-lg); }   /* above .accent-tr (30): a form must never be painted over */
.join-card h2 { font-size: 1.8rem; margin: 1.2rem 0 .2rem; }
.join-steps { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .76rem; font-weight: 700; color: var(--muted); }
.join-steps li { display: inline-flex; align-items: center; gap: .4rem; }
.join-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: .7rem; }
.join-steps li span .icon { width: 12px; height: 12px; stroke-width: 3; }
.join-steps .is-on { color: var(--pink); }
.join-steps .is-on span { border-color: transparent; background: var(--pink); color: #fff; }
.join-steps .is-done span { border-color: transparent; background: var(--pink-soft); color: var(--pink); }
.join-form { display: flex; flex-direction: column; margin-top: 1rem; }
.join-form label { margin: .9rem 0 .35rem; font-size: .82rem; font-weight: 700; }
.join-form label span { font-weight: 500; color: var(--muted); }
.join-form input { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line-strong); border-radius: 12px;
                   background: var(--surface); color: var(--text); font: inherit; }
.join-form input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.join-form .btn { margin-top: 1.4rem; }
.join-code { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.join-prefixed { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.join-prefixed:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.join-prefixed span { padding-left: .9rem; color: var(--muted); font-weight: 700; }
.join-prefixed input { border: 0 !important; box-shadow: none !important; padding-left: .3rem; }
.join-flash { margin: 1rem 0 0; padding: .7rem .9rem; border-radius: 12px; font-weight: 600; font-size: .9rem; }
.join-flash.is-err { background: #fde8eb; color: #b3263a; }
.join-flash.is-ok  { background: #e3f6ec; color: #17784f; }
[data-theme="dark"] .join-flash.is-err { background: #3a1519; color: #ff8b99; }
[data-theme="dark"] .join-flash.is-ok  { background: #12301f; color: #5fdc9d; }
.join-dev { margin: 1rem 0 0; padding: .7rem .9rem; border-radius: 12px; border: 2px dotted orange; font-size: .9rem; }
.join-dev span { display: inline-block; margin-right: .5rem; padding: .05rem .45rem; border-radius: 999px; background: #ff9800; color: #1b1b1b;
                 font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.join-dev b { font-size: 1.15rem; letter-spacing: .15em; }
.join-again { margin-top: 1rem; text-align: center; }
.join-fine { margin-top: 1rem; color: var(--muted); font-size: .84rem; }
.join-next { counter-reset: n; display: grid; gap: .8rem; margin: 1.2rem 0 1.4rem; }
.join-next li { counter-increment: n; position: relative; padding-left: 2.4rem; }
.join-next li::before { content: counter(n); position: absolute; left: 0; top: .1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%;
                        display: grid; place-items: center; background: var(--pink-soft); color: var(--pink); font-weight: 800; font-size: .85rem; }
.linkish { border: 0; background: none; padding: 0; color: var(--pink); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; }
.d-join-1 { width: 200px; right: -40px; top: 0; }
.d-join-2 { width: 130px; left: -50px; bottom: 20px; }
