:root {
  color-scheme: light dark;
  --page: #f3f5ec;
  --surface: #fff;
  --text: #17251d;
  --muted: #536258;
  --border: #d7dfd1;
  --ink: #1b392a;
  --accent: #bbef8a;
  --link: #24563b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111a16;
    --surface: #1c2922;
    --text: #eff6ef;
    --muted: #aebdb3;
    --border: #405348;
    --link: #c4eeb3;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font-size: 1rem; line-height: 1.6; }
.frame { width: min(100%, 540px); margin-inline: auto; padding: 1rem; }
a { color: var(--link); text-underline-offset: .16em; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.skip { position: fixed; inset: .5rem auto auto .5rem; background: var(--surface); padding: .5rem; transform: translateY(-150%); z-index: 1; }
.skip:focus { transform: translateY(0); }
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; padding-block: .5rem; font-weight: 800; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.languages { display: flex; gap: .25rem; }
.languages a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: .5rem; font-size: .875rem; font-weight: 750; text-decoration: none; }
.languages a[aria-current] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.hero { padding: clamp(1rem, 5vw, 1.75rem); border-radius: 1.5rem; background: var(--ink); color: #f7fbf3; }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 800; }
h1, h2, h3 { line-height: 1.18; margin-block: 0 .5rem; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 5.2vw, 2.4rem); letter-spacing: -.025em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .85rem; }
p:last-child { margin-bottom: 0; }
.hero p { color: #e2ede1; }
.actions { display: grid; gap: .6rem; margin-top: 1.2rem; }
.button { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: .8rem; font-weight: 800; text-align: center; text-decoration: none; background: var(--surface); color: var(--text); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #17251d; }
.hero .button { background: #294b3a; color: #f7fbf3; border-color: #608471; }
.hero .button.primary { background: var(--accent); border-color: var(--accent); color: #17251d; }
.hero a:focus-visible { outline-color: #f7fbf3; }
.block { margin-top: 1.45rem; }
.guide-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .6rem; }
.guide-link { display: block; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; color: var(--text); text-decoration: none; }
.guide-link:hover, .button:hover { box-shadow: inset 0 0 0 1px currentColor; }
.guide-link strong { display: block; line-height: 1.3; }
.guide-link span { display: block; color: var(--muted); font-size: .94rem; margin-top: .2rem; }
.breadcrumb { margin-bottom: .7rem; }
.article-intro { color: var(--muted); }
.article-section { padding: 1rem; margin-block: .65rem; background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; }
.sources { padding-inline-start: 1.2rem; margin-block: .35rem 0; }
.footer { margin-block: 1.4rem 0; padding-block: .9rem .3rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .875rem; }
