:root {
    --bg: #0b1210;
    --bg-alt: #0e1815;
    --panel: #121e1a;
    --panel-alt: #16241f;
    --border: #24382f;
    --border-bright: #35564a;

    --jade: #3fbf9f;
    --jade-bright: #6fe0c0;
    --gold: #d8ae5f;
    --gold-bright: #f2c877;

    --text: #e9ece8;
    --text-dim: #9db0a8;
    --text-faint: #6d8079;

    --red: #d9686a;
    --green: #6fce8f;
    --blue: #6fa8e0;

    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(63, 191, 159, 0.10), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(216, 174, 95, 0.08), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--jade-bright); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold-bright); text-decoration: none; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 18, 16, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 24px;
}

.brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 0.5px;
    background: linear-gradient(120deg, var(--gold-bright), var(--jade-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brand:hover { -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.15); }

.main-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 0.92em;
}

.main-nav a {
    color: var(--text-dim);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    position: relative;
}
.main-nav a:hover {
    color: var(--text);
    background: var(--panel-alt);
}

/* Layout */
.page {
    padding: 40px 24px 70px;
    min-height: 60vh;
}

h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    font-weight: normal;
    letter-spacing: 0.2px;
}
h1 { font-size: 2.1em; margin: 0 0 12px; }
h2 { font-size: 1.35em; color: var(--gold-bright); margin: 0 0 16px; }
h3 { font-size: 1.05em; color: var(--jade-bright); }

/* Hero */
.hero {
    padding: 34px 32px;
    margin-bottom: 28px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(63, 191, 159, 0.14), rgba(216, 174, 95, 0.08));
    border: 1px solid var(--border-bright);
    box-shadow: var(--shadow);
}
.hero h1 {
    font-size: 2.4em;
    background: linear-gradient(120deg, var(--gold-bright), var(--jade-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}
.hero p {
    color: var(--text-dim);
    font-size: 1.05em;
    max-width: 640px;
    margin: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 720px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* Panels / cards */
.panel {
    background: linear-gradient(180deg, var(--panel), var(--panel-alt));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

/* Flash messages */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    background: var(--panel);
    font-size: 0.95em;
}
.flash-error { border-color: var(--red); color: #ffb3b4; background: rgba(217, 104, 106, 0.08); }
.flash-success { border-color: var(--green); color: #b9f0c9; background: rgba(111, 206, 143, 0.08); }
.flash-info { border-color: var(--jade); color: var(--jade-bright); background: rgba(63, 191, 159, 0.08); }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
}
th {
    color: var(--text-faint);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 0.8px;
}
tbody tr {
    transition: background 0.15s ease;
}
tbody tr:hover {
    background: rgba(63, 191, 159, 0.06);
}
tbody tr:last-child td { border-bottom: none; }

/* Forms */
form.stack label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-dim);
    font-size: 0.88em;
}
form.stack .field {
    margin-bottom: 16px;
}
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=datetime-local], select, textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95em;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--jade);
    box-shadow: 0 0 0 3px rgba(63, 191, 159, 0.18);
}
textarea { min-height: 130px; resize: vertical; }

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--jade), #2d8f76);
    border: 1px solid var(--jade);
    color: #06120e;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95em;
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 16px rgba(63, 191, 159, 0.35);
    text-decoration: none;
    color: #06120e;
}
.btn:active { transform: translateY(1px); }

.btn-danger {
    background: linear-gradient(135deg, var(--red), #a13a3a);
    border-color: var(--red);
    color: #1a0707;
}
.btn-danger:hover { box-shadow: 0 4px 16px rgba(217, 104, 106, 0.35); color: #1a0707; }

.btn-small { padding: 6px 14px; font-size: 0.85em; }

/* Tags / pills */
.tag {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 600;
    border: 1px solid var(--border-bright);
    color: var(--text-dim);
    background: var(--panel-alt);
}
.tag-tank { border-color: var(--blue); color: var(--blue); background: rgba(111, 168, 224, 0.1); }
.tag-healer { border-color: var(--green); color: var(--green); background: rgba(111, 206, 143, 0.1); }
.tag-dps { border-color: var(--red); color: var(--red); background: rgba(217, 104, 106, 0.1); }

.rsvp-yes { color: var(--green); }
.rsvp-no { color: var(--red); }
.rsvp-tentative { color: var(--gold-bright); }

.meta { color: var(--text-faint); font-size: 0.85em; }

/* Forum posts */
.post {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.post-author {
    width: 170px;
    flex-shrink: 0;
    background: var(--panel-alt);
    padding: 16px;
    border-right: 1px solid var(--border);
}
.post-body { padding: 16px 20px; flex: 1; white-space: pre-wrap; background: var(--panel); }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    color: var(--text-faint);
    font-size: 0.85em;
}

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.list-plain li:last-child { border-bottom: none; }

.pill-pinned { color: var(--gold-bright); }
.pill-locked { color: var(--text-faint); }
