:root {
  --bg: #FFFFFF;
  --text: #18181B;
  --text-muted: #52525B;
  --border: #E4E4E7;
  --accent: #059669;
  --accent-hover: #047857;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --text: #F4F4F5;
    --text-muted: #A1A1AA;
    --border: #27272A;
    --accent: #10B981;
    --accent-hover: #34D399;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

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

/* Main Content */
main {
  flex: 1;
  padding: 48px 0 64px;
}

h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
  color: var(--text);
}

.lead {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.meta {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

p {
  margin-bottom: 16px;
  color: var(--text);
}

ul, ol {
  margin-bottom: 18px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

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

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Language switch links */
.lang-nav {
  display: flex;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.lang-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.lang-nav a:hover {
  color: var(--text);
}

/* Simple Document links list (index.html) */
.doc-list {
  list-style: none;
  padding-left: 0;
  margin-top: 24px;
}

.doc-list li {
  margin-bottom: 14px;
}

.doc-list a {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.doc-list a:hover {
  text-decoration: underline;
}

/* Minimal notice / callout */
.notice {
  border-left: 2px solid var(--border);
  padding-left: 14px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

.notice p {
  margin-bottom: 0;
  color: inherit;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

footer a:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    width: 100%;
    gap: 14px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
