/* rawrrr brand tokens. Colours come from the 48×48 tiger sprite (assets/tiger48.json).
   Headings and the wordmark use Silkscreen (pixel), everything else Inter. */
:root {
  --rr-fur: #f17b24;          /* tiger orange: accents, primary buttons */
  --rr-fur-deep: #b85a12;     /* orange text on light backgrounds (4.5:1 on paper) */
  --rr-stripe: #241c1a;       /* ink: text, outlines, pixel shadows */
  --rr-cream: #ffe8c5;        /* light fur */
  --rr-shade: #cfa273;        /* shaded fur */
  --rr-eye: #ffc342;
  --rr-gum: #c45c63;
  --rr-mouth: #502029;
  --rr-bug: #a6c84c;
  --rr-jungle: #2b3420;       /* dark ground */
  --rr-jungle-deep: #1f2617;

  --rr-bg: #fffaf0;           /* paper */
  --rr-surface: #ffffff;
  --rr-surface-2: #fff3d9;
  --rr-text: #241c1a;
  --rr-muted: #6b5330;
  --rr-line: #241c1a;
  --rr-line-soft: #e6d6b5;
  --rr-focus: #2563eb;
  --rr-ok: #2f7d32;
  --rr-warn: #a15c00;
  --rr-danger: #b3261e;

  --rr-status-waiting: #ffd88a;
  --rr-status-progress: #cfe0ff;
  --rr-status-done: #c9ecc4;
  --rr-status-closed: #e6dccb;

  --rr-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rr-font-pixel: Silkscreen, ui-monospace, monospace;
  --rr-radius: 0px;           /* pixel look: square corners */
  --rr-border: 2px solid var(--rr-line);
  --rr-shadow: 3px 3px 0 var(--rr-stripe);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rr-bg: #1f2617;
    --rr-surface: #2b3420;
    --rr-surface-2: #343f27;
    --rr-text: #ffe8c5;
    --rr-muted: #cdbb95;
    --rr-line: #ffe8c5;
    --rr-line-soft: #4a573d;
    --rr-fur-deep: #f7a35e;
    --rr-shadow: 3px 3px 0 #000;
    --rr-status-waiting: #6b5200;
    --rr-status-progress: #23406b;
    --rr-status-done: #2c5a2c;
    --rr-status-closed: #4a4436;
  }
}
:root[data-theme="dark"] {
  --rr-bg: #1f2617;
  --rr-surface: #2b3420;
  --rr-surface-2: #343f27;
  --rr-text: #ffe8c5;
  --rr-muted: #cdbb95;
  --rr-line: #ffe8c5;
  --rr-line-soft: #4a573d;
  --rr-fur-deep: #f7a35e;
  --rr-shadow: 3px 3px 0 #000;
  --rr-status-waiting: #6b5200;
  --rr-status-progress: #23406b;
  --rr-status-done: #2c5a2c;
  --rr-status-closed: #4a4436;
}

