/* ==========================================================================
   Deskflo Base Styles, Typography & Accessibility
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--color-canvas);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
}

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

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

button {
  font: inherit;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  font-family: var(--font-ui);
  color: inherit;
}

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--color-navy);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
}

h2 {
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
}

h3,
h4 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-navy);
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--color-muted);
}

:focus-visible {
  outline: 3px solid rgba(1, 102, 254, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-navy);
  color: #ffffff;
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.skip-link:focus {
  top: 14px;
}

.w,
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Top Scroll Progress Indicator */
.spb {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), #60a5fa);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 120;
  pointer-events: none;
}

/* View Transitions */
@view-transition {
  navigation: auto;
}

@media (max-width: 767px) {
  .w,
  .container {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
