:root {
  --bg: #fbfbf8;
  --surface: #ffffff;
  --text: #1c2226;
  --muted: #5b646e;
  --accent: #1a6b54;
  --accent-strong: #145443;
  --accent-soft: #e6f1ec;
  --note: #f0f6f2;
  --border: #e2e6e4;
  --shadow: 0 1px 2px rgba(20, 40, 30, .06), 0 4px 16px rgba(20, 40, 30, .05);
  --radius: 12px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121517;
    --surface: #1a1f22;
    --text: #e6e9ea;
    --muted: #9aa4ad;
    --accent: #6fcfad;
    --accent-strong: #8fdcc0;
    --accent-soft: #1c2d27;
    --note: #1a2824;
    --border: #2a3136;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 8px 0 12px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.logo img { display: block; border-radius: 7px; }
.main-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.main-nav a { color: var(--muted); text-decoration: none; }
.main-nav a:hover { color: var(--accent); }

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid var(--accent);
}
.button:hover { background: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .button, .button:hover { color: #0e1a16; } }
.button-big { padding: 13px 22px; font-size: 16px; }
.button-ghost { background: transparent; color: var(--accent); }
.button-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.button-disabled { background: var(--border); border-color: var(--border); color: var(--muted); cursor: default; }

/* Home */
.hero { padding: 56px 0 40px; max-width: 720px; }
.hero .lead { font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.lead { color: var(--muted); font-size: 1.1rem; margin-top: 0; }
.section { padding: 8px 0 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.section-head h2 { margin: 0 0 10px; font-size: 1.4rem; }
.small { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.card-title { font-weight: 700; font-size: 17px; line-height: 1.35; }
.card-text { color: var(--muted); font-size: 15px; line-height: 1.5; }
.card-meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--accent); font-weight: 600; }
.card-wide { grid-column: 1 / -1; }
.card-wide .product-cta { margin: 8px 0; }

/* Article */
.article { max-width: 720px; padding-top: 28px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.disclosure {
  background: var(--note);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
}
.prose { font-size: 18px; line-height: 1.75; }
.prose > p:first-child { font-size: 1.12rem; }
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose blockquote { margin: 1.5em 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 15px; line-height: 1.5; margin: 1.5em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--accent-soft); font-weight: 700; border-bottom: 2px solid var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* Article layout with sidebar */
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 250px; gap: 56px; justify-content: space-between; }
.sidebar { padding-top: 110px; }
.side-card {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.side-card img { width: 100%; border-radius: 6px; border: 1px solid var(--border); background: #fff; }
.side-card .eyebrow { margin-top: 6px; }
.side-title { margin: 0 0 6px; font-weight: 700; font-size: 16px; line-height: 1.35; }
.side-card .button { text-align: center; }
.side-link { font-size: 14px; font-weight: 600; text-decoration: none; text-align: center; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
}

/* Related */
.related { max-width: 1040px; margin-top: 48px; }
.related h2 { font-size: 1.3rem; }

/* Product call to action */
.product-cta {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 720px;
  margin: 40px 0 8px;
  padding: 20px;
  background: var(--note);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.product-cta img { width: 120px; height: auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; flex-shrink: 0; }
.product-cta p { margin: 4px 0 12px; font-size: 15px; line-height: 1.5; }
.product-cta .product-cta-title { margin: 2px 0 4px; font-weight: 700; font-size: 18px; line-height: 1.3; }
.card-wide .product-cta { max-width: none; }

/* Shop */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; margin-top: 24px; }
.product-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.product-card img, .product-card-placeholder { width: 100%; aspect-ratio: 612 / 792; object-fit: cover; object-position: top; border-radius: 6px; background: #fff; border: 1px solid var(--border); }
.product-card-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; background: var(--note); color: var(--accent); font-weight: 600; font-size: 14px; }
.product-card-name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.product-card-meta { font-size: 13px; color: var(--muted); }
.price { font-weight: 700; font-size: 15px; color: var(--accent); }
.product-page { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 32px; align-items: start; padding-top: 12px; }
.product-page h1 { margin-top: 0; }
.product-preview { width: 100%; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.price-big { font-weight: 800; font-size: 30px; color: var(--accent); margin: 8px 0; }
.price-big .was { font-size: 15px; font-weight: 400; color: var(--muted); margin-left: 8px; text-decoration: line-through; }

/* Footer */
.site-footer { margin-top: 72px; background: var(--surface); border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.footer-grid nav a { color: var(--muted); text-decoration: none; }
.footer-grid nav a:hover { color: var(--accent); }
.footer-brand { font-weight: 700; color: var(--text); margin-bottom: 0; }
.footer-note { padding-bottom: 28px; font-size: 13px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 28px; }
  .prose { font-size: 17px; }
  .card-grid { grid-template-columns: 1fr; }
  .product-page { grid-template-columns: 1fr; }
  .product-preview { max-width: 280px; }
  .product-cta { flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { padding: 8px; }
  .product-card-name { font-size: 14px; }
  .main-nav { gap: 14px; font-size: 14px; }
  .main-nav a:first-child { display: none; }
  .logo { font-size: 16px; gap: 8px; }
  .logo img { width: 26px; height: 26px; }
}
.product-cta .eyebrow { margin: 0; }
main > p, main > ul, main > h2 { max-width: 720px; }
