:root {
  color-scheme: dark;
  --ink: #101820;
  --paper: #f6f8fa;
  --muted: #aeb7c0;
  --quiet: #7c8792;
  --accent: #3f6fdf;
  --rule: rgba(246, 248, 250, 0.15);
  --sans: "Avenir Next", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.page {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, calc(100vw - 4rem));
  height: 100svh;
  margin-inline: auto;
}

.page::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--accent);
  content: "";
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 2rem;
}

.site-header {
  min-height: 5rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.site-header span,
.site-footer {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.intro {
  align-self: center;
  max-width: 860px;
  margin: 0 0 0 2rem;
  padding: clamp(2rem, 6vh, 4rem) 0;
}

.eyebrow {
  margin: 0 0 clamp(1rem, 2.5vh, 1.75rem);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 650;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7.5vw, 7rem);
  font-weight: 520;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.summary {
  max-width: 38rem;
  margin: clamp(1.5rem, 3.5vh, 2.5rem) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.contact-link {
  display: inline-block;
  margin-top: clamp(1.3rem, 3vh, 2rem);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 620;
  text-decoration-color: rgba(246, 248, 250, 0.35);
  text-underline-offset: 0.35em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.contact-link:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

.site-footer {
  min-height: 4.6rem;
  border-top: 1px solid var(--rule);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 700px) {
  .page {
    width: calc(100vw - 2rem);
  }

  .site-header,
  .site-footer,
  .intro {
    margin-left: 1rem;
  }

  .site-header > span {
    display: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 5rem);
  }
}

@media (max-height: 620px) {
  .site-header {
    min-height: 3.8rem;
  }

  .site-footer {
    min-height: 3.8rem;
  }

  .intro {
    padding-block: 1rem;
  }

  .summary {
    margin-top: 1rem;
  }

  .contact-link {
    margin-top: 0.9rem;
  }
}

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