/* rawrrr.io site. Brand tokens (brand.css) are prepended at build time. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--rr-bg); color: var(--rr-text); font: 16px/1.6 var(--rr-font); overflow-wrap: break-word; }
img, svg, canvas { max-width: 100%; }
a { color: var(--rr-fur-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rr-focus); outline-offset: 2px; }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
code { background: var(--rr-surface-2); padding: 1px 5px; border: 1px solid var(--rr-line-soft); }
pre { background: var(--rr-jungle-deep); color: var(--rr-cream); padding: 14px 16px; overflow-x: auto; border: var(--rr-border); box-shadow: var(--rr-shadow); line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
kbd { border: 1px solid var(--rr-line); padding: 0 5px; background: var(--rr-surface); }
h1, h2, h3, h4 { font-family: var(--rr-font-pixel); font-weight: 400; line-height: 1.25; letter-spacing: .01em; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(26px, 6.2vw, 42px); margin-top: 0; }
h2 { font-size: clamp(20px, 4.4vw, 26px); }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
p, ul, ol, blockquote, .table-wrap, pre, details { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin: .25em 0; }
hr { border: 0; border-top: 2px solid var(--rr-line-soft); margin: 2em 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--rr-surface); border: var(--rr-border); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header + footer */
.site-header { border-bottom: 2px solid var(--rr-line); background: var(--rr-surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: var(--rr-font-pixel); font-size: 22px; color: var(--rr-text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.brand b { font-weight: 400; color: var(--rr-fur-deep); }
.brand canvas, .brand img { width: 32px; height: 32px; image-rendering: pixelated; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-left: auto; align-items: center; }
.nav a { color: var(--rr-text); text-decoration: none; padding: 8px 10px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rr-fur); text-decoration-thickness: 3px; }
.nav .btn { padding: 8px 14px; min-height: 40px; }
.site-footer { margin-top: 64px; border-top: 2px solid var(--rr-line); background: var(--rr-surface); padding: 28px 0 88px; font-size: 15px; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.site-footer h2 { font-size: 14px; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: 4px 0; }
.site-footer .fine { margin-top: 20px; color: var(--rr-muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1.2 var(--rr-font); padding: 13px 20px; min-height: 48px; background: var(--rr-surface); color: var(--rr-text); border: var(--rr-border); box-shadow: var(--rr-shadow); text-decoration: none; cursor: pointer; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--rr-stripe); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--rr-stripe); }
.btn.primary { background: var(--rr-fur); color: #241c1a; border-color: #241c1a; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 0; }

/* hero */
.hero { padding: 40px 0 24px; display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
.hero .lede { font-size: 18px; max-width: 40em; }
.hero .try { color: var(--rr-muted); font-size: 15px; margin-top: 18px; }
.tiger-stage { width: 192px; height: 192px; margin: 0 auto; background: var(--rr-surface-2); border: var(--rr-border); box-shadow: 6px 6px 0 var(--rr-stripe); display: grid; place-items: center; order: -1; }
.tiger-stage canvas { width: 144px; height: 144px; image-rendering: pixelated; display: block; }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr 240px; padding: 64px 0 40px; }
  .tiger-stage { order: 0; width: 240px; height: 240px; }
  .tiger-stage canvas { width: 192px; height: 192px; }
}
section.block { padding: 36px 0 8px; }
section.block > .wrap > h2:first-child { margin-top: 0; }
.eyebrow { font-family: var(--rr-font-pixel); color: var(--rr-fur-deep); font-size: 14px; margin: 0 0 6px; }

/* cards + grids */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.card { background: var(--rr-surface); border: var(--rr-border); box-shadow: var(--rr-shadow); padding: 20px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-top: 0; }
.card.accent { background: var(--rr-surface-2); border-color: var(--rr-fur-deep); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--rr-fur); color: #241c1a; border: 2px solid #241c1a; font-family: var(--rr-font-pixel); margin-bottom: 8px; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; background: var(--rr-fur); border: 2px solid var(--rr-stripe); }
.price { font-family: var(--rr-font-pixel); font-size: 40px; line-height: 1.1; margin: 8px 0 2px; }
.price small { font-family: var(--rr-font); font-size: 15px; color: var(--rr-muted); }
.note { color: var(--rr-muted); font-size: 15px; }
.badge { display: inline-block; padding: 2px 8px; font-size: 13px; font-weight: 700; background: var(--rr-status-waiting); border: 2px solid var(--rr-line); }

/* illustrations (aria-hidden, built in CSS) */
.mock { border: var(--rr-border); background: var(--rr-surface); box-shadow: var(--rr-shadow); font-size: 13px; line-height: 1.4; margin-bottom: 14px; user-select: none; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--rr-surface-2); border-bottom: 2px solid var(--rr-line); font-weight: 700; }
.mock-bar i { width: 10px; height: 10px; background: var(--rr-fur); border: 2px solid var(--rr-stripe); display: inline-block; }
.mock-body { padding: 10px; display: grid; gap: 8px; }
.ln { height: 8px; background: var(--rr-line-soft); }
.ln.w60 { width: 60%; } .ln.w80 { width: 80%; } .ln.w40 { width: 40%; }
.shot { position: relative; height: 84px; border: 2px solid var(--rr-line); background: var(--rr-surface-2); padding: 8px; display: grid; gap: 6px; align-content: start; }
.stripe { position: absolute; left: 14%; top: 36px; width: 56%; height: 14px; background: rgba(241, 123, 36, .55); border: 2px dashed var(--rr-fur-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 1px 8px; border: 2px solid var(--rr-line); font-weight: 700; font-size: 12px; background: var(--rr-surface); }
.chip.on { background: var(--rr-fur); color: #241c1a; border-color: #241c1a; }
.chip.waiting { background: var(--rr-status-waiting); color: var(--rr-text); }
.chip.progress { background: var(--rr-status-progress); color: var(--rr-text); }
.chip.done { background: var(--rr-status-done); color: var(--rr-text); }
.mock .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mock .mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--rr-muted); }

/* FAQ + details */
details { border: 2px solid var(--rr-line); background: var(--rr-surface); }
details > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; min-height: 44px; }
details > :not(summary) { padding: 0 16px; }
details[open] > summary { border-bottom: 2px solid var(--rr-line-soft); margin-bottom: 12px; }
details[open] > :last-child { padding-bottom: 4px; }
.faq details + details { margin-top: -2px; }

/* tables, callouts */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 420px; background: var(--rr-surface); }
th, td { border: 2px solid var(--rr-line-soft); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: var(--rr-surface-2); border-color: var(--rr-line); }
blockquote { background: var(--rr-surface-2); border: 2px solid var(--rr-line); border-left: 8px solid var(--rr-fur); padding: 10px 16px; }
blockquote > :last-child { margin-bottom: 0; }

/* prose pages */
.page { padding: 40px 0 0; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.8em; }
.meta { color: var(--rr-muted); font-size: 15px; margin: -.2em 0 1.4em; }
.docs-grid { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 32px; }
.docs-nav { font-size: 15px; }
.docs-nav details { border-width: 2px; }
.docs-nav h2 { font-size: 13px; margin: 14px 0 4px; color: var(--rr-muted); }
.docs-nav ul { list-style: none; padding: 0; margin: 0; }
.docs-nav a { display: block; padding: 6px 8px; color: var(--rr-text); text-decoration: none; border-left: 4px solid transparent; }
.docs-nav a:hover { background: var(--rr-surface-2); }
.docs-nav a[aria-current="page"] { border-left-color: var(--rr-fur); font-weight: 700; background: var(--rr-surface-2); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 16px; border-top: 2px solid var(--rr-line-soft); }
@media (min-width: 900px) {
  .docs-grid { grid-template-columns: 240px minmax(0, 1fr); }
  .docs-nav details { border: 0; background: none; }
  .docs-nav details > summary { display: none; }
  .docs-nav details > :not(summary) { padding: 0; display: block; }
  .docs-nav { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; }
}
.cta-band { margin-top: 56px; background: var(--rr-jungle); color: var(--rr-cream); border: var(--rr-border); box-shadow: var(--rr-shadow); padding: 32px 20px; text-align: center; }
.cta-band h2 { margin-top: 0; }
.cta-band .actions { justify-content: center; }
.cta-band .btn:not(.primary) { color: #241c1a; background: var(--rr-cream); }
.cta-band a:not(.btn) { color: #f7a35e; }
.err { text-align: center; padding: 64px 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } .btn:hover, .btn:active { transform: none; } }
@media print { .site-header, .site-footer, .skip { display: none; } }
