/* Retaining Point — retainingpoint.com
   Mobile first. Six colors, two families, no framework. */

/* ---------- Tokens ---------- */

:root {
  --paper: #FAF8F5;
  --ink: #14161A;
  --ink-soft: #4A4F58;
  --navy: #1B2B45;
  --navy-deep: #111C2E;
  --rule: #E2DCD3;

  --serif: "Newsreader", Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --column: 720px;
  --measure: 68ch;
  --gutter: 24px;
  --rhythm: 32px;      /* half the space between sections; 64px total on mobile */
}

@media (min-width: 720px) {
  :root { --rhythm: 48px; }   /* 96px total on desktop */
}

/* ---------- Reset ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 720px) {
  body { font-size: 1.125rem; }
}

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

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--column);
  margin: 0 auto;
  padding: var(--rhythm) var(--gutter);
}

.section > .wrap > * { max-width: var(--measure); }

/* Hairline dividers sit exactly midway between two sections, aligned to the text. */
.section--ruled > .wrap,
.site-footer .wrap { position: relative; }

.section--ruled > .wrap::before,
.site-footer .wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--rule);
}

[id] { scroll-margin-top: 76px; }

/* ---------- Type ---------- */

h1, h2 {
  font-family: var(--serif);
  margin: 0 0 20px;
  text-wrap: balance;
}

h1 {
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 {
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.2;
}

h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 32px 0 12px;
}

@media (min-width: 720px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 1.9rem; }
  h3 { font-size: 1.15rem; }
}

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

.lead {
  font-weight: 500;
  font-size: 1.05rem;
}

@media (min-width: 720px) {
  .lead { font-size: 1.15rem; }
}

small, .small {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

ul {
  margin: 0 0 20px;
  padding-left: 1.15em;
}

li {
  margin-bottom: 12px;
  padding-left: 4px;
}

li::marker { color: var(--ink-soft); }

/* ---------- Links, buttons, focus ---------- */

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--navy-deep); }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 1px;
}

.cta {
  display: inline-block;
  background: var(--navy-deep);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--navy-deep);
  border-radius: 2px;
}

.cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.cta:focus-visible {
  outline: 2px solid var(--navy-deep);
  outline-offset: 3px;
}

/* The two longer calls: same control, quieter, so the page still has one
   obvious first move. The border keeps every button the same height. */
.cta--quiet {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.cta--quiet:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--measure);
}

.cta-group .cta {
  flex: 0 1 auto;
  text-align: center;
}

/* Once they stop fitting on one line, stack them and let them share the column
   width — three buttons with a ragged right edge read as sloppy rather than
   restrained. */
@media (max-width: 679px) {
  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.header-link {
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero > .wrap { padding-top: calc(var(--rhythm) * 1.5); }

.hero p {
  max-width: var(--measure);
  margin-bottom: 32px;
}

.hero .cta-group { margin-bottom: 24px; }

.eyebrow {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---------- Proof band (the only full-bleed, inverted section) ---------- */

.band {
  background: var(--navy);
  color: var(--paper);
}

.band > .wrap {
  padding-top: calc(var(--rhythm) * 1.4);
  padding-bottom: calc(var(--rhythm) * 1.4);
}

.band h2 { color: var(--paper); }

.band a { color: var(--paper); }

.band :focus-visible { outline-color: var(--paper); }

.band .figures { max-width: none; }

.figures {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 20px;
  /* --paper at 22%: a quiet hairline inside the band, not a seventh color */
  border-top: 1px solid rgba(250, 248, 245, 0.22);
  border-bottom: 1px solid rgba(250, 248, 245, 0.22);
  padding-block: 24px;
}

@media (min-width: 620px) {
  .figures {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.figures li {
  margin: 0;
  padding: 0;
}

.figure {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

@media (min-width: 720px) {
  .figure { font-size: 2.5rem; }
}

.figure-label {
  display: block;
  font-size: 0.9rem;
  color: var(--rule);
  margin-top: 4px;
}

/* ---------- Who I am (optional portrait) ---------- */

.bio-lede {
  display: block;
  margin-bottom: 20px;
}

@media (min-width: 620px) {
  .bio-lede:has(> .portrait) {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 28px;
    align-items: start;
    max-width: var(--measure);
  }
}

.portrait {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

@media (min-width: 620px) {
  .portrait { margin-bottom: 0; }
}

/* ---------- Book the call ---------- */

.book .cta-group { margin-bottom: 24px; }

.book .contact { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer { color: var(--ink-soft); }

.site-footer .wrap { padding-top: var(--rhythm); }

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: var(--measure);
}

.site-footer a { color: var(--ink-soft); }

.site-footer a:hover { color: var(--navy); }

.disclaimer { margin-bottom: 0; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
