/* The app's autumn theme (src/constants/theme.ts, SeasonalThemes.autumn). */
:root {
  --bg: #f3eee5;
  --card: #fcfaf6;
  --text: #211c17;
  --muted: #6a635a;
  --hairline: #e4dccf;
  --accent: #955021;
  --accent-soft: #efe3d6;
  --gold: #c86d2c;
  --tile: #eae2d5;
  --shadow: rgba(33, 28, 23, 0.18);
  --edge: transparent;
  color-scheme: light;
}

/* Dark follows the system unless the visitor picked a theme (data-theme, set by theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #130e0a;
    --card: #21160f;
    --text: #fdfbf7;
    --muted: #a89c90;
    --hairline: #3a271c;
    --accent: #d48246;
    --accent-soft: rgba(212, 130, 70, 0.18);
    --gold: #f0a04b;
    --tile: #332218;
    --shadow: rgba(0, 0, 0, 0.5);
    --edge: #4a3426;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #130e0a;
  --card: #21160f;
  --text: #fdfbf7;
  --muted: #a89c90;
  --hairline: #3a271c;
  --accent: #d48246;
  --accent-soft: rgba(212, 130, 70, 0.18);
  --gold: #f0a04b;
  --tile: #332218;
  --shadow: rgba(0, 0, 0, 0.5);
  --edge: #4a3426;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

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

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.lang { font-size: 15px; color: var(--muted); text-decoration: none; }

.actions { display: flex; align-items: center; gap: 14px; }

.theme {
  display: flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--tile);
}

.theme button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme button[aria-pressed="true"] {
  background: var(--card);
  color: var(--accent);
  box-shadow: 0 1px 3px var(--shadow);
}

.theme button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.theme svg { width: 16px; height: 16px; }

.hero { text-align: center; padding: 48px 0 32px; }

.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }

h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 24px 0 12px; }

.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 auto; max-width: 520px; }

.badge {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 12px; }

h3 { font-size: 17px; margin: 0 0 4px; }

.group {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
}

.group > .row { padding: 14px 16px; border-top: 1px solid var(--hairline); }

.group > .row:first-child { border-top: 0; }

.row p { margin: 0; color: var(--muted); font-size: 15px; }

.doc { background: var(--card); border-radius: 16px; padding: 8px 20px 20px; margin-bottom: 24px; }

.doc h2 { margin-top: 28px; }

.doc p, .doc li { font-size: 16px; }

.doc .updated { color: var(--muted); font-size: 13px; margin-top: 16px; }

footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }

footer a { color: var(--muted); }
