:root {
    --ink: #10242b;
    --paper: #eff5e9;
    --moss: #336d49;
    --leaf: #8bbd61;
    --sky: #8fd4df;
    --sun: #f5be4d;
    --clay: #ca7254;
    --line: #c9d5c5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Space Grotesk", sans-serif;
}

button,
a {
    font: inherit;
}

.hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    background: var(--sky);
}

.navigation,
.hero-content,
.about-section,
.join-section,
.community-section,
footer {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.navigation {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
}

.brand {
    color: var(--ink);
    font-family: "VT323", monospace;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
}

.brand span {
    color: var(--moss);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--moss);
}

.hero-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    opacity: 0.38;
}

.hero-grid span {
    border-right: 1px solid rgba(16, 36, 43, 0.16);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 124px 0 140px;
}

.eyebrow,
.section-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: var(--moss);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.status-dot {
    width: 9px;
    height: 9px;
    background: var(--leaf);
    box-shadow: 0 0 0 4px rgba(139, 189, 97, 0.26);
}

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

h1,
h2 {
    letter-spacing: 0;
}

h1 {
    max-width: 700px;
    margin-bottom: 24px;
    font-size: clamp(52px, 8vw, 104px);
    line-height: 0.92;
}

h1 em {
    color: var(--moss);
    font-style: normal;
}

.hero-text {
    max-width: 525px;
    font-size: 18px;
    line-height: 1.55;
}

.server-card {
    width: min(100%, 470px);
    margin-top: 38px;
    padding: 18px;
    border: 2px solid var(--ink);
    background: var(--paper);
    box-shadow: 8px 8px 0 var(--ink);
}

.server-label,
.server-version {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

.server-label svg,
.server-version svg {
    width: 16px;
}

.server-label {
    margin-bottom: 8px;
    color: var(--moss);
}

.ip-button,
.secondary-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
}

.ip-button {
    width: 100%;
    padding: 13px 14px;
    color: white;
    background: var(--ink);
    font-size: 20px;
}

.ip-button:hover,
.ip-button:focus-visible {
    background: var(--moss);
}

.ip-button svg {
    width: 19px;
    flex: 0 0 auto;
}

.server-version {
    margin: 12px 0 0;
}

.copy-status {
    min-height: 19px;
    margin: 8px 0 0;
    color: var(--moss);
    font-size: 13px;
    font-weight: 700;
}

.scroll-link {
    position: absolute;
    z-index: 2;
    right: max(24px, calc((100vw - 1160px) / 2));
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.scroll-link svg {
    width: 17px;
}

.about-section,
.join-section,
.community-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

.about-section {
    background: var(--paper);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
    align-items: end;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 0.98;
}

.about-layout > p,
.community-copy > p {
    margin-bottom: 0;
    font-size: 17px;
    line-height: 1.65;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 72px;
}

.features article {
    min-height: 220px;
    padding: 28px;
    border: 1px solid var(--line);
    background: #f8fbf4;
}

.features article:nth-child(2) {
    background: var(--leaf);
}

.features svg {
    width: 28px;
    height: 28px;
    color: var(--moss);
}

.features h3 {
    margin: 42px 0 9px;
    font-size: 20px;
}

.features p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.55;
}

.join-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    overflow: hidden;
    background: var(--ink);
    color: white;
}

.join-section::before,
.join-section::after {
    position: absolute;
    content: "";
}

.join-section::before {
    top: 0;
    right: 0;
    width: 34%;
    height: 100%;
    background: var(--clay);
}

.join-section::after {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--sun);
}

.join-visual,
.join-content {
    position: relative;
    z-index: 1;
}

.join-visual {
    min-height: 400px;
    overflow: hidden;
    border: 2px solid #f8fbf4;
    background: #356f7c;
}

.sun {
    position: absolute;
    top: 50px;
    right: 54px;
    width: 94px;
    height: 94px;
    background: var(--sun);
}

.terrain {
    position: absolute;
    transform: rotate(45deg);
}

.terrain-back {
    right: -65px;
    bottom: -142px;
    width: 360px;
    height: 360px;
    background: var(--moss);
}

.terrain-front {
    bottom: -210px;
    left: -20px;
    width: 490px;
    height: 490px;
    background: #235039;
}

.join-content .section-kicker {
    color: var(--leaf);
}

.steps {
    display: grid;
    gap: 17px;
    padding: 0;
    margin: 44px 0 30px;
    list-style: none;
}

.steps li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.steps span {
    color: var(--sun);
    font-family: "VT323", monospace;
    font-size: 25px;
}

.steps p {
    margin-bottom: 0;
    line-height: 1.5;
}

.secondary-copy {
    padding: 13px 17px;
    color: var(--ink);
    background: var(--sun);
}

.secondary-copy:hover,
.secondary-copy:focus-visible {
    background: white;
}

.secondary-copy svg {
    width: 18px;
}

.community-section {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 60px;
    background: var(--leaf);
}

.community-section .section-kicker {
    color: var(--ink);
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--ink);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.discord-link svg {
    width: 18px;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 26px;
    padding-bottom: 26px;
    font-size: 13px;
}

footer p {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .hero {
        min-height: 700px;
    }

    .navigation,
    footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .hero-content {
        padding-top: 100px;
    }

    .about-layout,
    .join-section,
    .community-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features {
        grid-template-columns: 1fr;
        margin-top: 45px;
    }

    .join-section::before {
        width: 100%;
        height: 22%;
    }

    .join-visual {
        min-height: 270px;
    }

    .scroll-link {
        left: 24px;
        right: auto;
    }
}
