:root {
  --bg: #fafafa;
  --ink: #18181b;
  --muted: #5f5f68;
  --line: #e4e4e7;
  --surface: #f1f1f3;
  --accent: #0b6b4a;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f11;
    --ink: #f1f1f3;
    --muted: #a0a0ab;
    --line: #26262b;
    --surface: #18181b;
    --accent: #5fd0a0;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.875rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
}

.skip:focus {
  top: 0.75rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}

.wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lang {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

.lang a {
  color: var(--muted);
  transition: color 160ms ease;
}

.lang a:hover,
.lang a[aria-current="page"] {
  color: var(--ink);
}

main {
  flex: 1;
}

.hero {
  padding-block: clamp(3rem, 10vh, 6rem) clamp(3rem, 10vh, 6rem);
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.product {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: 20px;
  transition: background-color 160ms ease;
}

.product:hover {
  background: var(--line);
}

.product-logo {
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 14px;
}

.product-body {
  display: grid;
  gap: 0.125rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.product-text {
  color: var(--muted);
}

.product-url {
  padding-right: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
}

.site-footer {
  padding-block: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notfound {
  padding-block: clamp(3rem, 10vh, 6rem);
}

.notfound p {
  margin-top: 1.25rem;
  color: var(--muted);
}

.notfound a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .product {
    grid-template-columns: auto 1fr;
  }

  .product-url {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
