:root {
  color-scheme: dark;
  --bg: #0e1014;
  --panel: #171a20;
  --ink: #f3f4f6;
  --muted: #aeb5c1;
  --line: #303641;
  --mint: #83f3ca;
  --violet: #b8a7ff;
  --gold: #ffd166;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 0, #2f295c 0, transparent 31rem),
    radial-gradient(circle at 2% 70%, #163d36 0, transparent 28rem),
    var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  transform: translateY(-180%);
  border-radius: 0.55rem;
  color: #07110e;
  background: var(--mint);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.4rem;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-header nav a {
  text-underline-offset: 0.3em;
  text-decoration-color: transparent;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav [aria-current="page"] {
  color: var(--ink);
  text-decoration-color: var(--mint);
}

main {
  padding: 4.7rem 0 4rem;
}

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

.kicker,
.number {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.kicker {
  margin-bottom: 0.7rem;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 950px;
  margin-bottom: 1.4rem;
  font-size: clamp(3.1rem, 8vw, 7rem);
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero h1 span {
  color: var(--mint);
}

.intro {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid #44505f;
  border-radius: 0.7rem;
  background: #20252e;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.button.primary {
  color: #07110e;
  border-color: var(--mint);
  background: var(--mint);
}

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

.command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #0c0e12;
}

.hero-command {
  max-width: 820px;
  margin-top: 2rem;
}

.command code {
  min-width: 0;
  overflow-x: auto;
  color: #d9dee7;
  font: 500 0.76rem/1.45 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  white-space: nowrap;
  scrollbar-width: thin;
}

.copy {
  position: relative;
  z-index: 2;
  padding: 0.45rem 0.65rem;
  border: 1px solid #44505f;
  border-radius: 0.55rem;
  color: var(--ink);
  background: #20252e;
  font: 700 0.72rem ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  cursor: pointer;
}

.copy:hover {
  border-color: var(--mint);
}

.project-section {
  margin-top: 5rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
}

.section-heading h2,
.skill-bundle h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-heading > p,
.bundle-intro {
  margin-bottom: 0;
  color: var(--muted);
}

.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 0;
}

.card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgb(23 26 32 / 92%);
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #6c7789;
}

.card.featured {
  grid-column: 1 / -1;
}

.card-top {
  display: flex;
  gap: 1rem;
}

.number {
  padding-right: 2rem;
  color: #8992a0;
  font-size: 0.78rem;
  font-weight: 700;
}

.card-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  text-decoration: none;
}

.card-link:focus-visible {
  outline-offset: -3px;
}

.arrow {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  color: var(--mint);
  font-size: 1.4rem;
  line-height: 1;
}

.card:nth-child(2) .arrow {
  color: var(--violet);
}

.card:nth-child(3) .arrow {
  color: var(--gold);
}

.card:nth-child(4) .arrow {
  color: #79d7ff;
}

.card:nth-child(5) .arrow {
  color: #f0a6ff;
}

.card h3 {
  margin: auto 0 0.4rem;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
}

.card-title-link {
  position: relative;
  z-index: 2;
  text-decoration-thickness: 0.08em;
  text-decoration-color: transparent;
  text-underline-offset: 0.15em;
}

.card-title-link:hover,
.card-title-link:focus-visible {
  text-decoration-color: var(--mint);
}

.card > p {
  max-width: 620px;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.card .command {
  margin-top: 0;
}

.card .command code {
  position: relative;
  z-index: 2;
  user-select: text;
}

.skill-bundle {
  margin-top: 1rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: #11141a;
}

.bundle-intro {
  max-width: 820px;
  margin-top: 1rem;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.bundle-grid article {
  padding: 1rem;
  border-left: 2px solid var(--line);
}

.bundle-grid article:first-child {
  border-color: var(--mint);
}

.bundle-grid article:nth-child(2) {
  border-color: var(--violet);
}

.bundle-grid article:nth-child(3) {
  border-color: var(--gold);
}

.bundle-grid h3 {
  margin-bottom: 0.3rem;
}

.bundle-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.bundle-grid code {
  color: var(--ink);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 3rem;
  color: #8992a0;
  font-size: 0.9rem;
}

footer a {
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-end;
  }

  main {
    padding-top: 3.5rem;
  }

  .section-heading,
  .tools,
  .bundle-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1rem;
  }

  .card,
  .card.featured {
    min-height: 280px;
    grid-column: auto;
  }

  .skill-bundle {
    padding: 1.25rem;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-header,
  main,
  footer {
    width: min(100% - 1.25rem, 1120px);
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.5rem);
  }

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

  .copy {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .card {
    transition: none;
  }
}
