/* =========================================================================
   02 — BASE
   Reset, fonts, typography, layout primitives, accessibility utilities.
   ========================================================================= */

/* -------------------------------------------------------------------------
   FONTS
   Self-hosted woff2, latin + latin-ext. latin-ext is non-negotiable:
   Ą Č Ę Ė Į Š Ų Ū Ž all live in that range.
   ---------------------------------------------------------------------- */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfairdisplay-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfairdisplay-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------------
   RESET
   ---------------------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-5));
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.mp-scroll-locked {
  overflow: hidden;
}

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

img {
  height: auto;
  border-style: none;
}

svg {
  flex: none;
}

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

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  height: 0;
  border: 0;
  border-top: 1px solid var(--taupe);
}

iframe {
  border: 0;
  max-width: 100%;
}

::selection {
  background: var(--sage-tint);
  color: var(--ink);
}

/* -------------------------------------------------------------------------
   TYPOGRAPHY
   ---------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--ink);
  text-wrap: balance;
  letter-spacing: -0.005em;
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

h5,
h6 {
  font-family: var(--font-sans);
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ink-soft);
}

p,
li {
  max-width: 70ch;
  text-wrap: pretty;
}

p + p {
  margin-top: var(--sp-4);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color var(--dur) var(--ease);
}

.mp-main a:not([class]) {
  color: var(--sage-dark);
  text-decoration: underline;
  text-decoration-color: var(--taupe-line);
}

.mp-main a:not([class]):hover {
  text-decoration-color: currentColor;
}

strong,
b {
  font-weight: 700;
}

small {
  font-size: var(--fs-small);
}

blockquote {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  line-height: 1.4;
  padding-left: var(--sp-5);
  border-left: 2px solid var(--sage);
  color: var(--ink);
}

code,
kbd,
pre,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

/* Overline / eyebrow */
.mp-overline {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--sage-dark);
}

.mp-lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
   LAYOUT PRIMITIVES
   ---------------------------------------------------------------------- */

.mp-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mp-container--narrow {
  max-width: 760px;
}

.mp-container--wide {
  max-width: 1440px;
}

.mp-section {
  padding-block: var(--section-pad);
}

.mp-section--alt {
  background-color: var(--bg-alt);
}

.mp-section--deep {
  background-color: var(--bg-deep);
}

.mp-section--tight {
  padding-block: calc(var(--section-pad) * .55);
}

.mp-main {
  display: block;
  min-height: 40vh;
}

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

.mp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 959.98px) {
  .mp-grid--3,
  .mp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599.98px) {
  .mp-grid--2,
  .mp-grid--3,
  .mp-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.mp-rule {
  height: 1px;
  border: 0;
  background-color: var(--taupe);
}

/* -------------------------------------------------------------------------
   ACCESSIBILITY
   ---------------------------------------------------------------------- */

.mp-sr-only,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mp-skip-link {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 999;
  transform: translateY(-200%);
  padding: var(--sp-3) var(--sp-5);
  background-color: var(--sage-dark);
  color: var(--on-sage);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-xs);
  transition: transform var(--dur) var(--ease);
}

.mp-skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--r-xs);
}

/* Never leave a keyboard user without a ring, even inside dark panels. */
.mp-drawer :focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Minimum tap target for anything clickable. */
:where(a, button)[class*="mp-iconbtn"],
:where(a, button)[class*="mp-btn"] {
  min-height: 44px;
}

/* -------------------------------------------------------------------------
   MOTION
   ---------------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .mp-reveal,
  .mp-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* -------------------------------------------------------------------------
   PRINT — customers print their kits; keep the page out of the way.
   ---------------------------------------------------------------------- */

@media print {
  .mp-header,
  .mp-footer,
  .mp-drawer,
  .mp-drawer-overlay,
  .mp-skip-link {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
