/* Bone and brick are sampled from the feature graphic, so every page is the
   same two colours as the artwork on the front page. There is deliberately no
   dark variant: the banner carries a baked-in bone background, and a dark
   shell around it reads as broken rather than as a theme. */
:root {
  color-scheme: light;
  --bg: #e7dec8;
  --text: #2b2620;
  --subtext: #665c4c;
  --accent: #96160F;
  --border: #cfc4aa;
  --surface: #f1eade;
  --brick: #96160F;
  --brick-dark: #7d1009;
  --on-brick: #f7f1e4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

nav.top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 32px;
  font-size: 14px;
}

nav.top a {
  color: var(--subtext);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

nav.top a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

h1 {
  font-size: 28px;
  margin: 0 0 4px;
}

.updated {
  color: var(--subtext);
  font-size: 14px;
  margin-bottom: 32px;
}

h2 {
  font-size: 19px;
  margin-top: 40px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

p, li { color: var(--text); }

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

/* Tables sit on the page colour — the only thing separating them is the
   grid itself, drawn in the text colour rather than a tint. */
th, td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--text);
  vertical-align: top;
}

th {
  background: transparent;
}

ul { padding-left: 20px; }

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

.lang-toggle {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.lang-toggle button {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--subtext);
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
}

.btn {
  display: inline-block;
  background: var(--brick);
  color: var(--on-brick);
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 14px 20px;
  margin: 20px 0 8px;
}

.btn:active { background: var(--brick-dark); }

.muted { color: var(--subtext); font-size: 14px; }

.notice {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--surface);
  font-size: 14px;
}
