@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg: #0A0A0B; --panel: #141417; --panel2: #0F0F11; --line: #26262B; --line2: #33333A; --line3: #3A3A40;
  --text: #F5F5F7; --soft: #D4D4DA; --muted: #A1A1AA; --faint: #8E8E97;
  --accent: #CB6CE6; --accent-dark: #26152C; --ok: #8FF0B8; --ok-bg: #1E3A2A; --bad: #FFB0B0; --bad-bg: #3A1E1E; --warn: #F2C75C; --warn-bg: #2B2410;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; font-size: 16px; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; margin: 0; }
input, select, textarea, button { font: inherit; }
.hidden { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }

/* header & footer */
.site-header { border-bottom: 1px solid #222226; }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 34px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 15px; }
.nav a.on { color: var(--accent); font-weight: 600; }
.badge { background: var(--accent); color: var(--bg); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; margin-left: 4px; }
.avatar-link { width: 40px; height: 40px; border-radius: 50%; background: #26262B; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.site-footer { border-top: 1px solid #222226; margin-top: 40px; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line3); background: none; color: var(--text); font-weight: 600; cursor: pointer; text-align: center; }
.btn:hover { color: var(--text); border-color: #55555C; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.btn-primary:hover { color: var(--bg); filter: brightness(1.08); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-dark { background: var(--bg); border-color: var(--bg); color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #B4B4BC; }
.input, .field input, .field select, .field textarea { min-height: 48px; background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: 10px; padding: 0 14px; width: 100%; }
.field textarea { padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #B4B4BC; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--faint); }
.lead { color: #B4B4BC; font-size: 17px; line-height: 1.6; }
.alert { border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.alert-error { background: var(--bad-bg); border: 1px solid #5A2E2E; color: var(--bad); }
.alert-ok { background: #142019; border: 1px solid #24402F; color: #CFF5DC; }
.alert-info { background: #1C1420; border: 1px solid #3A2443; color: #D9C2E3; }
.alert-warn { background: var(--warn-bg); border: 1px solid #4A3E1A; color: var(--warn); }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line3); background: var(--bg); color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* member cards */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.mcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.mcard .ph { position: relative; aspect-ratio: 4 / 5; background: #1D1D22; display: flex; align-items: center; justify-content: center; color: #4A4A52; }
.mcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.mcard .tag { position: absolute; top: 10px; left: 10px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.mcard .info { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.mcard .name { font-weight: 600; }
.mcard .line { font-size: 14px; color: #C9C9D0; line-height: 1.45; margin-top: 4px; }
.placeholder-svg { width: 56px; height: 56px; }

/* dialog */
dialog { background: var(--panel); color: var(--text); border: 1px solid #2E2E34; border-radius: 18px; padding: 30px; max-width: 480px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0,0,0,.7); }

/* legal pages */
.legal { font-size: 16px; line-height: 1.7; color: var(--soft); }
.legal h1 { font-size: 44px; line-height: 1.1; color: var(--text); margin-bottom: 8px; }
.legal h2 { margin: 40px 0 12px; font-size: 24px; color: var(--text); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }

@media (max-width: 640px) {
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { padding: 20px; }
  h1.big { font-size: 40px !important; }
}
