/* Black and white, centred, like a GitHub README header: a pixel wordmark,
   one bold line, flat black badges and a dotted row of links. */
:root { --fg: #000; --bg: #fff; --muted: #57606a; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #fff; --bg: #0d1117; --muted: #8b949e; }
}

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

body { min-height: 100vh; min-height: 100dvh; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 42rem;
  padding: 3rem 1.25rem;
  text-align: center;
}
main > * + * { margin-top: 1.25rem; }

.wordmark { display: block; width: min(100%, 22rem); height: auto; margin: 0 auto; }

.tagline { font-weight: 700; margin-top: 1.75rem; }

a { color: inherit; }
.about a, nav a { text-decoration: underline; text-underline-offset: 0.2em; }
.about a:hover, nav a:hover { text-decoration-thickness: 2px; }

/* Flat-square badges: label and value both on solid ink. */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; }
.badges a {
  display: inline-flex;
  font: 11px/20px Verdana, "DejaVu Sans", Geneva, sans-serif;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}
.badges span { padding: 0 6px; }
.badges span + span { padding-left: 0; }
.badges a:hover { opacity: 0.8; }

.about { color: var(--muted); }
.about span { display: block; }
/* Let the three intro lines run wider than the column on large screens. */
@media (min-width: 900px) { .about { margin-left: -6rem; margin-right: -6rem; } .about span { white-space: nowrap; } }
.about span + span { margin-top: 0.35rem; }
.about a { color: var(--fg); }

.points {
  list-style: none;
  text-align: left;
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 3px solid var(--fg);
  padding-left: 1rem;
}
.points li + li { margin-top: 0.4rem; }
.points a { color: var(--fg); text-decoration: underline; text-underline-offset: 0.2em; }

/* Background: a pixel curve with its local and global minimum marked. */
body::before {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 100vh;
  background: url("/curve.svg") center bottom / max(100%, 900px) auto no-repeat;
  opacity: 0.09;
  z-index: -1;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) { body::before { opacity: 0.14; } }
@media (max-width: 639px) { body::before { background-size: 100% auto; opacity: 0.12; } }

.contact { color: var(--muted); font-size: 0.9rem; }

/* Hard drop shadow behind the wordmark letters. */
.wordmark .shadow { opacity: 0.3; }
