@import url("/css/fable.css?v=1");
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* A march: violet street, hand-painted signs, a lime paddle for yes and a
   pink one for no. */
:root {
  --street: #5b3df5;
  --street-deep: #3b21c9;
  --ink: #111014;
  --board: #ffffff;
  --yes: #b8f400;
  --no: #ff5d8f;
  --wood: #e0ad6b;
  --f-bg: var(--street);
  --f-ink: #ffffff;
  --f-soft: rgba(255, 255, 255, 0.82);
  --f-line: rgba(255, 255, 255, 0.3);
  --f-surface: var(--street-deep);
  --f-accent: var(--yes);
  --f-on-accent: var(--ink);
  --f-warn: #ffd0dc;
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
}
body {
  min-height: 100%;
  height: auto;
}
.bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  max-width: 1080px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px 10px;
}
.home {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.85;
}
.name {
  margin: 0;
  font: 900 30px/1 var(--f-display);
  letter-spacing: 0.01em;
}
.bar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.views,
.sorts {
  display: flex;
  padding: 3px;
  border-radius: 99px;
  background: var(--street-deep);
}
.views button,
.sorts button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--f-soft);
  font-weight: 700;
  font-size: 14px;
}
.views button[aria-pressed="true"],
.sorts button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
}
.say {
  min-height: 44px;
  padding: 0 18px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: var(--yes);
  color: var(--ink);
  font: 800 20px/1 var(--f-display);
  letter-spacing: 0.02em;
  box-shadow: 3px 3px 0 var(--ink);
}
.say:active {
  translate: 2px 2px;
  box-shadow: 1px 1px 0 var(--ink);
}
.chip {
  background: var(--street-deep);
  border-color: transparent;
  color: #fff;
}
.preview {
  max-width: 1080px;
  margin: 0 auto 4px;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}

/* one at a time */
.deck {
  display: grid;
  justify-items: center;
}
.status.big {
  margin: 18vh 0;
  font: 800 28px var(--f-display);
  color: #fff;
}
.march {
  width: min(100%, 640px);
  display: grid;
  justify-items: center;
  touch-action: pan-y;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.25s;
  --tilt: -1.2deg;
}
.march.dragging {
  transition: none;
}
.march.enter {
  animation: arrive 0.4s cubic-bezier(0.2, 1.1, 0.3, 1);
}
@keyframes arrive {
  from {
    transform: translateY(46px) rotate(4deg);
    opacity: 0;
  }
}
.sign {
  position: relative;
  width: 100%;
  min-height: clamp(230px, 44vh, 400px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(18px, 4vw, 34px);
  border: 5px solid var(--ink);
  border-radius: 10px;
  background: var(--board);
  color: var(--ink);
  box-shadow: 9px 9px 0 rgba(17, 16, 20, 0.85);
  rotate: var(--tilt);
  --sign-base: clamp(40px, 10.5vw, 92px);
}
.sign[data-paint="1"] {
  --board: #fff27a;
}
.sign[data-paint="2"] {
  --board: #c9ffe0;
}
.sign[data-paint="3"] {
  --board: #ffd6ea;
}
.sign-text,
.thread-text {
  margin: 0;
  align-self: center;
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.sign-text {
  font-size: calc(var(--sign-base) * var(--scale, 1));
  max-height: clamp(180px, 36vh, 330px);
  overflow: hidden;
}
.sign-text.masked {
  filter: blur(14px);
  user-select: none;
}
.unmask {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  min-height: 46px;
  padding: 0 16px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.sign-meta {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(17, 16, 20, 0.66);
}
.stick {
  width: 22px;
  height: 46px;
  margin-top: -3px;
  border: 5px solid var(--ink);
  border-top: 0;
  background: var(--wood);
}
.paddles {
  display: flex;
  align-items: center;
  gap: clamp(18px, 6vw, 56px);
  margin-top: 6px;
}
.paddle {
  position: relative;
  width: clamp(104px, 26vw, 132px);
  aspect-ratio: 1;
  border: 5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font: 900 clamp(30px, 7vw, 40px) / 1 var(--f-display);
  box-shadow: 5px 5px 0 var(--ink);
  transition: translate 0.08s, box-shadow 0.08s, rotate 0.15s;
}
.paddle::after {
  /* the handle */
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 20px;
  height: 22px;
  translate: -50% 2px;
  border: 5px solid var(--ink);
  border-top: 0;
  background: var(--wood);
}
.paddle.yes {
  background: var(--yes);
  rotate: 5deg;
}
.paddle.no {
  background: var(--no);
  rotate: -5deg;
}
.paddle:hover {
  rotate: 0deg;
}
.paddle:active {
  translate: 3px 3px;
  box-shadow: 2px 2px 0 var(--ink);
}
.paddle:disabled {
  opacity: 0.5;
}
.pass {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.verdict {
  width: min(100%, 640px);
  margin-top: 8px;
}
.bar-split {
  display: flex;
  height: 26px;
  border: 4px solid var(--ink);
  border-radius: 99px;
  overflow: hidden;
  background: #fff;
}
.bar-split i {
  flex: 0 0 var(--w, 0%);
  transition: flex-basis 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.bar-split .y {
  background: var(--yes);
}
.bar-split .n {
  background: var(--no);
  margin-left: auto;
}
.split-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 8px 2px 0;
  font-weight: 600;
}
.split-line strong {
  font: 900 30px/1 var(--f-display);
}
.split-line.small {
  justify-content: center;
  font-size: 15px;
}
.after {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.after .primary {
  flex: 1;
}
.primary {
  border: 4px solid var(--ink);
  border-radius: 99px;
  font: 900 24px/1 var(--f-display);
  letter-spacing: 0.02em;
  box-shadow: 4px 4px 0 var(--ink);
}
.ghost {
  min-height: 54px;
  border: 3px solid #fff;
  border-radius: 99px;
  color: #fff;
  font-weight: 700;
}
.empty {
  margin: 10vh 0;
  text-align: center;
}
.empty h2 {
  margin: 0;
  font: 900 clamp(34px, 7vw, 60px) / 1 var(--f-display);
}
.empty p {
  margin: 10px 0 20px;
  font-weight: 600;
}
.tally {
  max-width: 52ch;
  margin: 26px 0 0;
  text-align: center;
  font-weight: 600;
  color: var(--f-soft);
}
.keys {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--f-soft);
}
.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
}

/* the wall */
.wall-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 14px;
}
#search {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 99px;
  background: var(--street-deep);
  color: #fff;
}
#search::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 280px;
  column-gap: 14px;
}
.rows li {
  break-inside: avoid;
  margin: 0 0 14px;
}
.row {
  display: block;
  width: 100%;
  padding: 14px 16px 12px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--board);
  color: var(--ink);
  text-align: left;
  box-shadow: 4px 4px 0 rgba(17, 16, 20, 0.8);
}
.row[data-paint="1"] {
  --board: #fff27a;
}
.row[data-paint="2"] {
  --board: #c9ffe0;
}
.row[data-paint="3"] {
  --board: #ffd6ea;
}
.row:hover {
  translate: -1px -1px;
}
.row .t {
  display: block;
  font: 800 26px/1.02 var(--f-display);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.row .t.long {
  font-size: 20px;
  line-height: 1.08;
}
.row .bar-split {
  height: 12px;
  margin-top: 12px;
  border-width: 3px;
}
.row .m {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(17, 16, 20, 0.7);
}
#btn-more {
  display: block;
  margin: 8px auto 0;
  padding: 0 24px;
}
.credit {
  margin: 44px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--f-soft);
}
.credit a {
  color: inherit;
}

