/* reymaps.com (2026-10-30). One stylesheet, system fonts, no network. Light and dark from the visitor's setting.
   Every text colour keeps 4.5:1 on the grounds it sits on (checked with sketches/studio/contrast.js, see the README). */
:root {
  color-scheme: light dark;
  --bg: #f4f6f5; --surface: #ffffff; --ink: #14201c; --muted: #4a5a55; --line: #d3dbd8;
  --accent: #0f6b5c; --accent-ink: #ffffff; --link: #0b5c4f; --band: #13201c; --band-ink: #eef3f1; --band-muted: #b9c7c2;
  --focus: #1d5fbf; --shadow: 0 1px 2px rgb(20 32 28 / .08), 0 10px 30px rgb(20 32 28 / .14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px; --gutter: 16px; --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1513; --surface: #16201d; --ink: #e8efec; --muted: #a7b6b0; --line: #2b3834;
    --accent: #5fc9b0; --accent-ink: #08201a; --link: #7fd8c2; --band: #0a0f0d; --band-ink: #eef3f1; --band-muted: #b9c7c2;
    --focus: #8fb8ff; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .45);
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .92em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0 0 10px; }

/* the logo: the lockup as a picture (brand/reymaps.mjs, decision 0045), never an SVG (decision 0038) */
.brand img { height: 36px; width: auto; }
.foot .tag img { height: 40px; width: auto; }

/* header and footer */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: block; border-radius: 6px; }
.top nav { margin-left: auto; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: .97rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; display: inline-block; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 560px) { .top nav { width: 100%; margin: 0; } }
.foot { margin-top: 72px; background: var(--band); color: var(--band-muted); padding: 40px 0 32px; font-size: .88rem; }
.foot a { color: var(--band-ink); }
.foot .tag { margin-bottom: 16px; }
.foot p { max-width: 60em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); line-height: 1.2; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* sections */
section { padding: 64px 0 0; }
.hero { padding-top: 40px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1fr 1.1fr; padding-top: 64px; } }
/* the three cards in a row, the poster a little taller */
.row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; }
.row img { border-radius: 6px; box-shadow: var(--shadow); }

.grid, .steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid li, .steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 8px; }
.steps { counter-reset: step; margin-bottom: 20px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--band); color: var(--band-ink); font-weight: 800; margin-bottom: 12px; }

/* the examples: each picture fitted in the same frame, whatever its shape */
.examples { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.examples li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 4px; }
.examples figure { margin: 0; }
/* each example sits in a square, whatever its shape: the picture itself is the square box, drawn contained in it (no
   absolute positioning inside a button, which some browsers lay out at no height) */
.examples .frame, .row .card-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; }
.examples .frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.row .card-open img { display: block; width: 100%; height: auto; }
/* hovering or tabbing to a picture says it opens: it lifts and takes the accent ring, and the cursor is a magnifier */
.row .card-open img, .examples .frame img { transition: transform .15s ease, box-shadow .15s ease; border-radius: 6px; }
.row .card-open:hover img { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
/* an example sits in a square slot, so its card takes the ring rather than the picture */
.examples .frame:hover img { transform: translateY(-3px); }
.examples li { transition: border-color .15s ease, box-shadow .15s ease; }
.examples li:has(.frame:hover) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.row .card-open:focus-visible, .examples .frame:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .row .card-open img, .examples .frame img { transition: none; transform: none !important; } }
.examples figcaption { padding: 12px 10px 0; }
.examples h4 { font-size: 1.15rem; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
/* the examples run simple to full in three groups; each picture's tag names the layers it asked for */
.tier { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.tier h3 { margin: 0; font-size: 1.3rem; }
.tier p { margin: 0; color: var(--muted); }
.tier + .examples { margin-top: 16px; }
.examples .layers { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }

/* the privacy band */
.band { background: var(--band); color: var(--band-ink); border-radius: calc(var(--radius) + 6px); padding: 36px 24px; margin-top: 64px; }
@media (min-width: 720px) { .band { padding: 48px; } }
.band .kicker { color: var(--band-muted); }
.checks { display: grid; gap: 14px 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; list-style: none; margin: 24px 0 0; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid #5fc9b0; border-bottom: 3px solid #5fc9b0; transform: rotate(-45deg); }

/* an example opens full size in a popover, and Previous and Next (or the arrow keys and a swipe, lightbox.js) go round
   the others. The same as treadentials.com's (apps/site/src/site.css). */
.lightbox { border: 0; padding: 0; background: none; overflow: visible; max-width: none; max-height: none; }
.lightbox:popover-open { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox::backdrop { background: rgb(8 12 10 / .93); }
.lightbox img { display: block; width: auto; height: auto; max-width: calc(100vw - 32px); max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  border-radius: 6px; box-shadow: 0 18px 40px rgb(0 0 0 / .45); background: #fff; }
.lightbox-bar { display: flex; gap: 8px; justify-content: center; }
.lightbox-bar button { font: inherit; font-weight: 700; padding: 10px 18px; min-height: 44px; border-radius: 999px; border: 0;
  background: #eef3f1; color: #14201c; cursor: pointer; }
.lightbox-bar .prev, .lightbox-bar .next { background: rgb(238 243 241 / .16); color: #eef3f1; }
.lightbox-bar button:focus-visible { outline: 3px solid #eef3f1; outline-offset: 2px; }
