/* oopbuysheet.be — hand-written stylesheet.
   Palette: cream ground, deep forest green, orange-brown accent (spec §3).
   Typography and spacing follow spec §17 / §18. */

:root {
  --bg: #f6f1e6;
  --surface: #fffdf8;
  --surface-2: #efe8d6;
  --ink: #23281f;
  --ink-soft: #5b6350;
  --forest: #22462f;
  --forest-2: #2c5a3b;
  --forest-ink: #16321f;
  --accent: #b25a26;
  --accent-ink: #8c4417;
  --line: #ded5be;
  --line-strong: #cabf9f;
  --radius: 6px;
  --radius-sm: 4px;
  --maxw: 1240px;
  --readw: 68ch;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --gap-mod: 40px;   /* mobile module gap (§18) */
}
@media (min-width: 760px) { :root { --gap-mod: 56px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--forest-2); text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 3px; }

h1, h2, h3 { color: var(--forest-ink); margin: 0; text-wrap: balance; }
h1 { font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 22px; font-weight: 700; line-height: 1.3; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.4; }
@media (min-width: 760px) {
  h1 { font-size: 48px; line-height: 1.15; letter-spacing: -0.02em; }
  h2 { font-size: 28px; }
  h3 { font-size: 18px; }
}
p { margin: 0; }
small, .small { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
@media (min-width: 760px) { small, .small { font-size: 14px; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; background: var(--forest);
  color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--forest-2); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (max-width: 400px) { .wrap { padding: 0 16px; } }

/* vertical rhythm owned by a single parent stack (§18) */
.stack { display: flex; flex-direction: column; gap: var(--gap-mod); padding-block: var(--gap-mod); }
.stack.narrow { max-width: 760px; }
main > .stack:first-child { padding-top: var(--gap-mod); }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font-weight: 800; font-size: 18px; text-decoration: none; color: var(--forest-ink); letter-spacing: -0.01em; white-space: nowrap; }
.brand__mark { color: var(--forest); }
.brand__sheet { color: var(--accent); }
.brand__be { font-weight: 600; font-size: 13px; color: var(--ink-soft); letter-spacing: .02em; text-transform: uppercase; }

.nav { position: relative; }
.nav__toggle {
  list-style: none; cursor: pointer; font-size: 14px; font-weight: 600;
  padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--forest-ink); min-height: 40px; display: inline-flex; align-items: center;
}
.nav__toggle::-webkit-details-marker { display: none; }
.nav__panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(88vw, 320px);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(22, 50, 31, .12); padding: 14px; z-index: 50;
  display: flex; flex-direction: column; gap: 14px;
}
.nav__links { display: flex; flex-direction: column; gap: 2px; }
.nav__links a {
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink);
  padding: 10px 10px; border-radius: var(--radius-sm); min-height: 44px; display: flex; align-items: center;
}
.nav__links a:hover { background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--forest); font-weight: 700; background: var(--surface-2); }

@media (min-width: 920px) {
  .nav__toggle { display: none; }
  .nav__panel {
    position: static; width: auto; box-shadow: none; border: 0; background: transparent;
    padding: 0; flex-direction: row; align-items: center; gap: 18px;
  }
  .nav__links { flex-direction: row; gap: 4px; }
  .nav__links a { font-size: 14px; min-height: 38px; padding: 8px 10px; }
  .nav .search { width: 300px; }
}

/* ---------- search ---------- */
.search { display: flex; gap: 8px; width: 100%; }
.search input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: 15px;
  padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
