:root {
  color-scheme: light dark;
  --page: #0b0b0b;
  --ink: #f5f5f2;
  --muted: #b8b8b2;
  --line: #f5f5f2;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, sfmono-regular, consolas, monospace;
  letter-spacing: 0;
  text-transform: lowercase;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 420px);
  padding: clamp(28px, 6vw, 48px);
  text-align: center;
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.25rem, 6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
}

.tagline {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(0.78rem, 3.6vw, 0.92rem);
  line-height: 1.5;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-links a {
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.contact-links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.contact-links a:active,
.links a:active {
  transform: translateY(1px);
}

.section-title {
  margin-top: 30px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin: 9px auto 0;
  background: var(--muted);
}

.links {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.links a {
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.contact-links a:focus-visible,
.links a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
