:root {
  --page: #f1ded5;
  --shell: #1f242a;
  --shell-dark: #171b20;
  --panel: #252b33;
  --text: #f7f9fc;
  --muted: #aeb8c5;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --shadow: 0 42px 90px rgba(37, 24, 27, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.52), transparent 28rem),
    var(--page);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

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

.site-header,
main {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  background: var(--shell);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 72px;
  min-height: 94px;
  padding: 0 30px;
  box-shadow: var(--shadow);
}

main {
  margin-bottom: 72px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-avatar {
  display: block;
  width: 50px;
  height: 50px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--shell-dark);
  object-fit: cover;
  object-position: 50% 34%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
}

.nav-links a {
  color: #dce4f0;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 160ms ease;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  gap: 48px;
  align-items: center;
  min-height: 560px;
  padding: 76px 30px 84px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 24px;
  color: #d7e7f7;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  color: #ffffff;
  font-size: clamp(2.9rem, 7vw, 5.3rem);
  line-height: 1.02;
}

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

h2 {
  margin-bottom: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 11px;
  color: #ffffff;
  font-size: 1.06rem;
}

.hero-copy p:not(.eyebrow),
.section-body,
.profile-panel p,
.project-card p,
.stack-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent-strong);
  color: #ffffff;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.profile-panel {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 440px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 39%, rgba(56, 189, 248, 0.28), transparent 38%),
    linear-gradient(180deg, #252b33, #171b20);
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: 15% 6% auto;
  height: 56%;
  border: 2px solid rgba(56, 189, 248, 0.38);
  border-radius: 50%;
}

.profile-panel img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.profile-panel > div,
.quick-facts {
  display: none;
}

.section {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 48px;
  padding: 76px 30px;
  border-top: 1px solid var(--line);
}

.section-body {
  display: grid;
  gap: 18px;
}

.section-body p {
  margin-bottom: 0;
}

.stack-grid,
.project-grid {
  display: grid;
  gap: 16px;
}

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

.stack-grid article,
.project-card,
.contact {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.stack-grid article {
  min-height: 160px;
  padding: 22px;
}

.stack-grid p {
  margin-bottom: 0;
}

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

.project-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
}

.project-number {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 2.4rem;
  font-weight: 800;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-right: 60px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #bae6fd;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card p {
  margin-bottom: 18px;
}

.project-card a {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card a:hover,
.project-card a:focus-visible {
  color: #ffffff;
}

.contact {
  margin: 0 30px 0;
  padding: 56px 30px 68px;
}

.contact h2 {
  max-width: 740px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 24px;
    padding: 24px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 16px;
  }

  .hero,
  .section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 54px 24px 70px;
  }

  .profile-panel {
    min-height: 520px;
  }

  .section {
    padding: 64px 24px;
  }

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

  .contact {
    margin-inline: 24px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main {
    width: 100%;
  }

  .site-header {
    margin-top: 0;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  h1 {
    font-size: 2.72rem;
  }

  .profile-panel {
    min-height: 420px;
  }

  .hero-actions,
  .contact-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .contact {
    margin-inline: 18px;
    padding: 36px 20px 44px;
  }
}
