:root {
  --bg: #e8f0ee;
  --surface: #ffffff;
  --text: #13201e;
  --muted: #5b6b68;
  --accent: #417425;
  --accent-soft: rgba(65, 116, 37, 0.12);
  --border: rgba(19, 32, 30, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1716;
    --surface: #17211f;
    --text: #e9efed;
    --muted: #93a39f;
    --accent: #8cc56a;
    --accent-soft: rgba(140, 197, 106, 0.15);
    --border: rgba(233, 239, 237, 0.1);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* ---------- Landing ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  display: block;
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
  border-radius: 22.5%;
  box-shadow: 0 8px 24px rgba(19, 32, 30, 0.12);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 10vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tagline {
  margin: 8px 0 28px;
  font-size: 1.15rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin: 0 0 24px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Document pages ---------- */

.doc {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 20px;
}

.doc h1 {
  margin: 0 0 4px;
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.doc h2 {
  margin: 36px 0 8px;
  font-size: 1.25rem;
}

.doc p,
.doc li {
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.footer {
  padding: 24px 20px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

.footer nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.footer p {
  margin: 8px 0 0;
}
