/* Stylesheet for the static guide pages under /guides.
 *
 * Deliberately standalone. The app's CSS is emitted by Vite as
 * assets/index-<hash>.css and that hash changes on every build, but files in
 * public/ are copied verbatim and have no way to learn it - so linking the app
 * bundle here would silently break the moment any component style changes.
 * The tokens below are copied from tailwind.config.js and main.css instead, so
 * these pages match the app without depending on its build. */

:root {
  --ground: #16161e;      /* night-dark */
  --surface: #1b1b24;     /* night-dark-2 */
  --surface-2: #22222b;   /* night-dark-3 */
  --rule: #374151;
  --ink: #f3f4f6;
  --ink-2: #b6b6c2;
  --ink-3: #8b8b98;
  --accent: #4a95e8;      /* same blue as pip 1 */
  --accent-hover: #6aa9ee;
  --green: #046307;
  --radius: 10px;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

/* ── header ─────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.site-header .inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 16px;
}
/* No flex gap here: the bare "rundominoes" text node and the ".com" span are two
   separate flex items, so a gap would split the wordmark in half. The logo gets
   a margin instead, leaving the name to read as one word. */
.wordmark {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px;
  display: flex; align-items: center;
}
.wordmark img { width: 34px; height: 34px; margin-right: 9px; }
.wordmark span { font-weight: 300; color: var(--ink-3); }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-header nav a {
  color: var(--ink-2); text-decoration: none; font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
}
.site-header nav a:hover { color: #fff; background: var(--surface-2); }
.site-header nav a.cta {
  background: #2563eb; color: #fff; font-weight: 600;
}
.site-header nav a.cta:hover { background: #3b82f6; }

/* ── layout ─────────────────────────────────────────────────────── */
main { max-width: var(--measure); margin: 0 auto; padding: 48px 20px 80px; }
main.wide { max-width: 1100px; }

.breadcrumb { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent); }

h1 {
  color: #fff; font-size: clamp(2rem, 5vw, 2.85rem); line-height: 1.15;
  margin: 0 0 18px; letter-spacing: -.02em; text-wrap: balance;
}
.lead { font-size: 1.2rem; color: var(--ink-2); margin: 0 0 14px; }

h2 {
  color: #fff; font-size: 1.55rem; line-height: 1.25; margin: 48px 0 14px;
  letter-spacing: -.01em; scroll-margin-top: 20px;
}
h3 { color: var(--ink); font-size: 1.18rem; margin: 32px 0 10px; }

p { margin: 0 0 18px; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
strong { color: var(--ink); font-weight: 600; }

ul, ol { margin: 0 0 18px; padding-left: 24px; }
li { margin-bottom: 9px; }
li::marker { color: var(--ink-3); }

hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }

/* ── components ─────────────────────────────────────────────────── */
.meta {
  font-size: 14px; color: var(--ink-3); margin: 0 0 34px;
  padding-bottom: 20px; border-bottom: 1px solid var(--rule);
}

.callout {
  background: var(--surface); border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 16px 20px; margin: 0 0 26px;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent); }

.table-wrap { overflow-x: auto; margin: 0 0 26px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; min-width: 380px; }
caption { text-align: left; color: var(--ink-3); font-size: 14px; padding-bottom: 8px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
th { color: var(--ink); font-weight: 600; }

.play-cta {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 28px; margin: 44px 0 0; text-align: center;
}
.play-cta h2 { margin-top: 0; font-size: 1.35rem; }
.play-cta p { color: var(--ink-2); }
.btn {
  display: inline-block; background: #2563eb; color: #fff; font-weight: 600;
  text-decoration: none; padding: 14px 30px; border-radius: var(--radius);
  font-size: 1.05rem; margin-top: 6px;
}
.btn:hover { background: #3b82f6; color: #fff; }

/* guide index cards */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 34px; }
.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 24px; text-decoration: none; display: block;
}
.card:hover { border-color: var(--ink-3); }
.card h2 { margin: 0 0 10px; font-size: 1.22rem; }
.card p { color: var(--ink-2); margin: 0; font-size: 16px; }
.card .tag {
  display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}

.lang-switch {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 26px;
}
.lang-switch span { color: var(--ink-3); }

/* ── footer ─────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule); margin-top: 60px;
  color: var(--ink-3); font-size: 15px;
}
.site-footer .inner {
  max-width: 1100px; margin: 0 auto; padding: 28px 20px;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
}
.site-footer a { color: var(--ink-3); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .spacer { margin-left: auto; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  main { padding: 32px 18px 60px; }
  .site-header nav a:not(.cta) { display: none; }
}
