:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #16213a;
  --muted: #5a6478;
  --accent: #0f766e;
  --accent-text: #ffffff;
  --line: #dde1e8;
}
body.dark {
  --bg: #0e1424;
  --surface: #161e33;
  --text: #eef1f7;
  --muted: #a3adc2;
  --accent: #2dd4bf;
  --accent-text: #0e1424;
  --line: #28324d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background .3s, color .3s;
}
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; text-decoration: none; color: var(--text); }
nav a { margin-left: 1.6rem; color: var(--text); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--accent); }
.actions { display: flex; gap: .5rem; }
button { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text); }
#menu-btn { display: none; }

section { max-width: 960px; margin: auto; padding: 5rem 2rem; }
h2 { font-size: 1.9rem; margin-bottom: .6rem; }
.section-note { color: var(--muted); margin-bottom: 2rem; max-width: 60ch; }

#hero { padding-top: 7rem; padding-bottom: 6rem; }
.kicker { color: var(--accent); font-weight: 700; margin-bottom: 1rem; }
#hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.1; font-weight: 800; max-width: 14ch; }
.lead { margin-top: 1.5rem; font-size: 1.2rem; color: var(--muted); max-width: 55ch; }
.hero-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .85rem 1.7rem; border-radius: 6px;
  background: var(--accent); color: var(--accent-text);
  text-decoration: none; font-weight: 700; border: 2px solid var(--accent);
}
.btn.ghost { background: transparent; color: var(--accent); }
.btn:hover { opacity: .88; }

.about-grid { display: grid; gap: 1rem; max-width: 68ch; }
.facts { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 1.2rem 1rem 0 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { font-weight: 700; }

.skills { list-style: none; display: grid; gap: 1.2rem; max-width: 560px; }
.skills li { display: grid; gap: .4rem; font-weight: 500; }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width 1s ease; }
.skills.in .bar i { width: var(--w); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); }
.card .tags { font-size: .9rem; color: var(--text); font-weight: 500; }
.card a { margin-top: auto; font-weight: 700; }

.contact-list { list-style: none; display: grid; gap: .6rem; }

footer { text-align: center; padding: 2.5rem 1rem; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 700px) {
  header { padding: .8rem 1.2rem; }
  #menu-btn { display: block; }
  nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg);
    padding: 1rem 1.2rem; border-bottom: 1px solid var(--line);
  }
  nav.show { display: flex; }
  nav a { margin: .6rem 0; }
  section { padding: 3.5rem 1.2rem; }
  #hero { padding-top: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}