:root {
  --bg: #0b0d10;
  --bg-elev: #14181d;
  --fg: #e8eaee;
  --muted: #8a929d;
  --accent: #5cd6c0;
  --accent-2: #f7c948;
  --border: #1f252c;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem;
}

header h1 {
  font-size: 3rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  max-width: 60ch;
}

.links {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

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

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.muted { color: var(--muted); font-size: 0.95rem; margin-top: 0; }

form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
  margin: 1.25rem 0;
}

#form-get {
  grid-template-columns: 1fr auto auto;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: var(--fg);
  font-size: 0.95rem;
  font-family: inherit;
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button {
  background: var(--accent);
  color: #0b0d10;
  border: 0;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

button:hover { filter: brightness(1.05); }
button.ghost:hover { color: var(--fg); border-color: var(--accent); }

.output {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font-family: ui-monospace, "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 24rem;
  overflow: auto;
  color: var(--fg);
  margin: 0;
}

.prose p { color: var(--muted); }
.prose p:first-of-type { margin-top: 0; }
.prose code, code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.85em;
  font-family: ui-monospace, "JetBrains Mono", "Fira Code", monospace;
}
.prose a { color: var(--accent); }
