/* Light theme by default (dark only if data-theme="dark" is set). Chronosland: warm paper, brass accent (shared with batteries.html). Large type for low-vision readers. */
:root {
  --bg: #fafaf7; --fg: #1d1d1b; --muted: #5c5b55; --line: #dcdad2; --card: #ffffff;
  --accent: #7a5c2e; --accent-fg: #ffffff; --soft: #f1ece2; --ok: #2f6b3a;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] { --bg: #171715; --fg: #f0efe9; --muted: #b3b1a6; --line: #3a3934; --card: #21211e; --accent: #d2a95f; --accent-fg: #1a1408; --soft: #2a2620; --ok: #8fcf98; color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 18px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-fg); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 16px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.brand { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
nav a { color: var(--fg); text-decoration: none; font-weight: 600; padding: 6px 0; white-space: nowrap; }
nav a:hover { color: var(--accent); }
.ribbon { background: var(--soft); font-size: 0.95rem; }
.ribbon .wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: center; padding-block: 8px; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; padding-block: 56px 48px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); margin: 18px 0 26px; max-width: 34ch; }
.hero .art { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.speech { margin-top: 14px; font-family: var(--display); font-size: 1.35rem; text-align: center; }
.speech::before { content: "“"; color: var(--accent); }
.speech::after { content: "”"; color: var(--accent); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); text-decoration: none; font-weight: 700; padding: 14px 22px; border-radius: 10px; border: 2px solid var(--accent); font-size: 1.05rem; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:hover { filter: brightness(1.08); }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; color: var(--muted); font-size: 0.98rem; }
.stats b { color: var(--fg); font-size: 1.2rem; display: block; font-variant-numeric: tabular-nums; }

section.block { padding-block: 52px; border-top: 1px solid var(--line); }
section.block > .wrap > h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
section.block > .wrap > p.sub { color: var(--muted); margin: 10px 0 28px; max-width: 62ch; }

/* products */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card .pic { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--line); max-width: 100%; }
.card .pic img { max-height: 100%; object-fit: contain; }
.card .pic.text { background: var(--soft); font-family: var(--display); font-size: 2.4rem; color: var(--accent); }
.card .body { padding: 18px 20px 20px; display: grid; gap: 10px; flex: 1; align-content: start; }
.card h3 { font-size: 1.35rem; }
.tag { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin: 2px 0; }
.price { font-family: var(--display); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--body); font-size: 0.9rem; color: var(--muted); }
.card .btn { text-align: center; margin-top: auto; }
.card .foot { display: grid; gap: 12px; margin-top: auto; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; color: var(--fg); font-size: 0.95rem; }
.swatches a:hover { border-color: var(--accent); }

/* why / for whom */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.cols h3 { font-size: 1.2rem; margin-bottom: 6px; }
.cols p { margin: 0; color: var(--muted); }

/* reviews */
.rating { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 10px 0 26px; }
.rating b { font-family: var(--display); font-size: 2.6rem; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 0; display: grid; gap: 10px; }
.review blockquote { margin: 0; font-size: 1.08rem; }
.review figcaption { color: var(--muted); font-size: 0.9rem; }
.review .ok { color: var(--ok); font-weight: 700; }

/* faq */
details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; font-size: 1.08rem; }
details p { margin: 0 0 14px; color: var(--muted); max-width: 68ch; }

footer.site { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--muted); font-size: 0.95rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site a { color: var(--muted); }

/* plain pages */
main.page { max-width: 760px; margin: 0 auto; padding: 40px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); }
main.page h1 { font-size: 2.2rem; margin-bottom: 10px; }
main.page h2 { font-size: 1.4rem; margin: 30px 0 8px; }
main.page p, main.page li { max-width: 68ch; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 36px; gap: 28px; }
  body { font-size: 17px; }
}

/* inner pages */
.crumbs { font-size: 0.95rem; color: var(--muted); padding-block: 18px 0; }
.crumbs a { color: var(--muted); }
.pagehead { padding-block: 22px 8px; }
.pagehead h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
.pagehead p { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin: 12px 0 0; }
nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-block: 24px 48px; }
.detail .pic { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; aspect-ratio: 1; display: grid; place-items: center; max-width: 100%; }
.detail .pic img { max-height: 100%; object-fit: contain; }
.detail .pic.text { background: var(--soft); font-family: var(--display); font-size: 3rem; color: var(--accent); }
.detail h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.detail .info { display: grid; gap: 16px; min-width: 0; }
.detail .info > p { margin: 0; font-size: 1.1rem; }
.specs { width: 100%; border-collapse: collapse; font-size: 1rem; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 400; width: 40%; padding-right: 12px; }
.note { background: var(--soft); border-radius: 12px; padding: 14px 18px; }
.contact-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.contact-list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
@media (max-width: 760px) { .detail { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.detail .pic img, .card .pic img, .hero .art img { width: 100%; height: 100%; object-fit: contain; min-width: 0; }
.detail .pic, .card .pic { min-width: 0; overflow: hidden; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery a { display: block; width: 96px; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
picture { display: contents; }

/* fixed header and footer */
.top { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(0,0,0,.06); }
footer.site { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg); padding-block: 10px; font-size: 0.88rem; box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
footer.site .wrap { gap: 4px 16px; align-items: center; }
body { padding-bottom: var(--foot-h, 64px); }
:target, h1, h2, h3, section { scroll-margin-top: var(--head-h, 140px); }
@media (max-width: 760px) {
  nav ul { flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding-bottom: 4px; scrollbar-width: none; }
  nav ul::-webkit-scrollbar { display: none; }
  nav { max-width: 100%; }
  .top .wrap { padding-block: 10px; gap: 6px; }
  .ribbon .wrap { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; white-space: nowrap; scrollbar-width: none; font-size: .88rem; }
  footer.site .wrap { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  footer.site .wrap > div:first-child { display: none; }
}
@media (max-height: 520px) { .top, footer.site { position: static; } body { padding-bottom: 0; } }

/* batteries */
.muted { color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.finder { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 28px; display: grid; gap: 10px; max-width: 640px; }
.finder input, .bo input { font: inherit; font-size: 1.15rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); width: 100%; max-width: 360px; }
.finder input:focus, .bo input:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.finder p { margin: 0; }
h2.bcat { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 36px; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.bitem { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 8px; align-content: start; }
.bitem h3 { font-size: 1.2rem; }
.bitem h3 a { color: var(--accent); text-decoration: none; }
.bitem p { margin: 0; font-size: .95rem; }
.bitem .pic { width: 100%; max-width: 160px; aspect-ratio: 1; }
.bitem .pic img { width: 100%; height: 100%; object-fit: contain; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .92rem; }
.stock { display: inline-block; justify-self: start; border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: .88rem; }
.stock.in { background: #e3f1e5; color: #1f5a2b; }
.stock.out { background: #f6e9d6; color: #7a4a10; }
.more { font-weight: 700; }
.sizes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 6px 20px; }
.sizes li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.bo { background: var(--soft); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; }
.bo label { font-weight: 700; }
.bo input { max-width: 140px; }

/* faq categories */
.faqnav ul { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.faqnav a { display: inline-block; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--fg); font-weight: 700; }
.faqnav a:hover { border-color: var(--accent); color: var(--accent); }
.faqcat { max-width: 820px; padding-top: 28px; }
.faqcat h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 14px; }
