:root {
  --bg: #0a0e0d;
  --bg-card: #101513;
  --border: #1f2925;
  --accent: #35c48c;
  --accent-dim: #1f4f3d;
  --text: #dce4e1;
  --text-dim: #8a9791;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
}

.wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
}

/* SIDEBAR */
.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 320px;
  flex-shrink: 0;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
}

.avatar {
  width: 240px;
  height: 315px;
  flex-shrink: 0;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  margin-bottom: 24px;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.name {
  font-size: 1.7em;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -0.02em;
}

.role {
  font-family: var(--mono);
  color: var(--accent);
  margin: 0 0 16px;
  font-size: 0.95em;
}

.tagline {
  color: var(--text-dim);
  font-size: 0.95em;
  max-width: 260px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
}

.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.85em;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  color: var(--text);
}

.nav a.active .nav-line {
  width: 40px;
  background: var(--accent);
}

.nav-line {
  width: 24px;
  height: 1px;
  background: var(--text-dim);
  transition: width 0.2s ease, background 0.2s ease;
}

.nav a:hover .nav-line,
.nav a:focus-visible .nav-line {
  width: 40px;
  background: var(--accent);
}

.socials {
  position: fixed;
  left: 40px;
  bottom: 30px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 20;
}

.socials a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.8em;
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* CONTENT */
.content {
  flex: 1;
  padding: 60px 40px 60px 0;
}

.mz-badge {
  width: 40px;
  height: 40px;
  margin: 0 0 4px;
  align-self: flex-start;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
}

.block {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 40px;
}

.block:last-of-type {
  border-bottom: none;
}

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85em;
  margin: 0 0 10px;
}

h2 {
  font-size: 1.6em;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.entry {
  margin-bottom: 28px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-head h3 {
  margin: 0;
  font-size: 1.05em;
  color: var(--text);
}

.entry-date {
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--text-dim);
  white-space: nowrap;
}

.entry-sub {
  color: var(--accent);
  font-size: 0.9em;
  margin: 4px 0 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tags span {
  font-family: var(--mono);
  font-size: 0.75em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
}

.book-card {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.book-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.book-cover {
  width: 140px;
  height: 205px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.book-info {
  flex: 1;
  min-width: 0;
}

.book-link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--accent);
  text-decoration: none;
}

.book-link:hover {
  text-decoration: underline;
}

@media (max-width: 500px) {
  .book-card {
    flex-direction: column;
  }

  .book-cover {
    width: 80px;
    height: 116px;
  }
}

.skill-group {
  margin-bottom: 24px;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group h4 {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--text-dim);
  margin: 0 0 4px;
  font-weight: 500;
}

.coming-soon {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  padding: 24px;
  border-radius: 8px;
  text-align: center;
}

.contact-btn {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 12px 28px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.footer {
  padding-top: 30px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.8em;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .wrapper {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    height: auto;
    width: 100%;
    padding: 40px 24px 20px;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 24px;
    gap: 16px 24px;
  }

  .nav-line {
    display: none;
  }

  .socials {
    position: static;
    flex-direction: row;
    margin-top: 24px;
  }

  .content {
    padding: 20px 24px 60px;
  }
}
