/* job-boards.io - shared tokens and primitives.
   Committed dark palette: this is a deliberate single look, not a missing
   light mode. The character comes from scale and the mono/sans contrast
   rather than a webfont, so nothing is loaded from a third party. */

:root {
  color-scheme: dark;

  --ink: #0d0e0a;
  --surface: #14150f;
  --surface-2: #1b1d15;
  --surface-3: #24271a;
  --line: #2c2f21;
  --line-soft: #21241a;

  --text: #e9ecdd;
  --muted: #9aa08a;
  --faint: #6d7261;

  --accent: #c3f53c;
  --accent-dim: #9dc72f;
  --accent-ink: #0d0e0a;
  --accent-wash: rgba(195, 245, 60, 0.1);

  --ok: #86d97f;
  --warn: #f0b44a;
  --danger: #f26d61;
  --info: #7fc8f5;

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

/* Load-bearing. The layout classes below (.app, .auth, .modal, .drawer, .boot)
   set `display`, and a class selector outranks the user-agent's `[hidden]`
   rule - so without this, toggling `hidden` on any of them does nothing and
   the signed-out and signed-in views render on top of each other. */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

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

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* The signature device: a small uppercase mono label above a large sans
   headline. Used on both the landing page and every app panel. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.eyebrow--muted {
  color: var(--faint);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

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

/* --- controls ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.1s var(--ease);
}

.btn:hover:not(:disabled) {
  background: #2e3222;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.btn--primary:hover:not(:disabled) {
  background: #d2ff58;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}

.btn--danger {
  background: transparent;
  border-color: rgba(242, 109, 97, 0.4);
  color: var(--danger);
}

.btn--danger:hover:not(:disabled) {
  background: rgba(242, 109, 97, 0.12);
}

.btn--sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8125rem;
}

.btn--block {
  width: 100%;
}

.field {
  display: block;
  margin-bottom: 1rem;
}

.field > label,
.label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--faint);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
  background: var(--surface-2);
}

.textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.55;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 1rem center, right 0.7rem center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
  cursor: pointer;
}

.hint {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--faint);
  line-height: 1.5;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9375rem;
}

.checkbox input {
  margin: 0.3rem 0 0;
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
  flex: none;
}

/* --- feedback ---------------------------------------------------------- */

.notice {
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.notice--error {
  border-color: rgba(242, 109, 97, 0.35);
  background: rgba(242, 109, 97, 0.08);
  color: #ffb3ab;
}

.notice--ok {
  border-color: rgba(134, 217, 127, 0.35);
  background: rgba(134, 217, 127, 0.08);
  color: #b6ebb0;
}

.notice--warn {
  border-color: rgba(240, 180, 74, 0.35);
  background: rgba(240, 180, 74, 0.08);
  color: #f6d59b;
}

.notice[hidden] {
  display: none;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
