/* ideas.slopped.site. Hand-written; ideas/scripts/build.mjs doesn't touch it. Brand tokens and type as on
   slopped.site (slopped-brand). The idea: a docket. Twelve numbered commissions ruled off like an order book, the
   numbers set big in Archivo Black, the prompt as plain reading text, the vote a tall tab at the right edge that
   fills with acid when it's yours. No cards, no badges: the hairlines and the numerals are the structure, as on
   top.slopped.site and the codex. Phone first. */
@font-face { font-family: "Archivo Black"; src: url(/fonts/archivo-black-latin.woff2) format("woff2"); font-weight: 400 1000; font-display: swap; }
@font-face { font-family: "Archivo Black Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Noto Sans Bold"), local("NotoSans-Bold"); size-adjust: 112%; }
:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --ink: #171815;
  --acid: #e3ff59;
  --muted: #6b6b62;
  --line: #d4d2c9;
  --panel: #ebe7dc;
  --focus: #728600;
  --head: "Archivo Black", "Arial Black", "Archivo Black Fallback", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
a { color: inherit; }
:where(a, button, input, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 1000; letter-spacing: -1.5px; line-height: 1.02; font-synthesis: none; }
img { max-width: 100%; }
.wrap { max-width: 1440px; margin: auto; padding: 0 5%; }
main:focus { outline: none; }
html:not(.can-install) [data-install] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 14px Arial, Helvetica, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pill:hover { background: var(--acid); }
.pill.dark { background: var(--ink); color: var(--paper); }
.pill.dark:hover { background: #33342f; }

/* the H1 and the day */
.intro { padding: 48px 0 26px; }
.intro h1 { max-width: 11ch; font-size: clamp(48px, 8vw, 124px); letter-spacing: -3px; }
.day-intro h1 { max-width: 14ch; font-size: clamp(42px, 6.4vw, 96px); }
.lede { max-width: 640px; margin: 20px 0 0; font-size: 21px; line-height: 1.4; letter-spacing: -.3px; }
.dateline { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 22px 0 0; font-size: 15px; font-weight: 700; }
.dateline span { color: var(--muted); font-size: 13px; }
.daynav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.honest { max-width: 720px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.status { margin: 0 0 14px; font-size: 15px; font-weight: 700; }

/* the twelve: a ruled docket */
.today { padding-bottom: 56px; }
.ideas { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.idea { display: grid; grid-template-columns: 92px minmax(0, 1fr) 84px; gap: 0 28px; padding: 26px 0 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.idea:target { background: linear-gradient(90deg, transparent, rgba(227, 255, 89, .35) 30%, transparent); }
.idea-no { font: 1000 48px/0.9 var(--head); letter-spacing: -2px; font-variant-numeric: tabular-nums; font-synthesis: none; }
.idea-body { min-width: 0; }
.idea-title { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -1px; line-height: 1.08; }
.idea-prompt { max-width: 72ch; margin: 12px 0 0; font-size: 17px; line-height: 1.5; }
.idea-prompt a { text-underline-offset: 3px; }
.idea-note { max-width: 72ch; margin: 10px 0 0; font-size: 15px; font-weight: 700; }
.idea-meta { margin: 12px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.idea-meta a { color: var(--ink); text-underline-offset: 3px; }
.made { display: inline-flex; gap: 14px; align-items: center; margin: 16px 0 0; text-decoration: none; }
.made img { display: block; width: 72px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--panel); transform: rotate(-1.5deg); transition: transform .2s; }
.made span { font-size: 15px; }
.made b { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: var(--acid); font-size: 12px; }
.made:hover img { transform: rotate(0) translateY(-3px); }
.made:hover span { text-decoration: underline; text-underline-offset: 3px; }
.idea-act { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.vote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; padding: 8px 0; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; }
.vote-arrow { font-size: 15px; line-height: 1; }
.vote-n { font: 1000 26px/1 var(--head); letter-spacing: -1px; font-variant-numeric: tabular-nums; font-synthesis: none; }
.vote:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.vote[aria-pressed="true"] { background: var(--acid); }
.copy { min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 700 13px Arial, Helvetica, sans-serif; cursor: pointer; }
.copy:hover { border-color: var(--ink); }

/* sections: a ruled head like top.slopped.site's halves */
.half { padding-bottom: 56px; }
.half-head { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 560px); gap: 12px 48px; align-items: end; justify-content: space-between; padding-top: 26px; margin-bottom: 22px; border-top: 2px solid var(--ink); }
.half-head h2 { font-size: clamp(44px, 6vw, 84px); letter-spacing: -2.5px; }
.half-head h2 small { margin-left: 6px; color: var(--muted); font: 700 15px Arial, Helvetica, sans-serif; letter-spacing: 0; vertical-align: super; }
.who { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.who a { color: var(--ink); }

/* best */
.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; }
.board h3 { padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-size: 24px; letter-spacing: -.8px; }
.ranks { margin: 0; padding: 0; list-style: none; }
.rank a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.rank a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.rank-no { font: 1000 32px/1 var(--head); letter-spacing: -1px; font-variant-numeric: tabular-nums; font-synthesis: none; }
.rank-text { display: grid; gap: 2px; min-width: 0; }
.rank-text b { font-size: 17px; line-height: 1.25; }
.rank-text span { color: var(--muted); font-size: 13px; font-weight: 700; }
.rank-n { text-align: right; }
.rank-n b { display: block; font: 1000 30px/1 var(--head); letter-spacing: -1px; font-variant-numeric: tabular-nums; font-synthesis: none; }
.rank-n span { color: var(--muted); font-size: 12px; font-weight: 700; }
.empty { margin: 16px 0 0; }
.empty-title { display: block; max-width: 20ch; font: 1000 clamp(24px, 2.6vw, 34px)/1.05 var(--head); letter-spacing: -1px; font-synthesis: none; }
.empty-text { display: block; max-width: 560px; margin: 10px 0 0; font-size: 16px; }

/* archive */
.archive .month { margin: 26px 0 8px; font-size: 22px; letter-spacing: -.6px; }
.archive .month:first-child { margin-top: 0; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.days a { display: grid; gap: 2px; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.days a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.days b { font-size: 16px; }
.days span { overflow: hidden; color: var(--muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

/* how it works, then the acid statement block */
.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; }
.about-cols h3 { margin-bottom: 10px; font-size: 24px; letter-spacing: -.8px; }
.about-cols p { max-width: 62ch; margin: 0 0 12px; font-size: 16px; }
.statement { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; margin-top: 40px; padding: 32px; border-radius: 16px; background: var(--acid); }
.statement p { max-width: 640px; margin: 0; font-size: 19px; line-height: 1.4; }
.statement b { font-family: var(--head); font-weight: 1000; font-synthesis: none; letter-spacing: -.5px; }

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer img { display: block; width: auto; height: 26px; }
footer p { margin: 0; }
footer .brand { display: inline-flex; align-items: center; min-height: 42px; }

@media (max-width: 900px) {
  .half-head { grid-template-columns: 1fr; }
  .boards, .about-cols { grid-template-columns: 1fr; }
  .idea { grid-template-columns: 64px minmax(0, 1fr) 76px; gap: 0 18px; }
  .idea-no { font-size: 36px; }
}
@media (max-width: 640px) {
  .intro { padding: 34px 0 20px; }
  .intro h1 { letter-spacing: -2px; }
  .lede { font-size: 18px; }
  /* phone: the number beside the title, the vote and copy in a row under the words */
  .idea { grid-template-columns: 42px minmax(0, 1fr); gap: 0 12px; padding: 22px 0 24px; }
  .idea-no { font-size: 26px; line-height: 1.05; }
  .idea-prompt { font-size: 16px; }
  .idea-act { grid-column: 2; flex-direction: row; align-items: center; margin-top: 14px; }
  .idea-act:has(> :not([hidden])) { margin-top: 14px; }
  .vote { flex-direction: row; gap: 10px; min-height: 44px; min-width: 96px; padding: 0 16px; border-radius: 999px; }
  .vote-n { font-size: 20px; }
  .copy { min-height: 44px; padding: 0 16px; }
  .rank a { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; }
  .rank-no, .rank-n b { font-size: 24px; }
  .statement { padding: 22px; }
  .statement p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .made img, .made:hover img { transition: none; transform: none; }
}
