:root {
  --bg: #f4f1ea;
  --text: #1d2420;
  --muted: #5e665f;
  --accent: #2f5b3f;
  --chip: #e8e2d4;
  --chip-hover: #ddd5c2;
  --ring: #c9bfa8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a16;
    --text: #ece7dc;
    --muted: #a3aa9f;
    --accent: #9cc4a3;
    --chip: #222a24;
    --chip-hover: #2c362e;
    --ring: #3a463c;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  align-self: center;
  justify-self: center;
  width: min(34rem, 100% - 3rem);
  padding: 4rem 0 2rem;
  text-align: center;
}

.avatar {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--chip);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--ring);
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3rem);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.name {
  margin: .5rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: .02em;
}

.intro {
  margin: 1.5rem auto 0;
  max-width: 28rem;
  text-wrap: pretty;
}

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  font-size: .95rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color .15s ease;
}

.links a:hover { background: var(--chip-hover); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }

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

footer a { color: inherit; }
footer span { margin: 0 .4rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
