:root {
    --paper: #faf9f5;
    --paper-warm: #f3eee6;
    --surface: #fffdf8;
    --ink: #2f2a26;
    --muted: #6f665f;
    --line: #e3ddd3;
    --hero-red: #fa7373;
    --hero-deep: #8c2626;
    --gold: #f2c733;
    --gold-deep: #a57a12;
    --grass: #63b84d;
    --grass-deep: #33732e;
    --sky: #6bbcf2;
    --sky-pale: #e8f5ff;
    --navy: #263359;
    --ice: #a6dcf5;
    --city: #4c527f;
    --volcano: #db330f;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(90deg, rgb(38 51 89 / 4%) 1px, transparent 1px),
        linear-gradient(180deg, rgb(140 38 38 / 3%) 1px, transparent 1px),
        var(--paper);
    background-size: 36px 36px;
    color: var(--ink);
    font-family: Avenir Next, Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

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

.site-header,
.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header {
    padding: 22px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgb(47 42 38 / 12%);
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 9px 13px;
    text-decoration: none;
}

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

main {
    overflow: hidden;
}

.hero-section {
    width: min(1120px, calc(100% - 32px));
    min-height: calc(100vh - 92px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(250px, 380px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(34px, 7vw, 88px);
    padding: 44px 0 72px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--hero-deep);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    color: var(--navy);
    font-size: clamp(4rem, 10vw, 6.9rem);
    line-height: 0.86;
    letter-spacing: 0;
}

.brand span::first-letter {
    color: var(--hero-red);
}

.hero-title {
    display: grid;
    gap: 0;
    width: fit-content;
    max-width: 100%;
    font-size: clamp(4.1rem, 8vw, 5.9rem);
    line-height: 0.82;
}

.hero-title span {
    display: block;
}

.hero-title span:first-child {
    color: var(--navy);
}

.hero-title span:last-child {
    color: var(--hero-red);
    padding-left: 0.42em;
}

h2 {
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    letter-spacing: 0;
}

h3 {
    color: var(--navy);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.hero-lede {
    max-width: 620px;
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    border: 2px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    font-weight: 900;
    text-decoration: none;
}

.button.primary {
    background: var(--hero-red);
    border-color: var(--hero-deep);
    color: white;
    box-shadow: 0 8px 0 var(--hero-deep), 0 20px 35px rgb(140 38 38 / 18%);
}

.button.secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--navy);
}

.hero-art {
    position: relative;
    align-self: stretch;
    display: grid;
    align-items: center;
    min-width: 0;
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: -20px -18px;
    border: 2px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 22% 18%, rgb(242 199 51 / 28%), transparent 20%),
        radial-gradient(circle at 86% 72%, rgb(99 184 77 / 18%), transparent 24%),
        var(--surface);
    transform: rotate(1.2deg);
}

.hero-badge {
    position: absolute;
    z-index: 3;
    top: -6px;
    left: 24px;
    border: 2px solid var(--gold-deep);
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 900;
    padding: 9px 14px;
    box-shadow: 0 5px 0 var(--gold-deep);
}

.hero-art img {
    position: relative;
    width: 100%;
    border: 3px solid var(--navy);
    border-radius: 14px;
    box-shadow: 10px 10px 0 var(--navy), 0 28px 70px rgb(47 42 38 / 16%);
}

.quick-facts,
.split-section,
.worlds-section,
.family-section,
.policy-hero,
.policy-content {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--line);
}

.quick-facts article {
    background: var(--surface);
    padding: 24px;
}

.quick-facts strong,
.quick-facts span {
    display: block;
}

.quick-facts strong {
    color: var(--navy);
    margin-bottom: 6px;
}

.quick-facts span,
.steps p,
.world-card p,
.family-section p,
.policy-content p,
.policy-content li {
    color: var(--muted);
}

.split-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    padding: 96px 0;
}

.steps {
    display: grid;
    gap: 16px;
}

.steps article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
}

.steps span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-weight: 900;
    box-shadow: inset 0 -3px 0 rgb(165 122 18 / 28%);
}

.worlds-section {
    padding: 72px 0 96px;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 28px;
}

.world-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.world-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    padding: 12px 12px 18px;
    box-shadow: 0 16px 34px rgb(47 42 38 / 7%);
}

.world-card h3 {
    margin: 14px 12px 6px;
}

.world-card p {
    margin-left: 12px;
    margin-right: 12px;
    margin-bottom: 0;
}

.world-render {
    margin: 0;
    border: 3px solid var(--navy);
    border-radius: 12px;
    overflow: hidden;
    background: var(--paper-warm);
    box-shadow: 6px 6px 0 var(--navy);
}

.world-render svg {
    display: block;
    width: 100%;
    aspect-ratio: 360 / 220;
}

.meadow-render {
    border-color: var(--grass-deep);
    box-shadow: 6px 6px 0 var(--grass-deep);
}

.ice-render {
    border-color: #2e528c;
    box-shadow: 6px 6px 0 #2e528c;
}

.city-render {
    border-color: #141424;
    box-shadow: 6px 6px 0 #141424;
}

.volcano-render {
    border-color: #7f1405;
    box-shadow: 6px 6px 0 #7f1405;
}

.family-section {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 96px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    padding: 28px;
}

.family-section img {
    width: 160px;
    border-radius: 32px;
    box-shadow: 0 20px 48px rgb(47 42 38 / 16%);
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 28px 0 36px;
}

.site-footer a {
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

.policy-page {
    padding-bottom: 72px;
}

.policy-hero {
    padding: 72px 0 36px;
}

.policy-hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

.policy-hero p:last-child {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.18rem;
}

.policy-content {
    max-width: 820px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    padding: clamp(24px, 5vw, 48px);
}

.policy-content h2 {
    font-size: 1.45rem;
    line-height: 1.2;
    margin-top: 34px;
    margin-bottom: 10px;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content a {
    color: var(--hero-deep);
    font-weight: 800;
}

.policy-content ul {
    padding-left: 22px;
}

@media (max-width: 860px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        justify-content: flex-start;
    }

    .hero-section,
    .split-section,
    .family-section {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
        padding-top: 26px;
        gap: 42px;
    }

    .hero-title {
        font-size: clamp(4.2rem, 16vw, 6.3rem);
    }

    .quick-facts {
        grid-template-columns: 1fr;
    }

    .world-grid {
        grid-template-columns: 1fr;
    }

    .family-section {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .site-header,
    .site-footer,
    .hero-section,
    .quick-facts,
    .split-section,
    .worlds-section,
    .family-section,
    .policy-hero,
    .policy-content {
        width: min(100% - 24px, 1120px);
    }

    h1 {
        font-size: 3.55rem;
    }

    .hero-title {
        font-size: clamp(3.7rem, 18vw, 4.8rem);
    }

    .hero-art img {
        box-shadow: 6px 6px 0 var(--navy), 0 18px 44px rgb(47 42 38 / 14%);
    }

    .hero-badge {
        left: 12px;
    }

    .button {
        width: 100%;
    }

    .family-section img {
        width: 124px;
        border-radius: 24px;
    }
}
