/* Start: WillPowders feel. Bone and black, caps Helvetica headlines on highlight strips, Chivo Mono body, colour pops,
   and circles (the tubs, the lids) for the tools. Fun first, still plain about what things are. */
@font-face { font-family: "Chivo Mono"; font-weight: 400; font-display: swap; src: url("/fonts/ChivoMono-400.ttf") format("truetype"); }
@font-face { font-family: "Chivo Mono"; font-weight: 700; font-display: swap; src: url("/fonts/ChivoMono-700.ttf") format("truetype"); }
:root {
  --bone: #E7E4D6; --black: #212721;
  --coral: #ED6A5E; --citron: #E4EA6A; --peach: #F4A468; --green: #8FA65B; --blue: #8A97A4; --purple: #9B7FAE;
  --head: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Chivo Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bone); }
body { margin: 0; background: transparent; color: var(--black); font-family: var(--mono); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--citron); }
:focus-visible { outline: 3px solid var(--black); outline-offset: 4px; }
.loading { padding: 60px 20px; text-align: center; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- colour pops: big soft circles drifting behind everything ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; border-radius: 50%; opacity: .32; animation: drift 22s ease-in-out infinite alternate; }
.bg i:nth-child(1) { width: 44vmax; height: 44vmax; left: -16vmax; top: -12vmax; background: var(--peach); }
.bg i:nth-child(2) { width: 26vmax; height: 26vmax; right: -8vmax; top: 6vmax; background: var(--citron); animation-delay: -6s; }
.bg i:nth-child(3) { width: 34vmax; height: 34vmax; right: -14vmax; bottom: -16vmax; background: var(--purple); animation-delay: -11s; }
.bg i:nth-child(4) { width: 20vmax; height: 20vmax; left: 8vmax; bottom: -6vmax; background: var(--green); animation-delay: -3s; }
.bg i:nth-child(5) { width: 12vmax; height: 12vmax; left: 46vmax; top: 24vmax; background: var(--coral); opacity: .22; animation-delay: -15s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(2.5vmax, 3vmax) scale(1.06); } }

/* ---------- header + ticker ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 14px; }
.brandrow { display: flex; align-items: center; gap: 12px; }
.brandrow img { height: 30px; display: block; }
.start-tag { background: var(--black); color: var(--bone); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; }
.who { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.who a { color: inherit; font-weight: 700; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ticker { background: var(--black); color: var(--bone); overflow: hidden; white-space: nowrap; font-weight: 700; letter-spacing: .16em; font-size: 12px; text-transform: uppercase; }
.ticker-track { display: inline-block; padding: 9px 0; animation: tick 46s linear infinite; }
.ticker-track span { margin: 0 20px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 18px 0 0; }
h1 { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(32px, 5.4vw, 58px); line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.hero > div, .signin > .col { min-width: 0; }
.strip { background: var(--citron); padding: .02em .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.strip.coral { background: var(--coral); }
.say { position: relative; display: inline-block; margin: 14px 0 0; background: var(--black); color: var(--bone); padding: 10px 20px; border-radius: 999px; font-weight: 700; }
.say::after { content: ""; position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; background: var(--black); transform: translateY(-50%) rotate(45deg); border-radius: 3px; }
.say.bad { background: var(--coral); color: var(--black); } .say.bad::after { background: var(--coral); }
.lede { margin: 14px 0 0; max-width: 56ch; }
.pals { position: relative; width: 150px; height: 150px; flex: none; }
.pals .big { position: absolute; inset: 0; border-radius: 50%; background: var(--coral); }
.pals .dot { position: absolute; border-radius: 50%; }
.pals .d1 { width: 38px; height: 38px; left: -12px; top: 12px; background: var(--citron); }
.pals .d2 { width: 24px; height: 24px; right: 6px; top: -6px; background: var(--purple); }
.pals img { position: absolute; width: 114px; height: 114px; right: 4px; bottom: -4px; border-radius: 50%; object-fit: cover; border: 5px solid var(--black); background: var(--bone); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(2deg); } }

/* ---------- jump back in (only once there is history) ---------- */
.recent { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; padding: 14px 0 0; }
.recent h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; margin: 0; }
.rcs { display: flex; gap: 10px; flex-wrap: wrap; }
.rc { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; font-weight: 700; background: var(--bone); border: 2px solid var(--black); border-radius: 999px; padding: 3px 14px 3px 4px; transition: transform .2s cubic-bezier(.3, 1.7, .5, 1); }
.rc:hover { transform: scale(1.05); }
.rc b { width: 26px; height: 26px; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 11px; }

/* ---------- the tools: an even grid of colour discs ---------- */
.shelf { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 24px 20px; justify-items: center; margin: 18px 0 4px; }
.cell { container-type: inline-size; width: min(100%, 244px); }
.disc { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--c, var(--peach)); color: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; padding: 0 16cqw;
  transition: transform .28s cubic-bezier(.3, 1.7, .5, 1); }
