/* fanntasy.com/terms and /privacy (D-367): the app's legal words on the teaser's paper (D-398; the token names are from the old night page). Written by hand; the pages by build-legal.mjs. */
@font-face { font-family: "Gloock"; src: url("fonts/gloock.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --night: #f6f3ec; --edge: #f6f3ec; --scarlet: #2b50ff; --alta: #2b50ff;
  --moon: #15130f; --soft: rgb(21 19 15 / .74); --faint: rgb(21 19 15 / .52); --line: rgb(21 19 15 / .12);
  --serif: "Gloock", Georgia, serif; --ui: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; color: var(--moon); font: 400 16px/1.65 var(--ui); -webkit-font-smoothing: antialiased;
  background: var(--night);
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--alta); outline-offset: 3px; border-radius: 4px; }

.bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(20px, env(safe-area-inset-right, 0px)) 14px max(20px, env(safe-area-inset-left, 0px));
  background: rgb(246 243 236 / .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.home { display: block; flex: none; width: 112px; color: var(--moon); }
.home svg { display: block; width: 100%; height: auto; }
.bar nav { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.bar nav::-webkit-scrollbar { display: none; }
.bar nav a { flex: none; white-space: nowrap; text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 999px; color: var(--soft); border: 1px solid transparent; }
.bar nav a[aria-current="page"] { color: var(--moon); border-color: rgb(21 19 15 / .25); background: rgb(21 19 15 / .06); }

main { max-width: 760px; margin: 0 auto; padding: 40px max(20px, env(safe-area-inset-left, 0px)) 24px; }
h1 { font: 400 clamp(40px, 9vw, 68px)/1 var(--serif); letter-spacing: -.02em; margin: 8px 0 20px; }
.summary { font-size: 18px; color: var(--soft); margin: 0 0 10px; }
.ver { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 32px; }

.toc { border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin-bottom: 40px; background: rgb(21 19 15 / .03); }
.toc h2 { font: 600 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 28px; }
.toc li { break-inside: avoid; }
.toc a { display: flex; gap: 8px; padding: 5px 0; text-decoration: none; color: var(--soft); font-size: 15px; }
.toc a:hover { color: var(--moon); }

section { padding-top: 8px; margin-bottom: 36px; }
section h2 { display: flex; gap: 12px; font: 400 26px/1.2 var(--serif); margin: 0 0 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.lead { color: var(--soft); margin: 0 0 16px; }
.n { color: var(--alta); font-variant-numeric: tabular-nums; flex: none; }
.cls, .sub { list-style: none; margin: 0; padding: 0; }
.cl { display: grid; grid-template-columns: 44px 1fr; gap: 4px; margin: 0 0 16px; }
.cl > .n { font-size: 14px; padding-top: 3px; }
.cl p { margin: 0; color: rgb(21 19 15 / .9); }
.cl strong { color: var(--moon); font-weight: 600; }
.soon { color: var(--alta) !important; }
.sub { margin-top: 10px; }
.sub li { display: grid; grid-template-columns: 32px 1fr; gap: 2px; margin: 0 0 8px; }
.sub .n { font-size: 14px; padding-top: 2px; }
.sub p { color: var(--soft); }

.foot { max-width: 760px; margin: 0 auto; padding: 28px max(20px, env(safe-area-inset-left, 0px)) calc(env(safe-area-inset-bottom, 0px) + 40px); display: flex; flex-wrap: wrap; gap: 10px 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.foot a { color: var(--soft); text-decoration: none; border-bottom: 1px solid rgb(21 19 15 / .2); }

@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .home { width: 96px; }
  .cl { grid-template-columns: 38px 1fr; }
  section h2 { font-size: 23px; }
}
