:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted: #666666;
  --line: #d9d9d9;
  --grid: rgba(10, 10, 10, 0.045);
  --page-width: 1120px;
  --page-padding: clamp(1.25rem, 4vw, 3rem);
  --focus: 3px solid #0a0a0a;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--foreground);
  background-color: var(--background);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--background);
  background: var(--foreground);
  transform: translateY(-180%);
}

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

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, calc(var(--page-width) + (var(--page-padding) * 2)));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding-inline: var(--page-padding);
  background: rgba(255, 255, 255, 0.9);
  border-inline: 1px solid var(--line);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 700;
  text-decoration: none;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--muted);
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--foreground);
  border-radius: 50%;
}

.hero {
  display: grid;
  align-content: center;
  gap: clamp(3rem, 8vw, 6.5rem);
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.hero-copy {
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 7.75rem);
  font-weight: 650;
  letter-spacing: -0.072em;
  line-height: 0.9;
}

.lede {
  max-width: 560px;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--foreground);
  border-left: 1px solid var(--foreground);
}

.service-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1.25rem;
  min-height: 10rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--background);
  border-right: 1px solid var(--foreground);
  border-bottom: 1px solid var(--foreground);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.service-card--primary,
.service-card:hover {
  color: var(--background);
  background: var(--foreground);
}

.service-card--primary:hover {
  color: var(--foreground);
  background: var(--background);
}

.service-card:focus-visible,
.wordmark:focus-visible,
.skip-link:focus-visible {
  outline: var(--focus);
  outline-offset: 4px;
}

.service-index {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.service-content {
  display: grid;
  gap: 0.5rem;
}

.service-content strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.service-content > span {
  font-size: 0.85rem;
  opacity: 0.66;
}

.service-arrow {
  font-size: 1.35rem;
  line-height: 1;
}

.site-footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .page-shell {
    border-inline: 0;
  }

  .system-status {
    font-size: 0;
  }

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

  .service-card {
    min-height: 8.5rem;
  }
}

@media (max-width: 420px) {
  .site-header,
  .site-footer {
    gap: 0.75rem;
    letter-spacing: 0.05em;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