.disc::before { content: ""; position: absolute; inset: 4cqw; border-radius: 50%; border: 2px solid var(--black); pointer-events: none; }
.disc:hover { transform: scale(1.06) rotate(-3deg); }
.disc:hover::before { border-style: dashed; animation: spin 9s linear infinite; }
.disc:active { transform: scale(.96); }
@keyframes spin { to { transform: rotate(360deg); } }
.disc h2 { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-size: 11.5cqw; line-height: 1.04; margin: 0 0 8px; }
.disc p { margin: 0; font-size: clamp(12.5px, 4.9cqw, 14.5px); line-height: 1.4; }
.chip { position: absolute; top: 12cqw; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; background: var(--black); color: var(--bone); padding: 3px 11px; border-radius: 999px; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); display: inline-block; }
.chip.wobbly i { background: var(--citron); } .chip.unknown i { background: var(--blue); } .chip.maintenance i { background: var(--blue); }
.disc.down { filter: grayscale(.9); }
.disc.down::before { border-style: dashed; }

/* ---------- one clear place to ask for access, then a quiet footer ---------- */
.req { text-align: center; margin-top: 10px; }
.reqbtn { font: inherit; font-weight: 700; font-size: 14px; color: var(--black); background: var(--citron); border: 2px solid var(--black); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.reqbtn:hover:not(:disabled) { background: var(--coral); }
.reqbtn:disabled { opacity: .65; cursor: default; }
.reqmsg { display: block; font-size: 13px; margin-top: 6px; min-height: 1em; }
.disc.locked { filter: saturate(.75); }
.askrow { text-align: center; padding: 18px 0 4px; }
.askbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--black); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.askbtn:hover { background: var(--citron); }
.news { margin: 22px 0 0; font-size: 13.5px; text-align: center; }
.news b { background: var(--citron); font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; padding: 2px 9px; margin-right: 10px; }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 22px; padding: 26px 0 46px; font-size: 13px; }
.foot-bar a { display: inline-flex; align-items: center; gap: 8px; }
.foot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: inline-block; }
.foot-bar i.bad { background: var(--coral); }

/* ---------- sign-in ---------- */
.signin { min-height: 62vh; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; padding: 28px 0; }
.signin .col { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.btn { display: inline-block; background: var(--black); color: var(--bone); border: 0; border-radius: 999px; padding: 14px 28px; font: inherit; font-weight: 700; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: transform .2s cubic-bezier(.3, 1.7, .5, 1); }
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--black); outline: 2px solid var(--black); outline-offset: -2px; }
.btn[disabled] { opacity: .6; cursor: default; }
.err { background: var(--coral); padding: 10px 16px; border-radius: 18px; max-width: 520px; }

/* ---------- modal + flood ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(33, 39, 33, .55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal { background: var(--bone); color: var(--black); border: 2px solid var(--black); border-radius: 30px; padding: 26px; width: min(480px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; animation: pop .2s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h2 { font-family: var(--head); font-weight: 800; text-transform: uppercase; margin: 0; font-size: 24px; line-height: 1.3; }
.modal p { margin: 0; }
.modal textarea { width: 100%; min-height: 88px; padding: 12px 14px; font: inherit; border: 2px solid var(--black); border-radius: 18px; background: #f2f0e6; color: var(--black); resize: vertical; }
.modal textarea::placeholder { color: #5b615b; opacity: 1; }
.modal .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.pick { display: flex; flex-wrap: wrap; gap: 12px 8px; }
.pickbtn { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 64px; background: none; border: 0; padding: 0; font: inherit; font-size: 11px; font-weight: 700; color: var(--black); cursor: pointer; text-align: center; line-height: 1.2; }
.pickbtn b { width: 48px; height: 48px; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 15px; outline: 2px solid transparent; outline-offset: 3px; transition: transform .2s cubic-bezier(.3, 1.7, .5, 1); }
.pickbtn:hover b { transform: scale(1.1); }
.pickbtn[aria-pressed="true"] b { outline-color: var(--black); transform: scale(1.1); }
.flood { position: fixed; border-radius: 50%; z-index: 100; pointer-events: none; transform: translate(-50%, -50%) scale(0); }
.pop { position: fixed; border-radius: 50%; pointer-events: none; z-index: 200; }

@media (max-width: 1000px) { .shelf { --cols: 3; } }
@media (max-width: 720px) { .shelf { --cols: 2; } }
@media (max-width: 800px) {
  .hero, .signin { grid-template-columns: 1fr; }
  .pals { width: 130px; height: 130px; order: -1; } .pals img { width: 100px; height: 100px; } .pals .d1 { width: 34px; height: 34px; }
  .say::after { display: none; }
  .who span { display: none; }
}
@media (max-width: 540px) { .shelf { --cols: 1; gap: 30px; } .cell { width: min(86vw, 330px); } }
/* Touch screens: the small text buttons get a proper-sized hit area without changing how they look. */
@media (pointer: coarse) {
  .linkbtn { padding: 12px 4px; margin: -12px -4px; }
  .askbtn { display: inline-block; padding: 12px 6px; margin: -12px -6px; }
  .reqbtn { padding: 12px 18px; }
  .foot-bar a { display: inline-block; padding: 12px 0; }
}
@media (prefers-reduced-motion: reduce) { .bg i, .ticker-track, .pals img, .disc:hover::before { animation: none; } .disc, .btn, .rc, .pickbtn b { transition: none; } }
