:root {
  --primary: #1e4620;
  --primary-soft: #2c5f2d;
  --secondary: #5c3420;
  --accent: #5c4a10;
  --text: #0d0d0d;
  --text-secondary: #3d3d3d;
  --text-inverse: #ffffff;
  --bg: #ffffff;
  --bg-card: #fafafa;
  --bg-muted: #f5f5f5;
  --border: #cccccc;
  --focus: #1e4620;
  --draft: #6b4500;
  --draft-bg: #fff6e8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --header-h: 64px;
  --max: 760px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #7ec882;
    --primary-soft: #1e4620;
    --secondary: #e0a882;
    --accent: #f0d878;
    --text: #ffffff;
    --text-secondary: #c8c8c8;
    --text-inverse: #0d0d0d;
    --bg: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-muted: #262626;
    --border: #4d4d4d;
    --focus: #7ec882;
    --draft: #f0b848;
    --draft-bg: #2a2208;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

:lang(en) body,
html[lang="en"] {
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  font-weight: 500;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: var(--primary);
  color: var(--text-inverse);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.draft-banner {
  background: var(--draft-bg);
  color: var(--draft);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand span {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--bg-muted);
}

.nav a[aria-current="page"] {
  color: var(--primary);
}

.lang-toggle {
  display: flex;
  gap: 4px;
  margin-left: 4px;
}

.lang-toggle button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--bg-muted);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--text-inverse);
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.hero {
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
}

.hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.section-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.7;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.card h3 {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.card p,
.card li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.card p {
  margin: 0 0 12px;
}

.card ul,
.card ol {
  margin: 0 0 12px;
  padding-left: 1.3em;
}

.card ol ol {
  list-style: lower-alpha;
  margin-top: 8px;
}

.card li {
  margin-bottom: 6px;
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

.toc {
  margin-bottom: 16px;
}

.toc h2 {
  margin-bottom: 8px;
}

.objection {
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0 12px;
}

.objection h3 {
  margin-top: 0;
}

.card address {
  font-style: normal;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 12px;
}

.card a[href^="mailto:"],
.card a[href^="https://"] {
  overflow-wrap: anywhere;
}

.notice {
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.card-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }
}

.action-card {
  display: block;
  color: inherit;
  text-decoration: none;
  min-height: 140px;
}

.action-card:hover {
  box-shadow: 0 4px 14px rgba(30, 70, 32, 0.12);
}

.action-card .kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--primary);
}

.action-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.home-lead {
  text-align: center;
  padding: 24px 0 8px;
}

.home-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
}

.home-lead h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
}

.home-lead p {
  margin: 0 auto;
  max-width: 34em;
  color: var(--text-secondary);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 24px 16px;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

.footer-inner a {
  color: var(--text-secondary);
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .brand span {
    display: none;
  }

  .header-inner {
    gap: 8px;
  }

  .nav a {
    padding: 8px 10px;
  }
}
