/* ═══════════════════════════════════════════════════════
   NexStone — base
   Reset and document defaults shared by BOTH stylesheets.

   This must load on every page. The film layer (style.css) and the page
   layer (pages.css) are component layers only; neither may redefine what
   lives here, and neither can be relied on to load the other's reset.
   ═══════════════════════════════════════════════════════ */

/* Text faces, self-hosted. They used to come from Google Fonts, and the
   production host's CSS combining stripped that stylesheet on every page,
   so the site rendered in Georgia and the system sans. Variable fonts,
   Latin subset, the same axes the Google request asked for: Fraunces with
   optical size and 300-500 upright / 300-400 italic, Archivo 300-500.
   Descriptor values are literals: @font-face cannot read custom properties. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

/* The wordmark face. fonts/ holds a Latin-letters subset of Nexa Extra
   Light: it sets "NexStone" and nothing else, so it is small enough to
   preload on every page - see nexstone_preload_logo_font(). */
@font-face {
  font-family: "Nexa";
  src: url("../fonts/nexa-extralight-latin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

* { margin: var(--space-0); padding: var(--space-0); box-sizing: border-box; }

html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-scrollbar-thumb) var(--color-scrollbar-track);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-sans);
  font-weight: var(--font-weight-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img, picture, video, canvas, svg {
  display: block;
  max-width: var(--layout-size-full);
}

input, button, textarea, select { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* Visually hidden, still read by screen readers and search engines. Core's
   own class name, so markup WordPress prints (pagination labels, the comment
   form) is covered too. */
.screen-reader-text {
  position: absolute;
  inline-size: var(--space-px);
  block-size: var(--space-px);
  margin: calc(var(--space-px) * -1);
  padding: var(--space-0);
  border: var(--space-0);
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
