:root {
  --mustard: #D9A21B;
  --asphalt: #23211D;
  --paper: #FBF7EC;
  --blue: #3434D9;
  --red: #D8432E;
  --display: "Alfa Slab One", Georgia, serif;
  --body: "Mulish", system-ui, sans-serif;
  /* pasted-up poster: sheet seams where the paper overlaps, plus a few creases */
  --paste: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='300' viewBox='0 0 360 300'%3E%3Cg fill='none'%3E%3Cpath d='M120 0v300' stroke='%23000' stroke-opacity='.07' stroke-width='2'/%3E%3Cpath d='M123 0v300' stroke='%23fff' stroke-opacity='.7' stroke-width='2'/%3E%3Cpath d='M0 150h360' stroke='%23000' stroke-opacity='.05' stroke-width='2'/%3E%3Cpath d='M0 153h360' stroke='%23fff' stroke-opacity='.6' stroke-width='1.5'/%3E%3Cpath d='M30 40 C 60 60, 70 90, 52 130' stroke='%23000' stroke-opacity='.05' stroke-width='1.2'/%3E%3Cpath d='M210 190 C 250 200, 280 230, 300 280' stroke='%23000' stroke-opacity='.05' stroke-width='1.2'/%3E%3Cpath d='M260 20 C 250 50, 270 80, 330 96' stroke='%23000' stroke-opacity='.04' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { background: var(--mustard); }
body { margin: 0; font: 400 15px/1.6 var(--body); color: var(--asphalt); background: var(--mustard); }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.5; }

.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 44px);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--asphalt); text-decoration: none; }
.logo span { font: 26px/1 var(--display); }
.connect { border: 0; background: var(--asphalt); color: var(--paper); padding: 10px 18px; border-radius: 4px; font-weight: 800; }
.connect:hover { background: var(--blue); }

/* scroll drives the camera down the road */
.drive { height: 300vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#road { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; left: clamp(16px, 4vw, 44px); top: 92px; max-width: 470px; }
.hud h1 { font: clamp(40px, 6vw, 72px)/0.98 var(--display); margin: 0 0 16px; color: var(--asphalt); }
.lede { font-size: 18px; font-weight: 600; margin: 0 0 20px; max-width: 380px; }
.take {
  display: inline-block; background: var(--blue); color: var(--paper); text-decoration: none;
  font-weight: 800; padding: 13px 20px; border-radius: 4px; box-shadow: 4px 4px 0 var(--asphalt);
}
.take:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--asphalt); }
.hint { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font-weight: 800; color: var(--paper); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); transition: opacity 0.4s; }

main { position: relative; z-index: 1; }
.sheet { background-color: var(--paper); background-image: var(--paste); background-size: 360px 300px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08), 0 24px 40px -28px rgba(35, 33, 29, 0.6); }
h2 { font: clamp(30px, 4vw, 44px)/1.05 var(--display); margin: 0 0 18px; }
h3 { font: 26px/1.1 var(--display); margin: 0 0 8px; color: var(--blue); }

.post { max-width: 1100px; margin: -40px auto 0; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); }
label, .lab { display: block; font-weight: 800; margin: 0 0 8px; }
textarea {
  width: 100%; resize: vertical; font: 26px/1.25 var(--display); color: var(--asphalt);
  background: #fff; border: 3px solid var(--asphalt); border-radius: 4px; padding: 12px 14px;
}
textarea:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.count { margin: 6px 0 18px; font-size: 13px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.swatches button { width: 42px; height: 42px; border-radius: 4px; border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--asphalt); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--asphalt), 0 0 0 6px var(--blue); }
.go { border: 0; background: var(--blue); color: var(--paper); font-weight: 800; font-size: 17px; padding: 14px 22px; border-radius: 4px; box-shadow: 4px 4px 0 var(--asphalt); }
.go:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--asphalt); }
.go.ghost { background: var(--asphalt); }
.note { min-height: 22px; margin: 12px 0 0; font-weight: 700; }
.note.bad { color: var(--red); }
.earnCol { border-left: 3px solid var(--asphalt); padding-left: clamp(18px, 3vw, 40px); }
.owed { font-size: 17px; margin: 0 0 10px; }
.owed b { font: 44px/1 var(--display); color: var(--blue); display: block; }

.how, .history { max-width: 1100px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 44px) 0; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how li { padding: 26px 24px; }
.how li:nth-child(2) { transform: rotate(-0.8deg); }
.how li:nth-child(3) { transform: rotate(0.6deg); }
.how p { margin: 0; font-size: 16px; }

.history ul { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 2px solid rgba(35, 33, 29, 0.2); }
.history .chip { width: 54px; height: 32px; border-radius: 3px; border: 2px solid var(--asphalt); }
.history .say { font: 18px/1.25 var(--display); overflow-wrap: anywhere; }
.history .meta { font-size: 13px; text-align: right; }
.history .empty { display: block; }
.totals { font-size: 13px; }

.foot { max-width: 1100px; margin: 72px auto 0; padding: 26px clamp(16px, 4vw, 44px) 44px; border-top: 3px solid var(--asphalt); font-size: 14px; }
.foot p { margin: 4px 0; overflow-wrap: anywhere; }
.foot .built { font: 26px/1.2 var(--display); margin-bottom: 10px; }

@media (max-width: 860px) {
  .post, .how ol { grid-template-columns: 1fr; }
  .earnCol { border-left: 0; border-top: 3px solid var(--asphalt); padding: 22px 0 0; }
  .post { margin: -20px 16px 0; }
  .hud { top: 78px; right: 16px; }
  .lede { font-size: 16px; }
  .how li { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) { .take:hover { transform: none; } }
