/* Standalone pages served outside the React app (/podminky, /soukromi,
 * /o-autorech).
 *
 * Deliberately outside the React app: these must answer 200 as plain HTML with
 * no JavaScript, so a reviewer or a crawler that never runs the bundle still
 * sees the whole document. Kept in one stylesheet so the two pages cannot drift.
 */
/* Dark is the game's default, so it is the default here too. Three ways in, in
 * order of authority: the theme the player chose in the game (data-theme, set by
 * the inline script in both pages from the same localStorage key the app writes),
 * then the operating system, then this. Following the OS alone was the bug —
 * a player on a light-mode machine plays a dark game and then a white contract. */
:root {
  --bg: #111;
  --surface: #191919;
  --text: #e8e8e8;
  --text-muted: #9a9a9a;
  --border: #2a2a2a;
  --accent: #ff8c42;
}
/* The :not() is what lets an explicit choice beat the machine's preference. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f4f6;
    --surface: #fff;
    --text: #1a1a1a;
    --text-muted: #5c5c5c;
    --border: #dcdce2;
    --accent: #d2600f;
  }
}
:root[data-theme="light"] {
  --bg: #f4f4f6;
  --surface: #fff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #dcdce2;
  --accent: #d2600f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 20px 20px 48px;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 600px;
  margin: 0 auto;
}

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
}
.back:hover { color: var(--accent); }

h1 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

.effective {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

p, li { margin: 0 0 0.9rem; }
ul { padding-left: 1.2rem; }

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

strong { font-weight: 600; }

.note {
  margin: 2rem 0 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer {
  max-width: 600px;
  margin: 3rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.9;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }
.footer-sep { padding: 0 0.4rem; opacity: 0.5; }

/* Same entries, same order, same wording as the app's own footer. Everything
   that is a button there is a URL here — these pages carry no bundle, so the
   contact form, the bug report and the cookie settings are reached by query
   parameter (?kontakt=1, ?chyba=1, ?cookies=1) instead of by state. */
/* Centred, like the app's own footer — the two sit on the same site and a
   reader crossing from one to the other should not see the layout shift. */
footer { text-align: center; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.2rem;
  margin-bottom: 0.4rem;
}
.footer-legal { margin: 0.6rem 0 0; }
.footer-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin: 0.9rem 0 0.6rem;
  font-size: 1.15rem;
}
.footer-langs a { text-decoration: none; opacity: 0.75; }
.footer-langs a:hover { opacity: 1; }
.footer-copyright { margin: 0; opacity: 0.8; }

/* ── /o-autorech: the one page here with a picture on it ─────────────────── */
.lead { font-size: 1.05rem; color: var(--text); }

.portrait-figure {
  margin: 2rem 0 0;
  text-align: center;
}
/* Circular, so it reads as a portrait rather than as a screenshot of one. The
   source is cropped square and aimed at the group — a circle inscribed in a
   centred crop of the original would have taken grass and lost a child. */
.portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

/* Phones: the documents are long, so the text gets the whole width. */
@media (max-width: 480px) {
  body { padding: 20px 14px 40px; font-size: 0.9rem; }
  h1 { font-size: 1.2rem; }
  .footer-sep { display: block; height: 0; overflow: hidden; }
  .portrait { width: 150px; height: 150px; }
}
