@import url("tokens.css");

.mm-surface {
  color: var(--mm-text);
  background: var(--mm-page);
  font: var(--mm-body) / var(--mm-leading-body) var(--mm-font);
}
.mm-dark {
  color: var(--mm-inverse);
  background: var(--mm-wine);
  --mm-focus: var(--mm-chalk);
}
.mm-logo { display: block; width: 10rem; max-width: 100%; height: auto; }
.mm-display, .mm-heading {
  margin: 0;
  font-family: var(--mm-font);
  text-wrap: balance;
}
.mm-display {
  font-size: var(--mm-display);
  font-weight: var(--mm-weight-display);
  line-height: var(--mm-leading-display);
  letter-spacing: var(--mm-tight);
}
.mm-heading {
  font-size: var(--mm-heading);
  font-weight: var(--mm-weight-heading);
  line-height: var(--mm-leading-heading);
  letter-spacing: -.045em;
}
/* Each stepped strip contains words the buyer actually said. */
.mm-strip {
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: .02em .32em .08em .09em;
  color: var(--mm-quote-text);
  background: var(--mm-quote-background);
  clip-path: polygon(0 0, 100% 0, 97% 70%, 94.5% 70%, 93% 100%, 0 100%);
}
.mm-strip + .mm-strip { margin-top: .065em; }
.mm-highlight {
  color: var(--mm-quote-text);
  background: var(--mm-quote-background);
  padding-inline: .15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.mm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--mm-space-2);
  min-height: var(--mm-target);
  box-sizing: border-box;
  padding: .65rem 1.15rem;
  border: 1px solid var(--mm-ink);
  border-radius: var(--mm-radius-control);
  color: var(--mm-white);
  background: var(--mm-ink);
  font: var(--mm-weight-ui) 1rem / 1.3 var(--mm-font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--mm-fast), color var(--mm-fast);
}
.mm-button:hover { background: var(--mm-wine); }
.mm-dark .mm-button {
  color: var(--mm-ink);
  border-color: var(--mm-chalk);
  background: var(--mm-chalk);
}
.mm-dark .mm-button:hover { background: var(--mm-white); }
.mm-button:active:not(:disabled) { box-shadow: inset 0 0 0 2px currentColor; }
.mm-button:disabled { opacity: .45; cursor: default; }
.mm-surface :is(a, button, summary):focus-visible {
  outline: 3px solid var(--mm-focus);
  outline-offset: 3px;
}
.mm-card {
  color: var(--mm-text);
  background: var(--mm-panel);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-panel);
  padding: var(--mm-space-6);
  --mm-focus: var(--mm-wine);
}
.mm-card h3 { font-size: var(--mm-title); line-height: 1.12; margin: .3rem 0; }
.mm-meta { color: var(--mm-muted); font-size: var(--mm-label); }
.mm-tabs { display: flex; flex-wrap: wrap; gap: var(--mm-space-1); border-bottom: 1px solid var(--mm-line); }
.mm-tab {
  padding: .5rem .7rem;
  min-height: var(--mm-target);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--mm-muted);
  font: inherit;
  cursor: pointer;
}
.mm-tab:hover { background: var(--mm-wash); color: var(--mm-ink); }
.mm-tab[aria-selected="true"] { border-bottom-color: var(--mm-ink); color: var(--mm-ink); font-weight: 700; }
.mm-status {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: var(--mm-radius-control);
  color: var(--mm-text);
  background: var(--mm-wash);
  font-size: var(--mm-label);
  font-weight: var(--mm-weight-ui);
}
@media (forced-colors: active) {
  .mm-strip, .mm-highlight { background: Mark; color: MarkText; }
  .mm-tab[aria-selected="true"] { border-color: ButtonText; }
}
