/* Taletoss guides: static pages, same paper, coral and ink as the app (css/app.css), no JavaScript. */
:root {
  --coral: #ff6b4a;
  --coral-dark: #c8401f;
  --gold: #ffc94a;
  --cream: #fff4e6;
  --paper: #fffaf2;
  --ink: #2b2340;
  --muted: #625a73;
  --line: #eadfce;
  --soft: #ffe6dc;
  --radius: 18px;
  --shadow: 0 6px 22px rgba(43, 35, 64, 0.12);
  --display: Fredoka, Nunito, system-ui, sans-serif;
  --body: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --story: Fraunces, Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--ink); background: var(--paper); overflow-wrap: break-word; }
a { color: var(--coral-dark); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.45em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 600; margin-top: 1.8em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 0.9em; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.lead { font-size: 1.12rem; }
.eyebrow { font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--coral-dark); margin: 0 0 0.4em; }
.payoff { color: var(--coral-dark); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.i { width: 1.2em; height: 1.2em; flex: none; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; position: sticky; top: 0; z-index: 20; background: rgba(255, 244, 230, 0.95); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.35rem var(--display); }
.brand-logo svg { width: 38px; height: 38px; border-radius: 10px; display: block; }
.top nav { display: flex; align-items: center; gap: 16px; font-weight: 800; }
.top nav > a:not(.btn) { color: var(--ink); text-decoration: none; }

/* Buttons: pills with the sticker border; ink text on coral (5.26:1). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45em; font: 800 1rem var(--body); padding: 11px 20px; border-radius: 99px; border: 2px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 3px 0 var(--ink); min-height: 48px; margin: 0 6px 8px 0; transition: transform 0.12s cubic-bezier(.2, .8, .2, 1); }
.btn:hover { transform: translateY(-1px); color: var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { background: var(--coral); }
.btn-small { padding: 6px 14px; font-size: 0.92rem; min-height: 44px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover, .btn:active { transform: none; } }

/* Layout */
main { display: block; }
.crumbs { max-width: 1120px; margin: 0 auto; padding: 14px 18px 0; font-size: 0.9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: '/'; color: var(--muted); margin-right: 4px; }
.crumbs a { color: var(--ink); }
.crumbs [aria-current] { color: var(--muted); }
.hero { max-width: 1120px; margin: 0 auto; padding: 18px 18px 8px; display: grid; gap: 24px; align-items: center; }
.hero-art .scene { width: 100%; height: auto; display: block; border-radius: 28px; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 28px; } }
.hero-index { grid-template-columns: 1fr; }
.hero-index .hero-text { max-width: 820px; }
.body { max-width: 760px; margin: 0 auto; padding: 8px 18px 48px; }
.body.wide { max-width: 1120px; }

/* Content blocks */
.list { padding-left: 1.2em; }
.list li { margin-bottom: 0.45em; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 0.9em 3em; min-height: 2.2em; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -0.1em; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); font: 700 1rem/1.9em var(--display); text-align: center; }
.games { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: g; }
.game { counter-increment: g; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 6px; box-shadow: var(--shadow); }
.game h3::before { content: counter(g) '. '; color: var(--coral-dark); }
.start { font-family: var(--story); font-style: italic; background: var(--cream); border-radius: 12px; padding: 10px 14px; }
.start span { display: block; font: 900 0.72rem var(--body); font-style: normal; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.tip { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border-radius: var(--radius); padding: 16px 18px 4px; margin: 1em 0 1.4em; }
.tip .i { color: var(--coral-dark); margin-top: 0.25em; width: 1.4em; height: 1.4em; }
.openers { margin: 1em 0 1.4em; display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.openers > .pic { width: 64px; height: 64px; flex: none; }
.openers ul { margin: 0; padding: 0; list-style: none; }
.openers li { font-family: var(--story); font-size: 1.05rem; line-height: 1.5; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.openers li:last-child { border-bottom: 0; }
figcaption { font-size: 0.85rem; color: var(--muted); font-weight: 700; margin-top: 6px; }
.words ul, .cards-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.words li { background: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 4px 12px; font-weight: 800; font-size: 0.95rem; }
.cards-list ul { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cards-list li { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--coral); border-radius: 12px; padding: 10px 12px; }
.words, .cards-list { margin: 1em 0 1.4em; }
.titles { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.titles li { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; font-family: var(--story); font-weight: 600; }
.pic.sm { width: 40px; height: 40px; flex: none; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.4em; }
table { border-collapse: collapse; width: 100%; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--cream); font-weight: 900; }
tbody th { font-family: var(--display); color: var(--coral-dark); }

/* Call to action */
.cta { display: flex; gap: 18px; align-items: flex-start; background: var(--cream); border: 2px solid var(--ink); border-radius: 28px; box-shadow: 0 5px 0 var(--ink); padding: 20px; margin: 2em 0; }
.cta-logo svg { width: 64px; height: 64px; border-radius: 16px; display: block; }
.cta .btn { margin-bottom: 0; }
@media (max-width: 520px) { .cta { flex-direction: column; } .cta-logo svg { width: 52px; height: 52px; } }

/* FAQ and related */
.faq h3 { margin-top: 1.2em; }
.guide-cards { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.guide-card { display: flex; gap: 14px; align-items: flex-start; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform 0.12s cubic-bezier(.2, .8, .2, 1); }
.guide-card:hover { transform: translateY(-1px); color: var(--ink); }
.guide-card .pic { width: 56px; height: 56px; flex: none; }
.guide-card strong { display: block; font: 600 1.15rem/1.2 var(--display); margin-bottom: 4px; }
.guide-card .muted { display: block; font-size: 0.92rem; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .guide-card { transition: none; } .guide-card:hover { transform: none; } }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--cream); padding: 28px 18px 40px; text-align: center; font-size: 0.92rem; }
.foot a { color: var(--ink); }
.foot-guides { list-style: none; padding: 0; margin: 0 auto 1em; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.q-madeby { font: 700 0.85rem var(--body); color: var(--muted); margin-top: 1em; }
.q-madeby a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; }
.q-mark { height: 0.8em; width: auto; }

@media print {
  .top, .cta, .related, .foot, .hero .btn, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .game, .openers { box-shadow: none; break-inside: avoid; }
  .hero-art { display: none; }
}
@media (max-width: 520px) { th, td { padding: 8px 8px; font-size: 0.95rem; } }
