/* Merrow & Hale — shared brand. Every demo links this file first. Do not change tokens per site. */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300..700&family=Geist+Mono:wght@400;500&display=swap");

:root {
  /* Colour */
  --paper: #F6F3EC;      /* main light background */
  --ivory: #ECE6D9;      /* secondary light surface */
  --ink: #0F1417;        /* text + dark sections */
  --ink-2: #1A2226;      /* raised dark surface */
  --mute: #6A6F6E;       /* secondary text on light */
  --mute-d: #9AA3A0;     /* secondary text on dark */
  --line: rgba(15, 20, 23, .12);
  --line-d: rgba(246, 243, 236, .14);
  --green: #1D5A4C;      /* primary accent: "ledger green" */
  --green-2: #2E7D69;    /* lighter accent for dark backgrounds */
  --brass: #B38E55;      /* highlight: numbers, rules, tiny details. Use sparingly */
  --brass-l: #D6B983;

  /* Type */
  --serif: "Instrument Serif", "Times New Roman", serif;   /* display headlines only */
  --sans: "Geist", system-ui, -apple-system, sans-serif;   /* body + UI */
  --mono: "Geist Mono", ui-monospace, monospace;           /* figures, labels, dates */

  --fs-hero: clamp(3.4rem, 9vw, 9.5rem);
  --fs-h2: clamp(2.4rem, 5.4vw, 5.2rem);
  --fs-h3: clamp(1.5rem, 2.4vw, 2.1rem);
  --fs-lead: clamp(1.15rem, 1.6vw, 1.45rem);
  --fs-body: 1.0625rem;
  --fs-label: .75rem;

  /* Space + motion */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);     /* expo-out: the house curve */
  --ease-inout: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--green); color: var(--paper); }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: .95; }
.serif em, em.serif { font-style: italic; }
.mono, .label { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.label { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.dark { background: var(--ink); color: var(--paper); }
.dark .label { color: var(--mute-d); }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Shared header (same on all five) */
.mh-nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); mix-blend-mode: difference; color: #fff; pointer-events: none;
}
.mh-nav > * { pointer-events: auto; }
.mh-logo { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; letter-spacing: -.01em; }
.mh-logo span { font-style: italic; }
.mh-nav nav { display: flex; gap: 28px; font-size: .9rem; }
.mh-nav nav a { text-decoration: none; opacity: .85; }
.mh-nav nav a:hover { opacity: 1; }
@media (max-width: 720px) { .mh-nav nav a:not(.mh-cta) { display: none; } }

/* Shared button */
.mh-btn {
  display: inline-flex; align-items: center; gap: .6em; padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: transform .5s var(--ease-out), background .3s;
}
.mh-btn:hover { transform: translateY(-2px); background: var(--green); }
.dark .mh-btn { background: var(--paper); color: var(--ink); }
.dark .mh-btn:hover { background: var(--brass-l); }

/* Shared demo switcher pill (bottom-left on every site) */
.mh-demos {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; gap: 4px; padding: 5px;
  background: rgba(15,20,23,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; font-family: var(--mono); font-size: .72rem;
}
.mh-demos a { color: #F6F3EC; text-decoration: none; padding: 6px 10px; border-radius: 999px; opacity: .7; }
.mh-demos a[aria-current="page"] { background: #F6F3EC; color: #0F1417; opacity: 1; }

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