:root {
  color-scheme: light;
  --background: #f8f9f7;
  --foreground: #171918;
  --muted: #626c68;
  --accent: #2f6f63;
  --panel: #f8f9f7;
  --line: rgba(47, 111, 99, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(47, 111, 99, 0.08), rgba(47, 111, 99, 0) 300px),
    var(--background);
  color: var(--foreground);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

a {
  color: inherit;
}

.brand-link {
  position: fixed;
  top: 28px;
  left: 28px;
  z-index: 20;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.menu-button {
  position: fixed;
  top: 26px;
  right: 28px;
  z-index: 40;
  display: grid;
  gap: 6px;
  width: 42px;
  height: 42px;
  place-content: center;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--panel);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.menu-panel:target {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-panel__inner {
  display: grid;
  gap: 26px;
  min-width: min(100%, 320px);
  text-align: center;
}

.menu-panel .menu-link {
  color: var(--foreground);
  font-size: clamp(28px, 6vw, 54px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.menu-panel .menu-link[aria-current="page"],
.menu-panel .menu-link:hover {
  color: var(--accent);
}

.menu-panel .menu-close {
  margin-bottom: 18px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-main {
  display: grid;
  flex: 1;
  width: 100%;
  place-items: center;
  padding: 48px 20px;
}

pre {
  max-width: 100%;
  margin: 0;
  overflow: visible;
  color: var(--accent);
  font: 700 clamp(12px, 3vw, 24px) / 1.08 ui-monospace, SFMono-Regular,
    Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0;
  text-align: left;
  white-space: pre;
}

.page-main {
  width: 100%;
  max-width: 720px;
  margin: auto;
  padding: 128px 24px 90px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
}

p {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  overflow-wrap: break-word;
}

.text-link {
  display: inline-block;
  margin-top: 34px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.product-link:hover {
  text-decoration: none;
}

.product-link:hover .product-link__text {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.product-link__logo {
  display: block;
  width: 56px;
  height: auto;
  flex: 0 0 auto;
}

.legal-list {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px 28px;
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}

.legal-list dt {
  color: var(--muted);
}

.legal-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 0 20px 28px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 600px) {
  .brand-link {
    top: 20px;
    left: 20px;
  }

  .menu-button {
    top: 14px;
    right: 16px;
  }

  .home-main {
    padding: 32px 10px;
  }

  .desktop-logo {
    font-size: clamp(8px, 2.6vw, 11px);
  }

  .page-main {
    padding: 118px 22px 70px;
  }

  p,
  .product-link {
    max-width: calc(100vw - 44px);
  }

  h1 {
    font-size: 34px;
  }

  .menu-panel .menu-link {
    font-size: 28px;
  }

  .legal-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .legal-list dd + dt {
    margin-top: 13px;
  }

  .legal-list dd {
    max-width: 31ch;
  }

  .site-footer {
    font-size: 13px;
  }
}
