/* MFOL Store: base styles (colors, type, buttons, page layout). Matches the main MFOL site. */
:root {
  --color-black: #000;
  --color-white: #fff;
  --color-navy: #011446;
  --color-blue: #3384ff;
  --color-green: #bdff32;
  --color-yellow: #ffcd1e;
  --color-orange: #ff6914;
  --color-pink: #f6195c;
  --color-gray: #f1f1f1;
  --color-red: #f61919;
  --f-trim: "Trim Poster Average", sans-serif;
  --f-trim-weight: 700;
  --f-trim-slender: "Trim Poster Slender", sans-serif;
  --f-body: "area-normal", sans-serif;
  --f-body-weight: 600;
  --f-body-weight-bold: 700;
  --f-mono: "Matter Mono", monospace;
  --f-mono-weight: 600;
  --outer-padding: 16px;
  --block-margin: 56px;
  --content-width: 760px;
  --wide-width: 1400px;
  --radius: 14px;
  --border: 2px solid var(--color-black);
  --hdr-height: 72px;
}
@media (min-width: 768px) {
  :root {
    --outer-padding: 24px;
  }
}
@media (min-width: 992px) {
  :root {
    --outer-padding: 36px;
    --block-margin: 80px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  -webkit-font-smoothing: antialiased;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--f-body);
  font-size: 18px;
  font-weight: var(--f-body-weight);
  line-height: 1.5;
  margin: 0;
  overflow-x: hidden;
}
img,
svg,
video {
  height: auto;
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}
p {
  margin: 0 0 1em;
}

/* Headings, sized like the main site */
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4 {
  font-family: var(--f-trim);
  font-weight: var(--f-trim-weight);
  letter-spacing: 0;
  line-height: 0.88;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}
h1,
.h1 {
  font-family: var(--f-trim-slender);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.86;
}
h2,
.h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}
h3,
.h3 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}
h4,
.h4 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}
h5,
h6 {
  font-family: var(--f-body);
  font-size: 1.125rem;
  font-weight: var(--f-body-weight-bold);
  margin: 0 0 0.5em;
}

/* Buttons */
.mfol-btn,
.wp-block-button__link {
  align-items: center;
  background: var(--btn-bg, var(--color-orange));
  border: 2px solid var(--color-black);
  border-radius: 2px;
  color: var(--btn-text, var(--color-black));
  cursor: pointer;
  display: inline-flex;
  font-family: var(--f-mono);
  font-size: 0.9375rem;
  font-weight: var(--f-mono-weight);
  gap: 10px;
  justify-content: center;
  line-height: 1.1;
  padding: 15px 22px 13px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.mfol-btn:hover,
.wp-block-button__link:hover {
  background: var(--btn-bg-hover, var(--color-black));
  color: var(--btn-text-hover, var(--color-white));
}
.mfol-btn svg {
  flex: 0 0 auto;
  width: 16px;
}
.is-style-outline .wp-block-button__link {
  --btn-bg: transparent;
}

/* Accessibility helpers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  white-space: nowrap;
  width: 1px;
  word-wrap: normal !important;
}
.mfol-skip-link {
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--f-mono);
  left: 12px;
  padding: 12px 16px;
  position: fixed;
  top: -100px;
  z-index: 1000;
}
.mfol-skip-link:focus {
  top: 12px;
}
.mfol-main:focus {
  outline: none;
}

/* Page layout: blocks sit at a readable width, wide blocks at 1400px, full blocks edge to edge */
.mfol-page__header {
  margin: 0 auto;
  max-width: var(--wide-width);
  padding: clamp(40px, 6vw, 88px) var(--outer-padding) clamp(24px, 3vw, 40px);
}
.mfol-page__title {
  margin: 0;
}
.mfol-content > * {
  margin-left: auto;
  margin-right: auto;
  max-width: min(var(--content-width), calc(100% - 2 * var(--outer-padding)));
}
.mfol-content > .alignwide {
  max-width: min(var(--wide-width), calc(100% - 2 * var(--outer-padding)));
}
.mfol-content > .alignfull {
  max-width: none;
  width: 100%;
}
.mfol-content > *:first-child {
  margin-top: 0;
}
.mfol-content > *:last-child {
  margin-bottom: var(--block-margin);
}
.mfol-content > :where(p, ul, ol, h2, h3, h4, h5, h6, .wp-block-table, .wp-block-image, .wp-block-buttons) {
  margin-bottom: 1.25rem;
  margin-top: 0;
}
/* Headings in regular page text: sized for reading, not for a page banner */
.mfol-content > h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1;
  margin-bottom: 1rem;
  margin-top: 2.75rem;
}
.mfol-content > :where(h3, h4) {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
  margin-top: 2.25rem;
}
.mfol-content > :where(ul, ol) li + li {
  margin-top: 0.5rem;
}
/* Regular text right after a full-width section (like a Page Header) gets breathing room, and vice versa */
.mfol-content > .mfs-block + :not(.mfs-block) {
  margin-top: clamp(40px, 6vw, 72px);
}
.mfol-content > :not(.mfs-block) + .mfs-block {
  margin-top: clamp(40px, 6vw, 72px);
}
.mfol-content > .mfs-block + h2,
.mfol-content > .mfs-block + h3 {
  margin-top: clamp(40px, 6vw, 72px);
}
.mfol-content :where(ul, ol) {
  padding-left: 1.25em;
}
.mfol-content .wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}
.mfol-content .wp-block-table th,
.mfol-content .wp-block-table td {
  border: 2px solid var(--color-black);
  padding: 12px 14px;
  text-align: left;
}
.mfol-content .wp-block-table thead th {
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--f-mono);
  font-size: 0.875rem;
}
.mfol-content .wp-block-image img {
  border-radius: var(--radius);
}

