:root {
  --bg: #101316;
  --paper: #171b20;
  --paper-muted: #1c2229;
  --ink: #f1f4f6;
  --text: #d7dde2;
  --muted: #98a3ad;
  --line: #2a323a;
  --line-strong: #3a4650;
  --accent: #7bd7bf;
  --accent-soft: #203a35;
  --accent-warm: #e0a36d;
  --shadow: none;
  --radius: 14px;
  --max: 1060px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

p,
ul {
  margin-top: 0;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  left: 12px;
}

main {
  width: 100%;
}

.hero,
.section,
.contact-section,
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero {
  padding-top: 46px;
  padding-bottom: 52px;
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-kicker span:first-child {
  color: var(--ink);
  font-weight: 760;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  gap: 30px;
  align-items: start;
}

.eyebrow {
  margin-bottom: 11px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.04rem;
}

.lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 720;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: #9be5d3;
  color: #07110e;
}

.intro-card,
.project-card,
.skill-group,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: 22px;
}

.intro-card h2 {
  margin-bottom: 11px;
  font-size: 1.2rem;
}

.intro-card p {
  color: var(--muted);
}

.plain-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent-warm);
}

.compact {
  margin-top: 17px;
  font-size: 0.92rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 42px;
}

.facts div {
  min-height: 106px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-muted);
}

.facts strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.98rem;
}

.facts span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 25px;
}

.section-heading h2 {
  margin-bottom: 13px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.98rem;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.project-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 20px;
}

.project-card.featured {
  grid-column: 1 / -1;
  background: #1a2026;
}

.project-number {
  color: var(--accent-warm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  font-weight: 800;
}

.project-type {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-content p:not(.project-type) {
  margin-top: 9px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #11161b;
  font-size: 0.77rem;
  font-weight: 650;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: start;
}

.sticky-note {
  padding-top: 4px;
}

.skill-stack {
  display: grid;
  gap: 10px;
}

.skill-group {
  padding: 20px;
}

.skill-group h3 {
  margin-bottom: 8px;
}

.skill-group p {
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 30px;
  align-items: start;
}

.about-copy {
  max-width: 720px;
  padding-top: 3px;
  color: var(--text);
}

.about-copy p {
  margin-bottom: 15px;
}

.contact-section {
  padding-top: 52px;
  padding-bottom: 58px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 22px;
  padding: 24px;
  border-top: 2px solid var(--accent);
}

.contact-card h2 {
  margin-bottom: 11px;
}

.contact-card p:not(.eyebrow) {
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 8px;
  align-content: center;
}

.contact-links a,
.contact-links span {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #11161b;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 920px) {
  .hero-layout,
  .two-column,
  .about-section,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .hero,
  .section,
  .contact-section,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .hero-kicker {
    margin-bottom: 32px;
  }

  .project-list,
  .facts {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .actions .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
