/* Matedex design system — base styles shared by every page. Tokens live in /js/theme.js. */

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: #F8F5EF;
  color: #1D1B17;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Brand gradient used on the hero and call-to-action blocks (same as the store graphics). */
.mdx-night {
  background:
    radial-gradient(ellipse 70% 80% at 25% 40%, rgba(84, 110, 70, 0.55), transparent 70%),
    linear-gradient(135deg, #2B4636 0%, #1E3328 45%, #13221A 100%);
  color: #F3E6C9;
}

/* Thin gold rule under headings, as on the feature graphic. */
.mdx-rule {
  display: block;
  width: 4rem;
  height: 2px;
  background: #C9A24A;
  border-radius: 1px;
}

/* Phone mockup frame around real app captures. */
.mdx-phone {
  position: relative;
  aspect-ratio: 720 / 1610;
  border-radius: 2.6rem;
  padding: 0.55rem;
  background: #0D0E0B;
  border: 1.5px solid rgba(201, 162, 74, 0.55);
  box-shadow: 0 30px 80px rgba(8, 16, 11, 0.45);
}
.mdx-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2.1rem;
  display: block;
}

:focus-visible {
  outline: 2px solid #C9A24A;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
