/* The eReader — design system
   One idea drives this: the subject is e-ink, so the site should read like paper,
   not compete with the paper for attention. Warm, low-contrast, quiet. The one
   accent (a warm amber) echoes the "warm light" frontlight spec every device here
   advertises — the single thing all three brands actually agree on. */

:root {
  --paper: #FBFAF6;
  --paper-sunk: #F1EEE6;
  --ink: #1C1A15;
  --slate: #5B5748;
  --rule: #E1DCCE;
  --rule-firm: #C7C0AC;
  --accent: #A8551E;
  --accent-ink: #7A3D13;
  --good: #3F6B4A;
  --display: "Archivo", system-ui, -apple-system, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.75rem; }

.measure { max-width: var(--measure); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- masthead / dark band ---------- */
.masthead {
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 0;
}
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.masthead a.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.masthead a.brand span { color: var(--accent); }
.masthead nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-family: var(--data); font-size: 0.8rem; }
.masthead nav a { color: #D9D4C4; text-decoration: none; white-space: nowrap; }
.masthead nav a:hover { color: var(--paper); }

.hero-band {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0 3.5rem;
}
.hero-band .eyebrow { font-family: var(--data); color: #C99A6A; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-band h1 { color: var(--paper); }
.hero-band p.lede { color: #E7E2D3; max-width: var(--measure); font-size: 1.1rem; }

/* ---------- crumbs ---------- */
.crumbs { font-family: var(--data); font-size: 0.78rem; color: var(--slate); padding: 0.9rem 0 0; }
.crumbs a { color: var(--slate); }

/* ---------- report / certificate header ---------- */
.report-header {
  border: 1px solid var(--rule-firm);
  background: var(--paper-sunk);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 2rem;
}
.report-header .signature-word {
  font-family: var(--data);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  padding: 0.6rem 0.9rem;
  align-self: start;
  white-space: nowrap;
}
.report-header dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; font-size: 0.92rem; }
.report-header dt { font-family: var(--data); color: var(--slate); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; align-self: baseline; }
.report-header dd { margin: 0; }
@media (max-width: 640px) {
  .report-header { grid-template-columns: 1fr; }
}

/* ---------- disclosure ---------- */
.disclosure {
  font-family: var(--data);
  font-size: 0.8rem;
  color: var(--slate);
  border-left: 3px solid var(--rule-firm);
  padding: 0.6rem 0.9rem;
  margin: 1.25rem 0;
  background: var(--paper-sunk);
}

/* ---------- product / buy grid ---------- */
.catgrid-band { margin: 2.25rem 0; }
.catgrid-band h2 { margin-top: 0; }
.catgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
/* Product-card grids (as opposed to the plain text/link catgrids elsewhere on the
   homepage) must never let a short row — e.g. a solo 2-card feature block — stretch
   its cards wider than a full 4-card row elsewhere on the site. Capping the track's
   max width keeps card size identical regardless of how many cards are in the row. */
.catgrid-band .catgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 240px)); }
.catcard {
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.catcard img { aspect-ratio: 3/4; object-fit: contain; background: var(--paper-sunk); padding: 0.6rem; }
.catcard .catcard-body { padding: 0.85rem 0.95rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.catcard .catcard-name { font-family: var(--display); font-weight: 700; font-size: 0.98rem; line-height: 1.3; }
.catcard .catcard-note { font-size: 0.85rem; color: var(--slate); flex: 1; }
.catcard .buy-btn {
  display: inline-block;
  text-align: center;
  font-family: var(--data);
  font-size: 0.82rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  padding: 0.55rem 0.7rem;
  border-radius: 2px;
  margin-top: 0.25rem;
}
.catcard .buy-btn:hover { background: var(--accent); color: #fff; }

/* ---------- pros/cons ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.5rem 0; }
.proscons > div { border: 1px solid var(--rule); padding: 1rem 1.15rem; border-radius: 2px; }
.proscons h3 { margin-top: 0; font-size: 0.95rem; font-family: var(--data); text-transform: uppercase; letter-spacing: 0.04em; }
.proscons ul { margin: 0; padding-left: 1.1rem; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }

/* ---------- untested / limits box ---------- */
.limits-box {
  border: 1px dashed var(--rule-firm);
  padding: 1rem 1.15rem;
  margin: 1.75rem 0;
  background: var(--paper-sunk);
}
.limits-box h3 { margin-top: 0; }
.limits-box ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }

/* ---------- data tables ---------- */
.data-table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table.data-table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
table.data-table th, table.data-table td { border: 1px solid var(--rule); padding: 0.55rem 0.75rem; text-align: left; vertical-align: top; }
table.data-table th { font-family: var(--data); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; background: var(--paper-sunk); }
table.data-table td.data, table.data-table code { font-family: var(--data); font-size: 0.88rem; }

.no-data-notice {
  font-family: var(--data);
  font-size: 0.85rem;
  color: var(--slate);
  border: 1px dashed var(--rule-firm);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}

/* ---------- comparison ---------- */
.compare-heads { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.compare-heads > div { text-align: center; }
.compare-heads .buy-btn { margin-top: 0.6rem; }
@media (max-width: 640px) { .compare-heads { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-item { border-top: 1px solid var(--rule); padding: 1rem 0; }
.faq-item summary { font-family: var(--display); font-weight: 700; cursor: pointer; }
.faq-item p { margin: 0.6rem 0 0; }

/* ---------- illustration figure ---------- */
figure.illo { margin: 1.75rem 0; }
figure.illo figcaption { font-family: var(--data); font-size: 0.82rem; color: var(--slate); margin-top: 0.5rem; }

/* ---------- footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--rule-firm);
  margin-top: 3.5rem;
  padding: 2rem 0 2.5rem;
  background: var(--paper-sunk);
}
footer.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; font-family: var(--data); font-size: 0.82rem; margin-bottom: 1rem; }
footer.site-footer .footer-links a { color: var(--ink); }
footer.site-footer p { font-size: 0.78rem; color: var(--slate); max-width: 72ch; margin: 0.4rem 0; }

main { padding-bottom: 2rem; }
