:root {
  --bg: #fffaf2;
  --surface: #ffffff;
  --text: #3b2414;
  --muted: #7a6150;
  --brown: #4a2511;
  --orange: #f59e0b;
  --blue: #3ba3e8;
  --line: #eadfce;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d140d;
    --surface: #2a1d13;
    --text: #f6ece0;
    --muted: #c4ad97;
    --line: #3e2c1e;
  }
}
:root[data-theme="dark"] {
  --bg: #1d140d;
  --surface: #2a1d13;
  --text: #f6ece0;
  --muted: #c4ad97;
  --line: #3e2c1e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--blue); }
h1, h2, h3, .brand { font-family: "Fredoka", "Nunito", system-ui, sans-serif; line-height: 1.15; }

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

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand .d { color: var(--orange); }
.brand .s { color: var(--blue); }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-weight: 600; }
nav a:hover { color: var(--text); }

.hero { text-align: center; padding: 48px 0 32px; }
.hero img { width: min(320px, 70vw); height: auto; border-radius: 24px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); margin: 20px 0 8px; color: var(--text); }
.hero p { font-size: 20px; color: var(--muted); margin: 0 auto; max-width: 560px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding: 24px 0 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.cta { text-align: center; padding: 0 0 56px; }
.btn { display: inline-block; background: var(--orange); color: #3b2414; font-weight: 700; padding: 12px 22px; border-radius: 999px; text-decoration: none; }

.doc { padding: 40px 0 56px; }
.doc h1 { font-size: 36px; margin: 0 0 4px; }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; padding-top: 20px; padding-bottom: 28px; }
footer.site a { color: var(--muted); }
