:root { color-scheme: light dark; --ink: #302a26; --muted: #756a62; --paper: #fbfaf7; --card: #fff; --line: #e9e3dc; --accent: #bd5d3f; --accent-hover: #8c3f29; --accent-dark: #8c3f29; --soft: #f2e8df; --hover-border: #d7b3a4; --opt-border: #dfd6cb; --hover-bg: #fff5f0; --shadow: 0 8px 24px rgba(48, 42, 38, .05); --ok-border: #4f7942; --ok-bg: #eaf3e7; --ok-ink: #2f5226; --err-border: #b45345; --err-bg: #fbede8; --err-ink: #7a2d23; }
:root[data-theme="dark"] { --ink: #eceae2; --muted: #a3a095; --paper: #151613; --card: #1f201c; --line: #2d2f29; --accent: #d06d4d; --accent-hover: #9e4b31; --accent-dark: #f0a184; --soft: #2c201b; --hover-border: #c07659; --opt-border: #3d4037; --hover-bg: #2c201b; --shadow: 0 8px 24px rgba(0, 0, 0, .35); --ok-border: #587851; --ok-bg: #1e2b1d; --ok-ink: #9fd094; --err-border: #8e4a3e; --err-bg: #311e1b; --err-ink: #f09a8b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #eceae2; --muted: #a3a095; --paper: #151613; --card: #1f201c; --line: #2d2f29; --accent: #d06d4d; --accent-hover: #9e4b31; --accent-dark: #f0a184; --soft: #2c201b; --hover-border: #c07659; --opt-border: #3d4037; --hover-bg: #2c201b; --shadow: 0 8px 24px rgba(0, 0, 0, .35); --ok-border: #587851; --ok-bg: #1e2b1d; --ok-ink: #9fd094; --err-border: #8e4a3e; --err-bg: #311e1b; --err-ink: #f09a8b; }
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent-dark); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
.wrap { width: min(100% - 40px, 1080px); margin-inline: auto; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: 1.35rem; font-weight: 750; letter-spacing: -.06em; text-decoration: none; }
.brand span { color: var(--accent); }
.nav a:last-child { font-size: .95rem; font-weight: 650; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.language-links { font-size: .8rem; font-weight: 700; }
.language-links a { color: var(--muted); text-decoration: none; }
.language-links a:hover { color: var(--ink); }
.language-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
.theme-toggle { display: inline-grid; place-items: center; flex: none; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--opt-border); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; transition: border-color .15s, background .15s; }
.theme-toggle:hover { border-color: var(--hover-border); background: var(--hover-bg); }
main { padding-block: clamp(48px, 9vw, 104px); }
.eyebrow { color: var(--accent-dark); font-size: .78rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; }
h1 { max-width: 850px; margin: 14px 0 20px; font-size: clamp(2.4rem, 7vw, 5.2rem); }
h2 { margin: 2.5em 0 .6em; font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { margin: 1.5em 0 .4em; font-size: 1.2rem; }
p { max-width: 72ch; margin: .75em 0; color: var(--muted); }
.lead { max-width: 65ch; font-size: clamp(1.12rem, 2.5vw, 1.35rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 19px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--accent-hover); color: #fff; }
.button.secondary { background: transparent; color: var(--accent-dark); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 26px; }
.card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--hover-border); color: inherit; }
.card h3 { margin-top: 0; color: var(--ink); }
.card p { margin-bottom: 0; font-size: .95rem; }
.callout { margin-block: 28px; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--soft); }
.callout p { margin: 0; }
.example { display: inline-block; margin: 4px 0; padding: 3px 9px; border-radius: 5px; background: var(--soft); color: var(--ink); font-weight: 650; }
.crumbs { color: var(--muted); font-size: .9rem; }
.crumbs a { color: inherit; }
footer { padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer p { margin: 0; }
@media (max-width: 560px) { .wrap { width: min(100% - 28px, 1080px); } .nav { flex-wrap: wrap; gap: 10px 12px; padding-block: 16px; } .nav-actions { gap: 8px 10px; flex-wrap: wrap; } main { padding-block: 45px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
/* Touch targets: nav, language switcher, breadcrumbs and footer links >= 44px */
.nav a, .language-links a, .crumbs a, footer a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.brand { padding-inline: 4px; }
.language-links { display: inline-flex; align-items: center; gap: 2px; }
.language-links a { justify-content: center; padding-inline: 8px; }
.nav a:last-child { padding-inline: 4px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
footer p { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
/* Interactive landing mini-quiz (zero login required) */
.demo-box { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.demo-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--accent-dark); font-size: .82rem; font-weight: 750; }
.demo-step { color: var(--muted); font-size: .9rem; font-weight: 700; }
.demo-q { margin: 8px 0 16px; font-size: 1.25rem; font-weight: 750; color: var(--ink); line-height: 1.35; }
.demo-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.demo-opt { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border: 1px solid var(--opt-border); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 650; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.demo-opt:hover:not(:disabled) { border-color: var(--accent); background: var(--hover-bg); }
.demo-opt.is-right { border-color: var(--ok-border); background: var(--ok-bg); color: var(--ok-ink); }
.demo-opt.is-wrong { border-color: var(--err-border); background: var(--err-bg); color: var(--err-ink); }
.demo-feedback { margin-top: 14px; font-size: .95rem; font-weight: 600; color: var(--ink); min-height: 24px; }
.demo-next { margin-top: 14px; }
