/* ============================================================
   Martinschitz — design tokens + baseline
   Business-card DNA: porcelain white, black line art, signal
   red. Cinzel (Roman capitals, the MR monogram) + Jost body.
   All rules scope under #wrapwrap.o-mr; element resets use
   :where() to keep bare-element specificity (we still beat
   Bootstrap because these links load after the bundle).
   ============================================================ */

:root {
  /* palette — from the card + embroidered caps */
  --mr-ink: #1d1b18;         /* line art + body text */
  --mr-black: #141210;       /* cap band / footer / drawer */
  --mr-black-2: #201d19;     /* raised panels on dark */
  --mr-black-3: #2c2823;     /* hairlines on dark */
  --mr-paper: #fbfaf7;       /* page background — porcelain card white */
  --mr-linen: #f3efe7;       /* alternating sections — tablecloth */
  --mr-card: #ffffff;        /* card surface */
  --mr-red: #b5121b;         /* the card's signal red */
  --mr-red-deep: #8d0e15;    /* hover */
  --mr-line: rgba(29, 27, 24, 0.16);
  --mr-muted: #6d675e;       /* secondary text on light */
  --mr-cream: #f5f2eb;       /* text on dark */
  --mr-cream-dim: #b3aca0;   /* secondary text on dark */

  /* type */
  --mr-font-display: 'Cinzel', 'Times New Roman', serif;
  --mr-font-body: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;

  /* layout — small radius: everything should feel like printed cards */
  --mr-wrap: 1140px;
  --mr-radius: 3px;
  --mr-header-h: 112px;
  --mr-shadow: 0 12px 32px rgba(29, 27, 24, 0.08);
  --mr-shadow-lg: 0 22px 54px rgba(29, 27, 24, 0.14);
}

/* ---------- baseline ---------- */

#wrapwrap.o-mr {
  background: var(--mr-paper);
  color: var(--mr-ink);
  font-family: var(--mr-font-body);
  font-size: 17px;
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

:where(#wrapwrap.o-mr) img {
  max-width: 100%;
  height: auto;
}

:where(#wrapwrap.o-mr) h1,
:where(#wrapwrap.o-mr) h2,
:where(#wrapwrap.o-mr) h3,
:where(#wrapwrap.o-mr) h4 {
  font-family: var(--mr-font-display);
  font-weight: 600;
  line-height: 1.18;
  color: inherit;
  margin: 0;
}

:where(#wrapwrap.o-mr) p {
  margin: 0 0 1em;
}

:where(#wrapwrap.o-mr) a {
  color: var(--mr-red);
  text-decoration: none;
}
:where(#wrapwrap.o-mr) a:hover {
  color: var(--mr-red-deep);
  /* Bootstrap re-underlines links on :hover (higher specificity than the
     bare-element reset above) — kill it here too, or the nav's current-page
     border-bottom shows a second line and the brand text underlines. */
  text-decoration: none;
}

:where(#wrapwrap.o-mr) ul,
:where(#wrapwrap.o-mr) ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(#wrapwrap.o-mr) address {
  font-style: normal;
}

.o-mr .wrap {
  max-width: var(--mr-wrap);
  margin-inline: auto;
  padding-inline: 22px;
}
.o-mr .wrap--narrow {
  max-width: 860px;
}

.o-mr .screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.o-mr .skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 10000;
  width: auto; height: auto; clip: auto;
  background: var(--mr-black); color: #fff;
  padding: 10px 16px; border-radius: var(--mr-radius);
}

/* ---------- shared type helpers ---------- */

.o-mr .kicker {
  font-family: var(--mr-font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mr-red);
  margin: 0 0 0.55rem;
}
.o-mr .kicker--ondark { color: #e4746f; }

.o-mr .section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.4em;
}
.o-mr .section-title--ondark { color: var(--mr-cream); }

.o-mr .section-lead {
  max-width: 640px;
  color: var(--mr-muted);
  font-size: 1.06rem;
}
.o-mr .section-head { margin-bottom: 2.2rem; }
.o-mr .section-head .section-lead { margin-inline: 0; }
.o-mr .section-head--center,
.o-mr .section-head--center .section-lead { text-align: center; margin-inline: auto; }

.o-mr .amp {
  font-weight: 400;
  color: var(--mr-red);
}

.o-mr .section { padding: 4.6rem 0; }
.o-mr .section--linen { background: var(--mr-linen); }

.o-mr .prose { max-width: 66ch; }
.o-mr .prose h2 {
  font-size: 1.35rem;
  margin: 1.6em 0 0.5em;
}
.o-mr .demo-note {
  border: 1px dashed var(--mr-red);
  border-radius: var(--mr-radius);
  background: #fdf3f3;
  color: var(--mr-red-deep);
  font-size: 0.92rem;
  padding: 10px 14px;
}

/* ---------- buttons ---------- */

.o-mr .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--mr-font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.78em 1.5em;
  border-radius: var(--mr-radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.o-mr .btn--lg { padding: 0.95em 1.9em; }

.o-mr .btn--primary {
  background: var(--mr-red);
  color: #fff;
}
.o-mr .btn--primary:hover {
  background: var(--mr-red-deep);
  color: #fff;
}

.o-mr .btn--ghost {
  border-color: var(--mr-ink);
  color: var(--mr-ink);
  background: transparent;
}
.o-mr .btn--ghost:hover {
  background: var(--mr-ink);
  color: var(--mr-paper);
}

.o-mr .btn--ghost-light {
  border-color: var(--mr-cream);
  color: var(--mr-cream);
  background: transparent;
}
.o-mr .btn--ghost-light:hover {
  background: var(--mr-cream);
  color: var(--mr-black);
}

/* ---------- brand SVG coloring (inline via t-call) ---------- */

.o-mr .mr-badge { display: block; }
.o-mr .mr-badge__line { stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.o-mr .mr-badge__red  { stroke: var(--mr-red); stroke-width: 3.4; stroke-linecap: round; }
.o-mr .mr-badge__mono {
  font-family: var(--mr-font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.02em;
  fill: currentColor;
}

.o-mr .mr-knives { display: block; width: 100%; height: auto; }
.o-mr .mr-knives__line { stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.o-mr .mr-knives__dot  { fill: currentColor; }

.o-mr .mr-strokes { display: block; width: 44px; height: 18px; }
.o-mr .mr-strokes path { stroke: var(--mr-red); stroke-width: 2.6; stroke-linecap: round; }

/* ---------- the signature frame card (business-card border) ---------- */

.o-mr .frame-card {
  position: relative;
  background: var(--mr-card);
  border: 1.5px solid var(--mr-red);
  border-radius: var(--mr-radius);
}
.o-mr .frame-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(181, 18, 27, 0.35);
  border-radius: 1px;
  pointer-events: none;
}

/* ---------- reveal on scroll ---------- */

.o-mr [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.o-mr [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* QA switch (?noanim=1) — render instantly, no transitions */
#wrapwrap.o-mr.qa-noanim [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .o-mr [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
