:root {
  color-scheme: light dark;
  --profile-bg: #ffffff;
  --profile-text: #0f172a;
  --profile-muted: #64748b;
  --profile-accent: #0f766e;
  --profile-tag: #f1f5f9;
  --profile-border: #e2e8f0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --profile-bg: #15181c;
    --profile-text: #f1f5f9;
    --profile-muted: #94a3b8;
    --profile-accent: #7dd3fc;
    --profile-tag: #232a31;
    --profile-border: #2d333b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--profile-bg);
  color: var(--profile-text);
  line-height: 1.55;
}

main,
header {
  max-width: 760px;
  margin: auto;
  padding: 1.5rem;
}

header {
  padding-top: 2.5rem;
}

a {
  color: var(--profile-accent);
}

.eyebrow {
  font-weight: 700;
  text-decoration: none;
}

.identity {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.portrait {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

h1 {
  margin: 0;
  line-height: 1.12;
}

h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

.native,
.meta,
.updated,
footer {
  color: var(--profile-muted);
}

.tags,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--profile-tag);
  font-size: 0.9rem;
}

.links a {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--profile-border);
  border-radius: 0.35rem;
  text-decoration: none;
}

footer {
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--profile-border);
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .identity {
    display: block;
  }

  .portrait {
    margin-bottom: 1rem;
  }
}
