:root {
    color-scheme: dark;
    --background: #0b0d10;
    --surface: #141518;
    --text: #f0efec;
    --muted: #aaa7a5;
    --accent: #eea366;
    --border: #2d2d30;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--background);
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

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

body {
    min-width: 280px;
    margin: 0;
    background:
        radial-gradient(ellipse at 75% 22%, rgba(185, 101, 49, .1), transparent 38%),
        radial-gradient(ellipse at 12% 80%, rgba(87, 115, 134, .05), transparent 36%);
}

body::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 780px;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 65% 25%, #000, transparent 72%);
    content: "";
    pointer-events: none;
}

::selection {
    color: var(--background);
    background: var(--accent);
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

svg {
    display: block;
    flex-shrink: 0;
}

.page {
    max-width: 1216px;
    margin: 0 auto;
    padding: 0 48px;
}

.skip-link {
    position: fixed;
    z-index: 10;
    top: 12px;
    left: 12px;
    padding: 12px 20px;
    border-radius: 6px;
    color: var(--background);
    background: var(--accent);
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.masthead,
.brand,
.top-nav,
.hero-actions,
.section-heading,
.entry-top,
.panel-heading,
.footer-top,
.footer-bottom,
.footer-nav {
    display: flex;
    align-items: center;
}

.masthead {
    justify-content: space-between;
    gap: 24px;
    min-height: 96px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.brand {
    flex-shrink: 0;
    gap: 10px;
    min-height: 44px;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: .06em;
}

.brand svg {
    width: 29px;
    height: 29px;
    color: var(--accent);
}

.brand-accent {
    color: var(--accent);
}

.top-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 30px;
    color: var(--muted);
    font-size: 13px;
}

.top-nav a,
.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    transition: color .2s;
}

.top-nav a:hover,
.footer a:hover {
    color: var(--accent);
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 36px;
    padding: 76px 0 78px;
}

.eyebrow,
.hero-note,
.world-label,
.world-caption,
.section-label,
.entry-address,
.footer-label {
    font-family: var(--mono);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px;
    color: #c59a78;
    font-size: 10px;
    letter-spacing: .2em;
}

.eyebrow-line {
    width: 24px;
    height: 1px;
    background: #9b7252;
}

h1 {
    margin: 0;
    font-size: clamp(44px, 5.2vw, 66px);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.32;
}

h1 span {
    color: var(--accent);
}

.hero-description {
    margin: 24px 0 30px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background-color .2s, border-color .2s, transform .2s;
}

.button svg {
    width: 18px;
    height: 18px;
}

.button-primary {
    color: #20160e;
    background: var(--accent);
}

.button-primary:hover {
    background: #f5b685;
    transform: translateY(-2px);
}

.button-secondary {
    border-color: #393431;
    color: #ddd1c6;
    background: rgba(255, 255, 255, .015);
}

.button-secondary:hover {
    border-color: #916b4d;
    background: rgba(238, 163, 102, .06);
}

.hero-note {
    margin: 24px 0 0;
    color: #99918c;
    font-size: 9px;
    letter-spacing: .08em;
    line-height: 1.8;
}

.world {
    position: relative;
    width: 360px;
    max-width: 100%;
    aspect-ratio: 1;
    justify-self: center;
}

.world::before {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: rgba(211, 132, 68, .1);
    filter: blur(50px);
    content: "";
}

.world-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent calc(50% - .5px), rgba(238, 163, 102, .15) 50%, transparent calc(50% + .5px)),
        linear-gradient(90deg, transparent calc(50% - .5px), rgba(238, 163, 102, .15) 50%, transparent calc(50% + .5px));
}

.orbit {
    position: absolute;
    inset: 5%;
    border: 1px solid rgba(238, 163, 102, .19);
    border-radius: 50%;
    animation: revolve 70s linear infinite;
}

.orbit::before,
.orbit::after {
    position: absolute;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 15px rgba(238, 163, 102, .7);
    content: "";
}

.orbit::before {
    left: -3px;
}

.orbit::after {
    right: -3px;
    background: #bcb0a5;
}

.orbit-inner {
    inset: 19%;
    border-style: dashed;
    border-color: rgba(238, 163, 102, .15);
    animation-direction: reverse;
    animation-duration: 90s;
}

.orbit-inner::before,
.orbit-inner::after {
    width: 3px;
    height: 3px;
    box-shadow: none;
}

