:root {
    --ink: #161615;
    --paper: #fbf7ee;
    --muted: #6e675b;
    --line: rgba(32, 28, 22, 0.14);
    --green: #426a3b;
    --green-deep: #1f3f32;
    --rose: #8e3f56;
    --rose-deep: #321b28;
    --gold: #c9953f;
    --blue: #315b76;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body.lonhome {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 14px clamp(18px, 5vw, 72px);
    background: rgba(251, 247, 238, 0.93);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.site-brand,
.site-nav a,
.footer-links a {
    color: inherit;
    text-decoration: none;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 800;
}

.brand-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.74) 43% 57%, transparent 58%),
        linear-gradient(0deg, transparent 42%, rgba(255, 255, 255, 0.74) 43% 57%, transparent 58%),
        linear-gradient(135deg, var(--gold) 0 48%, var(--green) 49% 100%);
    box-shadow: 4px 4px 0 rgba(22, 22, 21, 0.18);
}

.site-nav,
.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a,
.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #413d35;
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--ink);
    background: rgba(22, 22, 21, 0.07);
    outline: none;
}

.hero-section {
    min-height: min(680px, 74vh);
    display: flex;
    align-items: center;
    padding: clamp(72px, 11vw, 136px) clamp(18px, 5vw, 72px);
    color: var(--white);
    background:
        linear-gradient(115deg, rgba(201, 149, 63, 0.16) 0 18%, transparent 18% 100%),
        linear-gradient(154deg, transparent 0 58%, rgba(142, 63, 86, 0.2) 58% 72%, transparent 72%),
        linear-gradient(135deg, #121713 0%, #263d34 52%, #2b1d2a 100%);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 72px 72px;
}

.hero-section::after {
    content: "";
    position: absolute;
    right: clamp(18px, 7vw, 120px);
    bottom: clamp(22px, 6vw, 78px);
    width: clamp(140px, 22vw, 280px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.22) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.22) 50%, transparent 51%);
    box-shadow: 0 0 80px rgba(201, 149, 63, 0.16);
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(780px, 100%);
}

.eyebrow,
.world-kicker {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-copy h1 {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    line-height: 0.88;
    font-weight: 900;
    text-wrap: balance;
}

.hero-lede {
    width: min(640px, 100%);
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.87);
    font-size: clamp(1.1rem, 2.2vw, 1.42rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.primary-link,
.secondary-link,
.world-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.primary-link::after,
.secondary-link::after,
.world-link::after {
    content: ">";
    margin-left: 10px;
    font-weight: 900;
}

.primary-link {
    color: var(--ink);
    background: var(--gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.secondary-link {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.1);
}

.primary-link:hover,
.primary-link:focus-visible,
.secondary-link:hover,
.secondary-link:focus-visible,
.world-link:hover,
.world-link:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.worlds-section {
    padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 72px);
    background:
        linear-gradient(180deg, #fbf7ee 0%, #f1eadc 100%);
}

.section-intro {
    width: min(760px, 100%);
    margin-bottom: clamp(28px, 5vw, 48px);
}

.section-intro h2 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 4.4rem);
    line-height: 0.98;
    font-weight: 900;
}

.section-intro p:last-child {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

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

.world-card {
    display: grid;
    grid-template-rows: minmax(260px, 38vw) auto;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 24px 70px rgba(31, 27, 21, 0.12);
}

.world-art {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    background: #141514;
    position: relative;
    overflow: hidden;
}

.world-card-tenetite .world-art {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 18px),
        linear-gradient(135deg, #173629 0%, #426a3b 58%, #d4a347 100%);
}

.world-card-shadows .world-art {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 18px),
        linear-gradient(135deg, #221626 0%, #8e3f56 55%, #315b76 100%);
}

.world-sigil {
    width: min(190px, 44%);
    aspect-ratio: 1;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.2) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.2) 50%, transparent 51%);
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.26);
}

.world-sigil span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 82%;
    height: 1px;
    transform-origin: center;
    background: rgba(255, 255, 255, 0.36);
}

.world-sigil span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(0deg);
}

.world-sigil span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(60deg);
}

.world-sigil span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(120deg);
}

.world-copy {
    padding: clamp(24px, 4vw, 36px);
}

.world-copy h3 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.96;
    font-weight: 900;
}

.world-copy p:not(.world-kicker) {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.world-link {
    width: fit-content;
    margin-top: 24px;
    color: var(--white);
    background: var(--ink);
}

.world-card-tenetite .world-link {
    background: var(--green);
}

.world-card-shadows .world-link {
    background: var(--rose);
}

.signal-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.signal-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 116px;
    padding: 22px;
    background: #fffaf2;
    color: #3e392f;
    font-weight: 900;
    text-align: center;
    position: relative;
}

.signal-item::before {
    content: "";
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--gold);
    box-shadow:
        0 0 0 6px rgba(201, 149, 63, 0.16),
        0 0 0 12px rgba(49, 91, 118, 0.08);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px clamp(18px, 5vw, 72px);
    color: #4d473d;
    background: #efe7d8;
}

.site-footer div:first-child {
    display: grid;
    gap: 4px;
}

.site-footer span {
    color: var(--muted);
}

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

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

    .hero-section {
        min-height: 68vh;
    }

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

    .world-card {
        grid-template-rows: minmax(220px, 52vw) auto;
    }
}

@media (max-width: 520px) {
    .site-brand {
        font-size: 0.98rem;
    }

    .site-nav a,
    .footer-links a {
        min-height: 36px;
        padding: 7px 10px;
    }

    .hero-actions {
        display: grid;
    }

    .primary-link,
    .secondary-link,
    .world-link {
        width: 100%;
    }

    .hero-copy h1 {
        font-size: clamp(3rem, 17vw, 4.4rem);
    }
}
