:root {
  --bg: #ffffff;
  --band: #f4f6f9;
  --text: #14171f;
  --muted: #474e5c;
  --line: #d9dde4;
  --link: #0e7490;
  --focus: #0e7490;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1015;
    --band: #151821;
    --text: #e8eaf0;
    --muted: #aab1bf;
    --line: #2a2f3b;
    --link: #22d3ee;
    --focus: #22d3ee;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  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.6;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

.top { border-bottom: 1px solid var(--line); }
.top .wrap { padding-top: 14px; padding-bottom: 14px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand img { display: block; border-radius: 9px; }

main { flex: 1; }
main.wrap { padding-top: 40px; padding-bottom: 48px; }

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
}

h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
}

p { margin: 0; }

.lead { margin-top: 16px; font-size: 1.1875rem; color: var(--text); }

section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
section p { color: var(--muted); }

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.foot { border-top: 1px solid var(--line); background: var(--band); color: var(--muted); font-size: 0.9375rem; }
.foot .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
