* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --text: #202124;
  --muted: #666;
  --line: #ddd;
  --link: #155eef;
  --bg: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

main {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--line);
}

p.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
}

p.intro {
  max-width: 650px;
  margin: 30px 0;
  color: var(--muted);
  font-size: 1.2rem;
}

a.button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--text);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

a.button:hover,
a.button:focus {
  background: var(--text);
  color: white;
}

section {
  padding: 65px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 30px;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

div.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

div.grid article {
  min-height: 150px;
  padding: 24px;
  background: var(--bg);
}

div.grid p,
section > p {
  margin: 0;
  color: var(--muted);
}

p.skills {
  font-size: 1.15rem;
  line-height: 2;
}

footer {
  padding: 45px 0 70px;
  color: var(--muted);
}

footer p {
  margin: 0 0 5px;
}

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

@media (max-width: 650px) {
  main {
    width: min(100% - 28px, 900px);
  }

  .hero {
    padding: 75px 0 65px;
  }

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