/* ============================================================
   RICHARD MUNDI — accessibility layer

   A separate file on purpose. The estate keeps its desktop CSS
   in per-page <style> blocks and its mobile CSS in mobile.css,
   and neither is the right home for rules that must apply
   everywhere on both. One link per page, additive only — it
   overrides nothing and changes no layout.

   ── Why this exists ──
   A `:focus-visible` audit on 15 Oct 2026 found zero focus
   styling anywhere in the estate. Browsers' default outlines are
   suppressed by most CSS resets, so a visitor navigating by
   keyboard — which includes anyone using a screen reader, anyone
   with a motor impairment, and anyone whose trackpad has just
   died — had no way to tell which control they were on while
   moving through a checkout.

   `:focus-visible` rather than `:focus`, so a mouse click does
   not leave a ring behind on buttons. Keyboard users get the
   indicator; mouse users see nothing change.
   ============================================================ */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #A47E5A;          /* --almond */
  outline-offset: 3px;
  border-radius: 1px;
}

/* On the dark bands — the footer, the moss page banners — almond
   on near-black is too quiet to serve as a focus indicator. */
footer :where(a, button, input, select, textarea):focus-visible,
.page-hero :where(a, button):focus-visible,
.mission-centered :where(a, button):focus-visible {
  outline-color: #E8EBE4;              /* --linen */
}

/* ── Skip link ───────────────────────────────────────────────
   Hidden until focused, then the first thing a keyboard user
   reaches. Without it, every page forces a tab through the whole
   header before the content can be reached.

   Only some pages carried one; this makes the styling consistent
   wherever it appears. */
.rm-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 14px 22px;
  background: #2C2713;
  color: #E8EBE4;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
}
.rm-skip-link:focus {
  left: 12px;
  top: 12px;
  outline: 2px solid #A47E5A;
  outline-offset: 2px;
}

/* ── Respect reduced motion across the estate ────────────────
   Several pages animate on scroll and the hero placeholder runs
   a continuous gradient. Someone who has asked their system for
   reduced motion has usually asked for a reason — vestibular
   disorders and migraine among them. Honour it globally rather
   than per-component, which is what kept getting missed. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Minimum touch target ────────────────────────────────────
   mobile.css already sets 48px on buttons below 1024px. Small
   inline controls on larger touch screens were missed. */
@media (pointer: coarse) {
  .size-btn,
  .qty-btn,
  .unit-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Screen-reader-only helper, for labels that must exist in the
   accessibility tree but not on screen. */
.rm-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Build credit ────────────────────────────────────────────
   "Built by Najiba Ventures" in the footer bar of every page.
   Lives here rather than in 25 per-page <style> blocks, for the
   same reason the focus styles do: it has to look identical
   everywhere and be changeable in one place.

   Deliberately quieter than the copyright line beside it — it is
   an attribution, not a claim on the page. */
.footer-credit {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .55;
}
.footer-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.footer-credit a:hover { opacity: 1; }

/* ── Colophon ────────────────────────────────────────────────
   On the policy pages only. Set apart from the statutory
   disclosures above it, because it is editorial rather than
   legal and should not read as part of them. */
.rm-colophon {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(44, 39, 19, .14);
}
.rm-colophon h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 20px;
  margin-bottom: 14px;
}
.rm-colophon p {
  font-size: 14px;
  line-height: 2;
  letter-spacing: .03em;
  max-width: 68ch;
}
.rm-colophon a { color: #A47E5A; }

/* ============================================================
   MOSS SHEEN
   The large moss surfaces catch the light like cloth: a faint shift
   of tone across the band, and a soft band of light that drifts
   slowly over it. Tints only, so each surface keeps its own moss.
   Still for anyone who has asked for reduced motion. 'html body'
   wins over each page's own 'background:var(--moss)' shorthand.
   (Replaced the twill texture on 29 Nov 2026, at the user's choice.)
   ============================================================ */
:root{
  --rm-weave:
    linear-gradient(110deg,rgba(214,196,150,0) 30%,rgba(214,196,150,.085) 45%,rgba(214,196,150,0) 60%),
    linear-gradient(160deg,rgba(0,0,0,.05),rgba(255,255,255,.035) 50%,rgba(0,0,0,.08));
}
html body :is(footer,.mobile-menu,.consent-banner,.consent-modal,.numbers,.process,.origin-visual,.section-wrap.dark,.mission-centered,.materials,.markets,.craft,.hero,.rme-note){background-image:var(--rm-weave);background-size:250% 100%,100% 100%;background-repeat:no-repeat;background-position:40% 0,0 0}
/* Speed (29 Nov): moving the gradient repainted whole panels every
   frame. The light now drifts only across the footer, on its own
   layer, moved by transform — the graphics card does it, nothing
   repaints. Everything else keeps the same tone, held still. */
html body footer{position:relative;overflow:hidden}
html body footer::after{content:"" !important;display:block;position:absolute;inset:0;margin:0;padding:0;border:0;outline:0;pointer-events:none;background:linear-gradient(110deg,rgba(214,196,150,0) 38%,rgba(214,196,150,.07) 50%,rgba(214,196,150,0) 62%);transform:translateX(-55%);will-change:transform;animation:rm-sheen-x 16s ease-in-out infinite alternate}
@keyframes rm-sheen-x{to{transform:translateX(55%)}}
@media (prefers-reduced-motion:reduce){html body footer::after{animation:none}}
