:root {
  --ink: #172b40;
  --muted: #5e6b78;
  --accent: #245b91;
  --line: #dfe4e8;
  --paper: #ffffff;
  --soft: #f6f8fa;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:hover { color: var(--accent); }

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

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

p { color: var(--muted); }

.wrap {
  width: min(840px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  letter-spacing: -0.2px;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.hero {
  padding-block: 88px 72px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1.06;
  letter-spacing: -2.4px;
  font-weight: 650;
}

.lead {
  max-width: 700px;
  margin-bottom: 12px;
  color: #31465a;
  font-size: 20px;
}

.summary {
  max-width: 680px;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 650;
}

.button:hover {
  background: var(--soft);
  color: var(--ink);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button.primary:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 12px;
}

.section {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 56px;
  padding-block: 64px;
  border-top: 1px solid var(--line);
}

.section h2,
.contact h2 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.8px;
}

.company {
  margin-bottom: 0;
  font-size: 14px;
}

.section-copy > p:first-child {
  color: #31465a;
}

.section-copy ul {
  margin: 22px 0;
  padding-left: 20px;
  color: var(--ink);
}

.section-copy li {
  margin-bottom: 8px;
}

.muted {
  font-size: 14px;
}

.contact {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-block: 58px;
  border-top: 1px solid var(--line);
}

.contact > div:first-child {
  max-width: 580px;
}

.contact p:last-child {
  margin-bottom: 0;
}

.contact-links {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
}

.not-found {
  padding-block: 96px;
}

.not-found h1 {
  margin-bottom: 18px;
}

.not-found p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 28px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 8px 10px;
  background: #fff;
  z-index: 10;
}

.skip:focus { top: 12px; }

@media (max-width: 680px) {
  .wrap { width: min(100% - 32px, 840px); }

  .site-header { min-height: 70px; }

  nav { gap: 16px; }

  .hero { padding-block: 58px 50px; }

  h1 {
    font-size: 44px;
    letter-spacing: -1.8px;
  }

  .lead { font-size: 18px; }

  .section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 48px;
  }

  .contact {
    display: block;
    padding-block: 48px;
  }

  .contact-links {
    margin-top: 24px;
  }

  .not-found {
    padding-block: 64px;
  }
}

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