:root {
  --bg: #13151a;
  --panel: #1b1e25;
  --line: #2a2e38;
  --text: #e9ebef;
  --muted: #9ba1ae;
  --blue: #4575f7;
  --blue-dark: #3763dd;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

ul {
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 720px;
}

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* top bar */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 600;
  font-size: 15px;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--text);
}

nav a.active {
  color: var(--text);
  border-bottom-color: var(--blue);
}

/* hero */

.hero {
  padding: 90px 0 110px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-text {
  flex: 1;
}

h1 {
  font-size: 46px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.5px;
  max-width: 11em;
}

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

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  padding: 10px 26px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--blue);
  transition: background 0.15s;
}

.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

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

.btn.ghost:hover {
  background: var(--panel);
  border-color: var(--muted);
}

/* the blue shape behind the photo */

.photo {
  position: relative;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  border-radius: 62% 38% 54% 46% / 48% 56% 44% 52%;
  transform: translate(16px, 14px);
}

.photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 62% 38% 54% 46% / 48% 56% 44% 52%;
}

/* sections */

.block {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.block.last {
  padding-bottom: 90px;
}

h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.block p {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 62ch;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.two-col li {
  color: var(--muted);
  padding: 4px 0;
}

.project {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}

.project p {
  margin-bottom: 12px;
}

.small {
  font-size: 14px;
}

.textlink {
  color: var(--blue);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--blue);
}

.textlink:hover {
  color: var(--text);
  border-color: var(--text);
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 13px;
  color: var(--muted);
}

/* smaller screens */

@media (max-width: 820px) {
  .hero {
    padding: 60px 0 80px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .photo {
    width: 280px;
    height: 280px;
  }

  h1 {
    font-size: 36px;
  }

  nav {
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .logo {
    display: none;
  }

  .top-inner {
    justify-content: center;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h1 {
    font-size: 30px;
  }

  .photo {
    width: 240px;
    height: 240px;
  }
}

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