:root {
  --bg: #fafaf9;
  --text: #1c1917;
  --body: #44403c;
  --secondary: #78716c;
  --muted: #a8a29e;
  --divider: #e7e5e4;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
}

/* ── Layout ── */
.layout {
  display: flex;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Sidebar ── */
aside {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--divider);
  padding: 48px 32px 48px 40px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.tagline {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  color: var(--secondary);
  line-height: 1.5;
  margin-bottom: 40px;
}

nav { display: flex; flex-direction: column; }

nav a {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: var(--secondary);
  text-decoration: none;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}

nav a:hover { color: var(--text); }

.availability {
  margin-top: auto;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.avail-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #86efac;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

/* ── Main content ── */
main {
  flex: 1;
  padding: 48px 60px 80px 60px;
  max-width: 720px;
}

section { margin-bottom: 64px; }

hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin-bottom: 64px;
}

/* ── Section label ── */
.section-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ── About ── */
h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.bio-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 16px;
}

.bio-secondary {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.75;
  max-width: 560px;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.skill-group h3 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.skill-group ul { list-style: none; }

.skill-group li {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.9;
}

/* ── Problems ── */
.problem-list { list-style: none; }

.problem-list li {
  border-top: 1px solid var(--divider);
  padding: 20px 0;
}

.problem-list li:last-child { border-bottom: 1px solid var(--divider); }

.problem-list h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.problem-list p {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.65;
  max-width: 520px;
}

/* ── Contact ── */
.contact-copy {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 480px;
}

.email-link {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.email-link:hover { color: var(--secondary); }

/* ── Responsive ── */
@media (max-width: 700px) {
  .layout { flex-direction: column; }

  aside {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--divider);
    padding: 32px 24px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
  }

  .tagline { margin-bottom: 0; }

  nav { flex-direction: row; gap: 16px; flex-wrap: wrap; }
  nav a { margin-bottom: 0; }

  .availability { margin-top: 0; width: 100%; }

  main { padding: 32px 24px 60px 24px; }

  h1 { font-size: 26px; }

  .skills-grid { grid-template-columns: 1fr; }
}