.search button {
  flex: 0 0 auto; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 11px 16px; border: 1px solid var(--forest); border-radius: var(--radius);
  background: var(--forest); color: #fff; min-height: 44px;
}
.search button:hover { background: var(--forest-2); border-color: var(--forest-2); }
.search--hero input { font-size: 16px; padding: 14px 14px; }
.search--hero button { font-size: 15px; padding: 14px 20px; }
@media (max-width: 460px) {
  .search--hero { flex-direction: column; }
  .search--hero button { width: 100%; }
}

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, #f0ead9 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero__inner { padding-block: 44px 40px; max-width: 820px; }
@media (min-width: 760px) { .hero__inner { padding-block: 64px 56px; } }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.hero h1 { margin-bottom: 14px; }
.hero__lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; margin-bottom: 22px; }
.hero__hint { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

/* ---------- section heads ---------- */
.section-head { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--ink-soft); max-width: 66ch; }
.section-head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head--row h2 { margin-bottom: 0; }
.page-head h1 { margin-bottom: 12px; }
.page-lead { color: var(--ink-soft); font-size: 17px; line-height: 1.6; max-width: 68ch; }
.meta-line { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

/* ---------- category band ---------- */
.catband { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 620px) { .catband { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.catband__item {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--forest-ink);
}
.catband__item:hover { border-color: var(--accent); color: var(--forest-ink); }
.catband__label { font-weight: 700; font-size: 17px; }
.catband__count { font-size: 13px; color: var(--ink-soft); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  padding: 8px 13px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--forest-ink); min-height: 40px;
}
.chip:hover { border-color: var(--accent); background: #fff; }
.chip span { color: var(--ink-soft); font-size: 12px; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.card:hover { border-color: var(--line-strong); }
.card__media { display: block; aspect-ratio: 3 / 4; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
@media (prefers-reduced-motion: reduce) { .card__media img { transition: none; } }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 760px) { .card__body { padding: 12px 14px 16px; } }
.tag { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); background: #f3e6d8; padding: 3px 8px; border-radius: 999px; }
.card__title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--accent-ink); text-decoration: underline; }
.card__price { display: flex; flex-direction: column; gap: 1px; margin-top: auto; }
.card__price .eur { font-weight: 700; font-size: 15px; color: var(--forest); }
.card__price .cny { font-size: 12px; color: var(--ink-soft); }

.more { margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 12px 20px; border-radius: var(--radius); min-height: 44px;
  background: var(--surface); border: 1px solid var(--forest); color: var(--forest);
}
.btn:hover { background: var(--forest); color: #fff; }
.btn--go { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--go:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- callout ---------- */
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--forest); border-radius: var(--radius); padding: 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.callout h2 { margin-bottom: 2px; }
.callout p { color: var(--ink); max-width: 72ch; }
.callout--tight { border-left-color: var(--accent); }
.callout--tight p { color: var(--ink-soft); font-size: 15px; }

/* ---------- prose bands on home ---------- */
.prose-band { border-top: 1px solid var(--line); padding-top: calc(var(--gap-mod) - 16px); }
.prose-band h2 { margin-bottom: 10px; }
.prose-band p { color: var(--ink-soft); max-width: 70ch; margin-bottom: 12px; }
.prose-band p:last-child { margin-bottom: 0; }

.qa dt { font-weight: 700; color: var(--forest-ink); margin-top: 16px; }
.qa dd { margin: 4px 0 0; color: var(--ink-soft); max-width: 70ch; }
.qa dt:first-child { margin-top: 0; }

/* ---------- sheet category blocks ---------- */
.cat-block { scroll-margin-top: 76px; }

/* ---------- product detail ---------- */
.product { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 860px) { .product { grid-template-columns: minmax(0, 460px) 1fr; gap: 36px; align-items: start; } }
.product__media img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.img-credit { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.product__info { display: flex; flex-direction: column; gap: 16px; }
.product__info h1 { font-size: 26px; line-height: 1.25; }
@media (min-width: 760px) { .product__info h1 { font-size: 34px; } }
.price-block { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.price-eur { font-size: 24px; font-weight: 800; color: var(--forest); }
.price-cny { font-size: 15px; color: var(--ink); }
.price-note { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.cta { display: flex; flex-direction: column; gap: 10px; }
.cta__sub { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.qc-status { background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; }
.qc-status__head { font-weight: 700; font-size: 14px; color: var(--forest-ink); margin-bottom: 4px; }
.qc-status p:not(.qc-status__head) { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.agent-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.agent-list li { font-size: 13px; padding: 5px 11px; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--forest-ink); }

/* ---------- guides / articles ---------- */
.guide-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 680px) { .guide-list { grid-template-columns: repeat(2, 1fr); } }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.guide-card h2 { font-size: 19px; }
.guide-card h2 a { text-decoration: none; color: var(--forest-ink); }
.guide-card h2 a:hover { color: var(--accent-ink); }
.guide-card p { color: var(--ink-soft); font-size: 15px; }

.article { max-width: var(--readw); }
.article .lead { font-size: 18px; line-height: 1.6; color: var(--ink); margin-bottom: 8px; }
.article h2 { margin-top: 30px; margin-bottom: 10px; }
.article p { margin-bottom: 14px; color: var(--ink); }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article a { color: var(--forest-2); }

.more-guides { border-top: 1px solid var(--line); padding-top: 20px; }
.more-guides ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.more-guides a { text-decoration: none; }
.more-guides a:hover { text-decoration: underline; }

.faq { display: flex; flex-direction: column; gap: 6px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h2 { font-size: 18px; margin-bottom: 8px; }
.faq-item p { color: var(--ink-soft); max-width: 72ch; }

/* ---------- breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: 13px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumbs .sep { color: var(--line-strong); }
.crumbs li[aria-current="page"] { color: var(--ink); max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.footer-head { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--forest-ink); margin-bottom: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); color: #e8ecdf; margin-top: 8px; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 44px 20px 32px; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .footer-head { color: #f3efe2; }
.site-footer a { color: #dfe6d5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-brand { font-weight: 800; font-size: 16px; color: #fff; margin-bottom: 8px; }
.footer-note { font-size: 13px; color: #cdd6c3; line-height: 1.6; max-width: 40ch; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; padding-bottom: 26px; }
.site-footer__base p { font-size: 12.5px; color: #bcc7b1; line-height: 1.6; max-width: 90ch; }
