:root {
  --bg-top: #faf6e9;
  --bg-bottom: #f5f1e0;
  --text-primary: #1c1c1c;
  --text-secondary: #6b6b6b;
  --accent: #4a73a2;
  --accent-soft: rgba(74, 115, 162, 0.12);
  --border: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}

.logo {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 8px;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 420px;
}

.store-link img {
  height: 48px;
}

main.doc {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.back-link:hover {
  text-decoration: underline;
}

.doc-title {
  font-size: 2rem;
  margin-bottom: 4px;
}

.doc-updated {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0;
  margin-bottom: 32px;
}

main.doc h2 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 8px;
}

main.doc p {
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 12px;
}

main.doc a {
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

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

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #121218;
    --bg-bottom: #1c1c22;
    --text-primary: #f2f2f2;
    --text-secondary: #a3a3a3;
    --accent: #6f9bd1;
    --border: rgba(255, 255, 255, 0.1);
  }
}
