:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #0e1b2c;
  --muted: #4a5a6e;
  --line: #d9e0ea;
  --accent: #1f5f9e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1622;
    --surface: #132233;
    --text: #e8eef5;
    --muted: #a9b8c8;
    --line: #22364b;
    --accent: #8cc2f2;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

header, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand { font-weight: 600; font-size: 1.125rem; color: var(--text); text-decoration: none; }
.lang { font-size: 0.9375rem; }

a { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1 { font-size: 2rem; line-height: 1.2; margin: 1rem 0 0.25rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.updated { color: var(--muted); margin-top: 0; }
.lead { font-size: 1.1875rem; }

ul { padding-left: 1.25rem; }
li { margin: 0.4rem 0; }

.hero { padding: 3rem 0 1rem; }
.hero h1 { font-size: 2.75rem; }
.hero .lead { color: var(--muted); margin-top: 0; }

.cards { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.cards a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
}
.cards strong { display: block; }
.cards span { color: var(--muted); }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
}
summary { cursor: pointer; font-weight: 600; }
details p { margin-bottom: 0; }

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.75rem; border-radius: 8px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.app-icon { display: block; width: 96px; height: 96px; margin-bottom: 0.5rem; }
