/* emqm.group — shared stylesheet. Tokens and rules follow ../REDESIGN-BRIEF.md */
:root {
  --paper: #FFFFFF;
  --paper-tint: #F4F4F1;
  --ink: #16191E;
  --ink-soft: #4B5158;
  --ink-mute: #6D737A;
  --rule: #DCDEE2;
  --accent: #1C4A5A;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1120px;
  --side: 240px;
  --measure: 66ch;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 700px) { .wrap { padding: 0 2rem; } }

/* headings */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; }
h1 { font-weight: 500; font-size: 2.75rem; line-height: 1.15; letter-spacing: -0.015em; max-width: 24em; }
h2 { font-size: 1.75rem; line-height: 1.2; }
h3 { font-size: 1.375rem; line-height: 1.25; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.35; margin: 2.75rem 0 0.5rem; }

/* header */
.site-header { border-bottom: 1px solid var(--rule); padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.brand { font-weight: 600; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--accent); }
.nav { display: flex; gap: 1.75rem; font-size: 0.95rem; font-weight: 500; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.3em; }

/* hero */
.hero { padding: 5rem 0 4rem; }
.hero .lede { font-size: 1.25rem; line-height: 1.45; color: var(--ink-soft); max-width: 40em; margin: 1.5rem 0 2rem; }
.cta-row { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin: 0 0 2.5rem; }
.cta-row .alt { color: var(--ink-soft); font-size: 0.95rem; }
.byline { display: flex; gap: 1rem; align-items: center; font-size: 0.9rem; line-height: 1.5; color: var(--ink-mute); max-width: 44em; margin: 0; }
.byline img { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.byline a { color: var(--ink-soft); }

/* button: one style */
.button {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none;
  padding: 0.8rem 1.25rem; border-radius: 3px; font-weight: 500; line-height: 1.2;
}
.button:hover { background: var(--accent); color: #fff; }

/* sections and the side-heading grid */
.section { padding: 5rem 0; }
/* alternate the page background: hero white, then tint, white, tint... */
main > section:nth-of-type(even) { background: var(--paper-tint); }
.grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid > h2 { margin: 0; }
.grid .body { min-width: 0; }
.body > :last-child { margin-bottom: 0; }
/* desktop: heading on its own full-width line; content indented 10% and ending at 70% of the width */
@media (min-width: 900px) {
  .grid { gap: 2rem; }
  .grid .body { margin-left: 10%; max-width: 60%; }
  .grid .body--wide { max-width: 70%; }
}

/* offers */
.offer + .offer { margin-top: 2.5rem; }
.offer h3 { margin-bottom: 0.5rem; }
.offer p { margin: 0; }
.offer .more { display: inline-block; margin-top: 0.5rem; font-size: 0.95rem; }

/* track record accounts */
.account + .account { margin-top: 3.5rem; }
.account .logo img { height: 24px; width: auto; filter: grayscale(1); opacity: 0.8; }
.account h3 { margin: 0.75rem 0 1.5rem; }
.account-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.facts { margin: 0; border-top: 1px solid var(--rule); padding-top: 1rem; font-size: 0.95rem; line-height: 1.5; display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; row-gap: 0.5rem; align-content: start; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-soft); }
.prose { min-width: 0; }
.prose > :last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .account-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 2rem; }
  .facts { grid-template-columns: 1fr; row-gap: 0; }
  .facts dd { margin: 0 0 0.6rem; }
}
.todo { color: var(--ink-soft); font-style: italic; border-left: 2px dashed var(--ink-mute); padding-left: 1rem; }


/* engagement terms */
.terms p { border-top: 1px solid var(--rule); padding-top: 1rem; margin: 0 0 1.25rem; }

/* qualification list, no bullet glyphs */
.fit { list-style: none; padding: 0; margin: 0; }
.fit li { border-top: 1px solid var(--rule); padding: 0.9rem 0; }
.fit li:last-child { border-bottom: 1px solid var(--rule); }

