:root {
  color-scheme: light dark;
  --paper: #faf9f6;
  --ink: #20201e;
  --hover: #eae8e2;
  --focus: #3156b9;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

main { text-align: center; }

h1 {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(2px, 2vw, 12px);
}

a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

a:hover { background: var(--hover); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
svg { display: block; width: 22px; height: 22px; fill: currentColor; }
svg[fill="none"] { fill: none; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181817;
    --ink: #f3f1eb;
    --hover: #30302c;
    --focus: #a4baff;
  }
}

@media (forced-colors: active) {
  a:focus-visible { outline-color: Highlight; }
}
