/* Your Bible App — the whole stylesheet.
   No fonts are fetched, no images are fetched, nothing is loaded from another host:
   the Content-Security-Policy in vercel.json forbids it, and the pages rely on nothing it forbids. */

:root {
  color-scheme: light dark;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --paper: #fdfdfb;
  --rule: #d8d5cc;
  --link: #1c4f8b;
  --link-visited: #5a3a8a;
  --focus: #b8541a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e6e1;
    --ink-soft: #b4b1aa;
    --paper: #16171a;
    --rule: #3a3c41;
    --link: #8fbcf0;
    --link-visited: #c4a9ee;
    --focus: #f0a060;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

/* The skip link is visible the moment it takes focus, and only then. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--focus);
  z-index: 10;
}

.skip:focus {
  left: 0;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--link-visited);
}

a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0 0.75rem;
}

.brand {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav {
  margin-top: 0.5rem;
}

.site-nav a,
.site-footer a {
  display: inline-block;
  margin: 0.25rem 1rem 0.25rem 0;
  font-size: 0.95rem;
}

main {
  padding: 1.5rem 0 2.5rem;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2rem 0 0.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

h3 {
  font-size: 1.02rem;
  margin: 1.25rem 0 0.35rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.4rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink);
}

.updated {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.note {
  border-left: 4px solid var(--rule);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 1.25rem 0;
  color: var(--ink-soft);
}

.coming {
  display: inline-block;
  border: 2px solid var(--rule);
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  margin: 0.5rem 0 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0.5rem 0 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1rem;
  font-size: 0.97rem;
}

th,
td {
  border: 1px solid var(--rule);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.table-scroll {
  overflow-x: auto;
}

@media (min-width: 40rem) {
  h1 {
    font-size: 2.15rem;
  }
}
