/* ---------- Tokens ---------- */
:root {
  --bg: #17131F;
  --surface: #211C2C;
  --surface-alt: #14111C;
  --border: #322B41;
  --text: #F2EEE7;
  --text-muted: #A79FC0;
  --accent: #F0A83A;
  --accent-soft: #F0A83A22;
  --added: #6FCF97;
  --removed: #E8788A;

  --font-display: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a { color: inherit; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 40px; }
h3 { font-size: 19px; margin-bottom: 10px; }

p { color: var(--text-muted); margin: 0; }

code {
  font-family: var(--font-display);
  background: var(--surface-alt);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--text);
}

/* ---------- Header ---------- */

.nav-toggle-input { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(23, 19, 31, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--text);
}

.logo-accent { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 14px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 8px 16px;
  border-radius: 6px;
}

.nav-cta:hover { background: var(--accent-soft); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #1B1523;
}

.btn-primary:hover { background: #f5b855; }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Review panel (signature element) ---------- */

.review-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55);
}

.review-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: var(--removed); }
.dot-amber { background: var(--accent); }
.dot-green { background: var(--added); }

.review-panel-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-left: 6px;
}

.code-block {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
}

.code-line { display: block; white-space: pre; }
.code-removed { color: var(--removed); opacity: 0.75; }
.code-added { color: var(--added); }

.review-comment {
  display: flex;
  gap: 12px;
  padding: 18px 20px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

.comment-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-meta {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 6px;
}

.comment-body p:last-child {
  font-size: 14px;
  color: var(--text);
}

/* ---------- The gap ---------- */

.gap { padding: 96px 0; border-bottom: 1px solid var(--border); }

.gap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 26px;
}

.gap-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

/* ---------- Curriculum (commit log) ---------- */

.curriculum { padding: 96px 0; border-bottom: 1px solid var(--border); }

.commit-log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.commit {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.commit-hash {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  padding-top: 2px;
}

.commit p { max-width: 60ch; }

/* ---------- About ---------- */

.about { padding: 96px 0; border-bottom: 1px solid var(--border); }

.about-inner {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  align-items: start;
}

.about-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  object-position: center;
  display: block;
}

.about p { max-width: 62ch; margin-top: 14px; }

/* ---------- CTA ---------- */

.cta { padding: 96px 0 110px; }

.cta-inner { max-width: 640px; }

.cta-sub { margin: 14px 0 32px; font-size: 16px; }

.cta-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-form input {
  flex: 1;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 6px;
}

.cta-form input:focus-visible,
a:focus-visible,
.nav-burger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cta-form input::placeholder { color: var(--text-muted); }

.cta-form button { border: none; cursor: pointer; }

/* ---------- Footer ---------- */

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .gap-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-avatar { width: 72px; height: 72px; font-size: 20px; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .site-nav a { padding: 12px 0; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; }

  .nav-burger { display: flex; }

  .nav-toggle-input:checked ~ .site-header .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.skill-level {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #545554;
  border: 3px solid #a098b8;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.skill-level__title {
  text-align: center;
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: #f2eee7;
}

.skill-bar {
  margin-bottom: 3rem;
}

.skill-bar__label {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f2eee7;
}

.skill-bar__track {
  width: 100%;
  height: 64px;
  background-color: #ffffff;
  border: 3px solid #16141f;
  border-radius: 12px;
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
}

.skill-bar__fill--red        { background-color: #f79a9a; } /* 0-20%   */
.skill-bar__fill--orange     { background-color: #f9c08a; } /* 20-40%  */
.skill-bar__fill--yellow     { background-color: #f5e08a; } /* 40-60%  */
.skill-bar__fill--yellowgreen{ background-color: #d4e896; } /* 60-80%  */
.skill-bar__fill--green      { background-color: #b8ecd9; } /* 80-100% */


