:root {
  --bg: #0A0A0C;
  --surface: #131317;
  --surface-2: #1B1B21;
  --line: #1F1F26;
  --line-2: #2A2A32;
  --text: #F4F4F5;
  --text-2: #D4D4D8;
  --muted: #A1A1AA;
  --faint: #8B8B95;
  --accent: #F5B544;
  --accent-ink: #16110A;
  --ok: #7FE3AE;
  --warn: #FFC27A;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { filter: brightness(1.15); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* Header */
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-height: 44px; }
.brand:hover { filter: none; }
.mono {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  background: var(--accent); color: var(--accent-ink);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 18px; font-weight: 800; }
.brand-text small { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who { font-size: 14px; color: var(--muted); }

/* Main */
main { flex: 1; padding-top: 48px; padding-bottom: 80px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
h1, .h1 { margin: 0; font-size: clamp(40px, 6vw, 80px); line-height: 0.9; font-weight: 800; font-stretch: 70%; text-transform: uppercase; }
h2 { margin: 0 0 16px; font-size: 28px; line-height: 1; font-weight: 800; font-stretch: 72%; text-transform: uppercase; }
.lead { margin: 16px 0 0; font-size: 16px; color: var(--muted); max-width: 640px; }

/* Buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.15); }
.btn-primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn-block { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input {
  height: 48px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #0F0F12; color: var(--text);
  font: inherit; font-size: 16px;
}
.field input:focus { border-color: var(--accent); outline: none; }
.hint { font-size: 12px; font-weight: 400; color: var(--faint); }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Cards */
.card { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.auth { max-width: 440px; margin: 24px auto 0; }
.auth h1 { font-size: 44px; }
.empty { margin-top: 40px; padding: 56px 24px; border-radius: 18px; border: 1px dashed var(--line-2); text-align: center; color: var(--muted); }
.empty strong { display: block; margin-bottom: 6px; font-size: 26px; font-weight: 800; font-stretch: 72%; text-transform: uppercase; color: var(--text); }

/* Flash messages */
.flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.flash { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line-2); }
.flash-error { color: var(--warn); border-color: #4A3418; background: #2A1F12; }
.flash-ok { color: var(--ok); border-color: #1C4A30; background: #12301F; }

/* Admin list */
.sites { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.site-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.site-row .name { flex: 1 1 240px; font-weight: 700; }
.site-row .meta { font-size: 13px; color: var(--muted); }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.9em; color: var(--text-2); }

.footer { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
