/* top.slopped.site. Hand-written; top/scripts/build.mjs doesn't touch it. Brand tokens and type as on slopped.site
   (slopped-brand). The idea: an editor's page. Two halves under one H1, each opened by a ruled head like a
   newspaper section. The picks are numbered like a list in a magazine, the counts are set as big numerals, and
   neither has badges or boxes: the reasons and the numbers are the design. 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; }

/* header: the masthead (slopped-brand, "Subsite header") */
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100px; border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; min-width: 0; }
.masthead .brand { display: flex; align-items: center; min-height: 42px; flex: none; }
.masthead .brand img { display: block; width: auto; height: 30px; }
.site-name { display: inline-flex; align-items: center; min-height: 42px; margin-left: 16px; padding-left: 17px; background: linear-gradient(var(--line), var(--line)) left center / 1px 22px no-repeat; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.3px; text-decoration: none; white-space: nowrap; }
.site-name:hover { text-decoration: underline; text-underline-offset: 4px; }
nav { display: flex; align-items: center; gap: 4px 18px; font-size: 14px; }
nav a { display: inline-flex; align-items: center; min-height: 42px; text-decoration: none; white-space: nowrap; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.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; }
.pill.install-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; min-height: 42px; padding: 0; }

/* the H1 */
.intro { padding: 48px 0 28px; }
.intro h1 { max-width: 11ch; font-size: clamp(48px, 8vw, 124px); letter-spacing: -3px; }
.lede { max-width: 620px; margin: 20px 0 0; font-size: 21px; line-height: 1.4; letter-spacing: -.3px; }

/* this week: the acid statement block */
.week { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 40px; align-items: center; margin: 18px 0 64px; padding: 32px; border-radius: 16px; background: var(--acid); }
.week-pic { display: block; overflow: hidden; aspect-ratio: 1; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper); transform: rotate(-1.2deg); }
.week-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.week h2 { font: 900 15px Arial, Helvetica, sans-serif; letter-spacing: -.2px; }
.week-where { margin: 14px 0 0; font-size: 13px; font-weight: 700; }
.week-name { margin: 4px 0 0; font: 1000 clamp(34px, 4.6vw, 64px)/1 var(--head); letter-spacing: -2px; font-synthesis: none; }
.week-why { max-width: 560px; margin: 14px 0 22px; font-size: 19px; line-height: 1.4; }
.week-note { margin: 16px 0 0; font-size: 13px; }

/* each half opens with a ruled head */
.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; 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); }

