/* ============================================================
   Silver Thumb Games — Base
   ------------------------------------------------------------
   A restrained foundation. Dark Current is dark-first; consumers
   add [data-theme="light"] for docs & store contexts.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  /* Dusk display (Rushen) ships a single weight — render its true design
     instead of a synthetic bold when headings ask for 600/700. */
  font-synthesis-weight: none;
}

::selection { background: var(--selection-bg); color: var(--text-strong); }

/* Headings default to the Dusk display voice */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-dusk);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); letter-spacing: var(--tracking-display); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

:focus-visible {
  outline: var(--border-thick) solid var(--focus-ring);
  outline-offset: 2px;
}

/* Arabic content sets its own face & direction */
:lang(ar), [dir="rtl"] { font-family: var(--font-arabic); }

/* Cool, thin scrollbars to match the dark-current atmosphere */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--dusk-600) transparent;
}
