:root {
  color-scheme: light;
  --page: #fafaf7;
  --surface: #ffffff;
  --ink: #20201e;
  --muted: #6e706b;
  --blue: #2563eb;
  --serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--page);
  font-size: 1rem;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), 36rem);
  margin-inline: auto;
}

.site-header {
  padding-top: 20px;
}

.nav {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.nav-link {
  color: var(--muted);
  font-size: 0.875rem;
}

main {
  display: flex;
  flex: 1;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--page) url("hanoi-compute-dusk.webp") center bottom / cover no-repeat;
  content: "";
  image-rendering: pixelated;
  pointer-events: none;
}

.hero-content {
  padding-block: clamp(64px, 10vh, 92px) 320px;
  text-align: center;
}

h1,
p {
  text-wrap: pretty;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(1.75rem, 5vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.lede {
  margin: 0;
  color: var(--muted);
}

.primary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 1px 2px rgb(32 32 30 / 14%);
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 24px 20px;
  color: white;
  font-size: 0.75rem;
  text-align: center;
  text-shadow: 0 1px 2px rgb(0 0 0 / 55%);
}

.hero-footer p {
  margin: 0;
}

@media (hover: hover) {
  .nav-link:hover {
    color: var(--ink);
  }

  .primary-action:hover {
    background: #343432;
    transform: translateY(-1px);
  }
}

@media (min-width: 40rem) {
  .container {
    width: min(calc(100% - 64px), 36rem);
  }

  .site-header {
    padding-top: 28px;
  }
}

@media (max-width: 30rem) {
  .hero-content {
    padding-top: 56px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .primary-action,
  .skip-link {
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
  }
}
