:root {
  --ink: #14213d;
  --muted: #5c6378;
  --accent: #e4572e;
  --surface: #ffffff;
  --page: #f4f5f8;
  --line: #d9dce5;
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
}

body { margin: 0; }

main {
  max-width: 40rem;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 { margin: 0.25rem 0 0.5rem; font-size: 1.75rem; }
h2 { font-size: 1.2rem; margin-top: 2rem; }
.lede, footer, #published { color: var(--muted); }

form { display: grid; gap: 0.75rem; }
label { font-weight: 600; }
label.consent { font-weight: 400; display: flex; gap: 0.5rem; align-items: flex-start; }

input[type="email"], textarea {
  font: inherit;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

button {
  font: inherit;
  font-weight: 600;
  justify-self: start;
  padding: 0.55rem 1.1rem;
  color: #ffffff;
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

button:disabled { opacity: 0.5; cursor: not-allowed; }

#artifacts { padding-left: 1.2rem; }
#artifacts li { margin: 0.4rem 0; overflow-wrap: anywhere; }
code { font-size: 0.85em; }
.notice { padding: 0.75rem; background: var(--page); border-left: 3px solid var(--accent); }
a { color: var(--ink); }
input[type="text"] { font: inherit; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 6px; }
textarea, input[type="text"] { font-family: ui-monospace, monospace; font-size: 0.9rem; }
.msg { white-space: pre-wrap; }
.err { color: #a4161a; }
