/* Super Matching Pairs — website. One stylesheet for every language; no JavaScript; system fonts. */

:root {
  color-scheme: light dark;
  --text: #14210f;
  --muted: #3f4f39;
  --bg: #ffffff;
  --link: #2e7a12;
  --link-hover: #1f5a0b;
  --rule: #e4ebe0;
  --chip: #eaf7df;
  --chip-text: #1f5a0b;
  --hero: linear-gradient(160deg, #ddf3cc 0%, #eaf7df 60%, #f6fbf1 100%);
  --panel-cards: #fdebdc;
  --panel-players: #e3eefb;
  --panel-board: #eaf7df;
  --brand: #5fc317;
  --on-brand: #10200a;
  --shadow: 0 24px 50px rgba(20, 33, 15, 0.2);
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #eef5ea;
    --muted: #c3d1bd;
    --bg: #0e170b;
    --link: #7bd63f;
    --link-hover: #a6e87a;
    --rule: #22301d;
    --chip: #1f3317;
    --chip-text: #a6e87a;
    --hero: linear-gradient(160deg, #1f3317 0%, #16260f 60%, #121d0e 100%);
    --panel-cards: #33211a;
    --panel-players: #172437;
    --panel-board: #18291a;
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }

h1, h2 {
  font-family: var(--rounded);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 20px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.languages {
  display: flex;
  gap: 16px;
  font-size: 15px;
  color: var(--muted);
}

.languages [aria-current] {
  color: var(--text);
  font-weight: 600;
}

/* Hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 96px;
}

.hero-text {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.chip {
  background: var(--chip);
  color: var(--chip-text);
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  padding: 6px 14px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
}

.lead {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 480px;
}

.badge img {
  display: block;
  height: 54px;
  width: auto;
}

/* Screenshots: no device frame, rounded corners and a shadow, in a soft panel */

.panel {
  flex: 1 1 380px;
  display: flex;
  justify-content: center;
  border-radius: 40px;
  padding: 40px 24px;
}

.hero .panel { background: var(--hero); }

.shot {
  display: block;
  width: min(300px, 100%);
  height: auto;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

/* Features */

.features {
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding-bottom: 96px;
}

.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

/* Text on the left for the second feature, on wide screens; the screenshot always comes first on phones */
.feature.reverse { flex-direction: row-reverse; }

.feature-text {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature h2 {
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.1;
}

.feature p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.cards .panel { background: var(--panel-cards); }
.players .panel { background: var(--panel-players); }
.board .panel { background: var(--panel-board); }

/* Call to action */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 32px;
  padding: 48px;
}

.cta h2 { font-size: 34px; }

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 15px;
  padding-top: 48px;
  padding-bottom: 56px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 600px) {
  .hero { padding-top: 16px; padding-bottom: 64px; }
  .features { gap: 64px; }
  .feature, .feature.reverse { flex-direction: column; gap: 28px; }
  .panel { padding: 32px 16px; border-radius: 28px; }
  .cta { padding: 32px 24px; }
}

/* Page not found */

.not-found {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 64px;
  padding-bottom: 96px;
}

.not-found h1 { font-size: clamp(36px, 5vw, 48px); }
