/* ==========================================================================
   INNOVANATEC — Reset & base typography
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  min-height: 100%;
  background: var(--ink-900);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

/* ---------- Headings ---------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  color: var(--text-hi);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.14;
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}

p {
  text-wrap: pretty;
}

strong {
  color: var(--text-hi);
  font-weight: 600;
}

a {
  color: var(--brand-orange-300);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

a:hover {
  color: var(--brand-orange);
}

ul,
ol {
  padding: 0;
  list-style: none;
}

/* ---------- Focus ---------- */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--brand-orange);
  color: #fff;
}

/* ---------- Scrollbar (WebKit) ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ink-950);
}
::-webkit-scrollbar-thumb {
  background: var(--ink-700);
  border-radius: var(--r-pill);
  border: 2px solid var(--ink-950);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-600);
}

/* ---------- Utilities ---------- */
.u-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: var(--z-top);
  padding: 12px 20px;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top var(--t-fast) var(--ease-out);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.u-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
}

.u-nowrap {
  white-space: nowrap;
}
