/* ==========================================================================
   NASHORN – Base
   Developed by webndo
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-compact);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
address {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

strong {
  font-weight: 600;
}

/* Headings */
h1,
h2,
h3,
.h2,
.h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: var(--heading-tracking, -0.022em);
  text-wrap: balance;
  line-height: var(--lh-heading);
}

h1,
h2,
.h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.022em);
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: var(--display-tracking, -0.028em);
}

.h2--md {
  font-size: var(--fs-h2-md);
  line-height: 1.16;
  letter-spacing: var(--display-tracking, -0.024em);
}

.h3 {
  font-size: var(--fs-h3);
}

/* Focus */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--nashorn-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Selection */
::selection {
  background: rgba(0, 159, 227, 0.22);
  color: var(--text-dark);
}

/* Scrollbar (desktop pointers only) */
@media (hover: hover) and (pointer: fine) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--nashorn-blue) var(--soft-grey);
  }

  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-track {
    background: var(--soft-grey);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--nashorn-blue);
    border: 2px solid var(--soft-grey);
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--nashorn-cyan);
  }
}

/* Utilities */
.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;
}

.d-block {
  display: block;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--navy-900);
  color: var(--white);
  font-size: var(--fs-small);
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}
