/* michaelmerritt.co — design tokens and styles (HANDOVER §7). Mobile first. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --ink: #17201C;
  --ground: #F4F1EB;
  --sand: #EAE5DB;
  --pine: #2F5D50;
  --pine-dark: #1F4238;
  --gold: #E2B46A;
  --body: #2B332F;
  --muted: #4C5650;
  --muted-dark: #D9D4C9;

  /* supporting shades from the approved design */
  --white: #FFFFFF;
  --rule: #DDD7CC;
  --outline-dark: #5B6862;
  --placeholder-bg: #2A3530;
  --placeholder-text: #9AA59F;
  --on-pine: #E3EBE7;
  --outline-pine: #A9C2B8;

  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;

  --radius-card: 16px;
  --radius-photo: 20px;
  --radius-pill: 999px;
  --max-width: 1200px;
  --gutter: 20px;
  --section-pad: 64px;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; --section-pad: 88px; }
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pine); }
a:hover { color: var(--pine-dark); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}
.dark a:focus-visible, .on-pine a:focus-visible { outline-color: var(--gold); }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; color: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
}

.section-heading {
  margin: 12px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.btn--lg { min-height: 56px; padding: 14px 28px; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #EBC584; color: var(--ink); }
.btn--outline-light { border: 1.5px solid var(--outline-dark); color: var(--ground); }
.btn--outline-light:hover { border-color: var(--ground); color: var(--ground); }
.btn--outline-ink { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--outline-ink:hover { background: var(--ink); color: var(--ground); }
.btn--outline-pine { border: 1.5px solid var(--outline-pine); color: var(--ground); }
.btn--outline-pine:hover { border-color: var(--ground); color: var(--ground); }

/* ---------- Header ---------- */
.site-header { background: var(--ink); }
.site-header .container {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.wordmark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ground);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.wordmark:hover { color: var(--ground); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-left: auto; }
.site-nav a {
  color: var(--muted-dark);
  text-decoration: none;
  font-size: 15px;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { color: var(--ground); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.nav-cta:hover { background: #EBC584; color: var(--ink); }

/* Phones: name + "Get in touch" on the first row, section links on the second */
@media (max-width: 719px) {
  .nav-cta { order: 1; }
  .site-nav { order: 2; width: 100%; margin-left: -12px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--ground); }
.hero .container {
  padding-top: 56px;
  padding-bottom: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 56px;
  align-items: flex-end;
}
@media (min-width: 640px) {
  .hero .container { padding-top: 88px; padding-bottom: 104px; }
}
.hero__text { flex: 999 1 560px; min-width: 0; }
.hero .eyebrow { margin-bottom: 20px; color: var(--gold); }
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero__subline {
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted-dark);
  max-width: 620px;
}
@media (min-width: 640px) { .hero__subline { font-size: 20px; margin-top: 28px; } }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { flex: 1 1 300px; min-width: 0; max-width: 380px; }
.hero__photo, .hero__placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-photo);
}
.hero__photo { object-fit: cover; }
.hero__placeholder {
  background: var(--placeholder-bg);
  border: 1.5px dashed var(--outline-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--placeholder-text);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

/* ---------- Testimonial ---------- */
.testimonial { border-bottom: 1px solid var(--rule); }
.testimonial .container { padding-top: 56px; padding-bottom: 56px; }
.testimonial blockquote { margin: 0; max-width: 820px; }
.testimonial blockquote p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  color: var(--ink);
}
.testimonial figcaption { margin-top: 16px; color: var(--muted); font-size: 15px; }
.testimonial figcaption b { color: var(--ink); font-weight: 600; }

/* ---------- The idea ---------- */
.idea { border-bottom: 1px solid var(--rule); }
.idea .container { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 640px) { .idea .container { padding-top: 72px; padding-bottom: 72px; } }
.idea p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 900px;
}

/* ---------- Sections ---------- */
.section .container { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--sand { background: var(--sand); }

/* How I work */
.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
@media (min-width: 640px) { .steps { margin-top: 48px; gap: 20px; } }
.step {
  flex: 1 1 300px;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px;
}
@media (min-width: 640px) { .step { padding: 32px; } }
.step__number {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--pine);
}
.step h3 { margin: 12px 0 10px; font-size: 26px; color: var(--ink); }
.step p { margin: 0; color: var(--muted); }

/* Ways to work together */
.work__intro { margin: 14px 0 0; color: var(--muted); max-width: 600px; }
.offers { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
@media (min-width: 640px) { .offers { margin-top: 44px; gap: 20px; } }
.offer {
  flex: 1 1 480px;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 640px) { .offer { padding: 36px; } }
.offer__tag {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
}
.offer h3 { margin: 0; font-size: clamp(26px, 3vw, 30px); line-height: 1.15; color: var(--ink); }
.offer p:not(.offer__tag) { margin: 0; color: var(--muted); }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer--featured { background: var(--ink); color: var(--ground); }
.offer--featured .offer__tag { color: var(--gold); }
.offer--featured h3 { color: var(--ground); }
.offer--featured p:not(.offer__tag) { color: var(--muted-dark); }

/* About */
.about .container { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.about__intro { flex: 1 1 320px; min-width: 0; }
.about__body { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about__body p { margin: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.stat { flex: 1 1 160px; border-top: 2px solid var(--ink); padding-top: 12px; }
.stat b {
  display: block;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
}
.stat span { font-size: 15px; color: var(--muted); }

/* Contact */
.contact { background: var(--pine); color: var(--ground); }
.contact .container {
  max-width: 820px;
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}
@media (min-width: 640px) { .contact .container { padding-top: 96px; padding-bottom: 96px; } }
.contact h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.contact p { margin: 20px auto 0; font-size: 19px; color: var(--on-pine); max-width: 560px; }
.contact__ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
/* Full-width, stacked buttons on phones so the email address never overflows */
@media (max-width: 559px) {
  .contact__ctas .btn { width: 100%; }
}
.contact__ctas .btn { overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--ink); color: var(--placeholder-text); font-size: 14px; }
.site-footer .container {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a {
  color: var(--muted-dark);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer a:hover { color: var(--ground); }
