:root {
  --bg: #fafaf9;
  --fg: #111111;
  --muted: #6b6b6b;
  --line: #e4e4e2;
  --accent: #111111;
  --link-line: #b5b5b2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0c;
    --fg: #f2f2f0;
    --muted: #8f8f8c;
    --line: #262626;
    --accent: #f2f2f0;
    --link-line: #555553;
  }
}

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

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  animation: fade-in 0.8s ease-out both;
}

header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.mark {
  width: 1.25rem;
  height: 1.25rem;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.blurb {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}

.blurb a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.blurb a:hover,
.blurb a:focus-visible {
  text-decoration-color: currentColor;
  outline: none;
}

.contacts {
  list-style: none;
  border-top: 1px solid var(--line);
}

.contacts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.label {
  color: var(--muted);
  font-size: 0.875rem;
}

.contacts a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.25s ease;
}

.contacts a:hover,
.contacts a:focus-visible {
  background-size: 100% 1px;
  outline: none;
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

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