/* ─────────────────────────────────────────────────────────────
   SONARIS — base
   Reset, document typography, links, focus. Loaded after tokens.
   ───────────────────────────────────────────────────────────── */

/* The project's own face: a pixel monospace. Served from the project,
   not from a font host, so the site has no third-party request and
   renders the same offline. */
@font-face {
  font-family: "Basis33";
  src: url("../assets/fonts/basis33.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--fs-13);
  line-height: var(--lh-body);
  font-variant-ligatures: none;
  font-feature-settings: "calt" 0, "liga" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* Numbers in tables, prices, counters line up. */
table,
.tnum {
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg,
pre {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

pre,
code,
kbd,
samp {
  font-family: var(--mono);
  font-size: inherit;
  tab-size: 1;
}

pre {
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}

hr {
  border: 0;
  border-top: var(--hairline) solid var(--hair);
  margin: 0;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* One focus ring for the whole project. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.on-dark :focus-visible,
.surface-dark :focus-visible {
  outline-color: var(--focus-dark);
}

/* Keyboard users only; pointer clicks stay quiet. */
:focus:not(:focus-visible) {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* Every page uses the same pair of breakpoints: 1100 / 720. */
@media (max-width: 1100px) {
  body {
    --gutter: 26px;
  }
}

@media (max-width: 720px) {
  body {
    --gutter: 16px;
  }
}
