/* WellSpent help: the look. Same colors as the website.
   No scripts, nothing loaded from outside. Fonts are self-hosted, with their licences. */
@font-face { font-family: "Luckiest Guy"; src: url("fonts/LuckiestGuy-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Variable.ttf"); font-weight: 100 900; font-display: swap; }
:root { --band: #1A1A1A; --page: #F1F1F1; --paper: #FFFFFF; --cream: #F4EEDC; --ink: #111111; --muted: #555555;
        --gold: #D4AF37; --green: #76A24D; --line: #DDD6C8; --shadow: #111111; }
@media (prefers-color-scheme: dark) {
  :root { --page: #2B2823; --paper: #36322C; --ink: #F2EEE4; --muted: #B5AE9F; --line: #4D473F; --shadow: #000000; }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--page); color: var(--ink); font-size: 17px; line-height: 1.6; }
.band { background: var(--band); }
.top { max-width: 1040px; margin: 0 auto; padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.word { font-family: "Luckiest Guy", Impact, sans-serif; color: var(--gold); font-size: 28px; text-decoration: none; text-transform: uppercase; }
.word span { color: #F2F2F2; font-size: 20px; }
.out { color: #BDBDBD; font-size: 14px; text-decoration: none; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
/* Words keep a comfortable line length. The step drawings use the full width, two across. */
main > p, main > ul, main > h1, main > h2, main > blockquote { max-width: 760px; }
main { padding-top: 28px; padding-bottom: 20px; }
.crumb { font-size: 14px; margin: 0 0 8px; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2 { font-family: "Luckiest Guy", Impact, sans-serif; font-weight: normal; text-transform: uppercase; line-height: 1.1; }
h1 { font-size: clamp(30px, 6vw, 44px); margin: 6px 0 12px; }
h2 { font-size: 24px; margin: 32px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p { margin: 10px 0; }
/* Steps: one action per step, the button in bold. */
ol { padding-left: 0; counter-reset: step; list-style: none; }
ol > li { counter-increment: step; position: relative; padding: 10px 14px 10px 54px; margin: 10px 0; background: var(--paper);
          border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--shadow); }
ol > li::before { content: counter(step); position: absolute; left: 14px; top: 9px; font-family: "Luckiest Guy", Impact, sans-serif; font-size: 22px; color: var(--green); }
strong { font-weight: 700; }
ul { padding-left: 22px; }
/* Pictures outside a step: a sticker edge and a hard shadow. */
img { max-width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--shadow); margin: 8px 0; }
/* "What you see" and platform notes. */
blockquote { margin: 14px 0; padding: 10px 16px; background: var(--cream); color: #111111; border: 2px solid #111111; border-radius: 12px; }
blockquote p { margin: 4px 0; }
/* The quest: the flavor line right under the title, read aloud like a game's boxed text,
   with the guide's figure beside it. */
h1 + blockquote { display: flex; align-items: center; min-height: 104px; margin: 4px 0 18px; padding: 12px 18px 12px 100px; font-size: 18px;
                  border-width: 3px; box-shadow: 4px 4px 0 var(--shadow); background: var(--cream) url("art/figure-scroll.svg") no-repeat 14px center / 76px auto; }
/* Steps with pictures: flat-pack panels, a picture per step. The card's number is the only
   number. Two across on a wide screen, one on a phone. */
ol:has(img) { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; margin: 18px 0; }
ol:has(img) > li { margin: 0; padding: 10px 14px 14px; }
ol:has(img) > li::before { position: static; display: block; font-size: 36px; line-height: 1; color: var(--ink); margin-bottom: 6px; }
li img { display: block; width: 100%; margin: 0 0 10px; border: 2px solid #111111; border-radius: 10px; box-shadow: none; background: #FFFFFF; }
li > p { margin: 0; }
/* A tour of a screen: one picture with a numbered marker on every part, then a caption per
   marker. The picture may sit in a link, as some renderers wrap it. Each caption's badge matches its marker: a dark badge with a gold number. */
p:has(> img):has(+ ol), p:has(> a > img):has(+ ol) { overflow-x: auto; padding: 0 6px 6px 0; }
p:has(> img) + ol, p:has(> a > img) + ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 16px; margin-top: 14px; }
p:has(> img) + ol > li, p:has(> a > img) + ol > li { margin: 0; padding: 9px 12px 9px 54px; border-width: 2px; box-shadow: 3px 3px 0 var(--shadow); }
p:has(> img) + ol > li::before, p:has(> a > img) + ol > li::before { left: 10px; top: 7px; width: 30px; height: 30px; border-radius: 50%; background: #1A1A1A; color: #D4AF37;
                                 border: 2px solid #FFFFFF; box-shadow: 0 0 0 2px #111111; font-size: 17px; line-height: 31px; text-align: center; }
li blockquote { margin: 10px 0 0; padding: 6px 12px; font-size: 15px; }
/* The guide list on the front page. */
.guides { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.guides li { background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--shadow); padding: 12px 16px; }
.guides a { font-weight: 700; text-decoration: none; }
footer { color: var(--muted); font-size: 14px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); margin-top: 24px; }
/* Printed, like a flat-pack booklet: colors kept, and a step never splits across pages. */
@media print { * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } ol > li, h1 + blockquote { break-inside: avoid; } }
@media (max-width: 640px) { body { font-size: 16px; } ol > li { padding-left: 46px; }
  /* On a phone, a tour picture keeps a size where its markers read, and scrolls sideways in its own box. */
  p:has(> img):has(+ ol) > img, p:has(> a > img):has(+ ol) img { width: 700px; max-width: none; } }
