@font-face {
  font-family: "Archivo Black";
  src: url("fonts/archivo-black-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #f3efe6;
  --ink: #1d1d1b;
  --muted: #5c5a55;
  --pink: #ff48b0;
  --blue: #0078bf;
  --yellow: #ffe800;
  --green: #00a95c;
  --orange: #ff6c2f;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.11 0 0 0 0 0.1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Demo bar */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 14px; padding: 2px 14px; background: var(--ink); color: var(--paper); font-size: 14px; }
.demo-bar__note { margin: 0; display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.demo-bar__note strong { padding: 0 8px; background: var(--yellow); color: var(--ink); font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; }
.demo-bar__actions { display: flex; gap: 4px; margin-left: auto; }
.demo-bar__reset, .demo-bar__made { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--paper); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.demo-bar__made { color: var(--pink); }

.shell { max-width: 1160px; margin: 0 auto; padding: 22px 16px 48px; }

/* Header */
.top {
  position: relative;
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border: 3px solid var(--ink);
  background:
    radial-gradient(circle, rgb(255 72 176 / 0.55) 1.6px, transparent 1.8px) 0 0 / 9px 9px,
    var(--yellow);
}
.top__kicker { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; }
.top h1 {
  margin: 4px 0 2px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(58px, 17vw, 136px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--pink);
}
.top__week { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 0; font-weight: 700; }
.top__week span { padding: 2px 8px; background: var(--ink); color: var(--yellow); font-family: var(--display); font-weight: 400; font-size: 14px; text-transform: uppercase; }
.whoami { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.whoami__label { font-weight: 700; margin-right: 2px; }
.whoami__btn { min-height: 44px; min-width: 56px; padding: 0 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 700; }
.whoami__btn--on { background: var(--c); color: #fff; box-shadow: 3px 3px 0 var(--ink); }

/* Stickers */
.sticker {
  display: inline-grid;
  place-items: center;
  flex: none;
  padding: 0 10px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--c);
  color: #fff;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sticker--md { min-height: 34px; font-size: 15px; transform: rotate(-4deg); }
.sticker--sm { min-height: 28px; padding: 0 8px; font-size: 12px; }

/* Bin night */
.bins {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 var(--blue);
}
.bins--rubbish { box-shadow: 6px 6px 0 var(--ink); }
.bin { width: 96px; height: auto; }
.bins__kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 2px 8px; background: var(--pink); color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.bins h2 { margin: 6px 0 2px; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; text-transform: uppercase; }
.bins__kind { margin: 4px 0 0; }
.bins__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.bins__next { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 2.5px dashed #d8d2c4; display: grid; gap: 6px; }
.bins__next li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; font-weight: 700; }
.bins__next-kind { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.bins__next-recycling .bins__next-kind { color: var(--blue); }
.bins__next-rubbish .bins__next-kind { color: var(--muted); }

/* Blocks */
.layout { display: grid; gap: 18px; }
.block { min-width: 0; padding: 16px; border: 3px solid var(--ink); background: #fff; }
.block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.block__head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: uppercase; line-height: 1.05; }
.block__head p { margin: 0; font-weight: 600; color: var(--muted); }
.count { font-weight: 700; }
.count strong { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--pink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 2.5px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; transition: transform 0.1s ease, box-shadow 0.1s ease; }
.btn:active { transform: translate(2px, 2px); }
.btn--undo { background: #fff; color: var(--ink); }
.btn--small { min-height: 44px; padding: 0 12px; background: #fff; color: var(--ink); font-size: 14px; }
.btn--cover { background: var(--c); }

/* Jobs */
.jobs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.job {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  transform: rotate(var(--tilt));
  box-shadow: 4px 4px 0 var(--c);
}
.job__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
.job__icon { display: grid; place-items: center; width: 40px; height: 40px; border: 2.5px solid var(--ink); background: #fff; }
.job h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1.05; text-transform: uppercase; }
.job__detail { margin: 0 0 8px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.job .btn { width: 100%; margin-top: auto; padding: 0 8px; font-size: 14px; }
.job--done { background: #fff; }
.job--done h3, .job--done .job__detail { opacity: 0.55; }
.job--done .job__detail { display: none; }
.job__stamp {
  justify-self: start;
  margin: 2px 0 10px;
  padding: 2px 10px;
  border: 3px solid var(--green);
  color: var(--green);
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  text-transform: uppercase;
  transform: rotate(-12deg);
  background: rgb(255 255 255 / 0.85);
}

/* Cover request */
.cover { position: relative; background: #fff; box-shadow: 6px 6px 0 var(--pink); }
.cover__tag { position: absolute; top: -14px; right: 14px; margin: 0; padding: 2px 10px; background: var(--pink); color: #fff; border: 2.5px solid var(--ink); font-family: var(--display); font-weight: 400; text-transform: uppercase; transform: rotate(4deg); }
.cover h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; text-transform: uppercase; }
.cover__reason { margin: 8px 0 12px; font-size: 17px; }
.cover__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Rota ahead */
.table { display: grid; gap: 6px; }
.table__row { display: grid; grid-template-columns: minmax(74px, 1.1fr) repeat(4, minmax(0, 1fr)); align-items: center; gap: 6px; padding: 6px 0; border-bottom: 2px dashed #d8d2c4; }
.table__row:last-child { border-bottom: 0; }
.table__row--head { border-bottom: 2.5px solid var(--ink); padding-top: 0; }
.table__row--head span { display: grid; place-items: center; }
.table__row--head span:first-child { place-items: start; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.table__row span[role="cell"] { display: grid; place-items: center; }
.table__date { display: grid; font-weight: 700; line-height: 1.2; }
.table__date small { font-size: 12px; font-weight: 700; }
.ious { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ious li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--yellow); border: 2.5px solid var(--ink); }

/* Score */
.score__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.score__list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 28px; align-items: center; gap: 10px; }
.score__bar { height: 18px; border: 2.5px solid var(--ink); background: var(--paper); }
.score__bar span { display: block; height: 100%; }
.score__num { font-family: var(--display); font-weight: 400; }
.score__star { display: grid; place-items: center; color: var(--orange); }
.score__star .icon { fill: var(--yellow); stroke: var(--ink); width: 26px; height: 26px; }

/* Supplies */
.supplies__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.supplies__list li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; border: 2px solid var(--ink); background: var(--paper); }
.supplies__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: var(--blue); color: #fff; }
.supplies__text { display: grid; flex: 1; min-width: 0; }
.supplies__text small { font-size: 13px; color: var(--muted); }
.supplies__add { display: flex; gap: 8px; margin-top: 12px; }
.supplies__add input { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; border: 2.5px solid var(--ink); background: #fff; font-size: 16px; }

/* Make your own */
.own { margin-top: 30px; padding: 20px; border: 3px dashed var(--ink); background: #fff; }
.own__label { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--pink); }
.own__words { margin: 8px 0; font-size: 21px; font-weight: 700; line-height: 1.3; }
.own__note { margin: 0; font-size: 14px; color: var(--muted); }

.toast-region { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 20; display: grid; justify-items: center; pointer-events: none; }
.toast { margin: 0 16px; padding: 12px 16px; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink); font-weight: 700; box-shadow: 5px 5px 0 var(--pink); animation: toast-in 0.25s ease; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

@media (min-width: 760px) {
  .top { padding: 26px 30px 22px; }
  .bins { grid-template-columns: 140px minmax(0, 1fr) minmax(220px, 300px); padding: 20px 24px; column-gap: 24px; }
  .bins__next { grid-column: auto; margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 2.5px dashed #d8d2c4; align-self: stretch; align-content: center; }
  .bin { width: 140px; }
  .bins h2 { font-size: 40px; }
  .jobs__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .layout { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .jobs { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
  .shell { padding: 30px 28px 64px; }
  .top { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; }
  .top > * { grid-column: 1; }
  .top h1 { font-size: 104px; white-space: nowrap; }
  .whoami { grid-column: 2; grid-row: 1 / 4; align-self: end; }
  .layout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cover { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
