*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: clip;
  background: var(--color-mc-blue-dark);
  scroll-behavior: smooth;
  scrollbar-color: var(--color-mc-white-50) var(--color-mc-blue-deep);
  scrollbar-gutter: stable;
}

::-webkit-scrollbar-track {
  background: var(--color-mc-blue-deep);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-mc-white-50);
  border-radius: 4px;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--color-mc-white);
  background: var(--color-mc-blue-dark);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-mc-gold);
  outline-offset: 0;
}

.mc-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  min-height: 40px;
  line-height: 1.25rem;
  padding: 10px 16px;
  color: var(--color-mc-white);
  background: var(--color-mc-blue-deep);
  transform: translateY(-200%);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.mc-skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-mc-gold);
  outline-offset: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mc-wrapper {
  max-width: var(--frame-desktop-width);
  margin: 0 auto;
  padding: 0 24px 16px 24px;
  position: relative;
}

.mc-page a,
.mc-page a:hover {
  text-decoration: none;
}

.mc-page img {
  user-select: none;
}

/* Typography — headings h1–h6
   Three breakpoint bands:
   < 700px    → fixed rem (--font-size-md 28px … --font-size-xl 40px)
   701–1700px → progressive clamp
   > 1701px   → fixed tokens (--font-size-4xl 72px … --font-size-l 36px)
──────────────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--color-mc-white);
}

/* ── Mobile < 700px — fixed sizes ── */

h1, .h1  { font-size: var(--font-size-xl);  /* 40px */ }
h2, .h2  { font-size: var(--font-size-xl);  /* 40px */ }
h3, .h3  { font-size: var(--font-size-md);  /* 28px */ }
h4, .h4  { font-size: var(--font-size-m);   /* 24px */ }
h5, .h5  { font-size: var(--font-size-s);   /* 20px */ }
h6, .h6  { font-size: var(--font-size-xs);  /* 16px */ }

h1, .h1,
h2, .h2,
h3, .h3 {
  line-height: 1.125;
}

/* ── Tablet 700–1700px — progressive clamp ──
   Values computed for a linear transition from min (700px) to max (1700px).
   Formula: clamp(min_rem, slope·vw + intercept_rem, max_rem)
── */

@media (min-width: 701px) {
  /* h1: 40px → 64px  slope=(64-40)/10=2.4  intercept=40-16.8=23.2px=1.45rem */
  h1, .h1 { font-size: clamp(var(--font-size-xl), 2.4vw + 1.45rem, var(--font-size-3xl)); }

  /* h2: 36px → 56px  slope=(56-36)/10=2.0  intercept=36-14=22px=1.375rem */
  /* h2, .h2 { font-size: clamp(var(--font-size-l), 2vw + 1.375rem, var(--font-size-2xl)); } */
  h2, .h2 { font-size: clamp(var(--font-size-xl), 2.4vw + 1.45rem, var(--font-size-3xl)); }

  /* h3: 28px → 40px  slope=(40-28)/10=1.2  intercept=28-8.4=19.6px=1.225rem */
  h3, .h3 { font-size: clamp(var(--font-size-md), 1.2vw + 1.225rem, var(--font-size-xl)); }

  /* h4: 24px → 36px  slope=(36-24)/10=1.2  intercept=24-8.4=15.6px=0.975rem */
  h4, .h4 { font-size: clamp(var(--font-size-m), 1.2vw + 0.975rem, var(--font-size-l)); }

  /* h5: 20px → 24px  slope=(24-20)/10=0.4  intercept=20-2.8=17.2px=1.075rem */
  h5, .h5 { font-size: clamp(var(--font-size-s), 0.4vw + 1.075rem, var(--font-size-m)); }

  /* 16px — not progressive */ }
  h6, .h6 { font-size: var(--font-size-xs); 
}

/* ── Desktop > 1701px — fixed tokens ── */

@media (min-width: 1701px) {
  h1, .h1 { font-size: var(--font-size-5xl); } /* 88px */
  h2, .h2 { font-size: var(--font-size-5xl); } /* 88px */
  h3, .h3 { font-size: var(--font-size-2xl); } /* 56px */
  h4, .h4 { font-size: var(--font-size-1xl); } /* 44px */
  h5, .h5 { font-size: var(--font-size-xl);  } /* 40px */
  h6, .h6 { font-size: var(--font-size-l);   } /* 36px */

  h1, .h1,
  h2, .h2 {
    line-height: 1;
  }
}

/* utility classes */
.mx-0 { margin-inline: 0 !important; }
.my-0 { margin-block: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-5 { margin-bottom: 20px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mb-7 { margin-bottom: 28px !important; }
.mb-8 { margin-bottom: 32px !important; }
.mb-9 { margin-bottom: 36px !important; }
.mb-10 { margin-bottom: 40px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-5 { margin-top: 20px !important; }
.mt-6 { margin-top: 24px !important; }
.mt-7 { margin-top: 28px !important; }
.mt-8 { margin-top: 32px !important; }
.mt-9 { margin-top: 36px !important; }
.mt-10 { margin-top: 40px !important; }

.px-0 { padding-inline: 0 !important; }
.py-0 { padding-block: 0 !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 4px !important; }
.pb-2 { padding-bottom: 8px !important; }
.pb-3 { padding-bottom: 12px !important; }
.pb-4 { padding-bottom: 16px !important; }
.pb-5 { padding-bottom: 20px !important; }
.pb-6 { padding-bottom: 24px !important; }
.pb-7 { padding-bottom: 12px !important; }
.pb-8 { padding-bottom: 16px !important; }
.pb-9 { padding-bottom: 20px !important; }
.pb-10 { padding-bottom: 24px !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 4px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-3 { padding-top: 12px !important; }
.pt-4 { padding-top: 16px !important; }
.pt-5 { padding-top: 20px !important; }
.pt-6 { padding-top: 24px !important; }
.pt-7 { padding-top: 28px !important; }
.pt-8 { padding-top: 32px !important; }
.pt-9 { padding-top: 36px !important; }
.pt-10 { padding-top: 40px !important; }

.justify-center { justify-content: center; }

.relative { position: relative; }
.z-1 { z-index: 1; }
.text-center { text-align: center; }

.rounded-none { border-radius: var(--radius-none) !important; }
.rounded-xxs  { border-radius: var(--radius-xxs)  !important; }
.rounded-xs   { border-radius: var(--radius-xs)   !important; }
.rounded-sm   { border-radius: var(--radius-sm)   !important; }
.rounded-md   { border-radius: var(--radius-md)   !important; }
.rounded-lg   { border-radius: var(--radius-lg)   !important; }
.rounded-xl   { border-radius: var(--radius-xl)   !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.line-clamp-1,
.line-clamp-2,
.line-clamp-3,
.line-clamp-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }
.line-clamp-4 { -webkit-line-clamp: 4; }

.max-w-480 { max-width: 480px; }