:root {
    --background: #101411;
    --background-soft: #171d19;
    --panel: #1d2520;
    --panel-hover: #253029;
    --border: #39473e;
    --text: #f1efe7;
    --muted: #b9c1b8;
    --accent: #d0a85c;
    --accent-light: #e8cb8d;
    --green: #7fa27f;
    --max-width: 1180px;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(127, 162, 127, 0.15), transparent 35%),
        radial-gradient(circle at 85% 25%, rgba(208, 168, 92, 0.10), transparent 30%),
        var(--background);
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 20, 17, 0.88);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    width: min(var(--max-width), calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
}

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

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 9px;
    transition: background 150ms ease, color 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

main {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    min-height: 420px;
    display: grid;
    align-items: center;
    padding: 76px 0 54px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-light);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    max-width: 850px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 8vw, 6.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-copy {
    max-width: 700px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.section {
    padding: 44px 0 80px;
}

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

.section-heading h2 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

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

.card {
    min-height: 310px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 50%),
        var(--panel);
    box-shadow: var(--shadow);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(208, 168, 92, 0.6);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 50%),
        var(--panel-hover);
}

.card-label {
    margin: 0 0 28px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.card h2,
.card h3 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1.1;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.server-list {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    color: var(--text);
}

.server-list li {
    padding: 5px 0;
}

.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 17px;
    color: #15130e;
    background: var(--accent);
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
}

.card-action:hover,
.card-action:focus-visible {
    background: var(--accent-light);
}

.page-hero {
    padding: 74px 0 42px;
}

.page-hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
}

.breadcrumb {
    margin: 0 0 18px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--accent-light);
    text-decoration: none;
}

.info-panel {
    margin: 28px 0 80px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.info-panel h2 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
}

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

.info-item {
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--accent-light);
}

.info-item span {
    color: var(--muted);
}

.site-footer {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 36px;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 850px) {
    .game-grid,
    .server-grid {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 260px;
    }

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

@media (max-width: 640px) {
    .header-inner {
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        padding-left: 0;
        padding-right: 14px;
    }

    .hero {
        min-height: 340px;
        padding-top: 56px;
    }
}

/* BEGIN OLDMAN NETWORK HUB BACKGROUND */

:root {
    --panel: rgba(24, 32, 26, 0.84);
    --panel-hover: rgba(31, 42, 34, 0.91);
}

body {
    position: relative;

    background-color: #080d09;
    background-image:
        linear-gradient(
            180deg,
            rgba(4, 8, 5, 0.18) 0%,
            rgba(4, 8, 5, 0.48) 52%,
            rgba(3, 5, 4, 0.82) 100%
        ),
        radial-gradient(
            circle at 16% 10%,
            rgba(105, 151, 105, 0.34),
            transparent 34%
        ),
        radial-gradient(
            circle at 84% 16%,
            rgba(208, 168, 92, 0.25),
            transparent 30%
        ),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.018) 0,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 64px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 64px
        ),
        linear-gradient(
            145deg,
            #2a3e2e 0%,
            #172119 32%,
            #0d130f 63%,
            #070907 100%
        );

    background-repeat: no-repeat;
    background-size:
        auto,
        auto,
        auto,
        64px 64px,
        64px 64px,
        auto;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at center,
            transparent 18%,
            rgba(0, 0, 0, 0.54) 100%
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.26) 100%
        );
}

main,
.site-footer {
    position: relative;
    z-index: 1;
}

.card,
.info-panel {
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

@media (max-width: 850px) {
    body {
        background-attachment: scroll;
    }
}

/* END OLDMAN NETWORK HUB BACKGROUND */

/* BEGIN MINECRAFT SERVER PAGES */

.minecraft-hero {
    position: relative;
    margin-top: 32px;
    padding: clamp(42px, 8vw, 82px);
    overflow: hidden;

    border: 1px solid rgba(151, 190, 137, 0.42);
    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(20, 37, 24, 0.92),
            rgba(11, 20, 13, 0.84)
        );

    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.minecraft-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 31px,
            rgba(255, 255, 255, 0.025) 32px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 31px,
            rgba(255, 255, 255, 0.025) 32px
        ),
        radial-gradient(
            circle at 82% 18%,
            rgba(218, 190, 100, 0.18),
            transparent 25%
        );
}

