@font-face {
  font-family: "DejaVu Sans Mono Web";
  src: url("fonts/dejavusansmono-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* dark-scope: near-neutral ground and text, phosphor green as accent only */
body {
  font-family: system-ui, Helvetica, Arial, sans-serif;
  color: #e8ece9;
  background: #101614;
  margin: 0;
  padding: 2rem 1rem;
}

main {
  max-width: 72ch;
  margin: 0 auto;
}

::selection {
  background: #2ee6a8;
  color: #0a1f18;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand h1 {
  margin: 0;
}

.brand .tagline {
  margin: 0.35rem 0 0;
}

h1 {
  font-family: "DejaVu Sans Mono Web", "DejaVu Sans Mono", Menlo,
    Consolas, monospace;
  font-size: 1.7rem;
}

h1, h2, h3 {
  font-weight: bold;
  color: #f2f5f3;
}

.logo {
  display: block;
  flex-shrink: 0;
}

.tagline {
  font-family: "DejaVu Sans Mono Web", "DejaVu Sans Mono", Menlo,
    Consolas, monospace;
  color: #2ee6a8;
}

a {
  color: #2ee6a8;
}

a:hover {
  color: #5cf0bd;
}

details {
  margin: 0.75rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #232b27;
}

summary {
  cursor: pointer;
}

summary > h3 {
  display: inline;
}

summary:hover h3 {
  color: #2ee6a8;
}

dfn {
  font-style: normal;
  font-weight: bold;
  color: #f2f5f3;
}

pre, code {
  font-family: "DejaVu Sans Mono Web", "DejaVu Sans Mono", Menlo,
    Consolas, monospace;
  color: #2ee6a8;
}

.diagram {
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  line-height: 1.2;
  background: #0d241c;
  border: 1px solid #23392f;
  border-radius: 0.3em;
  padding: 0.5em 1em;
}

form {
  margin: 1.5rem 0;
}

input[type="email"] {
  font: inherit;
  padding: 0.4rem 0.7rem;
  background: #151d19;
  color: #e8ece9;
  border: 1px solid #2c3a33;
  border-radius: 6px;
  width: 24ch;
  max-width: 100%;
  transition: border-color 0.2s;
}

input[type="email"]::placeholder {
  color: #5f6f68;
}

input[type="email"]:hover {
  border-color: #2ee6a8;
}

input[type="email"]:focus {
  outline: none;
  border-color: #2ee6a8;
  box-shadow: 0 0 0 2px rgba(46, 230, 168, 0.18);
}

button {
  font: inherit;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 6px;
  background: #2ee6a8;
  color: #062018;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #4defb9;
}

button:active {
  background: #24c791;
}

footer {
  margin-top: 3rem;
  border-top: 1px solid #232b27;
  font-size: 0.85em;
}
