/*
 * KMT Base Styles
 * Reset, body defaults, typography base, font-face declarations.
 */

/* ------------------------------------------------------------------ */
/* @font-face: Inter (self-hosted)                                      */
/* ------------------------------------------------------------------ */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ */
/* Reset                                                                */
/* ------------------------------------------------------------------ */

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

html {
  font-size: 100%; /* 16px */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--kmt-text-base);
  font-weight: 400;
  line-height: var(--kmt-leading-normal);
  color: var(--kmt-neutral-900);
  background-color: var(--kmt-neutral-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

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

/* ------------------------------------------------------------------ */
/* Typography: heading hierarchy                                        */
/* ------------------------------------------------------------------ */

h1 {
  font-size: var(--kmt-text-h1);
  font-weight: 700;
  line-height: var(--kmt-leading-tight);
  letter-spacing: var(--kmt-tracking-tight);
  color: var(--kmt-blue-800);
}

h2 {
  font-size: var(--kmt-text-h2);
  font-weight: 700;
  line-height: var(--kmt-leading-snug);
  color: var(--kmt-blue-800);
}

h3 {
  font-size: var(--kmt-text-h3);
  font-weight: 600;
  line-height: var(--kmt-leading-snug);
  color: var(--kmt-blue-800);
}

h4 {
  font-size: var(--kmt-text-h4);
  font-weight: 600;
  line-height: var(--kmt-leading-snug);
  color: var(--kmt-blue-800);
}

p {
  font-size: var(--kmt-text-base);
  line-height: var(--kmt-leading-normal);
}

/* ------------------------------------------------------------------ */
/* Eyebrow label base                                                   */
/* ------------------------------------------------------------------ */

.kmt-eyebrow {
  display: block;
  font-size: var(--kmt-text-eyebrow);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--kmt-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--kmt-green-500);
}

/* ------------------------------------------------------------------ */
/* Focus visible (global)                                              */
/* ------------------------------------------------------------------ */

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

/* ------------------------------------------------------------------ */
/* Skip to content link                                                 */
/* ------------------------------------------------------------------ */

.kmt-skip-link {
  position: absolute;
  top: -100%;
  left: var(--kmt-space-md);
  z-index: calc(var(--kmt-z-modal) + 10);
  padding: var(--kmt-space-xs) var(--kmt-space-md);
  background: var(--kmt-blue-800);
  color: var(--kmt-neutral-0);
  font-weight: 600;
  border-radius: var(--kmt-radius-sm);
  transition: top 0.2s;
}

.kmt-skip-link:focus {
  top: var(--kmt-space-md);
}

/* ------------------------------------------------------------------ */
/* Horizontal rule                                                      */
/* ------------------------------------------------------------------ */

hr {
  border: none;
  border-top: 1px solid var(--kmt-neutral-200);
}

/* ------------------------------------------------------------------ */
/* Print styles                                                         */
/* ------------------------------------------------------------------ */

@media print {
  .kmt-site-header,
  .kmt-site-footer,
  .kmt-mobile-nav,
  .kmt-nav-scrim,
  .kmt-skip-link,
  .kmt-hamburger,
  .kmt-cta-block,
  .kmt-blog-archive__pagination {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
  }

  a[href^='#']::after,
  a[href^='tel:']::after,
  a[href^='mailto:']::after {
    content: '';
  }

  h1, h2, h3 {
    page-break-after: avoid;
    color: #000;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .kmt-single-post__inner,
  .kmt-prose {
    max-width: 100%;
  }
}
