:root {
  color-scheme: light;
  --page: oklch(0.955 0.008 132);
  --surface: oklch(0.985 0.006 132);
  --ink: oklch(0.2 0.018 132);
  --muted: oklch(0.48 0.018 132);
  --line: oklch(0.82 0.012 132);
  --accent: oklch(0.48 0.14 145);
  --accent-dark: oklch(0.34 0.1 145);
  --warning: oklch(0.54 0.14 38);
  --focus: oklch(0.62 0.18 250);
  --radius: 1.25rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

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

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

.site-header,
main,
.site-footer {
  width: min(100% - 2rem, 74rem);
  margin-inline: auto;
}

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

.brand {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.site-header nav,
.site-footer div,
.intro-actions,
.product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-header nav,
.site-footer,
.product-actions {
  font-size: 0.88rem;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.46fr);
  gap: 1.5rem 4rem;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
}

.eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro h1,
.not-found h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lede {
  align-self: end;
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.intro-actions {
  grid-column: 2;
  align-self: start;
}

.button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.primary-link:hover {
  background: var(--accent-dark);
  color: var(--surface);
}

.hero-figure {
  margin: 0 0 clamp(5rem, 10vw, 9rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.directory-section {
  padding: 0 0 clamp(5rem, 10vw, 9rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.45fr 1fr 1fr;
  align-items: baseline;
  gap: 1rem 2rem;
  padding-bottom: 1.5rem;
}

.section-heading p,
.section-heading span,
.product-domain {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.section-heading p {
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.product-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.product-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.product-index {
  align-self: start;
  padding-top: 0.24rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.product-copy h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.product-copy h3 a {
  text-decoration: none;
}

.product-copy p {
  max-width: 65ch;
  margin: 0.35rem 0 0.4rem;
  color: var(--muted);
}

.product-actions {
  justify-content: flex-end;
}

.site-status {
  color: var(--warning);
  font-weight: 700;
}

.partner-section,
.service-section {
  padding-top: 0;
}

.service-section .product-list {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.not-found {
  width: min(100% - 2rem, 54rem);
}

.not-found h1 {
  margin: 1.25rem 0;
  font-size: clamp(3rem, 9vw, 6rem);
}

.not-found > p:not(.eyebrow) {
  max-width: 38rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.15rem;
}

@media (max-width: 48rem) {
  .site-header {
    align-items: flex-start;
    padding: 1.25rem 0;
  }

  .site-header nav {
    justify-content: flex-end;
  }

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

  .intro-actions {
    grid-column: 1;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .product-row {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .product-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .site-footer {
    flex-direction: column;
  }
}

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