:root {
  --background: #08090b;
  --background-rgb: 8, 9, 11;
  --surface: #111318;
  --surface-2: #171a21;
  --border: rgba(244, 244, 242, 0.1);
  --foreground: #f4f4f2;
  --muted: #9a9ba3;
  --accent: #f0a746;
  --accent-2: #ef6f5b;
  --danger: #f0554c;
  --font-display: "Bricolage Grotesque", -apple-system, "Segoe UI", Inter, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, "Segoe UI", Inter, Arial, sans-serif;
}
a { color: inherit; }
.container { max-width: 28rem; margin: 0 auto; padding: 4rem 1.5rem; }
.eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
h1 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; margin: 0.5rem 0 0.25rem; }
h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.75rem; }
h3 { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
p.muted { color: var(--muted); font-size: 0.9rem; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }
input, textarea, select {
  width: 100%; padding: 0.65rem 0.85rem; margin-bottom: 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem;
  color: var(--foreground); font-size: 0.95rem; font-family: inherit;
}
textarea { resize: vertical; min-height: 5.5rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Buttons are auto-width and inline by default — this used to default to
   width:100%, which forced a manual style="width:auto" override on nearly
   every button in the app (24 occurrences across 11 files). Use .btn-block
   for the few places (auth form submits) that genuinely want full-width.
   Monochrome fill (not accent orange) matches the public site's primary
   CTA pattern — accent stays reserved for active states/badges/icons. */
button, .button {
  display: inline-block; width: auto; padding: 0.6rem 1.1rem; border: none; border-radius: 0.5rem;
  background: var(--foreground); color: var(--background); font-size: 0.9rem; font-weight: 600; cursor: pointer;
  text-align: center; text-decoration: none; white-space: nowrap; transition: opacity 0.15s ease;
}
button:hover, .button:hover { opacity: 0.85; }
button:disabled, .button:disabled { opacity: 0.5; cursor: default; }
.btn-block { display: block; width: 100%; }
/* Escape hatch for the rare place that genuinely wants the accent-filled
   treatment instead of the monochrome default. */
button.accent, .button.accent { background: var(--accent); color: #0a0a0a; }
.error {
  background: rgba(240,85,76,0.1); border: 1px solid rgba(240,85,76,0.3);
  color: var(--danger); padding: 0.65rem 0.85rem; border-radius: 0.5rem;
  font-size: 0.9rem; margin-bottom: 1rem;
}
.notice {
  background: rgba(240,167,70,0.08); border: 1px solid rgba(240,167,70,0.25);
  color: var(--foreground); padding: 0.85rem 1rem; border-radius: 0.65rem;
  font-size: 0.85rem; line-height: 1.5;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem; border-bottom: 1px solid var(--border);
}
.card {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 0.85rem; padding: 1.5rem;
}
.pill {
  display: inline-flex; border: 1px solid rgba(240,167,70,0.3); background: rgba(240,167,70,0.1);
  color: var(--accent); border-radius: 999px; padding: 0.25rem 0.65rem; font-size: 0.72rem; font-weight: 600;
}
.btn-outline {
  display: inline-block; width: auto; padding: 0.5rem 0.9rem; border: 1px solid var(--border);
  border-radius: 0.5rem; background: transparent; color: var(--foreground); text-decoration: none; font-size: 0.9rem;
}
.page { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.project-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.project-row {
  display: block; border: 1px solid var(--border); background: var(--surface);
  border-radius: 0.65rem; padding: 1rem 1.25rem; text-decoration: none; color: var(--foreground);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.project-row:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 0.5rem 1.5rem rgba(240,167,70,0.08); }
.project-row .title { font-weight: 500; }
.project-row .meta { color: var(--muted); font-size: 0.8rem; margin-top: 0.25rem; }

@media (max-width: 640px) {
  .container { padding: 2.5rem 1.25rem; }
  .page { padding: 1.5rem 1rem 3rem; }
  .card { padding: 1.1rem; }
  .topbar { padding: 1rem 1.25rem; flex-wrap: wrap; gap: 0.5rem; }
}
