/* Deliberately plain, roughly GitHub's defaults. The two-column layout waits
   until Phase 5. */

:root {
  --fg: #1f2328;
  --fg-muted: #59636e;
  --bg: #ffffff;
  --bg-inset: #f6f8fa;
  --border: #d1d9e0;
  --accent: #1f883d;
  --accent-hover: #1a7f37;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
    Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.page {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.title {
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.5rem;
  font-weight: 600;
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.editor {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.45;
  resize: vertical;
}

.editor:focus {
  outline: 2px solid #0969da;
  outline-offset: -1px;
  border-color: transparent;
}

/* The output side. */
.editor[readonly] {
  background: var(--bg-inset);
  color: var(--fg-muted);
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.button {
  padding: 0.3125rem 1rem;
  border: 1px solid rgba(31, 35, 40, 0.15);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-hover);
}

/* Secondary actions -- Copy, and Clear once Phase 6 lands. */
.button-plain {
  background: var(--bg-inset);
  color: var(--fg);
}

.button-plain:hover {
  background: #eef1f4;
}

.note {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.note-error {
  color: #cf222e;
}
