/* VisionAssist's web pages: the privacy policy, support, and the front page.
   One small stylesheet, no fonts or scripts fetched from anywhere: the pages
   load nothing but themselves. Large type and strong contrast, since many
   readers have low vision; everything works with a screen reader, zoomed to
   400%, and in dark mode. */

:root {
  --bg: #fbfaf7;
  --fg: #1d1f1e;
  --muted: #5a605e;
  --accent: #0b5f5c;
  --accent-ink: #ffffff;
  --rule: #d9ddd9;
  --card: #f1f3f0;
  --focus: #c8651b;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191a;
    --fg: #ecefec;
    --muted: #aeb6b2;
    --accent: #5fc8c0;
    --accent-ink: #0f1a19;
    --rule: #333b3a;
    --card: #1e2425;
    --focus: #f0a04b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { font-size: 112.5%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

header.top {
  border-bottom: 1px solid var(--rule);
}
header.top .inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.4rem;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--fg);
}
nav.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
}
nav.site a { color: var(--accent); text-decoration: none; font-weight: 600; }
nav.site a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.2em; }

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
h1 { font-size: 2rem; margin: 0.4rem 0 0.6rem; }
h2 { font-size: 1.4rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
p, li { max-width: 65ch; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--accent); }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.lead { font-size: 1.2rem; color: var(--muted); }
.meta { color: var(--muted); margin-bottom: 1.5rem; }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 0.6rem;
  margin: 0.2rem 0.4rem 0.2rem 0;
}
.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

dl.facts { margin: 0 0 1rem; }
dl.facts dt { font-weight: 700; margin-top: 0.8rem; }
dl.facts dd { margin: 0.1rem 0 0 0; max-width: 65ch; }

table { border-collapse: collapse; width: 100%; margin: 0 0 1.2rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem 0.5rem 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 700; }
.scroll { overflow-x: auto; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95em; }

footer.bottom {
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
footer.bottom .inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
  font-size: 0.95rem;
}
footer.bottom a { color: var(--accent); }

@media (max-width: 480px) {
  html { font-size: 106%; }
  h1 { font-size: 1.7rem; }
}

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