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

:root {
  --bg:      #eceff4;
  --text:    #2e3440;
  --link:    #5e81ac;
  --muted:   #7a8898;
  --border:  #d8dee9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:    #2e3440;
    --text:  #eceff4;
    --link:  #88c0d0;
    --muted: #7a8898;
    --border:#3b4252;
  }
}

html {
  font-size: 18px;
  line-height: 1.75;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

h1 {
  font-size: 1.6rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: normal;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: monospace;
}

p {
  margin-top: 1rem;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration: none;
}

code, pre, .mono {
  font-family: monospace;
  font-size: 0.9rem;
}

pre {
  background: color-mix(in srgb, var(--text) 5%, var(--bg));
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-top: 1rem;
  line-height: 1.5;
}
pre.ascii {
  font-family: monospace;
  font-size: 0.75rem;    /* small enough to fit within 680px */
  line-height: 1.0;      /* rows must sit flush against each other */
  letter-spacing: 0;
  white-space: pre;       /* preserve exact spacing, no wrapping */
  overflow-x: auto;
}

blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1.25rem;
  margin: 2rem 0;
  font-size: 1.1rem;
  color: var(--text);
}

blockquote p {
  margin-top: 0.5rem;
}

blockquote p:first-child {
  margin-top: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.tagline {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2.5rem;
}

ul, ol {
  padding-left: 1.5rem;
  margin-top: 0.75rem;
}

li {
  margin-top: 0.25rem;
}

/* Application form */
form {
  margin-top: 2rem;
}

label {
  display: block;
  margin-top: 1.75rem;
  font-weight: bold;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input[type="text"],
textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem 0.75rem;
  background: color-mix(in srgb, var(--text) 4%, var(--bg));
  border: 1px solid var(--border);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.6;
  border-radius: 0;
  appearance: none;
}

input[type="text"]:focus,
textarea:focus {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

textarea.pubkey {
  font-family: monospace;
  font-size: 0.85rem;
  min-height: 5rem;
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

button[type="submit"] {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.6rem 1.5rem;
  background: var(--text);
  color: var(--bg);
  font-family: monospace;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
}

button[type="submit"]:hover {
  opacity: 0.85;
}

footer {
  margin-top: 5rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: monospace;
}
