:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #eef2f7;
  --text: #172033;
  --muted: #5f6b7a;
  --border: #d9e0ea;
  --accent: #0d6b57;
  --accent-strong: #064c3f;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.language-button {
  min-width: 56px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.language-button[aria-pressed="true"] {
  background: var(--accent);
  color: #ffffff;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 76px 0 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.16;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
  line-height: 1.28;
}

.hero-text,
.section-heading p,
.compact p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section {
  padding: 42px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contribution-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-body {
  color: var(--muted);
}

.review-list {
  margin: 16px 0 22px;
  padding-left: 18px;
  color: var(--muted);
}

.review-list li + li {
  margin-top: 6px;
}

.card-actions {
  margin-top: auto;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.button-link:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.compact {
  margin: 24px 0 48px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 38px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .nav {
    min-height: 72px;
  }

  .brand {
    max-width: 160px;
    line-height: 1.2;
  }

  .hero {
    padding-top: 52px;
  }

  .contribution-grid {
    grid-template-columns: 1fr;
  }

  .contribution-card,
  .compact {
    padding: 20px;
  }
}
