/* Bunker Base site: the voice page's concrete, brass and riveted plates, plus Minecraft's own server list. */
@font-face {
    font-family: Minecraftia;
    src: url("/fonts/Minecraftia.ttf") format("truetype");
    font-display: swap;
}

:root {
    --concrete: #2c3135;
    --steel: #3d454b;
    --steel-raised: #4a535a;
    --seam: #59636a;
    --door: #262b2e;
    --brass: #c8963e;
    --brass-hot: #e7b35a;
    --verdigris: #6fb39c;
    --signal: #e0644c;
    --paint: #ece6d8;
    --paint-dim: #aaa698;

    --font-stencil: "Big Shoulders Stencil Display", "Arial Narrow", Impact, sans-serif;
    --font-condensed: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
    --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-pixel: Minecraftia, ui-monospace, monospace;

    --gutter: clamp(1rem, 4vw, 3rem);
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--paint);
    font: 400 1.0625rem/1.55 var(--font-body);
    -webkit-font-smoothing: antialiased;
    background-color: var(--concrete);
    /* Formwork: a soft work light, tie holes, then horizontal and vertical panel seams. */
    background-image:
        radial-gradient(ellipse 80% 50% at 70% 0%, rgba(236, 230, 216, 0.07), transparent 70%),
        radial-gradient(circle at 60px 60px, rgba(0, 0, 0, 0.34) 0 2.5px, rgba(255, 255, 255, 0.05) 3px, transparent 3.6px),
        linear-gradient(rgba(0, 0, 0, 0.17) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
    background-size: 100% 100%, 120px 120px, 240px 120px, 240px 120px;
}

a {
    color: var(--brass-hot);
}

button,
input {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--brass-hot);
    outline-offset: 3px;
}

code,
kbd {
    font: 500 0.95em/1.2 var(--font-condensed);
}

kbd {
    padding: 0.1em 0.45em 0.15em;
    border-radius: 4px;
    background: var(--steel-raised);
    border-bottom: 2px solid #1f2326;
    white-space: nowrap;
}

/* Masthead */
.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.25rem var(--gutter);
}

.brand {
    font: 800 1.5rem/1 var(--font-stencil);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: var(--paint-dim);
    font: 500 1rem/1 var(--font-condensed);
    text-decoration: none;
}

.nav a:hover {
    color: var(--paint);
}

main {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 5px;
    background: var(--brass);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
    color: #201a10;
    font: 600 1.125rem/1 var(--font-condensed);
    text-decoration: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--brass-hot);
}

.btn-quiet {
    flex-shrink: 0;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--seam);
    border-radius: 5px;
    background: var(--steel);
    color: var(--paint);
    font: 500 0.9375rem/1.1 var(--font-condensed);
    cursor: pointer;
}

.btn-quiet:hover {
    background: var(--steel-raised);
}

.btn-link {
    font: 600 1.0625rem/1 var(--font-condensed);
    color: var(--paint);
    text-underline-offset: 0.25em;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}

.hero-title {
    margin: 0;
    font: 800 clamp(3.75rem, 10vw, 7.5rem)/0.88 var(--font-stencil);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.hero-lead {
    max-width: 34ch;
    margin: 1.25rem 0 1.75rem;
    color: var(--paint-dim);
    font-size: 1.1875rem;
}

.address {
    max-width: 26rem;
    margin-bottom: 1.75rem;
}

.address-label,
.oneliner-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--paint-dim);
    font: 500 0.9375rem/1.2 var(--font-condensed);
}

.address-row,
.oneliner-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.4rem 0.4rem 0.9rem;
    border: 1px solid var(--seam);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
}

