/* OpenViacam page. Many readers move the pointer with their head, so the
   text is large, the targets are large, and nothing moves. */

:root {
  --bg: #ffffff;
  --text: #1b1b1f;
  --muted: #4a4a52;
  --link: #0b4fb3;
  --button-bg: #0b4fb3;
  --button-text: #ffffff;
  --note-bg: #fff4d6;
  --note-border: #b88a00;
  --rule: #d6d6dc;
  --focus: #d14900;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161a;
    --text: #ececf1;
    --muted: #b8b8c2;
    --link: #9cc3ff;
    --button-bg: #9cc3ff;
    --button-text: #0b1e3d;
    --note-bg: #33290d;
    --note-border: #e0b43c;
    --rule: #3a3b42;
    --focus: #ffab70;
  }
}

* { box-sizing: border-box; }

html { font-size: 125%; }

body {
  margin: 0;
  padding: 0 16px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

header, main, footer {
  max-width: 40rem;
  margin: 0 auto;
}

header { padding: 2.5rem 0 0.5rem; }

h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }

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

a { color: var(--link); text-underline-offset: 0.15em; }

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

/* A large target, so a dwell click is easy. */
.button {
  display: inline-block;
  min-height: 4rem;
  padding: 1rem 2rem;
  border-radius: 0.6rem;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.note {
  padding: 1rem 1.25rem;
  border-left: 6px solid var(--note-border);
  background: var(--note-bg);
  border-radius: 0.3rem;
}

ul { padding-left: 1.4rem; }
li { margin-bottom: 0.6rem; }

.signature { font-style: italic; color: var(--muted); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  padding: 0.75rem 1rem;
  background: var(--bg);
}

footer {
  margin-top: 3rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 30rem) {
  html { font-size: 112.5%; }
  .button { display: block; text-align: center; }
}

/* The logo beside the title. It is decoration: the title says the name. */
.logo { width: 4rem; height: 4rem; vertical-align: middle; margin-right: 0.75rem; }
