/* One stylesheet for every page. The app opens these pages in an in-app Safari view, so they are set for reading on a
   phone first: system type at 17px, a line length near 65 characters, and the reader's light or dark appearance. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1c1c1e;
  --muted: #6c6c70;
  --rule: #e5e5ea;
  --link: #0a66c2;
  --notice-bg: #fff8e6;
  --notice-rule: #f0c24b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f2f2f7;
    --muted: #98989f;
    --rule: #2c2c2e;
    --link: #64a8ff;
    --notice-bg: #2a2310;
    --notice-rule: #8a6d1f;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.brand { font-weight: 600; color: var(--text); text-decoration: none; }
.domain { color: var(--muted); font-size: 15px; }

h1 { font-size: 28px; line-height: 1.25; margin: 32px 0 4px; }
h2 { font-size: 21px; line-height: 1.3; margin: 32px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }

.updated { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

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

.notice {
  background: var(--notice-bg);
  border-left: 4px solid var(--notice-rule);
  padding: 12px 16px;
  margin: 24px 0;
  border-radius: 4px;
}

.documents { list-style: none; padding: 0; }
.documents li { border-bottom: 1px solid var(--rule); margin: 0; }
.documents a { display: block; padding: 16px 0; text-decoration: none; font-weight: 500; }

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}

footer nav a { margin-right: 16px; }
