/* M. Collection design system (see vault: "Brand Identity - M. Collection").
   Shared by / and /short-list/. Visual only: no layout logic the scripts depend on lives here. */

:root {
  /* palette */
  --ivory: #F3EDE2;        /* bone: primary light surface */
  --paper: #FAF6EE;        /* stationery: cards, never bright white */
  --beige: #E3D7C3;        /* supporting surfaces */
  --line: #D6C8B0;         /* hairlines and borders */
  --navy: #16233A;         /* brand + type */
  --navy-2: #22324F;
  --walnut: #4A3426;       /* secondary backgrounds */
  --walnut-deep: #2A1E16;
  --gold: #A88A57;         /* antique gold: accents and insignia only */
  --gold-soft: #C4AA7B;
  --ink: #16233A;
  --ink-soft: #4B5568;     /* secondary text on light */
  --muted: #7A6F60;        /* warm grey for fine print on light */
  --on-dark: #F1EADD;
  --on-dark-muted: #C9BCA6;
  --err: #9B3B2E;

  /* type */
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  /* spacing scale */
  --s1: 6px; --s2: 12px; --s3: 18px; --s4: 28px; --s5: 44px; --s6: 72px; --s7: 112px;

  /* paper grain + photo grain (inline SVG noise, no external files) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .9' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .29  0 0 0 0 .2  0 0 0 0 .15  0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--beige); color: var(--navy); }

/* small caps label: the "letterpress" voice for practical text */
.m-label {
  font: 500 11px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}

/* The M. insignia. Used sparingly: bar, hero seal, Short List masthead, footer. */
.m-seal {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy); color: var(--gold-soft);
  font: 500 26px/1 var(--serif); letter-spacing: -.01em;
  box-shadow: inset 0 0 0 1.5px var(--navy), inset 0 0 0 3px var(--gold), inset 0 0 0 4px var(--navy);
}

/* stationery surface: warm paper with faint fibre and a letterpress double rule inset */
.m-paper {
  background-color: var(--paper);
  background-image: var(--fibre);
  box-shadow: 0 1px 0 rgba(74,52,38,.06), 0 18px 40px -22px rgba(42,30,22,.45);
}

/* photo frame with analog grain */
.m-photo { position: relative; margin: 0; overflow: hidden; background: var(--walnut-deep); }
.m-photo img { width: 100%; height: 100%; object-fit: cover; }
.m-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: .16; mix-blend-mode: overlay;
}

/* buttons: square-shouldered, letterspaced, navy */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 56px; padding: 18px 22px;
  background: var(--navy); color: var(--on-dark); border: 1px solid var(--navy); border-radius: 2px; cursor: pointer;
  font: 500 13px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--on-dark); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
