/* w4u AB. One screen: the name, what it does, and who to write to, in the
   system's monospace. No fonts or scripts from anywhere else. */

:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a0a0a;
    --ink: #f4f4f4;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(24px, 4.5vw, 56px);
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  -webkit-font-smoothing: antialiased;
}

h1 {
  margin: 0 0 0.16em -0.05em;
  font-size: clamp(88px, 17vw, 240px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

p { margin: 0 0 1.5em; max-width: 62ch; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
}

/* A bar between two things on a line, and none before the first. */
footer > * + *::before {
  content: "|";
  margin: 0 1.2ch;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

/* Too narrow for one line: a line each, and no bars. */
@media (max-width: 860px) {
  footer { flex-direction: column; }
  footer > * + *::before { content: none; }
}
