/* ============================================================
   Starry Luck Club — style.css
   Theme: "a members' club above the clouds" — pale daylight
   sky, deep indigo nights, merge-magic magenta and star gold.
   Fonts: Fredoka (display) + Nunito Sans (body).
   ============================================================ */

:root {
    --paper: #f2f7ff;
    --paper-2: #e3eefc;
    --card: #ffffff;
    --ink: #24294f;
    --ink-soft: #4d5578;
    --ink-faint: #7a83a6;
    --azure: #0188fe;
    --azure-deep: #0168c9;
    --sky-soft: #bde0fd;
    --pink: #e81898;
    --pink-deep: #c40d7f;
    --pink-soft: #fbd7ec;
    --gold: #f4b53f;
    --gold-soft: #fdeecb;
    --lav: #a7b8e3;
    --cream: #faf3ea;
    --night: #1b1b3f;
    --night-deep: #14142f;
    --line: #d5e3f7;
    --shadow: 0 14px 34px rgba(27, 27, 63, 0.10);
    --shadow-lg: 0 22px 48px rgba(27, 27, 63, 0.16);
    --radius: 18px;
    --radius-sm: 12px;
    --font-display: "Fredoka", "Trebuchet MS", sans-serif;
    --font-body: "Nunito Sans", "Segoe UI", sans-serif;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--azure-deep); text-decoration: none; }
a:hover { color: var(--pink); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 0.5em;
}

h2 { font-size: 2.1rem; letter-spacing: 0.2px; }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1.1em; }

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.overline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--azure-deep);
    margin: 0 0 0.6em;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--night);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 12px 0;
    z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 13px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-star {
    background: linear-gradient(135deg, var(--azure) 0%, var(--azure-deep) 55%, var(--pink) 145%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(1, 104, 201, 0.32);
}
.btn-star:hover {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(196, 13, 127, 0.32);
}

.btn-cloud {
    background: rgba(255, 255, 255, 0.85);
    color: var(--azure-deep);
    border-color: var(--sky-soft);
    box-shadow: 0 6px 18px rgba(27, 27, 63, 0.08);
}
.btn-cloud:hover {
    border-color: var(--pink);
    color: var(--pink-deep);
    transform: translateY(-2px);
}

.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

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

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}
.brand svg { width: 46px; height: auto; }

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.32rem;
    letter-spacing: 0.3px;
    color: var(--ink);
    white-space: nowrap;
}
.brand-name em {
    font-style: normal;
    color: var(--pink);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--ink-soft);
    padding: 8px 13px;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover {
    color: var(--azure-deep);
    background: var(--paper-2);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 18px 24px;
        display: none;
    }
    .main-nav.is-open { display: flex; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 420px at 85% -10%, rgba(232, 24, 152, 0.10), transparent 60%),
        radial-gradient(900px 380px at 8% 0%, rgba(1, 136, 254, 0.14), transparent 55%),
        linear-gradient(180deg, #e8f3ff 0%, var(--paper) 70%);
    padding: 84px 0 72px;
    text-align: center;
}

.hero-mark { margin-bottom: 10px; }
.hero-mark svg {
    width: min(560px, 82%);
    height: auto;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.1rem);
    font-weight: 700;
    margin: 0.1em 0 0.35em;
}

.sky-azure { color: var(--azure); }
.sky-pink { color: var(--pink); }

.hero-lede {
    max-width: 640px;
    margin: 0 auto 1.6em;
    font-size: 1.14rem;
    color: var(--ink-soft);
}

.hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 1.8em;
}

.hero-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 2.2em;
    padding: 0;
}

.hero-facts li {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--azure-deep);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    box-shadow: 0 4px 10px rgba(27, 27, 63, 0.06);
}

.hero-icon {
    margin: 0 auto;
    width: 152px;
    background: #fff;
    border-radius: 26px;
    padding: 14px 14px 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.hero-icon img { border-radius: 18px; width: 100%; }

.hero-icon figcaption {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--ink-faint);
    padding-top: 8px;
}

/* ---------- chapters ---------- */
.chapter { padding: 76px 0; }
.chapter.alt {
    background:
        radial-gradient(700px 300px at 90% 8%, rgba(167, 184, 227, 0.28), transparent 60%),
        var(--paper-2);
}

.chapter-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

.chapter-rule {
    border: none;
    height: 4px;
    width: 170px;
    margin: 14px auto 16px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--azure), var(--lav), var(--pink));
    opacity: 0.7;
}

.head-note { color: var(--ink-soft); margin-top: 0.4em; }

/* ---------- story / quest ---------- */
.quest-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}

.drop::first-letter {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3.3em;
    float: left;
    line-height: 0.82;
    padding: 6px 10px 0 0;
    color: var(--pink);
}

