/* Poly A1 — one stylesheet for all pages. Nothing loads from outside. */

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --line: #d8d8d8;
  --box: #f4f4f4;
  --btn: #6e3fa3; /* brand purple since 30.09 (was green #1b5e3a before 27.09) — same as the app's buttons and icon; white text 7.23:1 */
  --btn-fg: #ffffff;
  --ok: #0d6b2f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161a;
    --fg: #f2f2f2;
    --muted: #b6b6b6;
    --line: #3a3d44;
    --box: #1e2127;
    --btn: #c9a8f0; /* light purple on dark: dark text 9.58:1 */
    --btn-fg: #0b0d10;
    --ok: #5ed98c;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 24px 16px 64px;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.55;
}

main, header, footer { max-width: 40rem; margin: 0 auto; }

.lang {
  max-width: 40rem;
  margin: 0 auto 20px;
  font-size: 18px;
}

.lang a { color: var(--btn); }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }

h2 { font-size: 24px; line-height: 1.3; margin: 32px 0 8px; }

p { margin: 0 0 16px; }

a { color: var(--btn); }

h3 { font-size: 21px; line-height: 1.3; margin: 24px 0 8px; }

ol.plain { margin: 0 0 16px; padding-left: 1.5em; }

ol.plain > li { margin: 0 0 10px; }

ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }

ol.steps > li {
  counter-increment: step;
  margin: 0 0 28px;
  padding: 0 0 0 48px;
  position: relative;
}

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--box);
  border: 2px solid var(--line);
  color: var(--fg);
  font-weight: 700;
  text-align: center;
  line-height: 32px;
}

button.copy {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 16px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--btn-fg);
  background: var(--btn);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

button.copy:focus-visible,
a:focus-visible,
summary:focus-visible { outline: 3px solid var(--btn); outline-offset: 3px; }

.said {
  margin: 8px 0 0;
  min-height: 1.55em;
  color: var(--ok);
  font-weight: 600;
}

details { margin: 12px 0 0; }

summary {
  cursor: pointer;
  color: var(--btn);
  font-size: 18px;
}

pre.assistant-text {
  margin: 12px 0 0;
  padding: 16px;
  background: var(--box);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.phrase {
  margin: 8px 0 0;
  padding: 14px 16px;
  background: var(--box);
  border: 1px solid var(--line);
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.small { font-size: 17px; color: var(--muted); }

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  color: var(--muted);
}

footer a { margin-right: 18px; display: inline-block; }

.addr { font-weight: 700; word-break: break-all; }

/* Buttons on the /review and /issues pages. Appear only once the URL is filled in in /config.js —
   before launch they don't exist at all, and the block sits `hidden`. Same color as the site's
   other buttons. (/club removed 26.09.2026 — see site/README.md.) */
.buttons { margin: 24px 0 0; }

.buttons[hidden] { display: none; }

a.button {
  display: inline-block;
  margin: 0 12px 12px 0;
  padding: 14px 26px;
  min-height: 24px;
  background: var(--btn);
  color: var(--btn-fg);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

a.button:hover, a.button:focus { text-decoration: underline; }

/* Homepage (`/`, `/<code>/`), 27.09.2026. The computer up top in a frame — the main job and one
   big button; below it the phone, the stores, what stays on the phone. Store buttons are the same
   `a.button` as on /review: they appear only from /config.js (STORE_IOS, STORE_ANDROID). */
.lead { font-size: 22px; font-weight: 600; margin: 0 0 20px; }

section.pc {
  margin: 0 0 8px;
  padding: 18px 18px 6px;
  background: var(--box);
  border: 2px solid var(--line);
  border-radius: 14px;
}

section.pc h2 { margin-top: 0; }

a.start {
  display: block;
  margin: 4px 0 16px;
  padding: 16px 18px;
  background: var(--btn);
  color: var(--btn-fg);
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

a.start:hover, a.start:focus { text-decoration: underline; }

ul.deeds { margin: 0 0 16px; padding-left: 1.2em; }

ul.deeds > li { margin: 0 0 10px; }