/* WordPress's Cover block: keep text off the screen edges */
.mfol-content .wp-block-cover {
  padding-left: var(--outer-padding);
  padding-right: var(--outer-padding);
}
.mfol-content .wp-block-cover__inner-container {
  margin: 0 auto;
  max-width: var(--wide-width);
}

/* Not found page (Store → Not Found Page) */
.mfol-404 {
  background: var(--mfol-404-bg, var(--color-yellow));
  border-bottom: var(--border);
  color: var(--color-black);
  padding: clamp(56px, 9vw, 120px) var(--outer-padding);
}
.mfol-404.is-dark {
  color: var(--color-white);
}
.mfol-404__inner {
  margin: 0 auto;
  max-width: var(--wide-width);
}
.mfol-404__label {
  font-family: var(--f-mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.mfol-404__title {
  font-family: var(--f-trim);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: var(--f-trim-weight);
  line-height: 0.9;
  margin: 0;
  text-transform: uppercase;
}
.mfol-404__text {
  font-size: 1.25rem;
  margin: 20px 0 0;
  max-width: 600px;
}
.mfol-404__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}
.mfol-404__products-title {
  font-family: var(--f-trim);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: var(--f-trim-weight);
  line-height: 1;
  margin: 24px 0;
  text-transform: uppercase;
}

/* Admin-only setup help on the 404 page */
.mfol-diag {
  background: var(--color-yellow);
  border: var(--border);
  border-radius: var(--radius);
  margin: 32px auto 0;
  max-width: 860px;
  padding: 22px 24px;
  width: calc(100% - 2 * var(--outer-padding));
}
.mfol-diag__label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.mfol-diag__title {
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.mfol-diag ul {
  margin: 0;
  padding-left: 20px;
}
.mfol-diag code {
  font-size: 0.8125rem;
  opacity: 0.7;
}

/* Big display headings never spill off narrow screens */
h1,
h2,
.mfc-head__title,
.mfp__title,
.mfol-404__title {
  overflow-wrap: break-word;
}
/* Long email addresses and links wrap instead of running off small screens */
a[href^="mailto:"],
.mfol-content p a,
.mfs-prose a {
  overflow-wrap: anywhere;
}
