/* 0xrytter.com: the handle's front door. One screen: who, and where
   everything lives. The machinery lives on its
   subdomains; this page is only the signpost. IBM Plex Mono for the handle
   and labels, Plex Sans for the words (fonts/OFL.txt), as on rytter.it.
   No script. */

@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plex Sans";
  src: url("/fonts/plex-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --line: #1f2329;
  --ink: #eceef2;
  --muted: #9aa1ad;
  --dim: #6b7280;
  --link: #7fb3ff;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  place-items: center;
  background:
    radial-gradient(40rem 28rem at 15% 0%, rgb(127 179 255 / 0.07), transparent 70%),
    var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.4rem 0.8rem;
  background: var(--link);
  color: var(--bg);
}

.skip:focus {
  top: 1rem;
}

/* --------------------------------------------------------------- card -- */

.card {
  width: min(34rem, 100%);
  padding: 3rem clamp(1rem, 5vw, 2rem);
}

h1 {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font: 400 clamp(2rem, 7vw, 2.75rem)/1 var(--mono);
  letter-spacing: -0.02em;
}

.who {
  margin-top: 1.25rem;
  color: var(--muted);
}

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

/* -------------------------------------------------------------- links -- */

.links {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.links li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.k {
  color: var(--dim);
  font: 400 0.8rem var(--mono);
}

.v {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.links a {
  overflow-wrap: anywhere;
  transition: color 0.15s ease;
}

.links a::after {
  content: " ↗";
  color: var(--dim);
  transition: color 0.15s ease;
}

.links a:hover,
.links a:hover::after {
  color: var(--link);
}

@media (max-width: 26rem) {
  .links li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
}
