/* The look of the reading pages (manual, downloads, about, terms, refunds, privacy), taken from /coven:
   near-black, no glow blobs, solid sans headings that stay readable at any size. */
:root {
  --ink: #060607; --head: #ece9f0; --text: #b8b5be; --dim: #7d7d86; --faint: #26262c; --red: #d8263a;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { background: var(--ink); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { line-height: 1.65; }
a { color: var(--head); }

/* top bar, the same as /coven */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
       padding: 22px 4vw; font-size: 13px; letter-spacing: .08em; }
.barfade { position: fixed; inset: 0 0 auto 0; height: 110px; z-index: 19; pointer-events: none;
           background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.85) 40%, transparent 100%); }
.bar .brand { display: block; line-height: 0; }
.bar .brand img { height: 11px; width: auto; display: block; }
.bar .links a { margin-left: 28px; text-decoration: none; color: #fff; opacity: .7; }
.bar .links a:hover, .bar .links a[aria-current=page] { opacity: 1; }
.bar .links a[aria-current=page] { box-shadow: 0 1px 0 var(--red); }

main { width: min(760px, 100%); margin: 0 auto; padding: 150px 24px 90px; }
.wide { width: min(1000px, 100%); }
.kicker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -.035em; color: var(--head); }
.lead { margin-top: 24px; max-width: 580px; font-size: 18px; color: var(--dim); }
.page-head { margin-bottom: 56px; }

/* long text: manual, legal, about */
.doc { font-size: 17px; }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.1; letter-spacing: -.03em;
          color: var(--head); margin: 72px 0 16px; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--red); font-weight: 600; margin: 36px 0 10px; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 22px; }
.doc li { margin-bottom: 7px; }
.doc strong, .doc b { color: var(--head); font-weight: 600; }
.doc code { font-family: Menlo, Consolas, monospace; font-size: .86em; background: #121216; border: 1px solid var(--faint); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.doc pre { background: #121216; border: 1px solid var(--faint); padding: 14px 16px; border-radius: 8px; overflow-x: auto; margin: 6px 0 18px; }
.doc pre code { background: none; border: 0; padding: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15.5px; display: block; overflow-x: auto; }
.doc th, .doc td { border-bottom: 1px solid var(--faint); padding: 10px 14px 10px 0; text-align: left; vertical-align: top; }
.doc th { color: var(--dim); font-weight: 500; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.doc td:first-child { color: var(--head); white-space: nowrap; }
.doc img { width: 100%; display: block; border-radius: 8px; border: 1px solid var(--faint); margin: 8px 0 22px; }
.doc .date { margin-top: 40px; font-size: 13px; color: var(--dim); }

footer { width: min(1100px, 100%); margin: 0 auto; padding: 6vh 24px 8vh; border-top: 1px solid var(--faint);
         display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; font-size: 12px; color: #55555e; letter-spacing: .06em; }
footer a { color: inherit; text-decoration: none; margin-left: 22px; }
footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .bar { padding: 20px 5vw; }
  .bar .brand img { height: 8px; }
  .bar .links a[href="/about/"] { display: none; }   /* About is in the footer */
  .bar .links a { margin-left: 14px; font-size: 12px; letter-spacing: .04em; }
  main { padding-top: 120px; }
  .doc td:first-child { white-space: normal; }
  footer { flex-direction: column; }
  footer div:last-child { display: flex; flex-wrap: wrap; gap: 12px 20px; }
  footer a { margin-left: 0; }
}
