/*
 * Shared stylesheet for the static content pages under public/<slug>/.
 *
 * These pages exist to put real text in the served HTML: the app itself is
 * client-rendered and every route returns the same ~2.3 KB shell whose only
 * visible text is the <title>. They are plain HTML on purpose — no bundle,
 * no framework, no third-party request of any kind (GAP-6: a webfont from
 * Google would disclose the visitor's IP to Google before they agree to
 * anything, so every face here is a system font).
 *
 * Palette taken from frontend-v4/src/app/pages/Dashboard.tsx so the pages
 * look like the product they describe.
 */

:root {
  --bg: #f7f7f4;
  --panel: #f2f1ed;
  --rule: #d8dbd8;
  --ink: #26241e;
  --muted: #7d7d77;
  --pink: #ec428c;
  --green: #008671;
  --amber: #d97706;
  --blue: #7192bc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── header ─────────────────────────────────────────────────────────── */

header {
  border-bottom: 1px solid var(--rule);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}

.brand {
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.cta {
  background: var(--pink);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.cta:hover {
  opacity: 0.9;
}

/* ── article ────────────────────────────────────────────────────────── */

article {
  padding: 3rem 0 4rem;
}

.kicker {
  color: var(--green);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: 2.125rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0.75rem 0 1.25rem;
}

.standfirst {
  color: var(--muted);
  font-size: 1.1875rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.4375rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 2.75rem 0 0.875rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin-bottom: 1.125rem;
}

ul,
ol {
  margin: 0 0 1.125rem 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--ink);
  text-decoration-color: var(--pink);
  text-underline-offset: 0.18em;
}

strong {
  font-weight: 600;
}

code {
  background: var(--panel);
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  padding: 0.1em 0.35em;
}

.note {
  background: var(--panel);
  border-left: 3px solid var(--blue);
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
}

.note.caution {
  border-left-color: var(--amber);
}

.note p:last-child {
  margin-bottom: 0;
}

.note .label {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
}

.phases {
  list-style: none;
  margin-left: 0;
}

.phases li {
  border-bottom: 1px solid var(--rule);
  padding: 0.875rem 0;
}

.phases li:last-child {
  border-bottom: 0;
}

.phases .name {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  color: var(--green);
}

/* ── footer ─────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 3rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}

footer a {
  color: var(--muted);
  font-size: 0.8125rem;
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

footer .copy {
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 40rem) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.3125rem;
  }
}
