:root {
  color-scheme: light dark;
  --bg: #f8f7f2;
  --surface: #ffffff;
  --text: #161a1d;
  --muted: #53606a;
  --line: #d9ded8;
  --accent: #0f766e;
  --accent-strong: #134e4a;
  --accent-soft: #d9f0eb;
  --focus: #2563eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141619;
    --surface: #1d2226;
    --text: #f2f5f3;
    --muted: #b0bbb7;
    --line: #35403b;
    --accent: #5eead4;
    --accent-strong: #99f6e4;
    --accent-soft: #173d39;
    --focus: #93c5fd;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.site-header,
.hero,
.features,
.page-header,
.page-content,
.site-footer {
  margin-inline: auto;
  max-width: 1120px;
  padding-inline: clamp(20px, 5vw, 48px);
}

.site-header {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  padding-block: 22px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

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

.top-nav a,
.top-nav span,
.language-switch a,
.language-switch span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.top-nav span {
  color: var(--text);
}

.language-switch {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: end;
  white-space: nowrap;
}

.language-switch span {
  color: var(--text);
}

.hero {
  align-items: center;
  display: grid;
  min-height: min(660px, calc(100vh - 90px));
  padding-block: clamp(58px, 12vh, 128px);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3rem, 12vw, 7.4rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 28px;
  max-width: 980px;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: 720px;
}

.repo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.repo-actions a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 750;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

.repo-actions .primary-action {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .repo-actions .primary-action {
    color: #082f2c;
  }
}

.features {
  padding-block: 18px 72px;
}

.page-header {
  padding-block: clamp(54px, 9vw, 102px) 34px;
}

.page-header h1 {
  font-size: clamp(2.7rem, 8vw, 5.8rem);
}

.page-intro {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 760px;
}

.page-content {
  display: grid;
  gap: 18px;
  padding-block: 16px 72px;
}

.content-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  padding-top: 28px;
}

.content-section h2 {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  margin-bottom: 0;
}

.content-section p {
  color: var(--muted);
  margin-bottom: 0;
}

.content-section p + p {
  margin-top: 12px;
}

.content-section ul {
  color: var(--muted);
  margin: 0;
  padding-left: 1.2rem;
}

.content-section li + li {
  margin-top: 10px;
}

.section-heading {
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3.1rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 260px;
  padding: 24px;
}

.feature-card h3 {
  font-size: 1.18rem;
  line-height: 1.25;
  margin-bottom: 14px;
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-block: 26px 36px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header {
    align-items: start;
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3rem, 19vw, 5.3rem);
  }

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

  .content-section {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }
}
