/* Styles for the static chart pages under /charts/. Deliberately a
   separate sheet from style.css: those pages are plain documents meant to
   be crawled and read, and loading the whole app's stylesheet would drag in
   table/felt/animation rules none of them use. Palette is the app's Chip &
   Copper identity so the two don't feel like different products. */

:root {
  --bg: #1c1210;
  --surface: #241715;
  --surface-2: #2e1e1a;
  --border: #3d2a24;
  --text: #f3e9e2;
  --text-dim: #b09585;
  --text-faint: #7d685c;
  --accent: #c9793f;
  --accent-dim: #9c5c2c;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

a { color: var(--accent); }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 600;
}

.cta-sm {
  background: var(--accent);
  color: #241206;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

main { max-width: 780px; margin: 0 auto; padding: 30px 20px 70px; }

.crumbs { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 10px; }
.crumbs span { margin: 0 4px; }

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.75rem, 4.5vw, 2.3rem);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 14px;
}

h2 {
  font-size: 1.15rem;
  margin: 38px 0 10px;
  text-wrap: balance;
}

h3 {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 22px 0 8px;
  font-weight: 600;
}

p { margin: 0 0 14px; color: var(--text-dim); }
p.lead { color: var(--text); font-size: 1.05rem; }

/* The 13x13 range grid. Scrolls inside its own container rather than
   pushing the page sideways on a phone, and uses a vw-scaled font so the
   hand labels stay legible instead of collapsing to unreadable specks. */
.grid {
  border-collapse: collapse;
  width: 100%;
  max-width: 560px;
  margin: 0 0 10px;
  font-size: clamp(0.4rem, 1.55vw, 0.62rem);
  font-variant-numeric: tabular-nums;
  table-layout: fixed;
}

.grid td {
  border: 1px solid var(--bg);
  text-align: center;
  padding: 0;
  height: 0;
  aspect-ratio: 1;
  letter-spacing: -0.02em;
}

.grid td.on { background: var(--accent); color: #241206; font-weight: 700; }
.grid td.off { background: var(--surface-2); color: var(--text-faint); }

details {
  margin: 0 0 10px;
  font-size: 0.85rem;
}

summary {
  cursor: pointer;
  color: var(--accent);
}

p.list {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--text-faint);
  word-spacing: 0.1em;
  line-height: 1.8;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
}

.card h2 { margin: 0 0 6px; font-size: 1rem; color: var(--accent); }
.card p { margin: 0; font-size: 0.88rem; }

.cta-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  margin: 44px 0 0;
}

.cta-block h2 { margin-top: 0; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #241206;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 999px;
  margin-top: 4px;
}

.faq dt { font-weight: 600; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--text-dim); }

footer {
  border-top: 1px solid var(--border);
  padding: 22px 20px 40px;
  max-width: 780px;
  margin: 0 auto;
  font-size: 0.82rem;
}

footer p { color: var(--text-faint); }
footer .links a { margin-right: 2px; }