.world-core {
    position: absolute;
    inset: 35%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(238, 163, 102, .38);
    border-radius: 27%;
    background: linear-gradient(145deg, #30251e, #141416);
    box-shadow: inset 0 1px 0 rgba(255, 223, 195, .08), 0 14px 50px rgba(0, 0, 0, .3);
    transform: rotate(-8deg);
}

.world-core svg {
    width: 54%;
    height: 54%;
    color: #f2b17d;
    transform: rotate(8deg);
}

.world-label {
    position: absolute;
    padding: 7px 10px;
    border: 1px solid #373029;
    border-radius: 5px;
    color: #c6ab95;
    background: #141312;
    font-size: 10px;
    letter-spacing: .14em;
}

.label-lpc {
    top: 3%;
    left: 53%;
}

.label-mudlib {
    top: 52%;
    right: -1%;
}

.label-fluffos {
    bottom: 20%;
    left: 0;
}

.world-caption {
    position: absolute;
    right: 0;
    bottom: -22px;
    left: 0;
    color: #a08d7e;
    font-size: 9px;
    letter-spacing: .23em;
    text-align: center;
}

.section-heading {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2,
.panel-heading h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .02em;
}

.section-label {
    color: #a39b94;
    font-size: 10px;
    letter-spacing: .16em;
}

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

.entry-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(125deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .01));
    transition: border-color .2s, background-color .2s, transform .2s;
}

.entry-card:hover {
    border-color: #916b4d;
    background-color: rgba(238, 163, 102, .035);
    transform: translateY(-4px);
}

.entry-top {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.entry-icon {
    width: 26px;
    height: 26px;
    color: #d8ac87;
}

.arrow {
    width: 19px;
    height: 19px;
    color: #a08a77;
    transition: transform .2s;
}

.entry-card:hover .arrow {
    transform: translate(2px, -2px);
}

.entry-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 600;
}

.entry-card p {
    flex: 1;
    margin: 0 0 25px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.95;
}

.entry-address {
    color: #bda58f;
    font-size: 11px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    margin-top: 42px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.link-panel {
    min-width: 0;
    scroll-margin-top: 28px;
}

.link-panel + .link-panel {
    padding-left: 36px;
    border-left: 1px solid var(--border);
}

.panel-heading {
    gap: 14px;
}

.panel-heading h2 {
    font-size: 15px;
}

.panel-heading .section-label {
    font-size: 9px;
}

.link-panel > p {
    margin: 14px 0 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.panel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
}

.panel-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #dfc2a9;
    background: rgba(255, 255, 255, .02);
}

.panel-links a:hover {
    border-color: #916b4d;
}

.panel-links a > span {
    color: #b29278;
}

.panel-links small {
    color: var(--muted);
    font-size: 10px;
}

.footer {
    margin-top: 52px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    color: #aaa29c;
    font-size: 11px;
}

.footer-top,
.footer-bottom {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
}

.footer-top p {
    margin: 0;
    line-height: 1.8;
}

.footer-motto {
    margin-left: 14px;
    color: #99918c;
}

.footer-nav {
    flex-wrap: wrap;
    gap: 2px 22px;
}

.footer-bottom {
    margin-top: 8px;
    color: #969296;
    font-size: 10px;
}

.footer-bottom > a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.footer-label {
    letter-spacing: .1em;
}

@keyframes revolve {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 960px) {
    .page {
        padding: 0 32px;
    }

    .hero {
        grid-template-columns: 1.35fr 1fr;
        gap: 12px;
        padding: 58px 0 64px;
    }

    .world {
        width: 280px;
    }

    .hero-note {
        max-width: 290px;
    }

    .entry-card {
        padding: 22px;
    }
}

@media (max-width: 700px) {
    .page {
        padding: 0 24px;
    }

    .masthead {
        flex-wrap: wrap;
        gap: 0 16px;
        min-height: 80px;
        padding: 14px 0;
    }

    .brand {
        gap: 8px;
        font-size: 15px;
    }

    .brand svg {
        width: 25px;
        height: 25px;
    }

    .top-nav {
        gap: 0 18px;
        font-size: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 46px 0 60px;
    }

    .eyebrow {
        margin-bottom: 22px;
        font-size: 9px;
        letter-spacing: .15em;
    }

    h1 {
        font-size: 48px;
    }

    .hero-description {
        margin: 22px 0 24px;
        font-size: 13px;
    }

    .button {
        gap: 10px;
        padding: 12px 14px;
        font-size: 12px;
    }

    .hero-note {
        max-width: none;
        font-size: 8px;
    }

    .world {
        width: 250px;
    }

    .section-heading {
        flex-wrap: wrap;
        gap: 10px;
    }

    .section-heading h2 {
        font-size: 16px;
    }

    .section-label {
        font-size: 9px;
    }

    .entry-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .entry-card {
        padding: 24px;
    }

    .entry-top {
        margin-bottom: 20px;
    }

    .entry-card p {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 32px;
        padding-top: 28px;
    }

    .link-panel + .link-panel {
        padding-top: 28px;
        padding-left: 0;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .footer {
        margin-top: 34px;
    }

    .footer-top,
    .footer-bottom {
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .page {
        padding: 0 20px;
    }

    .masthead {
        justify-content: center;
    }

    .top-nav {
        justify-content: center;
        width: 100%;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-motto {
        display: block;
        margin-left: 0;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
