:root {
    color-scheme: dark;
    --night: #02070d;
    --deep: #061522;
    --panel: rgba(7, 22, 32, .94);
    --gold: #e8b955;
    --light-gold: #f6d792;
    --text: #d8e7ee;
    --muted: #91a9b5;
    --blue: #39baf3;
    --green: #4dd498;
    --orange: #ff8d3a;
    --purple: #c88cff;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--night);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    background:
        radial-gradient(circle at 50% 0,
            rgba(27, 118, 166, .24), transparent 30%),
        linear-gradient(145deg, var(--night), var(--deep));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .1;
    background-image:
        linear-gradient(rgba(232,185,85,.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232,185,85,.09) 1px, transparent 1px);
    background-size: 72px 72px;
}

.realm {
    position: relative;
    width: min(1220px, calc(100% - 28px));
    margin: auto;
    padding: 48px 0 70px;
}

.hero {
    max-width: 900px;
    margin: 0 auto 32px;
    text-align: center;
}

.crest {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: auto;
    color: var(--light-gold);
    font-size: 30px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: rgba(7, 35, 53, .9);
    box-shadow: 0 0 32px rgba(57, 186, 243, .24);
}

.eyebrow {
    margin: 14px 0 7px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 5px;
}

h1 {
    margin: 0;
    color: var(--light-gold);
    font: 500 clamp(55px, 8vw, 96px)/.98 Georgia, serif;
}

.tagline {
    margin: 20px 0 10px;
    color: #bde9ff;
    font-size: clamp(20px, 3vw, 29px);
    font-weight: 700;
}

.intro {
    max-width: 790px;
    margin: auto;
    color: var(--text);
    font: italic 17px/1.6 Georgia, serif;
}

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

.rail {
    --accent: var(--blue);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 23px 20px 19px;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(145, 177, 194, .24);
    border-radius: 18px;
    background:
        linear-gradient(145deg, var(--panel), rgba(3, 12, 19, .97));
    transition: transform .16s ease, border-color .16s ease;
}

.rail::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 22px var(--accent);
}

.rail:hover {
    color: white;
    transform: translateY(-5px);
    border-color: var(--accent);
}

.number {
    position: absolute;
    top: 14px;
    right: 16px;
    color: rgba(220, 235, 243, .25);
    font-size: 11px;
    letter-spacing: 2px;
}

.icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 31px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: rgba(255, 255, 255, .02);
}

.kicker {
    margin: 0 0 7px !important;
    color: var(--accent) !important;
    font-size: 11px !important;
    font-weight: 900;
    letter-spacing: 2px;
}

.rail h2 {
    margin: 0 0 9px;
    color: var(--light-gold);
    font: 500 28px/1.1 Georgia, serif;
}

.rail p:not(.kicker) {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.52;
}

.rail strong {
    margin-top: auto;
    color: var(--accent);
    font-size: 13px;
}

.treasure { --accent: var(--gold); }
.radio { --accent: var(--orange); }
.nft { --accent: var(--blue); }
.learn { --accent: var(--green); }
.kingdom { --accent: var(--purple); }
.news { --accent: #7aaeff; }

footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 18px;
    color: var(--muted);
    font-size: 12px;
    border-top: 1px solid rgba(145, 177, 194, .2);
}

footer strong {
    color: var(--gold);
}

@media (max-width: 900px) {
    .rails {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .rails {
        grid-template-columns: 1fr;
    }

    footer {
        display: grid;
        gap: 7px;
        text-align: center;
    }
}
