/* One Clean Line. Set in the game's voice: warm paper, pale gray marks, the system face at small sizes with folio spacing,
   one axis down the middle. The blue belongs to the line; where the line has passed, the paper is white. */
:root { --ink: #1b1b1f; --body: #2c2c31; --mute: #686660; --mark: #c9c5bc; --blue: #2a45f2; --paper: #f1efea; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: center; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; border-radius: 3px; }

/* the foot: page names spaced like folios, on the axis */
.foot { padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot nav { display: flex; justify-content: center; gap: 6px; }
.foot nav a, .made { display: inline-block; padding: 12px 12px; font-size: 13.5px; line-height: 1; letter-spacing: .08em; color: var(--mute); text-decoration: none; }
.foot nav a[aria-current] { color: var(--ink); font-weight: 500; }
.foot a:hover { color: var(--ink); }
.made { margin-top: 2px; letter-spacing: .04em; }

/* ------------------------------------------------------------------ home */
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px 8px; }
.sheet { display: block; width: min(360px, 76vw, 52svh); height: auto; overflow: visible; }
.home h1 { margin: 44px 0 0; font-size: 22px; font-weight: 500; letter-spacing: .07em; line-height: 1.2; }
.tag { margin: 14px auto 0; max-width: 21em; font-size: 16px; line-height: 1.5; letter-spacing: .01em; color: var(--mute); }
.store { margin: 30px 0 0; padding: 0; list-style: none; font-size: 13.5px; letter-spacing: .06em; line-height: 1.4; }
.store.soon { color: var(--mute); }
ul.store { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
ul.store + .store.soon { margin-top: 12px; }
.store-link { display: inline-block; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; letter-spacing: .03em; }
.store-pre { color: var(--mute); font-weight: 400; }

/* the stroke: the paper comes clean behind the line, a full stop closes it, and the sheet is set again */
.clean, .line { stroke-dasharray: 1 1; animation: draw 10s infinite; }
.head { stroke-dasharray: 0 2; animation: head 10s infinite; }
.stop { transform-box: fill-box; transform-origin: center; animation: stop 10s infinite; }
.drawn { animation: settle 10s infinite; }
@keyframes draw {
  0%, 10% { stroke-dashoffset: 1; animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
  58%, 100% { stroke-dashoffset: 0; }
}
@keyframes head {
  0% { stroke-dashoffset: 0; opacity: 0; }
  6% { stroke-dashoffset: 0; opacity: 0; }
  10% { stroke-dashoffset: 0; opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
  58% { stroke-dashoffset: -1; opacity: 1; }
  60%, 100% { stroke-dashoffset: -1; opacity: 0; }
}
@keyframes stop {
  0%, 58% { transform: scale(0); }
  61% { transform: scale(1.25); }
  64%, 100% { transform: scale(1); }
}
@keyframes settle {
  0%, 84% { opacity: 1; }
  94%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .clean, .line, .head, .stop, .drawn { animation: none; }
  .clean, .line { stroke-dashoffset: 0; }
  .head { display: none; }
}

/* ------------------------------------------------------------------ the legal pages: one clean strip of white down the middle */
.top { padding: 22px 16px 18px; }
.name { display: inline-block; padding: 10px 12px; font-size: 13.5px; letter-spacing: .08em; color: var(--mute); text-decoration: none; }
.name:hover { color: var(--ink); }
.strip { width: calc(100% - 24px); max-width: 42rem; margin: 0 auto; padding: 52px clamp(20px, 6vw, 64px) 56px; background: #fff; border-radius: 36px; }
.doc h1 { margin: 0; font-size: clamp(26px, 6.4vw, 32px); font-weight: 500; letter-spacing: .03em; line-height: 1.2; }
.rule { display: block; width: 72px; height: 12px; margin: 20px auto 0; }
.effective { margin: 14px 0 0; font-size: 13.5px; letter-spacing: .06em; color: var(--mute); }
.text { margin-top: 40px; text-align: left; font-size: 16.5px; line-height: 1.65; color: var(--body); counter-reset: s; }
.text p { margin: 0 0 1em; }
.text .lede { font-size: 18px; line-height: 1.55; color: var(--ink); }
.text section { counter-increment: s; margin-top: 46px; }
.text h2 { margin: 0 0 16px; text-align: center; font-size: 17px; font-weight: 500; letter-spacing: .04em; line-height: 1.35; color: var(--ink); }
.text h2::before { content: counter(s, decimal-leading-zero); content: counter(s, decimal-leading-zero) / ""; display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 400; letter-spacing: .14em; color: var(--mute); }
.text ul { margin: 0 0 1em; padding: 0; list-style: none; }
.text li { position: relative; padding-left: 24px; margin: 0 0 .6em; }
.text li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--mark); }
.text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.text a:hover { color: var(--blue); }
.doc .foot { padding-top: 28px; }

/* House style: our own words are lowercase. Trademarks and the body of legal text keep their case. */
h1, h2, h3, nav, header a, footer a, .tag, .label, .name, .title, .made, .band a { text-transform: lowercase; }
