:root {
  --bg: #f8faf9;
  --surface: #ffffff;
  --text: #171d1a;
  --muted: #404944;
  --line: #dce5e0;
  --brand: #047857;
  --brand-soft: #d1fae5;
  --on-brand: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412;
    --surface: #171d1a;
    --text: #e8efeb;
    --muted: #b6c2bc;
    --line: #2a332f;
    --brand: #34d399;
    --brand-soft: #0b3b2c;
    --on-brand: #022c22;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--brand); }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  /* The footer stays at the bottom of the screen when the content is shorter than it. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

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

.lang { font-size: 15px; }

.hero { padding: 48px 0 32px; text-align: center; }
.hero img { width: 112px; height: 112px; }
.hero h1 { font-size: clamp(32px, 7vw, 48px); line-height: 1.1; margin: 16px 0 12px; letter-spacing: -0.02em; text-wrap: balance; }
.hero p { font-size: 20px; color: var(--muted); margin: 0 auto; max-width: 30em; text-wrap: balance; }

.badge {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.cards { display: grid; gap: 16px; margin: 24px 0 48px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.card h2 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

article { padding: 16px 0 48px; }
article h1 { font-size: 34px; line-height: 1.2; margin: 16px 0 4px; }
article h2 { font-size: 21px; margin: 32px 0 8px; }
article .updated { color: var(--muted); margin: 0 0 24px; }
article ul { padding-left: 1.2em; }
article li { margin: 4px 0; }

.summary {
  background: var(--brand-soft);
  border-radius: 16px;
  padding: 16px 20px;
}
.summary p { margin: 0; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
