:root {
  color-scheme: light;
  --paper: #f6f3ee;
  --card: #fffcf7;
  --ink: #1f1b16;
  --ink-soft: #5c564e;
  --line: #e4ddd2;
  --accent: #3d5344;
  --accent-soft: #e7eee8;
  --measure: 40rem;
  --wide: 64rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", "Noto Sans", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

h1,
h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.4rem;
}

.skip:focus {
  top: 1rem;
}

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

.wrap {
  width: min(100%, var(--wide));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-block;
  max-width: 100%;
}

.brand img {
  width: 15rem;
  height: auto;
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem);
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
}

.lead {
  max-width: var(--measure);
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
}

.section {
  padding-block: 1.5rem 4rem;
}

.section h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.product {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  max-width: 40rem;
  padding: 1.4rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.product img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
}

.product h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product p {
  color: var(--ink-soft);
}

.product a {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.product a:hover {
  text-decoration: underline;
}

.facts {
  display: grid;
  gap: 0.9rem 2rem;
  margin: 0;
  max-width: 40rem;
}

.facts div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.facts dd {
  margin: 0;
}

.facts a {
  color: inherit;
}

.foot {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.5rem 2rem;
}

.foot a {
  color: inherit;
}

@media (max-width: 560px) {
  .nav {
    gap: 1rem;
    font-size: 0.95rem;
  }

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

  .facts div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

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