/* Meter Core: Pastel light presentation (13 Oct 2026).
   Scoped: linked ONLY by /meter-core/, /meter-core/contract/ and /meter-core/accuracy/,
   after the shared styles.css. It overrides colours and type to match the released
   plug-in's Pastel light theme. Layout, copy and form/download wiring are unchanged. */

html:root {
  color-scheme: light;
  --bg: #fff8df;            /* plug-in ground */
  --surface: #e9f2f7;       /* row / card blue */
  --surface2: #f6fbfd;      /* light panel */
  --border: rgba(49, 78, 92, 0.30);
  --border-strong: rgba(49, 78, 92, 0.46);
  --text: #273e49;          /* slate ink */
  --muted: #526670;
  --accent: #273e49;        /* active pill = slate, as in the plug-in */
  --accent-dim: #1b2d36;
  --accent-glow: rgba(39, 62, 73, 0.08);
  --green: #2e665c;
  --pill: #c9dfed;          /* powder-blue pill / header row */
  --link: #8a4239;
  --mono: Menlo, Consolas, ui-monospace, SFMono-Regular, monospace;
  --display: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", system-ui, sans-serif;
}

body { background: var(--bg); color: var(--text); }
a { color: var(--link); }

/* Navigation */
nav, .site-nav {
  background: rgba(255, 248, 223, 0.94);
  border-bottom: 1px solid var(--border-strong);
}
.nav-brand { color: var(--text); }
.nav-badge {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--pill);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.nav-badge::before { display: none; }

/* Display type: the plug-in's heavy condensed wordmark */
.hero h1, .acc-wrap h1, .section-title, .cta h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  text-shadow: 2px 2px 0 var(--pill);
}
.hero h1 span {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.hero p, .section-body, .cta p { color: var(--muted); }

/* Mono uppercase labels, as on the plug-in's section heads */
.section-tag, .coming-soon, .lab-headline, .lab-card-label, .visual-label, .lab-badge, .lab-metric-label {
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-tag { color: var(--text); }
.coming-soon, .lab-badge {
  color: var(--text);
  background: var(--pill);
  border: 1px solid var(--border-strong);
}
.lab-badge::before { background: var(--green); box-shadow: none; }

/* Buttons: slate pill (plug-in's active state) */
.btn-primary {
  background: var(--accent);
  color: #fff8df;
  border-radius: 999px;
  box-shadow: none;
}
.btn-primary:hover { background: var(--accent-dim); box-shadow: none; }

/* Inputs */
.wishlist-form input, .release-notify input {
  background: #fffdf4;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.wishlist-form input::placeholder { color: #6b7d86; }

/* Hero visual: the plug-in's slate STEREO / VU panel */
.hero-visual {
  background: #273e49;
  border: 1px solid #273e49;
  box-shadow: none;
}
.hero-visual::after { display: none; }
.spectrum-bar.locked { background: #e9f2f7; }
.spectrum-bar.side { background: #9fbfd0; opacity: 1; }
.visual-label { color: #c9dfed; }

/* Bands, cards and panels: light rows with a fine slate rule, no glow */
.features, .cta { background: #fdf3d6; border-color: var(--border); }
.feature-card, .lab-card, .chain-note, .release-notify, .acc-key {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: none;
}
.feature-card:hover, .lab-card:hover { border-color: var(--text); box-shadow: none; transform: none; }
.feature-icon { background: var(--pill); border-color: var(--border-strong); }
.acc-key { border-left: 3px solid var(--text); }

.lab-verified {
  background: var(--bg);
  border-color: var(--border);
}
.lab-verified::before { display: none; }
.lab-card-image { background: var(--surface2); }
.lab-metric {
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.lab-metric-value, .proof-count, .lab-summary strong, .capture-thanks-msg { color: var(--text); }
.chain-note a, .download-retry { color: var(--link); }

/* Contract + accuracy: readable tables and code on the light ground */
.acc-wrap { color: var(--text); }
.acc-wrap h2 { color: var(--text); font-family: var(--display); font-weight: 800; letter-spacing: 0; }
.acc-wrap p, .acc-wrap li { color: #3c535e; }
.acc-wrap strong { color: var(--text); }
.acc-wrap table { background: var(--surface2); }
.acc-wrap th, .acc-wrap td { border-color: var(--border-strong); color: var(--text); }
.acc-wrap th { background: var(--pill); color: var(--text); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; }
.acc-wrap tbody tr:nth-child(even) td { background: var(--surface); }
.acc-wrap code, .acc-wrap pre {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  font-family: var(--mono);
}

/* Focus stays visible on the light ground */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

footer { border-top-color: var(--border); color: var(--muted); }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* The footer credit link carries an inline indigo colour; keep it in the palette. */
footer a[style] { color: var(--link) !important; }
