/* ==========================================================
   The State of Lowlands RP — "Frontier Gazette"
   Laag over style.css heen: perkament, inkt, ossenbloed, messing.
   ========================================================== */
:root {
  --bg: #f1e7d0;
  --bg-2: #e9dcc0;
  --surface: #fbf5e6;
  --surface-2: #f3e9d2;
  --line: #d9c7a0;
  --line-2: #c4ae84;
  --text: #22180f;
  --muted: #5a4632;
  --accent: #8a2a1c;
  --accent-ink: #fff8ec;
  --brass: #c99a4b;
  --coal: #1e1610;
  --coal-2: #2b2018;
  --sunset-1: #c99a4b;
  --sunset-2: #8a2a1c;
  --sunset-3: #5a4632;
  --green: #2e6b2a;
  --red: #a3291b;
  --blue: #2f5d8a;
  --yellow: #9a6a12;
  --purple: #6b4a7a;
  --radius: 3px;
  --radius-sm: 2px;
  --shadow: 0 1px 0 rgba(34, 24, 15, .08), 0 8px 20px -14px rgba(34, 24, 15, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --western: "Rye", Georgia, serif;
}

body { background: var(--bg); color: var(--text); }
::selection { background: var(--brass); color: var(--coal); }
a { color: var(--accent); }
h1 { font-family: var(--western); font-weight: 400; letter-spacing: .02em; }
h2 { font-family: var(--display); font-weight: 700; letter-spacing: 0; }
h3 { font-family: var(--font); }
code, pre.code { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
pre.code { background: var(--coal); color: #e6d8b8; border-color: var(--coal-2); }

/* Tekst die in de donkere basis lichtgrijs was */
.hero-intro, .rules-body, .timeline li p, .lead, .msg-body, .qa-item div { color: #3a2c1e; }

/* ---------- Kopbalk (donker, met ossenbloed rand) ---------- */
.topbar { background: var(--coal); backdrop-filter: none; border-bottom: 4px solid var(--accent); color: #f1e7d0; }
.brand { color: #f1e7d0; font: 400 19px var(--western); text-transform: none; letter-spacing: .02em; }
.brand-logo { border-radius: 50%; filter: none; }
.mainnav a, .mainnav .dropdown-toggle { color: #e6d8b8; }
.mainnav a:hover, .mainnav .dropdown-toggle:hover { color: #fff8ec; background: var(--coal-2); }
.mainnav a.active, .mainnav .dropdown.active > .dropdown-toggle { color: var(--coal); background: var(--brass); }
.mainnav a.nav-staff { color: var(--brass); }
.mainnav a.nav-staff.active { color: var(--coal); }
.dropdown-menu { background: var(--surface); border: 1px solid var(--coal); border-radius: var(--radius); box-shadow: var(--shadow); }
.dropdown-menu a { color: var(--text); }
.dropdown-menu a:hover { background: var(--surface-2); color: var(--text); }
.dropdown-menu a small { color: var(--muted); }
.lang-switch { border-color: #5a4632; background: transparent; }
.lang-switch a { color: #e6d8b8; }
.lang-switch a.active { background: var(--brass); color: var(--coal); }
.usermenu-text strong { color: #f1e7d0; }
.topbar .icon-btn { color: #e6d8b8; border-color: #5a4632; background: transparent; }
.nav-toggle span { background: #f1e7d0; }

/* ---------- Knoppen en velden ---------- */
.btn { border-radius: var(--radius); font-weight: 600; }
.btn:not(.btn-ghost):not(.btn-discord):not(.btn-danger) { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.topbar .btn-discord { background: var(--brass); color: var(--coal); }
.topbar .btn-discord svg { fill: var(--coal); }
input, select, textarea { background: #fffaf0; color: var(--text); border-color: var(--line-2); border-radius: var(--radius-sm); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- Kaarten: papier met dunne inktrand ---------- */
.card, .stat, .team-card, .news-card, .qa-item, .don-tier { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: none; }
.table th { color: var(--muted); }
.table tr { border-color: var(--line); }

/* ---------- Homepage ---------- */
.hero { background: var(--coal); color: #f1e7d0; border: 0; border-radius: 0; outline: 6px solid var(--coal-2); }
.hero::before, .hero::after { display: none; }
.hero h1, .hero-title { font-family: var(--western); font-weight: 400; background: none; -webkit-background-clip: initial; background-clip: initial; color: #f1e7d0; text-transform: none; letter-spacing: .02em; }
.hero .hero-intro { color: #e6d8b8; font-family: var(--display); }
.hero .muted, .hero small { color: #bfae8c; }
.hero-logo { filter: none; }
.eyebrow { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent); letter-spacing: .25em; }
.hero .eyebrow { color: var(--brass); }
.eyebrow::before { background: currentColor; }
.news-img-empty { background: #d9c7a0; opacity: 1; }
.team-card::before { background: var(--coal); opacity: 1; height: 56px; }
.team-photo { background: var(--brass); }

/* ---------- Staffpanel: zijbalk als houten bureau ---------- */
.sidebar { background: var(--coal); border-right: 0; color: #e6d8b8; }
.sidebar-label { color: var(--brass); font-family: var(--western); font-size: 17px; text-transform: none; letter-spacing: .02em; }
.side-head { color: #bfae8c; }
.side-items a { color: #e6d8b8; border-radius: 0; }
.side-items a svg { fill: currentColor; opacity: .85; }
.side-items a:hover { background: var(--coal-2); color: #fff8ec; }
.side-items a.active { background: var(--brass); color: var(--coal); box-shadow: inset 3px 0 0 var(--accent); }
.count { background: var(--accent); color: var(--accent-ink); }
.side-items a.active .count { background: var(--coal); color: var(--brass); }

/* ---------- Voet ---------- */
.footer { background: var(--coal); color: #e6d8b8; border-top: 4px solid var(--accent); }
.footer a { color: #e6d8b8; }
.footer .muted { color: #bfae8c; }

/* ---------- Meldingen ---------- */
.flash-success { background: #e3ecd6; color: #1f3d1c; border-color: #9bb88f; }
.flash-error { background: #f3d9d3; color: #5e1a10; border-color: #c98b80; }

/* ---------- Discord-voorbeeld blijft Discord-donker ---------- */
.dc-preview { color: #dbdee1; }

/* ---------- Koppen: western in plaats van schuin en hoofdletters ---------- */
.display, .section-title, .hero-title, .vacancy h3, .cta h2, .team-card h3 {
  font-family: var(--western); font-style: normal; font-stretch: normal; text-transform: none; letter-spacing: .01em; font-weight: 400;
}
.team-card h3 { font-family: var(--display); font-weight: 700; }
.hero-tagline { font: italic 400 20px var(--display); text-transform: none; color: var(--brass); letter-spacing: 0; }
.hero-grid { display: none; }
.hero-logo { transform: translateY(-50%); animation: none; }
.hero-stats { border-top-color: #5a4632; }
.hero-stats span { color: #bfae8c; }
.hero .btn-ghost { color: #f1e7d0; border-color: var(--brass); }
.prose { color: #3a2c1e; font-family: var(--display); font-size: 16px; line-height: 1.7; }
.step-num { font: 400 80px/1 var(--western); color: color-mix(in srgb, var(--accent) 16%, transparent); }
.section-title, .display { border-bottom: 3px double var(--text); padding-bottom: 10px; }

/* ---------- Pagina's met eigen donkere blokken ---------- */
body .dl-hero { background: var(--coal); border: 0; color: #f1e7d0; }
body .dl-hero h1 { color: #f1e7d0; }
body .dl-hero p, body .dl-hero .muted { color: #e6d8b8; }
body .dl-tabs a.active, body .mdt-tabs a.active, body .ems-tabs a.active { background: var(--coal); border-color: var(--coal); color: var(--brass); }
body .dl-img { background: var(--coal); }
body .dl-progress, body .me-bar { background: var(--line); }
body .dl-progress i { background: var(--green); }
body .fr-msg { background: var(--surface-2); color: var(--text); }
body .fr-msg.mine { background: var(--accent); color: var(--accent-ink); }
body .dsp-map { background: #cdb88c; }
body .guide-row kbd { background: var(--coal); color: var(--brass); border-color: var(--coal); }
