/* $POWDER whitepaper page. Not a whitepaper. A white paper, with flour on it. */

.wp { position: relative; z-index: 2; padding: calc(var(--hdr) + 46px) 16px 70px; }

/* ---------- top ---------- */
.wp-hero { max-width: 1040px; margin: 0 auto; text-align: center; }
.wp-title { font-size: clamp(70px, 10.6vw, 164px); }
.wp-sub { margin: 18px auto 0; max-width: 660px; font: 400 clamp(22px, 2.3vw, 30px)/1.25 var(--hand); color: var(--chalk-2); }
.wp-sub b { font-weight: 400; color: var(--yellow); }
.wp-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 28px; margin-top: 28px; }
.wp-cta .btn-red, .wp-end .btn-red { cursor: pointer; }
.wp-status { min-height: 1.3em; margin-top: 14px; font: 400 15px/1.3 var(--type); color: var(--chalk-2); text-align: center; }

/* ---------- the stack of sheets ---------- */
.wp-stack { position: relative; max-width: 780px; margin: 150px auto 0; }
.sheet {
  --rr: -.7deg;
  position: relative; margin: 0;
  padding: clamp(30px, 5vw, 56px) clamp(22px, 5.4vw, 62px) clamp(30px, 4.6vw, 52px);
  color: #1d1d1d; font: 400 18px/1.62 var(--type);
  background-color: #fbf8f1;
  background-image:
    radial-gradient(circle at 14% 22%, rgba(0, 0, 0, .06) 0 1.4px, transparent 2px),
    radial-gradient(circle at 81% 64%, rgba(0, 0, 0, .05) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 46% 88%, rgba(0, 0, 0, .05) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 93% 12%, rgba(0, 0, 0, .04) 0 1.1px, transparent 1.6px),
    radial-gradient(ellipse 340px 120px at 0% 100%, rgba(255, 255, 255, .9), transparent 70%),
    linear-gradient(180deg, #fdfbf6, #f6f1e5);
  box-shadow: 0 26px 46px rgba(0, 0, 0, .5), 0 2px 0 rgba(0, 0, 0, .06);
  transform: rotate(var(--rr));
}
.sheet + .sheet { margin-top: 44px; }
.sheet:nth-of-type(even) { --rr: .6deg; }
.sheet:nth-of-type(3n) { --rr: -.3deg; }
.sheet p { margin: 0 0 14px; }
.sheet p:last-child { margin-bottom: 0; }
.sheet h2 { margin: 0 0 12px; font: 400 clamp(30px, 4.2vw, 48px)/1.04 var(--marker); }
.sheet h3 {
  display: inline-block; margin: 32px 0 12px;
  font: 400 clamp(26px, 3.1vw, 34px)/1.1 var(--marker);
  text-decoration: underline wavy var(--red) 2px; text-underline-offset: 9px;
}
.sheet h3:first-child { margin-top: 0; }
.sheet b { font-weight: 400; background: linear-gradient(180deg, transparent 58%, rgba(255, 210, 63, .7) 58% 92%, transparent 92%); }

.sh-kick {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding-bottom: 12px; margin-bottom: 22px !important;
  font: 400 14px/1.3 var(--type); letter-spacing: .12em; text-transform: uppercase; color: #7b7568;
  border-bottom: 4px double rgba(0, 0, 0, .35);
}
.sh-auth { font-size: 15px; color: #6c665b; }
.sh-fine { font-size: 14px; line-height: 1.5; color: #6c665b; }

/* margin notes in red pen */
.note {
  position: absolute; z-index: 2; margin: 0;
  font: 400 23px/1.05 var(--hand); color: #d6302a;
  transform: rotate(-6deg); pointer-events: none;
}
.note.blue { color: var(--blue); transform: rotate(4deg); }
.note.n-tr { right: 26px; top: 20px; }
.note.n-br { right: 34px; bottom: 26px; }
.note.n-side { right: -150px; top: 40%; width: 130px; color: var(--chalk); }

/* coffee ring */
.ring { position: absolute; width: 150px; height: 150px; right: 40px; bottom: 34px; pointer-events: none; opacity: .9; }

/* Powder sitting on the cover */
.wp-pw { position: absolute; z-index: 3; right: -40px; top: -168px; width: 230px; height: auto; overflow: visible; transform: rotate(5deg); }

/* redacted bits */
.redact {
  display: inline; padding: 0 .35em; margin: 0 .05em;
  font: inherit; line-height: 1.2; color: #121212; background: #121212;
  border: 0; border-radius: 2px; cursor: pointer;
  transition: background .2s, color .2s;
}
.redact:hover:not(.shown) { background: #333; color: #333; }
.redact.shown { color: var(--ink); background: var(--yellow); cursor: default; }
.redact:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }

/* fake PDF */
.pdf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.pdf {
  padding: 10px 16px 9px; font: 400 16px/1 var(--type); color: var(--ink); background: transparent;
  border: 2.5px dashed rgba(0, 0, 0, .55); border-radius: 10px; cursor: pointer;
}
.pdf:hover:not(:disabled) { border-style: solid; }
.pdf:disabled { cursor: default; opacity: .6; }
.pdf-msg { font: 400 22px/1.1 var(--hand); color: #d6302a; transform: rotate(-2deg); }

/* how it works */
.how { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: how; }
.how li { position: relative; counter-increment: how; padding: 6px 0 6px 52px; }
.how li::before {
  content: counter(how); position: absolute; left: 0; top: 4px; width: 36px; height: 36px;
  display: grid; place-items: center; font: 400 21px/1 var(--marker); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 50% 46% 52% 48%; transform: rotate(-6deg);
}
.how li.key::before { background: var(--yellow); }
.how small { display: block; font-size: 15px; color: #6c665b; }

/* tokenomics */
.tok { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; margin-top: 10px; }
.donut { width: 230px; height: 230px; flex: 0 0 auto; overflow: visible; }
.tok-legend { flex: 1 1 220px; margin: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 12px; align-items: center; font-size: 17px; }
.tok-legend i { width: 18px; height: 18px; border: 2.5px solid var(--ink); border-radius: 4px; background: #fff; }
.tok-legend i.zero { background: transparent; border-style: dashed; opacity: .6; }
.tok-legend span:nth-child(3n) { text-align: right; font-variant-numeric: tabular-nums; }

/* roadmap */
.road { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 22px 0 6px; padding: 0; list-style: none; }
.road::before { content: ""; position: absolute; left: 9%; right: 9%; top: 15px; border-top: 3px dashed rgba(0, 0, 0, .5); }
.road li { position: relative; padding-top: 44px; text-align: center; font-size: 15px; line-height: 1.35; color: #4a463e; }
.road li::before {
  content: ""; position: absolute; left: 50%; top: 2px; width: 26px; height: 26px; margin-left: -13px;
  background: #fbf8f1; border: 3px solid var(--ink); border-radius: 50%;
}
.road li.done::before { background: var(--green); }
.road b { display: block; margin-bottom: 4px; font: 400 21px/1.1 var(--marker); color: var(--ink); background: none; }
.road .here { display: block; margin-top: 6px; font: 400 20px/1 var(--hand); color: #d6302a; transform: rotate(-4deg); }

/* consensus spec */
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 8px 0 0; }
.spec dt { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #7b7568; padding-top: 3px; }
.spec dd { margin: 0; }

/* risks */
.risks { margin: 4px 0 18px; padding: 0; list-style: none; }
.risks li { position: relative; padding: 4px 0 4px 34px; }
.risks li::before { content: "!"; position: absolute; left: 4px; top: 4px; font: 400 22px/1.2 var(--marker); color: var(--red); }

/* the end */
.wp-end { text-align: center; }
.wp-end h3 { text-decoration-color: var(--green); }
.wp-big { margin: 10px 0 22px !important; font: 400 clamp(32px, 4.6vw, 52px)/1.05 var(--marker); }
.wp-big span { color: var(--red); }
.wp-end .wp-cta { margin-top: 8px; }
.wp-end .wp-status { color: #6c665b; }
.wp-end .btn-red { box-shadow: 0 0 0 3px #fbf8f1, 7px 8px 0 3px rgba(0, 0, 0, .3); }
.wp-end .tag-mini { box-shadow: 0 0 0 2px #fbf8f1, 4px 5px 0 2px rgba(0, 0, 0, .3); }

/* ---------- the lines between the sheets ---------- */
.fline { position: relative; height: 92px; width: min(540px, 84%); margin: 0 auto; }
.fline::before {
  /* what's left after: a few specks */
  content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 26px; margin-top: -13px; opacity: 0;
  background:
    radial-gradient(circle at 8% 40%, #f3f0e8 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 22% 70%, #f3f0e8 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 41% 30%, #f3f0e8 0 1.4px, transparent 2px),
    radial-gradient(circle at 63% 64%, #f3f0e8 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 79% 38%, #f3f0e8 0 1.5px, transparent 2.1px),
    radial-gradient(circle at 94% 60%, #f3f0e8 0 1.2px, transparent 1.8px);
  transition: opacity .6s 1.2s;
}
.fline i {
  position: absolute; left: 0; right: 0; top: 50%; height: 13px; margin-top: -6.5px;
  border-radius: 50% / 45%;
  background:
    radial-gradient(circle at 12% 30%, rgba(0, 0, 0, .14) 0 .9px, transparent 1.4px) 0 0 / 23px 9px,
    radial-gradient(circle at 60% 70%, rgba(0, 0, 0, .1) 0 .8px, transparent 1.3px) 0 0 / 17px 11px,
    linear-gradient(90deg, rgba(251, 248, 240, .35), #f6f2e8 9%, #fffdf8 70%, #fbf8f0 94%, rgba(251, 248, 240, .5));
  box-shadow: 0 0 16px rgba(255, 246, 222, .22);
  filter: url(#rough);
  transform: rotate(-1.4deg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.5s cubic-bezier(.55, 0, .35, 1);
}
.fline:nth-of-type(even) i { transform: rotate(1.1deg); }
.fline-note {
  position: absolute; left: 0; right: 0; top: 50%; margin: -14px 0 0; text-align: center;
  font: 400 24px/1 var(--hand); color: var(--chalk-2); opacity: 0; transform: rotate(-3deg);
  transition: opacity .45s 1.35s;
}
.fline.taken i { clip-path: inset(0 0 0 100%); }
.fline.taken::before, .fline.taken .fline-note { opacity: 1; }


@media (max-width: 1180px) {
  .note.n-side { display: none; }
}
@media (max-width: 760px) {
  .wp { padding-top: calc(var(--hdr) + 30px); }
  .wp-title .w { display: block; }
  .wp-stack { margin-top: 118px; }
  .wp-pw { width: 150px; right: -6px; top: -120px; }
  .sheet { font-size: 16.5px; line-height: 1.6; }
  .note { position: relative; right: auto !important; top: auto !important; bottom: auto !important; display: block; margin: 10px 0 0; font-size: 21px; }
  .ring { width: 110px; height: 110px; right: 14px; bottom: 14px; }
  .tok { justify-content: center; }
  .donut { width: 200px; height: 200px; }
  .road { grid-template-columns: 1fr; gap: 16px; }
  .road::before { left: 12px; right: auto; top: 14px; bottom: 14px; border-top: 0; border-left: 3px dashed rgba(0, 0, 0, .5); }
  .road li { padding: 0 0 0 44px; text-align: left; }
  .road li::before { left: 0; margin-left: 0; top: 0; }
  .spec { grid-template-columns: 1fr; gap: 0; }
  .spec dd { margin-bottom: 10px; }
  .fline { height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .fline i, .fline::before, .fline-note { transition: none; }
}
