/* brototype — shared site styling */

:root {
  --bg:         #111;
  --bg-panel:   #1a1a1a;
  --bg-input:   #000;
  --fg:         #eee;
  --fg-dim:     rgba(238, 238, 238, 0.6);
  --fg-mute:    rgba(238, 238, 238, 0.45);
  --accent:     #f40;
  --accent-hot: #ff6020;
  --accent-dim: #a30;
  --term:       #9f9;
  --term-warm:  #cfa;
  --border:     #2a2a2a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "SF Mono", Menlo, "Roboto Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  padding: 2rem;
  /* subtle scanline overlay — barely visible, adds CRT feel */
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 64, 0, 0.015) 0px,
    rgba(255, 64, 0, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

nav {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--fg-dim);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 80ms linear;
  font-size: 0.85rem;
}

nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 0 8px rgba(255, 64, 0, 0.25);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-dim);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent-hot);
  text-decoration-color: var(--accent);
}

.panel {
  background: var(--bg-panel);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: box-shadow 120ms linear, border-color 120ms linear;
}
.panel:focus-within {
  border-color: var(--accent-dim);
  box-shadow: 0 0 12px rgba(255, 64, 0, 0.15);
}

button {
  background: #262626;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  text-align: left;
  transition: all 80ms linear;
  letter-spacing: 0.01em;
}
button:hover:not(:disabled) {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: #2e2220;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button.primary {
  background: var(--accent);
  color: #110800;
  border-color: var(--accent);
  font-weight: 600;
}
button.primary:hover:not(:disabled) {
  background: var(--accent-hot);
  color: #000;
  border-color: var(--accent-hot);
  box-shadow: 0 0 0 1px #000, 0 0 10px rgba(255, 64, 0, 0.5);
}

input[type="checkbox"] {
  accent-color: var(--accent);
}

textarea, input[type="text"] {
  background: var(--bg-input);
  color: var(--term-warm);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.6rem;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 80ms linear;
}
textarea:focus, input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

pre {
  background: var(--bg-input);
  padding: 0.8rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  margin: 0;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--term);
  white-space: pre;
  overflow-x: auto;
  max-width: 100%;
}

code {
  background: var(--bg-input);
  padding: 0.1em 0.3em;
  border-radius: 2px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.9em;
}

label {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg-dim);
}

.hint {
  font-size: 0.75rem;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}

/* "stuck pixel" accent dot — sprinkle for vibe */
.stuck-pixel::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.4em;
  vertical-align: middle;
  box-shadow: 0 0 4px var(--accent);
  animation: stuck-flicker 3.7s infinite;
}

@keyframes stuck-flicker {
  0%, 94%, 100% { opacity: 1; }
  95%, 97%      { opacity: 0.2; }
  96%           { opacity: 0.8; }
}
