/* Troyka's own tokens — the same paper, ink and terracotta the app uses.
   Kept as one stylesheet rather than a framework: three static pages do not need a build. */
:root {
  --surface: #e8e7e3;
  --surface-card: #ffffff;
  --ink: #1f1b18;
  --ink-muted: #6b645c;
  --ink-faint: #a9a49c;
  --accent: #b4552e;
  --line: #d9d6d0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #141210;
    --surface-card: #22201c;
    --ink: #f2f0ec;
    --ink-muted: #9c948b;
    --ink-faint: #6b645c;
    --accent: #c9683d;
    --line: #2e2823;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 24px 96px;
  background: var(--surface);
  color: var(--ink);
  font-family: Geologica, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 680px; margin: 0 auto; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 48px;
}

.mark {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

nav a {
  color: var(--ink-muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
}

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

h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  margin: 48px 0 12px;
}

.updated { color: var(--ink-faint); font-size: 15px; margin: 0 0 40px; }

p, li { color: var(--ink); }
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

strong { font-weight: 600; }

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

.card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px;
  margin: 0 0 24px;
}

.lede { font-size: 19px; color: var(--ink-muted); margin-bottom: 32px; }

footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer a { color: var(--ink-muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 520px) {
  h1 { font-size: 34px; }
  body { font-size: 16px; }
  header { padding: 24px 0 32px; }
  nav a { margin-left: 14px; font-size: 14px; }
}
