/* Layout: one calm centered column; stacked product cards with generous vertical rhythm.
   Palette: warm greige ground, warm-white cards, soft ink text, muted matcha-sage accent.
   Type: Zen Old Mincho (display serif) + Zen Kaku Gothic New (humanist sans). */
:root {
  --bg: #F2EEE7;
  --surface: #FBF9F4;
  --fg: #2A2722;
  --muted: #6F6A61;
  --line: #E4DDD1;
  --accent: #7C8A6B;
  --accent-ink: #55614A;
  --btn-fg: #FBF9F4;
  --shadow: 0 1px 2px rgba(42,39,34,.04), 0 10px 26px rgba(42,39,34,.07);
  --radius: 16px;
  --maxw: 600px;
  --serif: "Zen Old Mincho", Georgia, "Times New Roman", serif;
  --sans: "Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1915;
    --surface: #26231D;
    --fg: #ECE6DB;
    --muted: #A79F91;
    --line: #38342B;
    --accent: #9BAA85;
    --accent-ink: #BCC8A8;
    --btn-fg: #1B1915;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px rgba(0,0,0,.38);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B1915;
  --surface: #26231D;
  --fg: #ECE6DB;
  --muted: #A79F91;
  --line: #38342B;
  --accent: #9BAA85;
  --accent-ink: #BCC8A8;
  --btn-fg: #1B1915;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px rgba(0,0,0,.38);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-block: 52px 48px;
}

/* ---- Hero ---- */
.hero { display: flex; flex-direction: column; gap: 14px; }
.eyebrow {
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 700;
}
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: .01em;
  text-wrap: balance;
  margin: 0;
}
.lead {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
  max-width: 42ch;
}
.disclosure {
  font-size: .8rem;
  color: var(--muted);
  margin: 2px 0 0;
  font-style: italic;
}

/* ---- Product cards ---- */
.cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 34px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-ink);
  flex: none;
}
.icon svg { width: 24px; height: 24px; }
.cat {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 700;
}
.pname {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.32;
  margin: -6px 0 0;
  text-wrap: balance;
}
.pdesc {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
}
.rating {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.rating .stars { color: var(--accent-ink); letter-spacing: .05em; }
.rating .count { color: var(--muted); }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 4px;
  background: var(--accent);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: 999px;
  transition: transform .12s ease, background .2s ease;
}
.cta:hover { background: var(--accent-ink); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.cta svg { width: 16px; height: 16px; }

/* ---- Footer ---- */
footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
}
footer .assoc { font-weight: 600; color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}
