/* Quiet Order. The site borrows the game's own chrome: white paper, near-black ink, one vermilion piece,
   small labels in the four corners, and Bricolage Grotesque.
   Typeface: Bricolage Grotesque, Medium and SemiBold, Latin subset. Copyright 2022 The Bricolage Grotesque Project Authors
   (https://github.com/ateliertriay/bricolage). SIL Open Font License 1.1 (/fonts/OFL.txt). Served from this site. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/bricolage-500.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/bricolage-600.woff2) format("woff2"); }

:root { --ink: #17171b; --body: #3b3b41; --mute: #66666d; --faint: #b4b3b0; --red: #f2492c; --wall: #f1f0ec; --fs: 13.5px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; background: #fff; color: var(--ink);
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Roboto, Arial, sans-serif; font-weight: 500;
  font-kerning: normal; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* the labels: a band at the top and at the bottom, one word in each corner */
.band { display: flex; justify-content: space-between; align-items: center; padding: 8px 6px; }
.band nav { display: flex; }
.label { display: inline-block; padding: 14px 12px; font-size: var(--fs); line-height: 1; letter-spacing: .02em; color: var(--mute); text-decoration: none; white-space: nowrap; }
.label.ink, .label[aria-current] { color: var(--ink); }
.label.ink { font-weight: 600; }
a.label:hover { color: var(--ink); }

/* ------------------------------------------------------------------ home: one print on the wall */
.home { background: var(--wall); }
.stage { --pw: min(372px, 74vw, calc((100svh - 290px) * .75)); align-self: center; justify-self: center; width: max(var(--pw), 248px); margin: 8px 0 24px; }
.print { margin: 0; }
.print svg { display: block; width: 100%; height: auto; box-shadow: 0 1px 2px rgba(23, 23, 27, .04), 0 12px 32px -18px rgba(23, 23, 27, .18); }
.cap { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 18px; }
h1 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.home h1 { font-size: 27px; }
.tag { margin: 10px 0 0; font-size: 15px; line-height: 1.45; letter-spacing: .01em; color: var(--mute); max-width: 22em; }
.n { margin: 9px 0 0; font-size: var(--fs); line-height: 1; letter-spacing: .02em; color: var(--mute); }
.store { margin: 22px 0 0; padding: 0; list-style: none; font-size: var(--fs); letter-spacing: .02em; line-height: 1.4; }
.store.soon { color: var(--mute); }
.store.soon::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--ink); vertical-align: 1px; }
ul.store { display: flex; flex-wrap: wrap; gap: 10px; }
ul.store + .store.soon { margin-top: 12px; }
.store-link { display: inline-block; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.store-pre { font-weight: 500; opacity: .75; }
.made { color: var(--mute); }

/* the piece out of place glides into the gap; the sheet is in order, and earns its seal */
.piece { animation: settle 9s infinite; }
.seal { animation: seal 9s infinite; transform-origin: 282px 386px; }
@keyframes settle {
  0% { transform: translate(40px, 92px); opacity: 0; animation-timing-function: ease-out; }
  7% { transform: translate(40px, 92px); opacity: 1; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  20% { transform: translate(40px, 92px); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  44% { transform: translate(0, 0); opacity: 1; }
  86% { transform: translate(0, 0); opacity: 1; animation-timing-function: ease-in; }
  95% { transform: translate(0, 0); opacity: 0; }
  100% { transform: translate(40px, 92px); opacity: 0; }
}
@keyframes seal {
  0%, 50% { opacity: 0; transform: scale(.4); }
  56% { opacity: 1; transform: scale(1); }
  86% { opacity: 1; }
  95%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .piece, .seal { animation: none; }
}

/* ------------------------------------------------------------------ the legal pages: a fresh white sheet */
.sheet { width: 100%; max-width: 38rem; margin: 0 auto; padding: 40px 20px 72px; }
.row { display: flex; gap: 7px; margin-bottom: 22px; }
.row i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.row i.r { background: var(--red); }
.doc h1 { font-size: clamp(30px, 7vw, 40px); }
.effective { margin: 14px 0 0; font-size: var(--fs); letter-spacing: .02em; color: var(--mute); }
.text { margin-top: 36px; font-size: 16.5px; line-height: 1.62; color: var(--body); counter-reset: s; }
.text p { margin: 0 0 1em; }
.text .lede { font-size: 19px; line-height: 1.5; color: var(--ink); margin-bottom: 8px; }
.text section { counter-increment: s; margin-top: 44px; }
.text h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 14px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); }
.text h2::after { content: counter(s, decimal-leading-zero); content: counter(s, decimal-leading-zero) / ""; font-size: var(--fs); font-weight: 500; letter-spacing: .02em; color: var(--mute); }
.text ul { margin: 0 0 1em; padding: 0; list-style: none; }
.text li { position: relative; padding-left: 22px; margin: 0 0 .6em; }
.text li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.text a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--faint); overflow-wrap: anywhere; }
.text a:hover { text-decoration-color: var(--red); }
.doc .band:last-child { border-top: 1px solid #ecebe7; }

/* 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; }
