:root {
  --bg: #f4f1ea;
  --paper: #fffcf7;
  --ink: #1f1d1a;
  --mute: #6b675f;
  --line: #ddd6c8;
  --accent: #c2410c;
  --accent-ink: #fff7f2;
  --chip: #efe8db;
  --danger: #9b1c1c;
  --sans: "Avenir Next", "Nunito Sans", "Trebuchet MS", "Segoe UI", sans-serif;
  --display: "Franklin Gothic Medium", "Avenir Next Condensed", "Trebuchet MS", sans-serif;
  --mono: "IBM Plex Mono", "Source Code Pro", ui-monospace, monospace;
  --max: 1180px;
  --radius: 2px;
}

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

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.mm-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mm-skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 50;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.4rem 0.7rem;
  text-decoration: none;
}

.mm-skip:focus { transform: none; }

.mm-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.mm-top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mm-top-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.6rem 0;
}

.mm-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.mm-swatch {
  width: 2rem;
  height: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  flex: none;
}

.mm-swatch i:nth-child(1) { background: var(--accent); }
.mm-swatch i:nth-child(2) { background: #5c5a56; }
.mm-swatch i:nth-child(3) { background: #8a8680; }
.mm-swatch i:nth-child(4) { background: #d9d4cb; }

.mm-logo-text {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  line-height: 1.05;
}

.mm-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
}

.mm-nav a {
  text-decoration: none;
  color: var(--mute);
  font-size: 0.92rem;
}

.mm-nav a:hover,
.mm-nav a[aria-current="page"] { color: var(--accent); }

.mm-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0.15rem 0 0.75rem;
  border-top: 1px solid var(--line);
}

.mm-subnav a {
  text-decoration: none;
  color: var(--mute);
  font-size: 0.82rem;
}

.mm-subnav a:hover,
.mm-subnav a[aria-current="page"] { color: var(--accent); }

.mm-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mm-lang {
  display: inline-flex;
  border: 1px solid var(--line);
}

.mm-lang a {
  text-decoration: none;
  padding: 0.28rem 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.mm-lang a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}

.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
}

.mm-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 550;
}

.mm-btn-small { min-height: 2.2rem; padding: 0.25rem 0.65rem; font-size: 0.9rem; }

.mm-btn:disabled,
.mm-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.mm-spin {
  display: none;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid var(--accent-ink);
  border-right-color: transparent;
  border-radius: 50%;
  animation: mm-spin 0.7s linear infinite;
}

.mm-btn.is-busy .mm-spin { display: inline-block; }

@keyframes mm-spin { to { transform: rotate(360deg); } }

main { padding-bottom: 4rem; }

.mm-kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 650;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 0.75rem; }

h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: 0; }

h3 { font-size: 1.05rem; margin: 0; }

.mm-lead { font-size: 1.05rem; max-width: 38rem; color: var(--ink); margin: 0 0 1.2rem; }

.mm-hero {
  padding: 2.4rem 0 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.7fr);
  gap: 2rem;
  align-items: center;
}

.mm-find {
  display: flex;
  gap: 0.45rem;
  max-width: 34rem;
}

.mm-find input,
input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  min-height: 2.6rem;
  width: 100%;
}

.mm-find input { flex: 1; }

.mm-hero-fig {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}

.mm-hero-fig img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.mm-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 0.9rem 0 1.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.2rem;
  color: var(--mute);
  font-size: 0.88rem;
}

.mm-block { margin-block: 0 2.6rem; }

.mm-block-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.mm-block-head a { color: var(--accent); }

.mm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.mm-mat {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mm-mat[hidden] { display: none; }

.mm-mat-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ece7dc;
}

