/* Shared by help/ and privacy-policy.html.
   These two were built before the main page settled, and kept their own type
   scale, their own teal-boxed components and a light-mode block that index.html
   dropped months ago -- so clicking Support from the footer landed you on what
   looked like a different site. This is index.html's vocabulary and nothing
   else: the same three type sizes, the same ground, one accent used the way the
   main page uses it, and hairlines instead of tinted boxes.

   A file rather than two copies of the same inline block, because two copies
   drift. It is the only stylesheet on the site; index.html stays self-contained
   because it is the page that has to paint fastest. */

:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --text-dim: #b0b0b0;
  --accent: #14d9d4;

  --type-statement: clamp(1.9rem, 3.6vw, 2.5rem);
  --type-read: 1.0625rem;
  --type-label: 0.78rem;
}

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

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

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  color: #0a0a0a;
  font-size: var(--type-label);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus { left: 0; }

[id] { scroll-margin-top: 2rem; }

/* 720px is the main page's one measure for centred running text; these pages
   are nothing but running text. */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 4.25rem 0 3rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--text); }

h1 {
  margin: 0 0 0.9rem;
  font-size: var(--type-statement);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.intro,
.updated {
  margin: 0 0 3rem;
  font-size: var(--type-read);
  color: var(--text-dim);
}

/* The main page spends its accents on one eyebrow per section. Same here: the
   category label is the only coloured thing on the page. */
h2 {
  margin: 3.25rem 0 1.25rem;
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

h3 {
  margin: 0 0 0.6rem;
  font-size: var(--type-read);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

p {
  margin: 0 0 1.1rem;
  font-size: var(--type-read);
  line-height: 1.7;
  color: var(--text-dim);
}

ul, ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  font-size: var(--type-read);
  line-height: 1.7;
  color: var(--text-dim);
}

li { margin-bottom: 0.5rem; }

/* Was a teal-tinted box with a 3px left border -- a component the main page
   has nowhere. A hairline above each entry does the same separating with the
   vocabulary the rest of the site already uses. */
.faq {
  margin: 1.75rem 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.faq p { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(20, 217, 212, 0.35); transition: border-color 0.2s ease; }
a:hover { border-bottom-color: var(--accent); }
.back-link, .skip-link { border-bottom: 0; }

.page-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.page-footer p {
  margin: 0;
  font-size: var(--type-label);
}

.page-footer a { color: var(--text-dim); border-bottom-color: rgba(255, 255, 255, 0.25); }
.page-footer a:hover { color: var(--text); border-bottom-color: currentColor; }

.page-footer .footer-maker {
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
  .container { padding: 3rem 0 2rem; }
  .page-footer { padding: 3rem 0 3rem; }
  h2 { margin-top: 2.5rem; }
}
