:root {
  color-scheme: light;
  --paper: #f2f2ee;
  --ink: #151714;
  --muted: #696d66;
  --line: #c9ccc5;
  --accent: #315f4b;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

body {
  margin: 0;
  min-height: 100svh;
}

main {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 40px, 920px);
  margin-inline: auto;
  padding-block: clamp(52px, 10vw, 104px) 28px;
}

header {
  max-width: 34rem;
}

.eyebrow,
h1,
.intro,
footer {
  margin: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

h1 {
  margin-top: 0.2rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(2.8rem, 10vw, 5.6rem);
  font-weight: 540;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.intro {
  margin-top: 1.2rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
}

.products {
  align-self: center;
  border-top: 1px solid var(--line);
}

.product {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  min-height: 104px;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

a.product {
  transition: color 140ms ease, padding-inline 140ms ease;
}

a.product:hover,
a.product:focus-visible {
  color: var(--accent);
  padding-inline: 8px;
  outline: none;
}

.index,
.status,
footer {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.product-copy {
  display: grid;
  gap: 0.25rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.product-copy strong {
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  font-weight: 560;
}

.product-copy span {
  color: var(--muted);
  font-size: 0.85rem;
}

.arrow {
  font-size: 1.25rem;
}

.pending {
  color: #73766f;
}

footer {
  padding-top: 24px;
  text-align: right;
}

.page-header {
  display: grid;
  gap: 0.7rem;
  max-width: 46rem;
  padding-bottom: clamp(36px, 7vw, 72px);
}

.back-link,
.text-link {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

.back-link {
  width: fit-content;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.page-title {
  margin: 0.2rem 0 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(2.2rem, 8vw, 4.8rem);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1;
}

.page-lead {
  max-width: 42rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.75;
}

.page-main {
  display: block;
  max-width: 920px;
}

.page-content {
  max-width: 46rem;
  padding-bottom: 48px;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.8;
}

.page-content section {
  padding-block: 1.7rem;
  border-top: 1px solid var(--line);
}

.page-content h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 580;
  letter-spacing: -0.02em;
}

.page-content h3 {
  margin: 1.5rem 0 0.35rem;
  font-size: 1rem;
}

.page-content p,
.page-content ul {
  margin-block: 0.65rem;
}

.page-content ul {
  padding-left: 1.4rem;
}

.page-content code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.page-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 1.7rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-nav a {
  display: grid;
  gap: 0.25rem;
  min-height: 92px;
  padding: 1rem;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.page-nav a:hover,
.page-nav a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.page-nav span {
  color: var(--muted);
  font-size: 0.8rem;
}

.meta {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 520px) {
  main {
    width: min(100% - 32px, 920px);
  }

  .product {
    grid-template-columns: 2rem 1fr auto;
    min-height: 96px;
    gap: 0.75rem;
  }

  .status {
    max-width: 5rem;
    text-align: right;
  }

  .page-nav {
    grid-template-columns: 1fr;
  }
}
