/* Burtoniservers — shared design tokens & components */

:root {
    --ink: #12151a;
    --paper: #1b1f27;
    --paper-raised: #232833;
    --line: rgba(255, 255, 255, 0.09);
    --text: #eef0f2;
    --text-muted: #8b93a1;
    --text-faint: #5c6472;
    --amber: #e8a33d;
    --amber-dim: rgba(232, 163, 61, 0.35);
    --moss: #7c9a5e;
    --ochre: #c17f3e;
    --violet: #8b72b0;
    --danger: #d9694f;
    --radius: 8px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.mono {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---------- Masthead ---------- */

.masthead {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(232, 163, 61, 0.05), transparent 60%);
}

.masthead-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.wordmark {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: none;
}

.wordmark span { color: var(--amber); }

.tagline {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-top: 4px;
}

.tally {
    text-align: right;
}

.tally-figure {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--text);
}

.tally-figure .of { color: var(--text-faint); font-weight: 500; font-size: 1.6rem; }

.tally-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---------- Nav ---------- */

.nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--line);
}

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 14px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

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

.nav a.active {
    color: var(--text);
    border-bottom-color: var(--amber);
}

/* ---------- Layout ---------- */

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 24px 80px;
}

.page h1 {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    margin: 0 0 22px;
}

section + section { margin-top: 44px; }

.section-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

/* ---------- World entries (server status) ---------- */

.world {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--world-color, var(--text-faint));
    border-radius: var(--radius);
    padding: 18px 22px;
}

.world + .world { margin-top: 12px; }

.world-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.world-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.world-state {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.world-state .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-faint);
}

.world.online .world-state .dot { background: var(--moss); box-shadow: 0 0 8px rgba(124, 154, 94, 0.6); }
.world.online .world-state .state-text { color: var(--moss); }

.world.offline .world-state .dot { background: var(--text-faint); }
.world.offline .world-state .state-text { color: var(--text-faint); }

.world-detail {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.world-detail .figure {
    color: var(--text);
    font-weight: 600;
}

.world-connect {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-faint);
}

.world-connect .mono { color: var(--text-muted); }

.status-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.last-checked {
    font-size: 0.78rem;
    color: var(--text-faint);
}

/* ---------- Dispatch log (announcements) ---------- */

.dispatch-entry {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.dispatch-entry:first-child { border-top: none; padding-top: 0; }

.dispatch-date {
    font-size: 0.78rem;
    color: var(--text-faint);
    padding-top: 3px;
}

.dispatch-tag {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--amber);
    border: 1px solid var(--amber-dim);
    border-radius: 4px;
    padding: 1px 7px;
    margin-bottom: 6px;
}

.dispatch-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.dispatch-body {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ---------- Content boxes (media / mods / 404) ---------- */

.box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

/* ---------- Media gallery ---------- */

.contribute {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 28px;
}

.contribute p {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contribute-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

input[type="file"],
input[type="password"],
input[type="text"] {
    background: var(--ink);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 9px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
}

input[type="password"], input[type="text"] { flex: 1; min-width: 160px; }

button, .btn {
    background: var(--amber);
    color: #201406;
    border: none;
    padding: 9px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    transition: filter 0.15s ease;
    font-family: inherit;
}

button:hover, .btn:hover { filter: brightness(1.08); }

button.quiet {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--line);
}

.form-note {
    font-size: 0.82rem;
    color: var(--text-faint);
    margin-top: 8px;
}

.form-note.error { color: var(--danger); }
.form-note.success { color: var(--moss); }

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.media-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
}

.media-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

@media (max-width: 640px) {
    .masthead-inner { flex-direction: column; align-items: flex-start; }
    .tally { text-align: left; }
    .dispatch-entry { grid-template-columns: 1fr; }
    .dispatch-date { padding-top: 0; }
}

[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}
