/* Shared by the vote page and the admin page: fonts, colour tokens and the base controls.
 * Colours follow icecampus.com: ink ground, white text, brand yellow as the accent. */

@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/poppins-800.woff2) format("woff2"); }

:root {
  --ink: #0f0f0f;
  --surface: #171717;
  --card: #202020;
  --raised: #2e2e2e;
  --line: #2e2e2e;
  --line-strong: #3a3a3a;
  --text: #ffffff;
  --text-2: #c8c8c8;
  --muted: #a0a0a0;
  --faint: #8a8a8a;
  --accent: #ffd43d;
  --accent-hover: #ffe27a;
  --danger: #ff9b96;
  --cat-technical: #b190ff;
  --cat-creative: #ff8ae9;
  --cat-data: #5ee9b5;
  --cat-business: #ffd43d;
  --radius: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.5 Poppins, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.logo { height: 28px; width: auto; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.icon { flex: 0 0 auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Buttons: pill-shaped, as on icecampus.com. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--ink); font-weight: 700; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:disabled { background: var(--raised); color: var(--muted); }
.btn-outline { border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover:not(:disabled) { border-color: var(--text); }
.btn-ghost { color: var(--text); padding: 0 10px; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn-block { width: 100%; }

/* Form controls. */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; font-weight: 600; }
.field-optional { font-weight: 400; color: var(--muted); }
.field-help { font-size: 13px; line-height: 1.45; color: var(--muted); }
.field-error { font-size: 13px; line-height: 1.45; color: var(--danger); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px;
  font-size: 16px; line-height: 1.4;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 14px; line-height: 1.5; color: #e6e6e6; }
.check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }

.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--muted); flex: 0 0 auto; }
.dot--technical { background: var(--cat-technical); }
.dot--creative { background: var(--cat-creative); }
.dot--data { background: var(--cat-data); }
.dot--business { background: var(--cat-business); }

.alert { padding: 12px 14px; border-radius: 12px; background: #3a1d1c; color: #ffd9d7; font-size: 14px; line-height: 1.5; }
