:root {
  --bg: #0d0c10;
  --ink: #ece9f2;
  --muted: #8a8596;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  display: grid;
  place-items: center start;
  padding: clamp(1.5rem, 10vw, 10rem);
  background: var(--bg);
  color: var(--muted);
  font: 400 1.0625rem/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--bg); }

main {
  max-width: 38rem;
  animation: fade 1.2s ease-out both;
}

h1 {
  margin: 0 0 1.25rem;
  font: 300 clamp(2.5rem, 7vw, 4.5rem)/1 'Fraunces', Georgia, serif;
  letter-spacing: -0.03em;
  color: var(--ink);
}

p { margin: 0 0 0.75rem; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}

a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}

a svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  color: var(--muted);
  transition: color 0.2s;
}

a span {
  text-decoration: underline;
  text-decoration-color: rgba(236, 233, 242, 0.3);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s;
}

a:hover span, a:focus-visible span { text-decoration-color: currentColor; }
a:hover svg, a:focus-visible svg { color: var(--ink); }

a:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
}
