:root {
  color-scheme: dark;
  --bg: #121314;
  --surface: #1a1c1e;
  --surface-2: #202326;
  --surface-3: #17191a;
  --line: #353a3e;
  --line-strong: #4a5156;
  --text: #f3f5f0;
  --muted: #a7aca8;
  --soft: #d5dad4;
  --green: #83d17b;
  --cyan: #63c8d8;
  --amber: #e6b76a;
  --red: #e46f61;
  --blue: #8fb3ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-header,
.section-shell {
  width: min(1120px, calc(100% - 44px));
  margin-inline: auto;
}

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

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 74px;
}

.brand,
.button,
.nav-links a,
.nav-actions a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--text);
  font-weight: 780;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--green);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.nav-actions a,
.button {
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.nav-links a:hover,
.nav-actions a:hover {
  color: var(--text);
}

.button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 680;
  white-space: nowrap;
}

.button:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: 42px;
  align-items: start;
  padding-block: 58px 42px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 18px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--soft);
  font-size: 13px;
  font-weight: 680;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(44px, 6.2vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 830;
}

h1 span {
  color: var(--cyan);
}

.lead {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 650px;
}

.stat {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1011;
}

.terminal-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.terminal-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.terminal-bar span:nth-child(1) {
  background: var(--red);
}

.terminal-bar span:nth-child(2) {
  background: var(--amber);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

.terminal-body {
  min-height: 356px;
  padding: 18px;
  color: #cbd2cd;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
}

.terminal-body p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.terminal-body p + p {
  margin-top: 2px;
}

.terminal-value + p {
  margin-top: 24px;
}

.prompt {
  color: var(--green);
}

.terminal-key {
  color: var(--blue);
}

.terminal-value {
  color: var(--text);
  font-weight: 640;
}

.content-section {
  border-top: 1px solid var(--line);
  padding-block: 30px 42px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 22px;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(13, minmax(64px, 1fr));
  gap: 10px;
}

.skill {
  min-width: 0;
  min-height: 78px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  place-items: center;
  padding: 8px;
  color: #e7ebe6;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.skill:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.skill.primary {
  border-color: rgba(131, 209, 123, 0.48);
  background: #172019;
  color: var(--green);
}

.skill img {
  width: clamp(30px, 3.1vw, 42px);
  height: clamp(30px, 3.1vw, 42px);
  object-fit: contain;
  display: block;
}

.skill img.icon-invert {
  filter: invert(1) brightness(1.12);
}

.skill img.go-wordmark {
  width: clamp(42px, 4vw, 56px);
}

.experience-list {
  display: grid;
  gap: 10px;
}

.experience-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(150px, 0.32fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 28, 30, 0.54);
}

.experience-item.featured {
  border-color: rgba(131, 209, 123, 0.42);
  background: rgba(23, 32, 25, 0.56);
}

.experience-item h3 {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.experience-item div p,
.experience-item time,
.experience-item > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.experience-item time {
  color: var(--soft);
}

.experience-item > p {
  font-size: 14px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.icon-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--soft);
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-link:hover,
.button-cv:hover {
  border-color: var(--green);
  color: var(--green);
}

@media (max-width: 1040px) {
  .skill-grid {
    grid-template-columns: repeat(7, minmax(74px, 1fr));
  }

  .experience-item {
    grid-template-columns: minmax(200px, 0.9fr) minmax(140px, 0.45fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 900px) {
  .site-header,
  .section-shell {
    width: min(100% - 32px, 680px);
  }

  .nav {
    grid-template-columns: 1fr auto;
    gap: 14px;
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 38px 34px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

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

  .terminal-body {
    min-height: auto;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 8px;
    text-align: left;
  }

  .skill-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .section-shell {
    width: min(100% - 24px, 680px);
  }

  .brand span:last-child {
    display: none;
  }

  .button {
    min-height: 34px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .nav-actions {
    gap: 7px;
  }

  .icon-link {
    width: 34px;
    height: 34px;
  }

  .icon-link svg {
    width: 17px;
    height: 17px;
  }

  .eyebrow {
    max-width: 100%;
    min-height: 28px;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(39px, 12vw, 50px);
  }

  .lead {
    font-size: 16px;
  }

  .terminal-body {
    padding: 15px;
    font-size: 12px;
    line-height: 1.72;
  }

  .skill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .skill {
    min-height: 72px;
    padding: 7px 5px;
  }

  .experience-item {
    padding: 15px;
  }
}