/* a shelf of picks: one section of the world */
.shelf { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px 40px; padding: 34px 0 10px; border-bottom: 1px solid var(--line); }
.shelf:last-child { border-bottom: 0; }
.shelf-head h3 { font-size: 26px; letter-spacing: -1px; }
.shelf-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px 26px; margin: 0; padding: 0; list-style: none; }
.pick a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-content: start; text-decoration: none; }
.pick-pic { grid-column: 1 / -1; display: block; overflow: hidden; aspect-ratio: var(--ratio, 4 / 5); margin-bottom: 12px; border-radius: 9px; background: var(--panel); transition: transform .2s; }
.pick-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pick-pic.pixel img { object-fit: contain; image-rendering: pixelated; }
.pick a:hover .pick-pic { transform: translateY(-4px); }
.pick a:hover .pick-name { text-decoration: underline; text-underline-offset: 4px; }
.pick-no { grid-row: 2 / 4; font: 1000 30px/0.95 var(--head); letter-spacing: -1px; font-variant-numeric: tabular-nums; font-synthesis: none; }
.pick-name { font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: -.2px; }
.pick-why { margin-top: 6px; font-size: 15px; line-height: 1.42; }
.pick-where { grid-column: 2; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.s-art, .s-specimen { --ratio: 4 / 5; }
.s-game { --ratio: 11 / 10; }
.s-exhibit, .s-homepage { --ratio: 4 / 3; }
.s-codex, .s-tree { --ratio: 1; }
.s-fractal { --ratio: 3 / 4; }

/* most saved */
.toggle { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 8px; padding: 0; border: 0; }
.toggle label { position: relative; display: inline-flex; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; user-select: none; }
.toggle span:hover { border-color: var(--ink); }
.toggle input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.toggle input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.board { max-width: 980px; min-height: 180px; }
.ranks { margin: 0; padding: 0; list-style: none; }
.rank a { display: grid; grid-template-columns: 64px 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.rank a:hover .rank-name { text-decoration: underline; text-underline-offset: 4px; }
.rank-no { font: 1000 40px/1 var(--head); letter-spacing: -1.5px; font-variant-numeric: tabular-nums; font-synthesis: none; }
.rank-pic { display: block; overflow: hidden; width: 64px; height: 80px; border-radius: 6px; background: var(--panel); }
.rank-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rank-pic.none { display: grid; place-items: center; color: var(--muted); font: 1000 26px var(--head); }
.rank-text { display: grid; gap: 2px; min-width: 0; }
.rank-name { overflow: hidden; font-size: 18px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; }
.rank-kind { color: var(--muted); font-size: 13px; font-weight: 700; }
.rank-n { text-align: right; }
.rank-n b { display: block; font: 1000 40px/1 var(--head); letter-spacing: -1.5px; font-variant-numeric: tabular-nums; font-synthesis: none; }
.rank-n span { color: var(--muted); font-size: 12px; font-weight: 700; }
.rank:first-child .rank-no, .rank:first-child .rank-n b { font-size: 56px; }
.board-foot { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.empty { margin: 18px 0 0; }
.empty-title { display: block; max-width: 18ch; font: 1000 clamp(28px, 3.4vw, 44px)/1.05 var(--head); letter-spacing: -1.5px; font-synthesis: none; }
.empty-text { display: block; max-width: 560px; margin: 12px 0 20px; font-size: 17px; }

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

@media (max-width: 900px) {
  .week { grid-template-columns: minmax(0, 220px) 1fr; gap: 26px; padding: 24px; }
  .half-head { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  header { height: 80px; }
  .masthead .brand img { height: 26px; }
  .site-name { margin-left: 12px; padding-left: 13px; }
  nav { gap: 4px 14px; }
  .intro { padding: 34px 0 20px; }
  .intro h1 { letter-spacing: -2px; }
  .lede { font-size: 18px; }
  .week { grid-template-columns: 1fr; margin-bottom: 48px; padding: 20px; }
  .week-pic { max-width: 300px; }
  .week-why { font-size: 17px; }
  /* phone: each pick is a row, picture left, words right */
  .picks { grid-template-columns: 1fr; gap: 22px; }
  .pick a { grid-template-columns: 112px auto 1fr; column-gap: 14px; }
  .pick-pic { grid-column: 1; grid-row: 1 / 5; align-self: start; margin: 0; }
  .pick-no { grid-column: 2; grid-row: 1 / 4; font-size: 24px; }
  .pick-name, .pick-why { grid-column: 3; }
  .pick-where { grid-column: 3; }
  .pick-why { font-size: 14px; }
  .rank a { grid-template-columns: 40px 52px minmax(0, 1fr) auto; gap: 12px; }
  .rank-no, .rank-n b { font-size: 30px; }
  .rank:first-child .rank-no, .rank:first-child .rank-n b { font-size: 38px; }
  .rank-pic { width: 52px; height: 65px; }
  .rank-name { font-size: 16px; }
}
@media (max-width: 380px) {
  nav a { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pick-pic { transition: none; }
  .pick a:hover .pick-pic { transform: none; }
}

/* the dripping p from the wordmark (public/p-drip.webp, synced by sync:brand) set as a letter: its bowl sits on the baseline, the drip hangs below */
.drip-p { display: inline-block; height: .8em; width: auto; vertical-align: -.24em; margin: 0 -.02em 0 -.06em; }
