/* Robot page of events.zea.tools: system fonts only, no external resource. */
:root {
  color-scheme: light dark;
  --text: #1a1a1a;
  --muted: #555;
  --bg: #fdfdfb;
  --code-bg: #eeeeea;
  --link: #0b57a3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e8e4;
    --muted: #a8a8a2;
    --bg: #161616;
    --code-bg: #2a2a28;
    --link: #8cc4ff;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    1.0625rem/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}

nav,
main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

nav {
  padding-top: 1rem;
  text-align: right;
}

main {
  padding-bottom: 3rem;
}

h1,
h2 {
  line-height: 1.25;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.5rem;
}

article + article {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--muted);
}

code {
  padding: 0.1em 0.3em;
  border-radius: 3px;
  background: var(--code-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  white-space: nowrap;
}

/* The User-Agent is longer than a phone line: let it wrap. */
code.ua {
  white-space: normal;
  overflow-wrap: anywhere;
}

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

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
