:root {
  --bg: #ffffff;
  --text: #1a1d24;
  --muted: #4a5160;
  --line: #d9dde5;
  --accent: #5b2bd6;
  --accent-text: #ffffff;
  --panel: #f5f6f9;
  --focus: #0b57d0;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161b;
    --text: #eceef3;
    --muted: #b4bac7;
    --line: #333844;
    --accent: #b9a2ff;
    --accent-text: #14161b;
    --panel: #1d2027;
    --focus: #8ab4ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { top: 1rem; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; }

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  color: var(--text);
}
nav a[aria-current="page"] { font-weight: 700; color: var(--accent); }

main { padding: 2.5rem 0 3rem; }

h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }

.lead { font-size: 1.2rem; color: var(--muted); margin-top: 0; }
.updated { color: var(--muted); font-size: 0.95rem; }

.btn {
  display: inline-block;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }

.shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 2rem 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }

ul.plain li { margin: 0.35rem 0; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
footer.site .wrap { padding-top: 1.5rem; padding-bottom: 2rem; }
footer.site ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}
footer.site a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
