/* ChessMind public pages. No web fonts, scripts or trackers: the pages collect nothing. */
:root {
  --paper: #f3f5f2;
  --ink: #1b2a24;
  --muted: #51625a;
  --baize: #1f5a47;
  --rule: #d5ddd7;
  --brass: #9c7a26;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10241d;
    --ink: #e4ebe5;
    --muted: #a7b6ae;
    --baize: #8fd0b2;
    --rule: #2a4339;
    --brass: #d8b45a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }
header { border-bottom: 1px solid var(--rule); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 1.6rem; height: 1.6rem; }
nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; padding-block: .25rem; }
nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px var(--brass); }
main { padding-block: 2.5rem 3.5rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .35rem; letter-spacing: -0.01em; }
.updated { color: var(--muted); margin: 0 0 2rem; font-size: .95rem; }
h2 { font-size: 1.2rem; margin: 2.2rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1.4rem 0 .3rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
a { color: var(--baize); text-underline-offset: .18em; }
a:focus-visible, nav a:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 2px; }
.summary { border-left: 3px solid var(--brass); padding: .2rem 0 .2rem 1rem; margin: 0 0 2rem; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .5rem .55rem 0; border-bottom: 1px solid var(--rule); }
th { color: var(--muted); font-weight: 600; }
footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
footer .wrap { padding-block: 1.25rem 2rem; display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
footer a { color: var(--muted); }
