/* georiskx.com: shared styles for every page. Colours are tokens; dark mode redefines them. */
:root {
  --bg: #eef1ee; --surface: #fbfcfa; --ink: #17262b; --ink-2: #44555a; --muted: #56666a; --rule: #d3d9d6;
  --accent: #0f5d63; --accent-ink: #fff; --focus: #2a78d6;
  --s1: #cde2fb; --s2: #9ec5f4; --s3: #6da7ec; --s4: #f3c178; --s5: #e0703c; --well: #17262b;
  /* chart series: validated pair (blue = success case, orange = risked) */
  --c1: #2a78d6; --c2: #c4562a; --grid: #e2e7e4; --warn-bg: #fdf3e2; --warn-ink: #7a4a05;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111a1c; --surface: #172225; --ink: #e8eeec; --ink-2: #c0cccb; --muted: #a3b3b4; --rule: #2c3b3e;
    --accent: #5fb3b0; --accent-ink: #0b1517; --focus: #7fb4f0;
    --s1: #1f3a5c; --s2: #27508a; --s3: #2f67b3; --s4: #b9822c; --s5: #c4562a; --well: #e8eeec;
    --c1: #5a9be8; --c2: #e0703c; --grid: #24333a; --warn-bg: #3a2c12; --warn-ink: #f3d39a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 "Public Sans", system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* header and footer */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 22px; height: 22px; }
nav.top { display: flex; flex-wrap: wrap; gap: 4px 22px; }
nav.top a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
nav.top a:hover, nav.top a[aria-current="page"] { text-decoration: underline; }
footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 15px; color: var(--muted); margin-top: 24px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }

/* type */
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 24px; max-width: 14ch; }
h1.page { font-size: clamp(34px, 4.6vw, 52px); max-width: 20ch; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 24ch; }
h3 { font-size: 21px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; max-width: 66ch; }
.lede { font-size: 20px; color: var(--ink-2); max-width: 50ch; margin: 0 0 32px; }
.small { font-size: 15px; color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 6px; font: 700 17px/1.2 inherit; font-family: inherit; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; background: transparent; color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.small { padding: 8px 14px; font-size: 15px; }
.btn:hover { filter: brightness(1.08); }

/* home page */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding: 40px 0 72px; }
.section figure { margin: 0; }
.xsec { width: 100%; height: auto; display: block; }
.xsec text { font: 500 13px "Public Sans", system-ui, sans-serif; fill: var(--ink-2); }
.xsec .t { fill: var(--ink); font-weight: 700; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
section.band { padding: 72px 0; border-top: 1px solid var(--rule); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 32px; }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols > div { padding-top: 18px; border-top: 4px solid var(--s3); }
.cols > div:nth-child(2) { border-top-color: var(--s4); }
.cols > div:nth-child(3) { border-top-color: var(--s5); }
.cols p { color: var(--ink-2); }
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 36px 0 0; display: grid; }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--rule); }
ol.steps li::before { content: counter(step); font-weight: 800; font-size: 30px; line-height: 1; color: var(--accent); }
ol.steps h3 { margin-bottom: 4px; }
ol.steps p { margin: 0; color: var(--ink-2); }
dl.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 32px 0 0; }
dl.proof dt { font-weight: 700; font-size: 21px; letter-spacing: -0.01em; margin-bottom: 8px; }
dl.proof dd { margin: 0; color: var(--ink-2); }
ul.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
ul.ticks li { padding: 16px 0; border-top: 1px solid var(--rule); }
ul.ticks b { display: block; }
ul.ticks span { color: var(--ink-2); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.plans > div { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 22px; }
.plans h3 { margin-bottom: 4px; }
.plans .who { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.plans ul { margin: 0; padding-left: 18px; font-size: 16px; color: var(--ink-2); }
.teach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 40px; }
.teach svg { width: 100%; height: auto; display: block; }
details.faq { border-top: 1px solid var(--rule); padding: 16px 0; max-width: 820px; }
details.faq:last-of-type { border-bottom: 1px solid var(--rule); }
details.faq summary { font-weight: 700; font-size: 19px; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }
.closing { padding: 80px 0; border-top: 1px solid var(--rule); }
.closing h2 { max-width: 18ch; }

/* long-form pages (method, security) */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 24px 0 64px; }
.doc nav.toc { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.doc nav.toc a { display: block; color: var(--ink-2); text-decoration: none; padding: 5px 0; }
.doc nav.toc a:hover { color: var(--accent); text-decoration: underline; }
.doc section { padding: 32px 0; border-top: 1px solid var(--rule); }
.doc section:first-child { border-top: 0; padding-top: 0; }
.doc h2 { font-size: clamp(24px, 2.6vw, 30px); }
.doc ul { padding-left: 20px; max-width: 66ch; }
.doc li { margin-bottom: 6px; }
pre.eq, code { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
pre.eq { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; font-size: 15px; line-height: 1.55; overflow-x: auto; max-width: 66ch; }
code { font-size: 0.92em; }
.note { background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: 12px 16px; font-size: 16px; max-width: 70ch; }

@media (max-width: 960px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero, .teach { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 16px 0 56px; }
  .teach { padding: 28px 22px; }
  .cols, .cols.two, dl.proof, ul.ticks { grid-template-columns: 1fr; gap: 28px; }
  ul.ticks { gap: 0; }
  section.band, .closing { padding: 56px 0; }
  ol.steps li { grid-template-columns: 44px 1fr; }
  .doc { grid-template-columns: 1fr; gap: 8px; }
  .doc nav.toc { position: static; display: none; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  body { font-size: 17px; }
  .lede { font-size: 18px; }
  nav.top { gap: 4px 16px; }
}
