/* Placeholder palette until the logo and brand colours are ready (TODO 81) - change the tokens only. */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1c1d22;
  --muted: #5b5e6b;
  --border: #e3e4ea;
  --accent: #3b5bdb;
  --accent-text: #ffffff;
  --accent-soft: #edf1ff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121318;
    --surface: #1b1d24;
    --text: #e9eaf0;
    --muted: #a3a6b4;
    --border: #2d303a;
    --accent: #8ea6ff;
    --accent-text: #10131d;
    --accent-soft: #1f2640;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1040px; margin: 0 auto; padding: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px;
}
nav { display: flex; align-items: center; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--text); }

.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: 8px; padding: 2px 10px; font-size: 14px;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.langs {
  position: absolute; right: 0; top: 36px; z-index: 1; margin: 0; padding: 6px 0; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-width: 150px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}
.langs a { display: block; padding: 6px 16px; color: var(--text); text-decoration: none; }
.langs a:hover { background: var(--accent-soft); }
.langs a[aria-current] { font-weight: 600; }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }
main.text { max-width: 760px; }
section { margin-top: 56px; }
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 26px; margin: 0 0 16px; }

.hero { text-align: center; margin-top: 48px; }
.hero h1 { font-size: clamp(40px, 9vw, 64px); margin: 0; letter-spacing: -0.02em; }
.slogan { font-size: clamp(20px, 4vw, 26px); color: var(--accent); margin: 8px 0 20px; font-weight: 600; }
.lead { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 19px; }
.soon {
  display: inline-block; margin-top: 24px; padding: 6px 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--text); font-size: 15px;
}

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.features h3 { margin: 0 0 6px; font-size: 18px; }
.features p { margin: 0; color: var(--muted); }

.topics { columns: 2 260px; padding-left: 20px; }
.topics li { break-inside: avoid; margin-bottom: 4px; }

.examples {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); gap: 20px;
  justify-content: center; align-items: start;
}
.examples figure { margin: 0; }
.examples img { border: 1px solid var(--border); border-radius: 14px; display: block; }
.examples figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-block; padding: 10px 20px; border-radius: 10px; text-decoration: none; font-weight: 600;
  background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent);
}
.button.secondary { background: transparent; color: var(--accent); }

.updated { color: var(--muted); }
main.text h2 { font-size: 21px; margin-top: 32px; }

footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; text-align: center; padding: 20px 16px; }
footer a { color: var(--muted); }

.chooser { max-width: 420px; margin: 15vh auto; padding: 0 16px; text-align: center; }
.chooser ul { list-style: none; padding: 0; }
.chooser li { margin: 10px 0; }
