:root {
  --bg: #0d1117;
  --fg: #c9d1d9;
  --accent: #58a6ff;
  --subtle: #161b22;
  --border: #30363d;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --fg: #1f2328;
    --accent: #0969da;
    --subtle: #f6f8fa;
    --border: #d0d7de;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.8;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header {
  padding: 6rem 1rem 4rem;
  text-align: center;
}

.avatar {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin: 0 auto 2.5rem;
  background: var(--subtle) center / cover no-repeat;
  border: 6px solid var(--border);
  background-image: url('../assets/me.jpg');
}

h1 {
  font-size: clamp(3.5rem, 11vw, 8rem);
  font-weight: 600;
  margin: 0;
}

header p {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-top: 1rem;
}

main {
  max-width: 880px;
  width: 92%;
  margin: 0 auto;
  padding: 2rem 0 7rem;
}

section {
  margin-bottom: 7rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

p, li {
  font-size: 1.2rem;
  max-width: 76ch;
  margin-bottom: 1.4rem;
}

ul {
  padding-left: 1.6rem;
  margin: 1.4rem 0;
}

li {
  margin-bottom: 0.6rem;
}

pre {
  background: var(--subtle);
  padding: 2rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 3rem 0;
  font-size: 1.05rem;
  border: 1px solid var(--border);
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 3rem 1rem;
  opacity: 0.7;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  header {
    padding: 4rem 1rem 3rem;
  }
  .avatar {
    width: 140px;
    height: 140px;
  }
  main {
    width: 94%;
  }
  h2 {
    font-size: 2.2rem;
  }
}