/* Beacon Tracker — shared design tokens, reset, and primitives.
   Light palette on bare :root; dark redefines only the tokens. */

:root {
  /* Surfaces */
  --bg:            #f6f7f9;
  --surface:       #ffffff;
  --surface-2:     #f0f2f5;
  --surface-sunk:  #e9ecf1;
  --border:        #dde1e8;
  --border-strong: #c6ccd6;

  /* Text */
  --text:      #12161d;
  --text-2:    #4a5361;
  --text-3:    #79828f;
  --on-accent: #12161d;

  /* Brand */
  --accent:       #d99413;
  --accent-hover: #c58509;
  --accent-soft:  rgba(217, 148, 19, 0.13);
  --ink:          #10151f;

  /* List identities */
  --bug:    #d0453c;
  --update: #2f7fd4;
  --idea:   #3f9d6b;
  --bug-soft:    rgba(208, 69, 60, 0.12);
  --update-soft: rgba(47, 127, 212, 0.12);
  --idea-soft:   rgba(63, 157, 107, 0.12);

  --shadow-1: 0 1px 2px rgba(16, 21, 31, 0.06), 0 1px 3px rgba(16, 21, 31, 0.05);
  --shadow-2: 0 4px 12px rgba(16, 21, 31, 0.08), 0 1px 3px rgba(16, 21, 31, 0.06);
  --shadow-3: 0 18px 40px rgba(16, 21, 31, 0.16);

  --radius:    10px;
  --radius-sm: 7px;
  --radius-lg: 16px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0d1117;
    --surface:       #151b24;
    --surface-2:     #1c232e;
    --surface-sunk:  #10161e;
    --border:        #262f3c;
    --border-strong: #38434f;

    --text:   #e8ecf2;
    --text-2: #a4b0be;
    --text-3: #74808e;

    --accent:       #e8a72c;
    --accent-hover: #f2b544;
    --accent-soft:  rgba(232, 167, 44, 0.16);
    --ink:          #0d1117;

    --bug:    #ef6b62;
    --update: #5aa4e8;
    --idea:   #55bd88;
    --bug-soft:    rgba(239, 107, 98, 0.15);
    --update-soft: rgba(90, 164, 232, 0.15);
    --idea-soft:   rgba(85, 189, 136, 0.15);

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-3: 0 18px 44px rgba(0, 0, 0, 0.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}
.btn:hover { background: var(--surface-sunk); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--outline:hover { background: var(--surface-2); }

.btn--ghost {
  background: transparent;
  padding: 7px 11px;
  font-weight: 500;
  color: var(--text-2);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }

.btn--lg { padding: 13px 24px; font-size: 15px; }

.btn--danger { background: transparent; border-color: var(--bug); color: var(--bug); }
.btn--danger:hover { background: var(--bug-soft); }

.g-mark { flex: none; width: 18px; height: 18px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Beacon logo mark ────────────────────────────────────────────────── */

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
/* flex: none — the constellation is wide, and without this it gets squeezed
   as a flex item when the header runs short of room. */
.mark svg { display: block; flex: none; }
