:root {
  --bg: #ffffff;
  --fg: #1b1f23;
  --muted: #586069;
  --link: #0b5cad;
  --rule: #d8dee4;
  --code: #f3f5f7;
  --btn: #0b5cad;
  --btn-fg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --fg: #e6e9ec;
    --muted: #9aa4af;
    --link: #7db7f2;
    --rule: #2c333b;
    --code: #1a1f25;
    --btn: #7db7f2;
    --btn-fg: #0b1118;
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 2.25rem 0 .5rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }

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

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9rem;
}

code { background: var(--code); padding: .1rem .3rem; border-radius: .25rem; }

pre {
  background: var(--code);
  border: 1px solid var(--rule);
  border-radius: .5rem;
  padding: .75rem 1rem;
  margin: 0 0 1rem;
  overflow-x: auto;
}

pre code { background: none; padding: 0; }

/* The address is generated content: it is not in the HTML or in this file as one string. */
.mail {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1.25rem;
  background: var(--code);
  border: 1px solid var(--rule);
  border-radius: .5rem;
  padding: .75rem 1rem;
  margin: 0 0 .5rem;
  overflow-wrap: anywhere;
}

.m1::before { content: "help"; }
.m2::before { content: "\0040"; }
.m3::before { content: "shrt.win"; }

.note { color: var(--muted); font-size: .9rem; }
.fpr code { font-size: 1rem; }

.btn {
  font: inherit;
  color: var(--btn-fg);
  background: var(--btn);
  border: 0;
  border-radius: .5rem;
  padding: .5rem 1rem;
  cursor: pointer;
}

[hidden] { display: none !important; }

details { margin: 0 0 1rem; }
summary { cursor: pointer; margin-bottom: .5rem; }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .9rem;
}
