/* Lumen Coffee Roasters — fictional shop. Look adapted from the Wardian API demo site
   (same palette and card language). System font stack only: no external font, no external file. */
:root {
  --bg: #eef0ea;
  --surface: #fbfcf8;
  --ink: #22201c;
  --muted: #5f625a;
  --line: #d5d8cd;
  --green: #1e4d3a;
  --green-ink: #f4f7f2;
  --green-soft: #dde8df;
  --kraft: #b8915a;
  --kraft-soft: #efe4d0;
  --cherry: #a8322d;
  --radius: 14px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131614;
    --surface: #1b1f1c;
    --ink: #ebeae3;
    --muted: #a3a89e;
    --line: #2f3530;
    --green: #86c09f;
    --green-ink: #0f1a14;
    --green-soft: #22352a;
    --kraft: #d6b98a;
    --kraft-soft: #3a3124;
    --cherry: #ec8a82;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font);
  padding-inline: clamp(16px, 4vw, 48px);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--kraft); outline-offset: 2px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.8rem); letter-spacing: -.03em; margin-bottom: .6rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 1.2rem 0 .3rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .3rem; }
.muted { color: var(--muted); }

/* header */
.site-header {
  max-width: 1100px; margin: 0 auto; padding-top: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.brand {
  display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap;
  text-decoration: none; color: var(--ink); min-width: 0;
}
.brand img { flex: 0 0 auto; width: 44px; height: 44px; }
.wordmark { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 800; color: var(--green); letter-spacing: -.045em; line-height: 1; }
.brand-sub { color: var(--muted); }
.site-nav {
  display: flex; flex-wrap: wrap; gap: 0 4px;
  border-bottom: 1px solid var(--line);
}
.site-nav a {
  text-decoration: none; color: var(--muted); padding: 9px 10px 10px;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.site-nav a:hover { color: var(--green); border-bottom-color: var(--green); }

/* content */
main { max-width: 1100px; margin: 0 auto; padding-block: 22px 40px; }
main > p, main > ul, main > ol, main > h2, main > h3, .lead, .terms-section p { max-width: 72ch; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.lead { font-size: 1.1rem; }
.note { color: var(--muted); font-size: .92rem; }

.card, .facts {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(14px, 2.4vw, 22px); min-width: 0;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-bottom: 1rem; }
.card img { width: 120px; height: 120px; margin-bottom: 10px; }
.card h2, .card h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.card p { margin-bottom: .5rem; }
.card .meta { color: var(--muted); font-size: .9rem; }
.price, .facts dd [data-fact$=".price"] { font-weight: 700; color: var(--green); }

.product-top { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .product-top { grid-template-columns: minmax(0, 1fr); } }
.product-img { width: 100%; max-width: 320px; background: var(--kraft-soft); border-radius: var(--radius); }
.product-intro { min-width: 0; }
.facts { display: grid; gap: 0; padding-block: 6px; }
.facts > div { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { flex: 0 0 8.5rem; color: var(--muted); }
.facts dd { flex: 1 1 10rem; margin: 0; min-width: 0; }

.button {
  display: inline-block; background: var(--green); color: var(--green-ink); border: 1px solid var(--green);
  border-radius: 999px; padding: 9px 18px; font-weight: 600; text-decoration: none; margin: 0 6px 8px 0;
}
.button.ghost { background: transparent; color: var(--green); }
.button:hover { filter: brightness(1.08); }

.rates { list-style: none; padding: 0; }
.rates li { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }

.terms-section { margin-bottom: 16px; }
.terms-section h2 { margin-top: 0; }
.clause-id {
  display: inline-block; font-size: .8rem; font-weight: 700; color: var(--green);
  background: var(--green-soft); border-radius: 6px; padding: 1px 7px; margin-right: 6px; vertical-align: middle;
}

/* footer */
.site-footer {
  max-width: 1100px; margin: 0 auto; padding: 22px 0 36px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px 32px;
  color: var(--muted); font-size: .92rem;
}
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-block { min-width: 0; }
.footer-block h2 { font-size: .95rem; margin: 0 0 .3rem; color: var(--ink); }
.footer-block p { margin: 0; overflow-wrap: anywhere; }
