/* Chumme website. Colours from the app's design tokens
   (chumme-app-v3/modules/chumme-ds/theme/tokens.ts). Light only: the logo's
   dark-maroon end disappears on the app's dark ground. */
:root {
  --bg: #fbf6f8;
  --surface: #ffffff;
  --fg: #2a1b20;        /* maroon700 */
  --muted: #6a5b62;
  --line: rgba(42, 27, 32, 0.12);
  --brand: #a83a61;     /* pink660: 6.0:1 on white for links */
  --brand-bright: #e85c8f; /* pink400 */
  --brand-soft: rgba(207, 66, 120, 0.10);
  --todo: #fff1b8;
  --todo-line: #d9a016; /* gold500 */
  --deep: #170d10;      /* maroon900 */
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-bright); }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

/* Header + footer */
.site-header, .site-footer {
  max-width: 1080px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 18px; }
.site-header nav, .site-footer { gap: 20px; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a, .site-footer a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-header nav a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--brand-bright); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-header nav a:hover, .site-footer a:hover { color: var(--brand); }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; color: var(--muted); font-size: 14px; justify-content: flex-start; padding-block: 28px; }

/* Draft banner + placeholders (remove themselves once the text is final) */
.draft-banner {
  max-width: 1080px; margin: 0 auto 8px; padding: 12px 20px;
  background: var(--todo); border-left: 4px solid var(--todo-line); border-radius: 8px; font-size: 14px;
}
mark.todo { background: var(--todo); color: inherit; border-bottom: 2px solid var(--todo-line); padding: 0 2px; border-radius: 2px; }

/* Legal documents */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 20px 0; }
.doc h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin: 8px 0 4px; letter-spacing: -0.01em; text-wrap: balance; }
.doc .version { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.doc h2 { font-size: 21px; line-height: 1.3; margin: 40px 0 10px; scroll-margin-top: 16px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc li ul { margin-top: 4px; }
.doc blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--brand-bright); background: var(--brand-soft); border-radius: 0 8px 8px 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em; background: var(--brand-soft); padding: 1px 4px; border-radius: 4px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 8px; font-size: 14px; }
.toc p { margin: 0 0 6px; font-weight: 600; }
.toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2 220px; column-gap: 24px; }
.toc li { margin: 2px 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Home */
.hero { max-width: 1080px; margin: 0 auto; padding: 40px 20px 24px; display: grid; gap: 28px; grid-template-columns: 1.2fr 0.8fr; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(38px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand-bright); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 18px 0 0; }
.hero .mark { justify-self: center; width: min(320px, 70vw); filter: drop-shadow(0 24px 40px rgba(168, 58, 97, 0.28)); }
.features { max-width: 1080px; margin: 0 auto; padding: 24px 20px; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature .tag { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--brand); }
.feature h2 { font-size: 20px; margin: 6px 0 6px; line-height: 1.25; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.contact { max-width: 1080px; margin: 0 auto; padding: 24px 20px; }
.contact h2 { font-size: 22px; margin: 0 0 6px; }
.contact p { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero .mark { order: -1; width: 160px; justify-self: start; }
  .features { grid-template-columns: 1fr; }
}
