:root {
  --bg: #fbfcfb;
  --ink: #151b18;
  --muted: #5f6a64;
  --line: #dfe6e2;
  --green: #2e7d60;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

.page {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 44px 0 72px;
}

.product-image {
  display: block;
  width: min(100%, 420px);
  margin: 0 auto 28px;
  object-fit: contain;
}

.markdown {
  font-size: 18px;
}

h1,
h2,
h3,
p,
ul,
blockquote {
  margin-top: 0;
}

h1 {
  margin-bottom: 44px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(36px, 7vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 54px 0 18px;
  padding-top: 8px;
  font-size: clamp(26px, 4.5vw, 36px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 36px 0 12px;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.3;
  letter-spacing: 0;
}

p {
  margin-bottom: 18px;
}

ul {
  margin-bottom: 24px;
  padding-left: 1.35em;
}

li {
  margin: 7px 0;
  padding-left: 0.1em;
}

strong {
  font-weight: 750;
}

blockquote {
  margin: 24px 0 28px;
  padding-left: 18px;
  border-left: 3px solid var(--green);
  color: #27322e;
  font-size: 20px;
  line-height: 1.5;
}

blockquote p:last-child {
  margin-bottom: 0;
}

code {
  padding: 0.12em 0.3em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f4f7f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

a {
  color: #1f6d53;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #124632;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 28px, 820px);
    padding-top: 24px;
  }

  .product-image {
    margin-bottom: 30px;
  }

  .markdown {
    font-size: 16px;
  }

  h1 {
    margin-bottom: 34px;
  }

  h2 {
    margin-top: 42px;
  }

  blockquote {
    font-size: 17px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .page {
    width: auto;
    padding: 0;
  }

  .product-image {
    max-width: 420px;
    margin-bottom: 24px;
  }

  h2,
  h3 {
    break-after: avoid;
  }
}
