/* monitorMyLawn — base reset, typography, layout primitives. */
*,*::before,*::after { box-sizing: border-box; }
/* Ensure the HTML `hidden` attribute always wins over component display rules
   (e.g. dropdown panels use display:grid; JS toggles [hidden] to show/hide). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Smooth scrolling IS motion, and an in-page jump is exactly the kind a vestibular user
   opts out of. The reduced-motion block further down only zeroes animation/transition
   durations, which does not cover scroll-behavior — so every anchor jump on /faq,
   /support, /features and /tools kept animating for people who asked it not to.
   Promoted here from faq.css/contact.css, which each carried a local copy. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--mml-text);
  background: var(--mml-bg);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { margin: 0 0 var(--sp-md); line-height: 1.25; font-weight: 600; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.1rem; } h4 { font-size: 1rem; }
p { margin: 0 0 var(--sp-md); }
a { color: var(--mml-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Accessibility: visible focus ring; honour reduced motion. */
:focus-visible { outline: 2px solid var(--mml-primary); outline-offset: 2px; border-radius: var(--r-sm); }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  /* --mml-primary is a FILL colour: white on it measures 4.07:1, under AA for this
     15px label — on every page, in both themes. --mml-primary-btn exists for exactly
     this case (5.11:1 light / 6.81:1 dark) and carries its own matching ink token. */
  background: var(--mml-primary-btn); color: var(--mml-primary-btn-ink);
  padding: var(--sp-sm) var(--sp-lg); border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-lg); }
.grid { display: grid; gap: var(--sp-lg); }
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.row { display: flex; gap: var(--sp-lg); flex-wrap: wrap; }
.muted { color: var(--mml-text-2); }
.text-sm { font-size: .8125rem; } .text-xs { font-size: .75rem; }

@media (max-width: 480px) {
  .container { padding: 0 var(--sp-md); }
  h1 { font-size: 1.3rem; }
}