/* dialogs */
dialog {
  background: #fff;
  color: var(--ink);
  border: 5px solid var(--ink);
  border-radius: 12px;
  --f-ink: var(--ink);
  --f-soft: rgba(17, 16, 20, 0.72);
  --f-line: rgba(17, 16, 20, 0.2);
  --f-warn: #b3002d;
}
dialog .chip {
  background: #eee;
  color: var(--ink);
}
dialog .ghost {
  border-color: var(--ink);
  color: var(--ink);
  min-height: 48px;
}
dialog .primary {
  min-height: 52px;
  background: var(--yes);
  font-size: 22px;
}
.dlg-head h2 {
  font: 900 34px/1 var(--f-display);
}
textarea {
  width: 100%;
  padding: 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 600 18px/1.35 var(--f-body);
  resize: vertical;
}
#say-text {
  font: 800 28px/1.05 var(--f-display);
}
.count-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--f-soft);
}
.sparks button {
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fine {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--f-soft);
}
#say-form .primary {
  width: 100%;
}
.thread-text {
  font-size: clamp(28px, 6vw, 44px);
}
.thread-vote {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.pill {
  min-height: 48px;
  min-width: 76px;
  padding: 0 16px;
  border: 4px solid var(--ink);
  border-radius: 99px;
  color: var(--ink);
  font: 900 24px/1 var(--f-display);
  background: #fff;
}
.pill.yes[aria-pressed="true"] {
  background: var(--yes);
}
.pill.no[aria-pressed="true"] {
  background: var(--no);
}
#dlg-thread h3 {
  margin: 22px 0 8px;
  font: 900 24px/1 var(--f-display);
}
.replies {
  list-style: none;
  margin: 0;
  padding: 0;
}
.replies li {
  padding: 10px 0;
  border-top: 2px solid var(--f-line);
}
.replies .rt {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-weight: 600;
}
.replies .rm {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--f-soft);
}
#reply-form {
  margin-top: 14px;
}
.thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.thread-actions .primary {
  flex: 1 1 140px;
}
.help p {
  margin: 0 0 12px;
  color: var(--f-soft);
}
@media (max-width: 720px) {
  .home {
    display: none;
  }
  .bar nav {
    width: 100%;
    margin-left: 0;
  }
  .say {
    margin-left: auto;
  }
  .keys {
    display: none;
  }
}
@media (pointer: coarse) {
  .keys {
    display: none;
  }
}