.minecraft-hero > * {
    position: relative;
    z-index: 1;
}

.minecraft-hero h1 {
    max-width: 900px;
    font-size: clamp(3rem, 8vw, 6.3rem);
}

.minecraft-server-card {
    min-height: 340px;
}

.server-difficulty {
    display: inline-flex;
    width: fit-content;
    margin: 18px 0 0;
    padding: 5px 10px;

    border: 1px solid rgba(208, 168, 92, 0.42);
    border-radius: 999px;

    color: var(--accent-light);
    background: rgba(208, 168, 92, 0.10);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.connection-panel {
    margin: 30px 0 24px;
    padding: clamp(24px, 5vw, 42px);

    border: 1px solid rgba(208, 168, 92, 0.48);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            transparent 55%
        ),
        rgba(20, 28, 22, 0.90);

    box-shadow: var(--shadow);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.connection-panel h2 {
    margin: 0 0 8px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

.connection-intro {
    max-width: 720px;
    margin: 0 0 26px;
    color: var(--muted);
}

.connection-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr);
    gap: 16px;
}

.connection-value {
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.035);
}

.connection-value strong {
    display: block;
    margin-bottom: 7px;

    color: var(--green);
    font-size: 0.78rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.connection-value code {
    color: var(--text);
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: clamp(1rem, 2.8vw, 1.35rem);
    overflow-wrap: anywhere;
}

.server-details {
    margin-bottom: 24px;
}

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

.server-detail {
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.032);
}

.server-detail strong {
    display: block;
    margin-bottom: 5px;
    color: var(--accent-light);
}

.server-detail span {
    color: var(--muted);
}

.join-panel {
    margin-bottom: 80px;
    padding: clamp(24px, 5vw, 36px);

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(21, 29, 23, 0.86);

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.join-panel h2 {
    margin-top: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.join-steps {
    margin: 0;
    padding-left: 1.35rem;
    color: var(--muted);
}

.join-steps li {
    padding: 5px 0 5px 7px;
}

.join-steps strong {
    color: var(--text);
}

.back-link {
    display: inline-flex;
    margin-bottom: 26px;

    color: var(--accent-light);
    font-weight: 750;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .connection-grid,
    .server-details-grid {
        grid-template-columns: 1fr;
    }

    .minecraft-hero {
        padding: 38px 24px;
    }
}

/* END MINECRAFT SERVER PAGES */

/* BEGIN OLDMAN NETWORK HOME IMAGE */

body.home-page {
    background-color: #0a0e0b;

    background-image:
        linear-gradient(
            180deg,
            rgba(4, 7, 5, 0.14) 0%,
            rgba(4, 7, 5, 0.20) 40%,
            rgba(4, 7, 5, 0.62) 75%,
            rgba(4, 7, 5, 0.88) 100%
        ),
        url("/assets/images/oldmannetwork.png");

    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.home-page::before {
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.18),
            rgba(0, 0, 0, 0.04) 48%,
            rgba(0, 0, 0, 0.18)
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.08) 48%,
            rgba(0, 0, 0, 0.52) 100%
        );
}

body.home-page .hero {
    min-height: clamp(470px, 66vh, 680px);
}

body.home-page .hero > div {
    width: min(760px, 100%);
    padding: 30px 34px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            rgba(7, 11, 8, 0.78),
            rgba(7, 11, 8, 0.48) 72%,
            rgba(7, 11, 8, 0.18)
        );

    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.30);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body.home-page h1 {
    text-shadow:
        0 3px 8px rgba(0, 0, 0, 0.92),
        0 0 28px rgba(0, 0, 0, 0.45);
}

body.home-page .hero-copy {
    color: #f1f1e9;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.92);
}