.pull-quote {
    margin: 1.6em 0 0.6em;
    padding: 18px 24px;
    border-left: 4px solid var(--gold);
    background: var(--gold-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.02rem;
    color: var(--ink);
}
.pull-quote cite {
    display: block;
    font-style: normal;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--ink-faint);
    margin-top: 8px;
}

.flight-log {
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 28px;
}

.flight-log h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.2em;
}
.flight-log h3 svg { width: 22px; height: 22px; color: var(--gold); }

.flight-log .dateline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 1em;
}

.flight-log dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    margin: 0;
}

.flight-log dt {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--azure-deep);
    padding-top: 12px;
}

.flight-log dd {
    margin: 0;
    padding: 0 0 12px;
    border-bottom: 1px dashed var(--line);
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.flight-log dl dt:last-of-type + dd { border-bottom: none; padding-bottom: 0; }

/* ---------- sparks (gameplay pillars) ---------- */
.spark-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.spark-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px 26px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.spark-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.spark-no {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px 6px 18px 6px;
    color: #fff;
    background: linear-gradient(135deg, var(--azure), var(--azure-deep));
    margin-bottom: 16px;
}
.spark-card:nth-child(2n) .spark-no {
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
}
.spark-card:nth-child(3n) .spark-no {
    background: linear-gradient(135deg, var(--gold), #d98f1f);
}

.spark-card p { color: var(--ink-soft); margin: 0; }

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

.lesson-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 28px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lesson-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.lesson-ic {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 2px solid var(--line);
}
.lesson-ic svg { width: 34px; height: 34px; }

.lesson-three .lesson-ic { color: var(--azure); background: #e3f2ff; border-color: #b8dcff; }
.lesson-five .lesson-ic { color: var(--pink); background: var(--pink-soft); border-color: #f7c1e1; }
.lesson-sweep .lesson-ic { color: var(--gold-deep, #b97b16); background: var(--gold-soft); border-color: #f4d79a; }

.lesson-tag {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 0.6em;
}
.lesson-copy { color: var(--ink-soft); margin: 0; }

/* ---------- postcards (gallery) ---------- */
.postcard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.postcard {
    margin: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.postcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.postcard-wide { grid-column: 1 / -1; }

.postcard-frame {
    position: relative;
    padding: 10px;
    background: linear-gradient(180deg, #ffffff, #f4f9ff);
}
.postcard-frame::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 26px;
    height: 30px;
    border-radius: 4px;
    background:
        repeating-linear-gradient(45deg, var(--gold) 0 4px, var(--gold-soft) 4px 8px);
    border: 1px solid #e7c983;
    opacity: 0.9;
    z-index: 2;
    pointer-events: none;
}

.postcard-frame img {
    width: 100%;
    border-radius: 12px;
    cursor: zoom-in;
}

.postcard figcaption {
    padding: 16px 22px 18px;
    font-size: 0.95rem;
    color: var(--ink-soft);
    border-top: 1px dashed var(--line);
}

.postcard-no {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 4px;
}

/* ---------- rules ---------- */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.rule-cell {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rule-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.rule-cell svg {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: var(--azure);
    margin-top: 4px;
}
.rule-cell:nth-child(2n) svg { color: var(--pink); }
.rule-cell:nth-child(3n) svg { color: var(--gold); }

.rule-cell h3 { margin: 0 0 0.3em; }
.rule-cell p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- crew (studio) ---------- */
.crew-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

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

.crew-games {
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 4px solid var(--pink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 28px;
}

.crew-games h3 { margin-bottom: 0.2em; }

.shelf-note {
    font-size: 0.9rem;
    color: var(--ink-faint);
    margin: 0 0 1em;
}

.crew-games ul {
    list-style: none;
    margin: 0 0 1.4em;
    padding: 0;
}

.crew-games li { border-bottom: 1px dashed var(--line); }
.crew-games li:last-child { border-bottom: none; }

.crew-games li a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 11px 2px;
    font-weight: 600;
    color: var(--ink);
}
.crew-games li a:hover { color: var(--pink-deep); }

.crew-games li a span {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    white-space: nowrap;
}

.crew-more { text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.faq-item.is-open { box-shadow: var(--shadow); }

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.04rem;
    color: var(--ink);
    background: none;
    border: none;
    padding: 18px 22px;
    cursor: pointer;
}

.faq-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--azure-deep);
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    background: var(--pink);
    color: #fff;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-a-inner { padding: 0 22px 20px; }
.faq-a-inner p { margin: 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
    color: #fff;
    text-align: center;
    padding: 84px 0;
    background:
        radial-gradient(560px 220px at 12% 18%, rgba(232, 24, 152, 0.35), transparent 60%),
        radial-gradient(640px 260px at 88% 80%, rgba(1, 136, 254, 0.35), transparent 60%),
        radial-gradient(2px 2px at 20% 30%, #ffffff 40%, transparent 41%),
        radial-gradient(2px 2px at 74% 22%, #ffffff 40%, transparent 41%),
        radial-gradient(2.4px 2.4px at 46% 70%, #ffffff 40%, transparent 41%),
        radial-gradient(2px 2px at 90% 56%, #ffffff 40%, transparent 41%),
        radial-gradient(1.6px 1.6px at 60% 14%, #ffffff 40%, transparent 41%),
        radial-gradient(1.6px 1.6px at 32% 84%, #ffffff 40%, transparent 41%),
        linear-gradient(160deg, var(--night) 0%, var(--night-deep) 100%);
}

.cta-band .overline { color: var(--gold); }
.cta-band h2 { color: #fff; font-size: 2.4rem; }
.cta-band p { color: #cfd3f2; max-width: 560px; margin: 0 auto 1.6em; }

.cta-band .btn-cloud {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
}
.cta-band .btn-cloud:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(255, 255, 255, 0.14);
}

.cta-note {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8f96c9;
    margin-top: 1.6em;
}

/* ---------- footer ---------- */
.site-footer {
    background:
        radial-gradient(480px 200px at 90% 0%, rgba(1, 136, 254, 0.16), transparent 60%),
        var(--night-deep);
    color: #aeb3d6;
    padding: 64px 0 0;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 44px;
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 0.92rem; color: #aeb3d6; margin: 0; }

.site-footer h3 {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 1em;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }

.site-footer a { color: #aeb3d6; }
.site-footer a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0 26px;
    font-size: 0.82rem;
    color: #7c82ab;
}
.footer-bottom p { margin: 0 0 4px; }

/* ---------- lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(20, 20, 47, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 34px;
}
.lightbox.is-open { display: flex; }

.lightbox img {
    max-width: min(1100px, 94vw);
    max-height: 78vh;
    width: auto;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #dfe3fb;
    font-family: var(--font-display);
    font-weight: 500;
    margin: 0;
    text-align: center;
    max-width: 640px;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.18s ease;
}
.lightbox-close:hover { background: var(--pink); }

/* ---------- back to top ---------- */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--azure), var(--pink));
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.to-top.is-shown { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

.no-motion .reveal,
.no-motion .reveal.is-visible {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { transition: none; }
    .btn, .spark-card, .lesson-card, .postcard, .rule-cell { transition: none; }
}

/* ---------- subpages ---------- */
.crumbs {
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
}
.crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 12px 24px;
    font-size: 0.86rem;
    color: var(--ink-faint);
}
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--ink-faint); }
.crumbs a { color: var(--azure-deep); }
.crumbs a:hover { color: var(--pink); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

.page-hero {
    text-align: center;
    padding: 64px 0 56px;
    background:
        radial-gradient(800px 300px at 80% -20%, rgba(232, 24, 152, 0.08), transparent 60%),
        radial-gradient(800px 300px at 15% 0%, rgba(1, 136, 254, 0.12), transparent 55%),
        linear-gradient(180deg, #e8f3ff 0%, var(--paper) 80%);
}
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0.1em 0 0.3em; }
.page-hero p { max-width: 560px; margin: 0 auto; color: var(--ink-soft); }

.fleuron {
    font-size: 1.5rem;
    color: var(--gold);
    margin-top: 0.8em;
}

.prose { max-width: 760px; margin: 0 auto; }
.prose .lead { font-size: 1.12rem; color: var(--ink-soft); }
.prose h2 { margin-top: 2em; }

.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li a { font-weight: 600; }

.prose-note {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--pink);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin-top: 2.4em;
}

/* ---------- contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.contact-info dl { margin: 0 0 1em; }
.contact-info dt {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--azure-deep);
    padding-top: 14px;
}
.contact-info dd { margin: 4px 0 0; color: var(--ink-soft); }

.contact-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 32px;
}
.contact-form h2 { font-size: 1.5rem; }

.form-note { font-size: 0.9rem; color: var(--ink-faint); }

.form-field { margin-bottom: 18px; }
.form-field label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--ink);
}

.form-field input,
.form-field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--azure);
    box-shadow: 0 0 0 3px rgba(1, 136, 254, 0.15);
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-status { font-size: 0.9rem; color: var(--azure-deep); margin: 12px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .spark-grid, .lesson-grid, .rules-grid { grid-template-columns: repeat(2, 1fr); }
    .postcard-grid { grid-template-columns: 1fr; }
    .quest-grid, .crew-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .spark-grid, .lesson-grid, .rules-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .chapter { padding: 56px 0; }
    .hero { padding: 60px 0 52px; }
    .hero-cta .btn { width: 100%; }
    .brand-name { font-size: 1.15rem; }
    .to-top { right: 14px; bottom: 14px; }
}