:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #10243a;
  --muted: #4d5d6e;
  --line: #dce3ea;
  --accent: #1f5eff;
  --accent-dark: #1647cc;
  --on-dark-muted: #b9c6d4;
  --gutter: 1.5rem;
  --section-space: 5rem;
  --ease: 160ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
a { color: inherit; }
main:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
}
.skip-link:not(:focus) { transform: translateY(-200%); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}
.wordmark {
  padding-block: 0.5rem;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-nav { display: flex; gap: 2rem; }
.site-nav a {
  padding-block: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.nav-section { display: none; }

/* Hero */
.hero { padding-block: 4.5rem 6rem; }
.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.75rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.lead {
  max-width: 36rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 1.1875rem;
}
.button {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--ease);
}
.button:hover, .button:focus-visible { background: var(--accent-dark); }
.button:focus-visible { border-radius: 8px; }

/* Sections */
.section { padding-block: var(--section-space); }
.section > h2 {
  margin-bottom: 2.5rem;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.services { padding: 0; list-style: none; }
.services li { padding-block: 2rem; border-top: 1px solid var(--line); }
.services li:last-child { padding-bottom: 0; }
.services h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.services p { max-width: 34rem; margin-top: 0.75rem; color: var(--muted); }
.prose { max-width: 40rem; }
.prose p { color: var(--muted); }
.prose .statement {
  margin-bottom: 1.5rem;
  color: var(--ink);
  font-size: clamp(1.625rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}

/* Contact */
.contact {
  margin-top: 2rem;
  padding-block: 5rem;
  background: var(--ink);
  color: #fff;
}
.contact h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}
.contact p { max-width: 34rem; margin-top: 1.5rem; color: var(--on-dark-muted); }
.contact-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration-color: var(--on-dark-muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  transition: text-decoration-color var(--ease);
}
.contact-link:hover, .contact-link:focus-visible { text-decoration-color: #fff; }
.contact :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer a { text-underline-offset: 0.25em; transition: color var(--ease); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--ink); }

@media (min-width: 40rem) {
  .nav-section { display: block; }
}

@media (min-width: 60rem) {
  :root { --gutter: 3rem; --section-space: 8rem; }
  .hero { padding-block: 8rem 10rem; }
  .section { display: grid; grid-template-columns: 1fr 2fr; column-gap: 3rem; }
  .section > h2 { margin-bottom: 0; }
  .services li:first-child { padding-top: 0; border-top: 0; }
  .contact { padding-block: 8rem; }
}

/* The page's only load animation */
@media (prefers-reduced-motion: no-preference) {
  .hero { animation: fade-in 600ms ease-out both; }
}
@keyframes fade-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
