/* Shared look for every page: theme tokens, layout shell, cards, buttons,
   hints. Page-specific rules stay in each page's own <style>. */

:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --panel-2: #273449;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --danger: #f87171;
  --border: #334155;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header h1 {
  margin: 0 0 4px;
  font-size: 1.7rem;
}

header p {
  margin: 0 0 24px;
  color: var(--muted);
}

.site-nav {
  margin: 12px 0 24px;
  font-size: 0.9rem;
}
.site-nav a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible { text-decoration: underline; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 600;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button:not(:disabled):hover { filter: brightness(1.1); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 10px 2px 0;
  min-height: 1.2em;
}
.hint.warn { color: var(--danger); }