.address-value {
    flex: 1;
    color: var(--paint);
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

/* Minecraft multiplayer list replica: pixel font at 2x, real colour codes, white selection frame. */
.serverlist {
    margin: 0;
    padding: 1.25rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.serverlist-caption {
    margin-bottom: 0.75rem;
    color: var(--paint-dim);
    font: 500 0.9375rem/1.2 var(--font-condensed);
}

.entry {
    display: flex;
    gap: 0.75rem;
    padding: 4px;
    border: 2px solid #fff;
    background: #000;
    font: 16px/18px var(--font-pixel);
}

.entry-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

.entry-body {
    flex: 1;
    min-width: 0;
}

.entry-top {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding-top: 2px;
}

.entry-name {
    flex: 1;
    color: #fff;
    text-shadow: 2px 2px 0 #3f3f3f;
}

.entry-count {
    color: #aaa;
    text-shadow: 2px 2px 0 #2a2a2a;
}

.entry-ping {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.entry-ping i {
    width: 2px;
    background: #00ff21;
    box-shadow: 1px 1px 0 #003f08;
}

.entry-ping i:nth-child(1) { height: 4px; }
.entry-ping i:nth-child(2) { height: 6px; }
.entry-ping i:nth-child(3) { height: 8px; }
.entry-ping i:nth-child(4) { height: 10px; }
.entry-ping i:nth-child(5) { height: 12px; }

.entry[data-state="loading"] .entry-ping i {
    background: #555;
    box-shadow: none;
}

.entry[data-state="offline"] .entry-ping i {
    background: #ff3f3f;
    box-shadow: 1px 1px 0 #3f0f0f;
}

.entry-motd {
    margin: 4px 0 0;
    color: #aaa;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.entry-motd span {
    text-shadow: 2px 2px 0 color-mix(in srgb, currentColor 25%, black);
}

.online {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    min-height: 2.25rem;
}

.online-label {
    color: var(--paint-dim);
    font: 500 0.9375rem/1.2 var(--font-condensed);
}

.heads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.heads img {
    display: block;
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    background: var(--steel);
}

/* Sections */
.section {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.35);
}

.section-title {
    margin: 0 0 0.75rem;
    font: 800 clamp(2.25rem, 5vw, 3.25rem)/1 var(--font-stencil);
}

.section-lead {
    max-width: 62ch;
    margin: 0 0 1rem;
    color: var(--paint-dim);
    font-size: 1.125rem;
}

.section-note {
    max-width: 62ch;
    margin: 1rem 0 0;
    color: var(--paint-dim);
}

.pack-meta {
    margin: 0 0 2rem;
    color: var(--verdigris);
    font: 500 1rem/1.3 var(--font-condensed);
}

.pack-meta:empty {
    display: none;
}

/* Riveted plates, as on the lobby walls: concrete in a brass frame with a verdigris lamp. */
.platforms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.plate {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2rem 1.75rem 1.75rem;
    border: 4px solid var(--brass);
    border-radius: 4px;
    background:
        radial-gradient(circle at 10px 10px, #b0b8bd 0 2px, #22272a 2.5px 3.5px, transparent 4px),
        radial-gradient(circle at calc(100% - 10px) 10px, #b0b8bd 0 2px, #22272a 2.5px 3.5px, transparent 4px),
        radial-gradient(circle at 10px calc(100% - 10px), #b0b8bd 0 2px, #22272a 2.5px 3.5px, transparent 4px),
        radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #b0b8bd 0 2px, #22272a 2.5px 3.5px, transparent 4px),
        #3a3f43;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35), 0 14px 30px rgba(0, 0, 0, 0.3);
}

.lamp {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 2.5rem;
    height: 6px;
    transform: translateX(-50%);
    background: var(--verdigris);
    box-shadow: 0 0 10px rgba(111, 179, 156, 0.7);
}

.plate-title {
    margin: 0;
    font: 800 2rem/1 var(--font-stencil);
    color: var(--brass-hot);
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 0.75rem;
}

.steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    gap: 0.5rem;
}

.steps li::before {
    content: counter(step);
    font: 800 1.6rem/1 var(--font-stencil);
    color: var(--brass);
}

.oneliner {
    align-self: stretch;
}

.oneliner-row code {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.9375rem;
}

.before {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid var(--verdigris);
    background: rgba(0, 0, 0, 0.22);
}

.before-title {
    margin: 0 0 0.75rem;
    font: 600 1.25rem/1.2 var(--font-condensed);
}

.checklist {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.35rem;
}

.before-then {
    margin: 0;
    color: var(--paint-dim);
}

/* Voice */
.section-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
}

.hatch-link {
    justify-self: center;
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    color: var(--paint-dim);
    font: 500 1rem/1.2 var(--font-condensed);
    text-decoration: none;
}

.hatch-link img {
    width: 128px;
    height: 128px;
    image-rendering: pixelated;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(111, 179, 156, 0.0);
    transition: box-shadow 0.2s ease;
}

.hatch-link:hover img {
    box-shadow: 0 0 0 4px var(--verdigris);
}

.hatch-link:hover span {
    color: var(--paint);
}

/* Roles */
.roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 0;
}

.role {
    padding-top: 1rem;
    border-top: 3px solid var(--brass);
}

.role dt {
    font: 600 1.375rem/1.2 var(--font-condensed);
    color: var(--verdigris);
}

.role dd {
    margin: 0.4rem 0 0;
    color: var(--paint-dim);
}

.footer {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem var(--gutter) 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.35);
    color: rgba(170, 166, 152, 0.8);
    font-size: 0.875rem;
}

.footer p {
    margin: 0.25rem 0;
}

@media (max-width: 860px) {
    .hero,
    .section-split,
    .platforms {
        grid-template-columns: minmax(0, 1fr);
    }

    .roles {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .nav {
        display: none;
    }

    .entry-icon {
        width: 48px;
        height: 48px;
    }
}

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