/* Guide pages (/learn-…): same palette and type as the home page, article layout. */
:root {
  --bg: #fbfaf7; --fg: #15171a; --muted: #5d6470; --line: #e6e2da; --card: #ffffff;
  --accent: #1f5fbf; --gold: #f2c94c; --hero: #0f1720; --hero-fg: #f4f6f8;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111418; --fg: #eceff3; --muted: #9aa3ae; --line: #262c33; --card: #171b20; --accent: #5b9bff; --hero: #0b1016; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans", sans-serif; }
a { color: var(--accent); }
.bar { background: var(--hero); }
.bar .in { max-width: 760px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--hero-fg); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.bar nav a { color: #93a0ae; text-decoration: none; font-size: 15px; margin-left: 14px; }
main { max-width: 760px; margin: 0 auto; padding: 28px 20px 40px; }
h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -0.015em; }
h2 { font-size: 23px; margin: 36px 0 8px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 22px 0 4px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); }
li { margin: 4px 0; }
kbd { font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--card); }
.install { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 24px 0; }
.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: #1a1400; font-weight: 700; padding: 12px 20px; border-radius: 12px; text-decoration: none; }
.cta small { font-weight: 500; opacity: .75; }
.install p { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.install p strong { color: var(--fg); }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 10px 0; }
td, th { border-top: 1px solid var(--line); padding: 8px 6px; text-align: start; vertical-align: top; }
td:first-child, th:first-child { white-space: nowrap; } /* short level labels ("入门", "Nybörjare") stay on one line */
th { font-weight: 600; }
.note { border-inline-start: 3px solid var(--gold); padding-block: 4px; padding-inline: 14px 0; color: var(--muted); }
footer { max-width: 760px; margin: 0 auto; padding: 24px 20px 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }
footer ul { padding-inline-start: 18px; }
.langs a { white-space: nowrap; }
/* Scripts the default stack may lack (Arabic/Persian, Thai, Ge'ez for Tigrinya): system fonts only,
   listed after the UI font so Latin keeps it and the browser falls through per character. */
body:lang(ar), body:lang(fa), body:lang(ckb) { font-family: system-ui, -apple-system, "Segoe UI", "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, sans-serif; line-height: 1.8; }
body:lang(th) { font-family: system-ui, -apple-system, "Segoe UI", "Leelawadee UI", Thonburi, "Noto Sans Thai", Tahoma, sans-serif; line-height: 1.8; }
body:lang(ti), body:lang(am) { font-family: system-ui, -apple-system, "Segoe UI", Ebrima, Nyala, Kefa, "Noto Sans Ethiopic", "Abyssinica SIL", sans-serif; line-height: 1.75; }
:lang(ar) :is(h1, h2), :lang(fa) :is(h1, h2), :lang(th) :is(h1, h2), :lang(ti) :is(h1, h2) { letter-spacing: 0; }
