:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #eef3ef;
  background: #101917;
  line-height: 1.65;
  --accent: #a9f3ba;
  --muted: #becbc4;
  --border: #3c5047;
}

* { box-sizing: border-box; }

body {
  width: min(100% - 2rem, 65rem);
  margin: auto;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-header, .site-footer, nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.site-header {
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.brand { font-weight: 750; }
.site-header a { text-decoration: none; }
.site-header a:hover, .site-header [aria-current="page"] { text-decoration: underline; }

main { padding: clamp(2rem, 7vw, 5rem) 0; }

h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -0.055em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
p { color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(9rem, 13rem);
  align-items: center;
  gap: 2rem;
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

.hero p { margin: 0 0 1.5rem; font-size: 1.15rem; }

.avatar {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.profile-interests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.profile-interests h2 { margin: 0 0 0.75rem; }
.profile-interests ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-interests li {
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #182620;
  font-size: 0.9rem;
}

.site-footer { border-top: 1px solid var(--border); padding: 1.25rem 0; }

@media (max-width: 34rem) {
  .hero { grid-template-columns: 1fr; }
  .avatar { width: min(9rem, 100%); }
}