.mm-mat-body {
  padding: 0.7rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.mm-mat h3 a { text-decoration: none; }
.mm-mat h3 a:hover { color: var(--accent); }

.mm-flags { display: flex; flex-wrap: wrap; gap: 0.28rem; margin: 0; }

.mm-flag {
  background: var(--chip);
  padding: 0.06rem 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.mm-flag-free { background: #e7f0dc; color: #3d5a1f; }

.mm-quiet { margin: 0; color: var(--mute); font-size: 0.86rem; }
.mm-quiet a { color: var(--ink); }
.mm-num { font-variant-numeric: tabular-nums; }

.mm-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.mm-cat {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--paper);
  min-height: 5.2rem;
}

.mm-cat > span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-right: 0.6rem;
}

.mm-cat img {
  width: 5.5rem;
  height: 5.2rem;
  object-fit: cover;
}

.mm-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mm-pack {
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.mm-pack img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.mm-pack-body { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; }

.mm-studios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.mm-studios a {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.45rem 0.6rem;
}

.mm-studios img { width: 3rem; height: 3rem; object-fit: cover; }

.mm-price-lg {
  font-size: 1.8rem;
  margin: 0 0 0.7rem;
  font-variant-numeric: tabular-nums;
}

.mm-page {
  padding: 1.6rem 0 0.4rem;
}

.mm-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--mute);
  margin-bottom: 0.7rem;
}

.mm-crumbs a { color: var(--ink); text-decoration: none; }
.mm-crumbs a:hover { color: var(--accent); }

.mm-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.mm-filters label span {
  display: block;
  font-size: 0.75rem;
  color: var(--mute);
  margin-bottom: 0.2rem;
}

.mm-empty { color: var(--mute); }

.mm-product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.7fr);
  gap: 1.6rem;
  margin-top: 1rem;
}

.mm-gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ece7dc;
  border: 1px solid var(--line);
}

.mm-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.mm-thumbs a {
  border: 2px solid transparent;
  display: block;
}

.mm-thumbs a[aria-current="true"] { border-color: var(--accent); }

.mm-thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.mm-buy {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem;
  position: sticky;
  top: 0.8rem;
}

.mm-buy .mm-btn { width: 100%; margin-top: 0.45rem; }

.mm-res {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.7rem 0;
}

.mm-res label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.mm-facts {
  margin: 0.8rem 0 0;
}

.mm-facts dt {
  font-size: 0.75rem;
  color: var(--mute);
  margin-top: 0.45rem;
}

.mm-facts dd { margin: 0; }

.mm-prose { max-width: 42rem; }
.mm-prose p { margin: 0 0 0.9rem; }
.mm-prose h2 { margin: 1.4rem 0 0.5rem; }

.mm-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mm-plan {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.1rem;
}

.mm-plan ul { padding-left: 1.1rem; }

.mm-banner {
  background: #f3e6d8;
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
}

.mm-foot {
  background: #ebe6db;
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.2rem;
  color: var(--mute);
  font-size: 0.9rem;
}

.mm-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.2rem;
}

.mm-foot a { display: block; text-decoration: none; color: var(--ink); margin: 0.2rem 0; }
.mm-foot a:hover { color: var(--accent); }
.mm-foot-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin: 0 0 0.4rem; }
.mm-copy { margin: 1.2rem 0 0; font-size: 0.82rem; }

.mm-login {
  max-width: 28rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.2rem;
  margin-top: 1rem;
}

.mm-field { display: block; margin-bottom: 0.75rem; }
.mm-field-label { display: block; font-size: 0.85rem; margin-bottom: 0.25rem; }
.mm-err { color: var(--danger); min-height: 1.2rem; margin: 0.3rem 0; }
.mm-count { font-family: var(--mono); }

.mm-search-hit {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.mm-search-hit img { width: 5rem; height: 5rem; object-fit: cover; }

.mm-studio {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 900px) {
  .mm-top-row { grid-template-columns: 1fr; }
  .mm-nav { justify-content: flex-start; }
  .mm-hero, .mm-product, .mm-foot-grid, .mm-plans, .mm-trust { grid-template-columns: 1fr; }
  .mm-grid, .mm-packs, .mm-studios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-cats { grid-template-columns: 1fr; }
  .mm-filters { grid-template-columns: 1fr 1fr; }
  .mm-buy { position: static; }
}

@media (max-width: 560px) {
  .mm-grid, .mm-packs, .mm-studios { grid-template-columns: 1fr; }
  h1 { font-size: 1.85rem; }
}
