/* MERRIK public site (merrikecosystem.com) — the one stylesheet all its pages share.
   Look values are role tokens only (Coding Tenet 3). Light = Espie, dark = Loche, the same
   values as merrik.html. The page follows the device's light/dark setting; a page can force
   one with <html data-theme="espie|loche">. DESIGN owns these values (GK hands off to DESIGN). */

:root {
  --bg-deep: #F3F2F7;
  --surface: #FFFFFF;
  --surface-raised: #F8F7FB;
  --border: #E1DEEA;
  --text: #2A2730;
  --text-muted: #7D7889;
  --accent: #C94A46;
  --accent-hover: #B23C38;
  --success: #3E9B6C;
  --halo: color-mix(in srgb, var(--accent) 10%, transparent);
  --shadow-card: 0 1px 2px rgba(42, 39, 48, 0.05), 0 10px 28px -14px rgba(42, 39, 48, 0.14);
  --logo-img: url("merrik-portrait-espie.webp");
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --radius: 14px;
  --page-width: 760px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="espie"]) {
    --bg-deep: #14171F;
    --surface: #1D2130;
    --surface-raised: #262B3D;
    --border: #2A2F44;
    --text: #F1EDE4;
    --text-muted: #8B8FA3;
    --accent: #E8B34C;
    --accent-hover: #F0BE62;
    --success: #8FCB8F;
    --halo: color-mix(in srgb, var(--accent) 13%, transparent);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.30), 0 12px 32px -16px rgba(0, 0, 0, 0.55);
    --logo-img: url("merrik-portrait-loche.webp");
    color-scheme: dark;
  }
}
:root[data-theme="loche"] {
  --bg-deep: #14171F;
  --surface: #1D2130;
  --surface-raised: #262B3D;
  --border: #2A2F44;
  --text: #F1EDE4;
  --text-muted: #8B8FA3;
  --accent: #E8B34C;
  --accent-hover: #F0BE62;
  --success: #8FCB8F;
  --halo: color-mix(in srgb, var(--accent) 13%, transparent);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.30), 0 12px 32px -16px rgba(0, 0, 0, 0.55);
  --logo-img: url("merrik-portrait-loche.webp");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(125% 460px at 50% 0, var(--halo), transparent) no-repeat,
    var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

.wrap { max-width: var(--page-width); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- header ---- */
.site-header { padding: 40px 0 8px; text-align: center; }
.logo-slot { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 64px; }
.logo-slot img { max-height: 96px; width: auto; }
.logo-mark { width: 76px; height: 76px; background: var(--logo-img) center / contain no-repeat; }
.wordmark {
  font-family: var(--font-display);
  font-size: 46px;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.tagline { margin: 0; color: var(--text-muted); font-size: 16px; letter-spacing: 0.01em; }
.tagline::before {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 2px;
  background: var(--accent); margin: 16px auto 12px;
}

nav.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 20px 0 8px; font-size: 15px; }
nav.site-nav a { color: var(--text-muted); text-decoration: none; padding: 4px 2px; border-bottom: 2px solid transparent; }
nav.site-nav a:hover { color: var(--text); }
nav.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---- content ---- */
main { padding: 16px 0 48px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 20px;
  margin: 20px 0;
  box-shadow: var(--shadow-card);
}
h1, h2, h3 { line-height: 1.25; }
h1 { font-family: var(--font-display); font-size: 30px; margin: 0 0 6px; }
h1::after {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 2px;
  background: var(--accent); margin: 12px 0 16px;
}
h2 { font-family: var(--font-display); font-size: 23px; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
p, li { margin: 0 0 12px; }
ul { padding-left: 22px; margin: 0 0 12px; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
.muted { color: var(--text-muted); }
.effective { color: var(--text-muted); font-size: 15px; margin-bottom: 18px; }

/* the facts box: who, how often, how to stop */
.facts { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 8px 0 16px; padding: 0; list-style: none; }
.facts li { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 0; }
.facts b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }

/* an example of the in-app consent screen (shown so carriers can see the opt-in) */
.consent-example {
  background: var(--surface-raised);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 10px 0 16px;
  font-size: 15px;
}
.consent-example .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 10px; }
.consent-example .row { display: flex; gap: 10px; align-items: flex-start; }
.consent-example .box {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px;
  border: 2px solid var(--text-muted); border-radius: 4px; background: var(--surface);
}
.consent-example .consent-button {
  display: inline-block; margin: 14px 0 2px 30px; padding: 8px 18px;
  border-radius: 8px; background: var(--accent); color: var(--surface); font-weight: 600; font-size: 15px;
}
.consent-example .field { display: block; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-muted); }

/* sample texts */
.bubble {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  margin: 0 0 10px;
  max-width: 520px;
  font-size: 15px;
}

/* ---- footer ---- */
footer.site-footer { border-top: 1px solid var(--border); padding: 20px 0 40px; font-size: 14px; color: var(--text-muted); text-align: center; }
footer.site-footer a { color: var(--text-muted); }
footer.site-footer p { margin: 0 0 6px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .card { padding: 20px 18px 12px; }
  .wordmark { font-size: 36px; }
  h1 { font-size: 26px; }
}
