/* ============================================================================
   herm-mon design system — single source of truth for all storefront pages.
   Loaded by every page via <link rel="stylesheet" href="/assets/base.css">.
   Change the brand here, not per-page. (Redesign 2026-10-20, WU7)

   Colour semantics (strict — each token has ONE job):
     --ink        body text
     --muted      secondary text (contrast-checked on --bg)
     --gold       PRICE only
     --action     PRIMARY ACTION only (buttons that do something)
     --link       LINKS only
     --success    paid/delivered state
   Nothing else may be painted with --action/--gold.
   ========================================================================== */
:root {
  /* palette */
  --bg: #0a0e16;
  --surface: #111827;
  --surface-2: #1a2332;
  --border: #263244;
  --border-soft: #1e293b;
  --ink: #eef2f7;
  --muted: #9aa8ba;

  /* semantic accents — one job each */
  --gold: #e8b64c;          /* price only */
  --action: #34d399;        /* primary buttons only (emerald, reads "go") */
  --action-ink: #06251a;
  --link: #7dd3fc;         /* links only */
  --success: #4ade80;

  /* type scale */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;

  /* rhythm — 4px scale, gaps come from this scale, nothing else */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;

  /* shape */
  --r-sm: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --maxw: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- layout ------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3); }
.wrap-narrow { max-width: 46rem; margin: 0 auto; padding: 0 var(--s3); }

/* --- header / nav (shared across pages) --------------------------------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 22, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 24px rgba(0, 0, 0, 0.35);
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 3.5rem; gap: var(--s2);
}
.brand {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand b { color: var(--action); font-weight: 800; }
nav.mainnav { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
nav.mainnav a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
nav.mainnav a:hover { color: var(--ink); }
nav.mainnav a.cta-mini {
  color: var(--action-ink); background: var(--action); font-weight: 700;
  padding: 0.45rem 1rem; border-radius: var(--r-sm); border-bottom: none;
}
nav.mainnav a.cta-mini:hover { filter: brightness(1.1); }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; background: var(--action); color: var(--action-ink);
  font-weight: 700; font-size: 1.05rem; text-decoration: none; text-align: center;
  padding: 0.9rem 2.2rem; border-radius: var(--r-sm); border: none; cursor: pointer;
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  display: inline-block; background: transparent; color: var(--ink);
  font-weight: 600; text-decoration: none; padding: 0.85rem 1.4rem;
  border: 1px solid var(--border); border-radius: var(--r-sm);
}
.btn-ghost:hover { border-color: var(--muted); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

/* --- links --------------------------------------------------------------- */
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }

/* --- cards --------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: var(--s3);
}

/* --- type helpers -------------------------------------------------------- */
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--action); margin: 0 0 var(--s1);
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 var(--s2); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 var(--s2); }
.muted { color: var(--muted); }
.price-tag { color: var(--gold); font-weight: 700; }
.mono { font-family: var(--mono); }

/* --- footer (shared) ------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border-soft); margin-top: var(--s5);
  padding: var(--s3) 0 var(--s4); color: var(--muted); font-size: 0.85rem;
}
.site-footer .row { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* --- forms (shared) -------------------------------------------------------- */
label { font-weight: 600; font-size: 0.92rem; display: block; margin: 0 0 var(--s1); }
select, input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 0.7rem 0.8rem; font-size: 1rem; font-family: inherit;
  color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-sm);
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--action); outline-offset: 1px; }

/* --- status ---------------------------------------------------------------- */
.status { font-weight: 700; margin-top: var(--s2); }
.status.paid { color: var(--success); }
.status.waiting { color: var(--gold); }

/* --- scrollbar (themed — defect: default light scrollbar on dark page) ----- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* --- mobile ----------------------------------------------------------------- */
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 var(--s2); }
  .card { padding: var(--s2); }
  .btn { width: 100%; }
  nav.mainnav { gap: var(--s1); font-size: 0.85rem; }
}
