/* Shared base for the four Mumilune website directions.
   Tokens follow app/lib/core/theme/tokens.dart. Each direction overrides --bg, --text etc. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff") format("woff");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --paper: #fcf9f3;
  --surface: #fffdf9;
  --ink: #473643;
  --muted: #7c7078;
  --plum: #63465d;
  --line: #e8e0dc;
  --peach: #f3e7db;
  --lilac: #f0e3e6;
  --gold: #a88b59;
  --sage: #858063;
  --focus: #88657d;

  --bg: var(--paper);
  --text: var(--ink);
  --soft: var(--muted);
  --accent: var(--plum);
  --card: var(--surface);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(72rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Mock-up ribbon so nobody mistakes a direction for the live site */
.mock-flag {
  position: fixed; z-index: 50; left: 50%; bottom: 12px; transform: translateX(-50%);
  font: 600 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  padding: .5rem .8rem; border-radius: 999px; background: rgba(71, 54, 67, .88); color: #fcf9f3;
  pointer-events: none; white-space: nowrap;
}

/* Brand lock-up */
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { font: 600 1.65rem/1 var(--serif); letter-spacing: .01em; }

/* ---------- Store block: QR on big screens, buttons on phones ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; }
.store {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: .9rem .9rem 1rem; border-radius: 22px; text-decoration: none;
  background: var(--card); color: var(--ink);
  box-shadow: 0 1px 0 rgba(71, 54, 67, .06), 0 12px 30px -18px rgba(71, 54, 67, .45);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s;
}
.store:hover { transform: translateY(-3px); }
.store .qr { width: 132px; height: 132px; background: #fff; border-radius: 12px; padding: 6px; }
.store-name { display: inline-flex; align-items: center; gap: .45rem; font: 600 .95rem/1.1 var(--sans); }
.store-name small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); }
.store-icon { width: 20px; height: 20px; flex: none; }
.store-note { flex-basis: 100%; font-size: .8rem; color: var(--soft); }
.store-note b { font-weight: 600; }
@media (max-width: 40rem) {
  .stores { flex-direction: column; }
  .store { flex-direction: row; justify-content: center; padding: .85rem 1.2rem; border-radius: 999px; }
  .store .qr { display: none; }
}

/* ---------- Footer ---------- */
.site-foot { padding: 3rem 0 5rem; font-size: .9rem; color: var(--soft); }
.site-foot .wrap { display: grid; gap: 1rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-foot nav a { color: var(--text); }
.site-foot .care { max-width: 46rem; }

/* Scroll reveal (switched off for reduced motion in site.js) */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }
.calm [data-reveal] { opacity: 1; transform: none; transition: none; }

/* Rive canvases */
canvas.rive { display: block; width: 100%; height: 100%; }
.rive-crop { display: block; position: relative; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