/* contact */
.contact .button { margin: 0.25rem 0 1.25rem; }
.contact .small { font-size: 0.95rem; color: var(--ink-soft); }

/* customer support page: the four-step method */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0 0.5rem; counter-increment: step; }
.steps li + li { margin-top: 2rem; }
.steps li::before { content: counter(step); font-weight: 600; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; color: var(--ink); }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { margin: 0; }
.rescue { border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 2rem; }
.rescue h3 { margin-bottom: 0.5rem; }
.logos { display: flex; gap: 2.5rem; align-items: center; margin: 0 0 1.5rem; }
.logos img { height: 24px; width: auto; filter: grayscale(1); opacity: 0.8; }

/* booking page */
.embed-wrap { padding: 0 0 5rem; }
.embed { min-height: 640px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper-tint); display: grid; place-items: center; color: var(--ink-mute); text-align: center; padding: 1rem; }
.embed iframe { width: 100%; height: 100%; min-height: 640px; border: 0; border-radius: 3px; }

/* footer */
footer { border-top: 1px solid var(--rule); padding: 1.5rem 0 3rem; color: var(--ink-mute); font-size: 0.9rem; }
footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
footer img { height: 30px; width: auto; }
footer a { color: var(--ink-soft); }

@media (max-width: 600px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.9rem; line-height: 1.2; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero .lede { font-size: 1.1rem; }
  .section { padding: 3.5rem 0; }
  .byline { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .site-header, footer, .cta-row, .button { display: none; }
  body { font-size: 11pt; }
  main > section:nth-of-type(even) { background: none; }
}

/* booking page title sits in the side-heading grid at section-title size */
.h1-quiet { font-weight: 600; font-size: 1.75rem; line-height: 1.2; letter-spacing: 0; }
.hero .grid .body p:first-child { margin-top: 0.35rem; }
/* the track record carries a facts column beside its prose, so its body is not capped at one measure */


/* brand mark beside the wordmark */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { height: 36px; width: auto; }

/* the person, below the proposition */
.who { display: flex; gap: 2.25rem; align-items: flex-end; margin-top: 2.5rem; max-width: 52em; }
.portrait { width: 220px; height: auto; border-radius: 4px; flex-shrink: 0; }
.name { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.2; margin: 0 0 0.35rem; color: var(--ink); }
.profile { font-size: 1.125rem; line-height: 1.5; color: var(--ink-mute); max-width: 40em; margin: 0 0 1.25rem; }
.profile strong { font-weight: 600; }
.profile a { color: var(--ink-soft); }
.reach { display: flex; gap: 0.35rem 1.75rem; flex-wrap: wrap; align-items: baseline; font-size: 1.125rem; margin: 0; }
.reach a { color: var(--ink); font-weight: 600; text-decoration-thickness: 1.5px; }
.reach a:hover { color: var(--accent); }
.contact .reach { margin: 0.25rem 0 1.25rem; }
@media (max-width: 600px) {
  .who { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .portrait { width: 170px; height: auto; }
}

/* What I Help With: lighter body weight */
#help .offer p, #help .steps p, #help .rescue p, #why .offer p { font-weight: 350; }
#help .offer a.more, #help .rescue a { font-weight: 400; }

/* Coinbase keeps its standard blue (Agara stays greyscale) */
.account .logo img[src$="coinbase.svg"], .logos img[src$="coinbase.svg"] { filter: none; opacity: 1; }

/* bulleted lists inside an account */
.bullets { margin: 0 0 1rem; padding-left: 1.15rem; font-weight: 350; }
.bullets li { margin: 0 0 0.45rem; padding-left: 0.25rem; }
.bullets li::marker { color: var(--ink-mute); }
.bullets--soft { color: var(--ink-mute); }
.facts .line { display: block; }
.facts .line + .line { margin-top: 0.35rem; }
.facts .client-logos { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.6rem; }
.client-logos img { height: 22px; width: auto; }
.client-logos img[alt="Unilever"] { height: 14px; }
.offer .bullets { margin: 0; }
