* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --btn: #238636;
  --btn-hover: #2ea043;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

header {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  font-size: 1.25rem;
  font-weight: 600;
}

header h1 a { color: var(--text); }
header h1 a:hover { text-decoration: none; }

header nav { display: flex; gap: 1rem; font-size: 0.875rem; align-items: center; }

#mascots {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

/* Form */
.paste-form textarea {
  width: 100%;
  min-height: 400px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  tab-size: 4;
}

.paste-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.form-row select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.form-row select:focus { outline: none; border-color: var(--accent); }

.btn {
  background: var(--btn);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
}

.btn:hover { background: var(--btn-hover); }

.error {
  background: #da36361a;
  border: 1px solid #da3636;
  color: #f85149;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Paste view */
.paste-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.paste-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

.paste-actions {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.paste-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: auto;
}

.paste-content pre {
  margin: 0;
  padding: 1rem;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
}

.paste-content code {
  font-family: inherit;
}

/* 404 */
.not-found {
  text-align: center;
  padding: 4rem 1rem;
}

.not-found h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  main { padding: 1rem; }
  header { padding: 1rem; }
  .paste-form textarea { min-height: 250px; }
}
