/* ==================================================================
   ARXIMASTER // FOLIO — base / reset
   ================================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--fo-font-body);
  font-size: var(--fo-fs-400);
  line-height: 1.55;
  color: var(--fo-ink);
  background-color: var(--fo-paper);
  /* faint halftone "press texture" — a print artifact, not a soft accent */
  background-image:
    repeating-linear-gradient(0deg, rgba(17, 17, 17, 0.035) 0 1px, transparent 1px 4px),
    radial-gradient(rgba(17, 17, 17, 0.05) 0.5px, transparent 0.5px);
  background-size: auto, 5px 5px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--fo-font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: var(--fo-tracking-tight);
  text-transform: uppercase;
}

p {
  margin: 0 0 var(--sp-3);
}

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

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

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

ul,
ol {
  margin: 0 0 var(--sp-3);
  padding-left: 1.35em;
}

hr {
  border: 0;
  border-top: var(--fo-border-2);
  margin: var(--sp-5) 0;
}

code,
pre,
kbd {
  font-family: var(--fo-font-mono);
}

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

:focus-visible {
  outline: 3px solid var(--fo-cobalt);
  outline-offset: 2px;
}

/* ---------------- layout helpers ---------------- */

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-5) var(--sp-8);
  flex: 1;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.row {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: center;
}

.row-between {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

.mono {
  font-family: var(--fo-font-mono);
  font-size: var(--fo-fs-200);
  letter-spacing: var(--fo-tracking-wide);
  text-transform: uppercase;
}

.muted {
  color: var(--fo-muted);
}

.ink-soft {
  color: var(--fo-ink-soft);
}

.no-underline,
.no-underline:hover {
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--fo-yellow);
  border: var(--fo-border);
  padding: var(--sp-3) var(--sp-4);
}
.skip-link:focus {
  left: var(--sp-4);
  top: var(--sp-4);
}
