:root {
  --ink: #202020;
  --sage: #546c54;
  --moss: #b5d9a8;
  --mint: #d8e4d8;
  --canvas: #f2f3f5;
  --white: #ffffff;
  --muted: #5c5f66;
  --line: #c5c7cc;
  --max: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 0% -10%, var(--mint) 0%, transparent 55%),
    radial-gradient(900px 480px at 100% 0%, #e8f2e4 0%, transparent 50%),
    var(--canvas);
  line-height: 1.55;
}

a { color: var(--sage); }
a:hover { color: var(--ink); }

.wrap {
  width: min(100% - 2rem, 960px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--sage);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(84, 108, 84, 0.22);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--sage);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.35rem;
}

.lang button {
  border: 0;
  background: transparent;
  padding: 0.28rem 0.65rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--sage);
  color: var(--white);
}

main { padding: 2rem 0 3.5rem; }

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 2rem;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.hero-card,
.panel {
  background: var(--white);
  border-radius: 24px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 12px 36px rgba(32, 32, 32, 0.07);
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  color: var(--sage);
  line-height: 1.15;
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover { color: var(--white); opacity: 0.92; }

.btn-secondary {
  background: var(--moss);
  color: var(--ink);
}

.btn-secondary:hover { color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--sage);
  border: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  background: var(--white);
  border-radius: 18px;
  padding: 1.1rem 1rem;
  box-shadow: 0 8px 24px rgba(32, 32, 32, 0.05);
}

.feature h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--sage);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: min(100%, 280px);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(84, 108, 84, 0.25);
}

.prose {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.prose .panel { padding: 1.6rem 1.4rem 1.8rem; }

.prose h1 {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  color: var(--sage);
}

.prose .meta {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.prose h2 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.prose p,
.prose li {
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}

.prose ul { padding-left: 1.15rem; }

.prose .note {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--mint);
  color: var(--sage);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.site-footer a:hover { color: var(--sage); }

html[lang="fi"] .lang-en { display: none !important; }
html[lang="en"] .lang-fi { display: none !important; }

@media (max-width: 640px) {
  .nav-links .hide-sm { display: none; }
}
