:root {
  --background: #f3f4f2;
  --foreground: #16181a;
  --muted: #5f6468;
  --primary: #1f4fd1;
  --border: #d6d9d6;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #16181a;
    --foreground: #eceeec;
    --muted: #9aa0a4;
    --primary: #8aa8ff;
    --border: #2e3235;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
}

main {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

article {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 28rem;
}

header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

h1 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.muted {
  color: var(--muted);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

address {
  font-style: normal;
}

a {
  color: inherit;
  border-radius: 2px;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.email {
  width: fit-content;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}

.email:hover {
  text-decoration-color: var(--primary);
}

ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--foreground);
}

footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

small {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
