@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #8a8a8a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --fg: #f2f2f2;
    --muted: #7a7a7a;
  }
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

h1 {
  font-size: clamp(4.5rem, 22vw, 11rem);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

#msg {
  margin-top: 1rem;
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  font-weight: 300;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

a { color: inherit; }
a:hover { color: var(--fg); }

/* Login */
.login {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--muted);
  width: min(18rem, 80vw);
}
.login input, .login button {
  font: inherit;
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--fg);
  background: none;
  border: 0;
  outline: none;
  padding: 0.5rem 0;
}
.login input { flex: 1; min-width: 0; }
.login button { cursor: pointer; color: var(--muted); padding-left: 0.5rem; }
.login button:hover { color: var(--fg); }
.err { margin-top: 0.75rem; font-size: 0.85rem; color: var(--muted); }
