:root {
  --bg: #f7f5f0; --surface: #ffffff; --ink: #1d2320; --muted: #5e6862; --line: #e2ded5;
  --brand: #2f6b4f; --brand-ink: #ffffff; --accent: #c8792e; --danger: #b23b3b;
  --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141815; --surface: #1c211e; --ink: #e8ece9; --muted: #9aa49e; --line: #2c332f; --brand: #5fae86; --brand-ink: #0d1410; --accent: #e3a05c; }
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo-mark { width: 28px; height: 28px; border-radius: 7px; background-color: var(--brand); background-size: 1px 1px; background-repeat: no-repeat; }
nav.main { display: flex; gap: 4px; margin-left: auto; align-items: center; }
nav.main > a, .menu > button { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font: inherit; background: none; border: 0; cursor: pointer; }
nav.main > a:hover, .menu > button:hover, .menu:hover > button { background: var(--bg); }
.menu { position: relative; }
.menu-list { position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: none; }
.menu:hover .menu-list, .menu:focus-within .menu-list { display: block; }
.menu-list a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.menu-list a:hover { background: var(--bg); }
.cart-btn { position: relative; }
.cart-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; text-align: center; }

/* hero */
.hero { padding: 64px 0 48px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.02em; max-width: 14ch; }
.hero p { color: var(--muted); max-width: 52ch; font-size: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 9px; border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* grid */
.section { padding: 32px 0; }
.section h2 { font-size: 26px; margin: 0 0 18px; letter-spacing: -.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 46px; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 16px; margin: 0; }
.card .meta { color: var(--muted); font-size: 14px; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-weight: 700; }
.card .add { padding: 7px 12px; font-size: 14px; }

/* tools */
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tools input, .tools select, form input, form select, form textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
.tools input { flex: 1; min-width: 200px; }
form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
form label { font-weight: 600; font-size: 14px; }
form textarea { min-height: 130px; resize: vertical; }
form [aria-invalid="true"] { border-color: var(--danger); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 640px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } nav.main > a.hide-sm { display: none; } }

/* faq / misc */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
.long p { color: var(--muted); max-width: 70ch; }
.notice { padding: 12px 16px; border-radius: 8px; background: color-mix(in oklab, var(--brand) 14%, transparent); }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 92vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px; transform: translateX(100%); transition: transform .2s ease; z-index: 40; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer ul { list-style: none; padding: 0; margin: 12px 0; flex: 1; overflow: auto; }
.drawer li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 50; }
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 60px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }

/* honeypots & canaries: present in DOM / accessibility tree, invisible to people */
.hp-off { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.hp-none { display: none !important; }
.hp-faint { color: var(--bg); font-size: 1px; line-height: 1px; user-select: none; }
