/* WildBunny Gaming: one stylesheet for every page. tools/build.py stamps it as
   /assets/site.<hash>.css so it can be cached for a year. */

:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --surface-2: #f4ece0;
  --ink: #1e1a2b;
  --muted: #5d5668;
  --line: #e6dccd;
  --accent: #e2582c;          /* sunset orange; darker than the mark for text contrast */
  --accent-soft: #fde3d6;
  --violet: #5b3fc8;
  --focus: #5b3fc8;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(30 26 43 / 6%), 0 8px 24px rgb(30 26 43 / 7%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14111f;
    --surface: #1d1930;
    --surface-2: #241f3a;
    --ink: #f4eee6;
    --muted: #b6afc4;
    --line: #322b4b;
    --accent: #ff8a5c;
    --accent-soft: #3a2230;
    --violet: #a993ff;
    --focus: #a993ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; }
.brand small { display: block; font: 600 .7rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Sections */
main { display: block; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section + .section { padding-top: 0; }
.eyebrow { font: 700 .78rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; }

/* Hero */
.hero { padding-block: clamp(56px, 10vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.hero-mark { justify-self: center; width: min(280px, 70vw); filter: drop-shadow(0 18px 30px rgb(226 88 44 / 22%)); }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { order: -1; width: 140px; justify-self: start; }
}

.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--ink); color: var(--bg); border: 2px solid var(--ink); }
.button:hover { background: transparent; color: var(--ink); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--bg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; align-items: center; gap: 14px; }
.card-head img { width: 64px; height: 64px; border-radius: 16px; background: #fff; }
.card-head h3 { margin: 0; }
.card-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.card .status { align-self: flex-start; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.card .more { margin-top: auto; font-weight: 700; }

/* Product detail */
.product { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.product + .product { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.phone { border-radius: 28px; border: 6px solid var(--ink); background: #000; overflow: hidden; box-shadow: var(--shadow); }
.facts { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
  .product .phone { width: 200px; }
}

/* Simple tables and definition lists */
.table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .97rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { width: 34%; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) {
  .table th, .table td { display: block; width: 100%; padding: 4px 0; border: 0; }
  .table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}

.panel { background: var(--surface-2); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-list .card { padding: 22px; gap: 6px; }
.contact-list .card p { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-list a { font-weight: 700; word-break: break-word; }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.download { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.download .thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; padding: 12px; }
.download .thumb img { max-height: 100%; width: auto; }
.download span { font-weight: 700; }
.download small { color: var(--muted); }

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.updated { color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 40px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer address { font-style: normal; }

@media (prefers-reduced-motion: no-preference) {
  .button, .nav a { transition: background-color .15s, color .15s, border-color .15s; }
}
.site-footer .copy { margin: 12px 0 0; }

/* D&B Small Business Badge on About: D&B's image as issued, on its own white card so it reads in dark mode too. */
.dnb-badge { display: block; width: min(420px, 100%); margin: 8px 0 0; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.dnb-badge img { display: block; width: 100%; height: auto; }
