/* Party Hearty: a tidy desk with toys on it. Rubik throughout, rounded and friendly, never cartoonish. */
:root {
  color-scheme: light dark;
  --desk: #fdf2f5;
  --ink: #2a1730;
  --soft: #6d5a70;
  --rule: #f0dbe3;
  --accent: #7a2a78;
  --select: rgba(31, 158, 154, .22);
  --key: #ffffff;
  --sans: "Rubik", -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --desk: #1a1220;
    --ink: #f3e9f1;
    --soft: #b6a4b6;
    --rule: #34263b;
    --accent: #f2a0cb;
    --select: rgba(31, 158, 154, .35);
    --key: #261b2d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--select); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

main, footer { width: min(100% - 40px, 38rem); margin-inline: auto; }
main { padding: 64px 0 24px; }

.top { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; }
.top img { width: 84px; height: 84px; border-radius: 20px; rotate: -5deg; box-shadow: 0 10px 24px rgba(60, 20, 50, .16); flex: none; }
h1 { font: 800 clamp(2.6rem, 10vw, 3.8rem)/.98 var(--sans); letter-spacing: -.025em; word-spacing: .08em; margin: 0; text-wrap: balance; }
main > h1:first-child, h1.page { margin: 0 0 16px; }
.sub { font-size: 1.25rem; line-height: 1.45; margin: 0 0 30px; max-width: 26em; text-wrap: pretty; }
h1 + .small { margin: 0 0 32px; }
h2 { font: 700 1.5rem/1.2 var(--sans); letter-spacing: -.02em; margin: 56px 0 14px; text-wrap: balance; }
p { margin: 0 0 16px; text-wrap: pretty; }
strong { font-weight: 600; }
.small { font-size: .95rem; color: var(--soft); }
.q { font-weight: 600; margin: 30px 0 4px; }
h2 + .q { margin-top: 8px; }

/* The toy list: a little confetti square in front of each */
ul { list-style: none; margin: 0 0 20px; padding: 0; }
ul li { position: relative; padding-left: 1.6em; margin: 0 0 12px; }
ul li::before { content: ""; position: absolute; left: .15em; top: .58em; width: .5em; height: .5em; border-radius: 2px; background: #1f9e9a; rotate: 20deg; }
ul li:nth-child(4n+2)::before { background: #e2b33c; rotate: -15deg; }
ul li:nth-child(4n+3)::before { background: #e86fa0; rotate: 40deg; }
ul li:nth-child(4n)::before { background: #7b5cc4; rotate: -30deg; }
ol { margin: 0 0 16px; padding-left: 1.3em; }
ol li { margin: 0 0 8px; }

kbd { font: 500 .9em/1 var(--sans); padding: .2em .45em; border-radius: 6px; background: var(--key); border: 1px solid var(--rule); border-bottom-width: 2px; white-space: nowrap; }

.get { margin: 0 0 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 11px;
         padding: 7px 18px 7px 14px; text-decoration: none; line-height: 1.1; }
.store:hover { background: #1b1d1f; }
.store svg { width: 21px; height: 25px; fill: #fff; flex: none; }
.store small { display: block; font-size: .7rem; }
.store b { display: block; font-size: 1.22rem; font-weight: 500; letter-spacing: -.01em; }
.get + .small { margin-bottom: 44px; }

.note { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--soft); }
.nb { white-space: nowrap; }

footer { display: flex; gap: 22px; padding: 8px 0 56px; font-size: .95rem; }
footer a { color: var(--soft); }
footer a:hover { color: var(--ink); }

@media (max-width: 520px) {
  main { padding-top: 44px; }
  .top img { width: 68px; height: 68px; border-radius: 16px; }
  .sub { font-size: 1.15rem; }
}