body.home-page .section-heading {
    padding: 22px 26px;

    border-radius: 16px;

    background: rgba(10, 15, 11, 0.72);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

body.home-page .card {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            transparent 52%
        ),
        rgba(17, 24, 19, 0.88);
}

@media (max-width: 850px) {
    body.home-page {
        background-position: center top;
        background-attachment: scroll;
    }

    body.home-page .hero {
        min-height: 440px;
    }

    body.home-page .hero > div {
        padding: 25px 23px;
        background: rgba(7, 11, 8, 0.70);
    }
}

/* END OLDMAN NETWORK HOME IMAGE */

/* BEGIN FOLLY SHOWCASE */

.folly-hero {
    position: relative;
    min-height: clamp(500px, 70vh, 760px);
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid rgba(208, 168, 92, 0.46);
    border-radius: 22px;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.48);
}

.folly-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.folly-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 9, 7, 0.88) 0%,
            rgba(5, 9, 7, 0.62) 44%,
            rgba(5, 9, 7, 0.12) 78%
        ),
        linear-gradient(
            0deg,
            rgba(5, 8, 6, 0.72) 0%,
            transparent 48%
        );
}

.folly-hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
    padding: clamp(34px, 7vw, 76px);
}

.folly-hero .breadcrumb {
    margin-bottom: 90px;
}

.folly-hero h1 {
    max-width: 680px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.88);
}

.folly-hero .hero-copy {
    color: #f2f1e9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.92);
}

.folly-connection {
    margin-top: 28px;
}

.folly-about,
.folly-gallery-section {
    padding: 50px 0 30px;
}

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

.folly-feature {
    position: relative;
    min-height: 220px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(18, 26, 20, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.folly-feature-number {
    position: absolute;
    right: 18px;
    top: 10px;
    color: rgba(208, 168, 92, 0.16);
    font: 700 4rem/1 Georgia, "Times New Roman", serif;
}

.folly-feature h3 {
    position: relative;
    margin: 0 0 12px;
    color: var(--accent-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.folly-feature p {
    position: relative;
    margin: 0;
    color: var(--muted);
}

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

.folly-shot {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(13, 18, 15, 0.90);
    box-shadow: var(--shadow);
}

.folly-shot-wide {
    grid-column: 1 / -1;
}

.folly-shot a {
    display: block;
    overflow: hidden;
    background: #080b09;
}

.folly-shot img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 220ms ease, filter 220ms ease;
}

.folly-shot-wide img {
    aspect-ratio: 2.1 / 1;
}

.folly-shot a:hover img,
.folly-shot a:focus-visible img {
    transform: scale(1.018);
    filter: brightness(1.05);
}

.folly-shot figcaption {
    padding: 13px 16px 15px;
    color: var(--accent-light);
    font-weight: 750;
}

.folly-credit-note {
    margin: 22px 0 0;
    padding: 16px 18px;
    border-left: 3px solid var(--accent);
    color: var(--muted);
    background: rgba(18, 26, 20, 0.72);
}

@media (max-width: 850px) {
    .folly-feature-grid,
    .folly-gallery {
        grid-template-columns: 1fr;
    }

    .folly-shot-wide {
        grid-column: auto;
    }

    .folly-shot-wide img,
    .folly-shot img {
        aspect-ratio: 16 / 9;
    }

    .folly-hero {
        min-height: 560px;
    }

    .folly-hero .breadcrumb {
        margin-bottom: 70px;
    }
}

@media (max-width: 560px) {
    .folly-hero {
        min-height: 520px;
    }

    .folly-hero-shade {
        background:
            linear-gradient(
                180deg,
                rgba(5, 9, 7, 0.42),
                rgba(5, 9, 7, 0.86) 62%,
                rgba(5, 9, 7, 0.94)
            );
    }

    .folly-hero-content {
        display: flex;
        min-height: 520px;
        flex-direction: column;
        justify-content: flex-end;
        padding: 26px 22px 34px;
    }

    .folly-hero .breadcrumb {
        margin-bottom: auto;
    }
}

/* END FOLLY SHOWCASE */
