/* MoveMutual — movemutual.co.uk
   Typeface: Newsreader, single family throughout.
   The site reads as a research publication, not a product pitch. */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&display=swap');

:root {
  --paper:        #FCFCFA;
  --ink:          #1A1C1A;
  --muted:        #63696A;
  --rule:         #E0E1DC;
  --accent:       #1C5049;
  --accent-soft:  #EDF3F1;

  --measure: 34rem;
  --gap:     clamp(2.5rem, 6vw, 4.5rem);
  --edge:    clamp(1.5rem, 6vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

/* ---------- structure ---------- */

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--edge);
}

main { display: block; }

.measure { max-width: var(--measure); }

section { padding-block: var(--gap); }

/* a rule only where it marks a real division */
.divide { border-top: 1px solid var(--rule); }

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 2rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover { color: var(--accent); }

.mark { display: block; width: 30px; height: 21px; flex: none; }
.mark rect { fill: var(--accent); }
.mark path { stroke: var(--accent); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* one orchestrated moment: the arrows draw in on load */
.mark path {
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  animation: draw .7s .25s ease-out forwards;
}
.mark path:last-of-type { animation-delay: .42s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

nav { font-size: .95rem; }
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.4rem;
}
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* ---------- type ---------- */

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.05rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 1.4rem;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.014em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 .5rem;
}

p { margin: 0 0 1.15rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.25rem, 2.4vw, 1.42rem);
  line-height: 1.5;
  color: var(--ink);
}

.quiet { color: var(--muted); }
.small { font-size: .95rem; line-height: 1.6; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 600; }

ul { max-width: var(--measure); padding-left: 1.1rem; margin: 0 0 1.15rem; }
li { margin-bottom: .5rem; }
li::marker { color: var(--muted); }

/* ---------- the paired block: two sides of an exchange ---------- */

.pair {
  display: grid;
  gap: 1.75rem clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  max-width: 52rem;
}

.pair > div { max-width: 26rem; }
.pair p { max-width: none; }

/* ---------- callout ---------- */

.note {
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  padding: 1.25rem 1.4rem;
  max-width: var(--measure);
  margin: 0 0 1.15rem;
}
.note p { max-width: none; }
.note :last-child { margin-bottom: 0; }

/* ---------- actions ---------- */

.action {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: .7rem 1.4rem;
  border-radius: 2px;
  font-weight: 500;
  font-size: 1.02rem;
}
.action:hover { background: #163f39; }

/* ---------- survey embed ---------- */

/* Tally sets the iframe height with JavaScript when dynamicHeight=1 is on.
   Do not put a min-height on the iframe: it would override the height Tally
   sets and leave dead space under short questions, which is most of them.
   The small min-height on the wrapper only stops the layout collapsing
   while the form loads. */
.embed {
  max-width: 46rem;
  min-height: 16rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1rem;
  background: #fff;
}
.embed iframe { width: 100%; border: 0; display: block; }

.placeholder {
  background: #FFF6DA;
  border: 1px dashed #C9A227;
  padding: 1.5rem;
  max-width: 46rem;
}
.placeholder code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85rem;
  background: #fff;
  padding: .1rem .3rem;
}

/* ---------- legal pages ---------- */

.legal h2 { margin-top: 2.4rem; font-size: 1.35rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal ul { max-width: 36rem; }
.updated { color: var(--muted); font-size: .95rem; margin-bottom: 2.5rem; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  margin-top: var(--gap);
  padding-block: 2rem 3.5rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}
footer p { max-width: 44rem; margin-bottom: 1rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
.footlinks a { margin-right: 1.4rem; }

/* ---------- accessibility ---------- */

a:focus-visible, .action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--edge);
  top: .75rem;
  background: var(--ink);
  color: var(--paper);
  padding: .5rem .9rem;
  z-index: 10;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .mark path { animation: none; stroke-dashoffset: 0; }
  * { transition: none !important; }
}
