/* Chris McNosky — Why Hire
   Warm editorial layout with explicit claims, evidence, and decision paths.
   Self-contained: system fonts only, no external requests. */

:root {
  --paper: #f7f4ec;
  --paper-strong: #fffdf7;
  --paper-deep: #eee8db;
  --ink: #1a1a18;
  --accent: #b8441d;
  --rule: #aaa497;
  --muted: #555149;
  --serif: Baskerville, "Hoefler Text", "Big Caslon", Georgia, "Times New Roman", serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0; }

p + p { margin-top: 1.62em; }

a { color: inherit; }

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

code {
  padding: 0.08em 0.25em;
  background: var(--paper-deep);
  font-size: 0.86em;
}

main {
  max-width: 67rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ---------- Masthead ---------- */

.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 0 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  flex: 0 0 auto;
  font-size: 1rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  text-decoration: none;
}

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

.navLinks,
.socialLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.65rem;
  font-size: 0.86rem;
  font-variant: small-caps;
  letter-spacing: 0.1em;
}

.navLinks a,
.socialLinks a {
  color: var(--muted);
  text-decoration: none;
}

.navLinks a:hover,
.socialLinks a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.32em;
}

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

.hero { padding: 5.5rem 0 4.2rem; }

.heroEyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-variant: small-caps;
  letter-spacing: 0.13em;
}

.statusDot {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(2.7rem, 6.6vw, 5.25rem);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.018em;
}

.hero h1 em { font-style: italic; }

.heroCopy {
  max-width: var(--measure);
  margin-top: 2.9rem;
  font-size: 1.14rem;
}

.heroCopy::before {
  content: "";
  display: block;
  width: 108px;
  height: 1px;
  margin-bottom: 1.5rem;
  background: var(--rule);
}

.availability {
  max-width: var(--measure);
  color: var(--muted);
  font-style: italic;
}

.heroActions,
.fitActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid var(--ink);
  font-size: 0.94rem;
  font-variant: small-caps;
  letter-spacing: 0.085em;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.buttonPrimary {
  background: var(--ink);
  color: var(--paper-strong);
}

.buttonPrimary:hover { background: var(--accent); }

.buttonSecondary:hover { background: var(--paper-strong); }

/* ---------- Capability rail ---------- */

.proofRail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

.proofRail span + span::before {
  content: "·";
  margin-right: 1.5rem;
  color: var(--rule);
  font-style: normal;
}

/* ---------- Sections ---------- */

.section {
  display: grid;
  grid-template-columns: minmax(8.7rem, 0.32fr) minmax(0, 1.68fr);
  gap: 2.6rem;
  padding: 5rem 0;
  border-bottom: 1px solid var(--rule);
}

.sectionNumber {
  color: var(--accent);
  font-size: 0.88rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
}

.section h2,
.contact h2 {
  max-width: 25ch;
  margin: 0 0 2.6rem;
  font-size: clamp(1.9rem, 3.9vw, 3.05rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.deliverGrid,
.caseGrid,
.foundationGrid,
.workGrid {
  display: grid;
  gap: 2rem;
}

.deliverGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.caseGridTwo,
.foundationGrid,
.workGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.caseCardFeatured { grid-column: 1 / -1; }

.deliverCard,
.caseCard,
.foundationGrid article,
.workCard {
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
}

.cardNumber,
.caseTag {
  color: var(--muted);
  font-size: 0.82rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
}

.cardNumber { color: var(--accent); }

.deliverCard h3,
.caseCard h3,
.workCard h3 {
  margin: 1.05rem 0 1.15rem;
  font-size: 1.38rem;
  font-weight: 400;
  line-height: 1.18;
}

.deliverCard > p:last-child,
.caseCard > p:not(.caseTag),
.foundationGrid article > p:last-child,
.workCard > p:not(.caseTag) {
  color: var(--muted);
  font-size: 0.99rem;
  line-height: 1.62;
}

.caseCard > p + p,
.workCard > p + p { margin-top: 1.62em; }

.caseCard > a,
.textLink {
  display: inline-block;
  margin-top: 1.55rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.caseCard > a:hover,
.textLink:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* ---------- Ownership and direct fit ---------- */

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

.fitSection {
  position: relative;
  background: var(--paper-deep);
  margin: 0 -2.5rem;
  padding-right: 2.5rem;
  padding-left: 2.5rem;
  border-bottom: none;
}

.fitSection::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}

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

/* ---------- Work and contact ---------- */

.workSection { border-top: 1px solid var(--rule); }

.contact { padding: 5.5rem 0 4rem; }

.contact > p:not(.sectionNumber) { max-width: var(--measure); }

.contact .sectionNumber { margin-bottom: 1.6rem; }

.emailLink {
  display: inline-block;
  margin: 1.8rem 0 3rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--accent);
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  text-decoration: none;
}

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

footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0 2.6rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
  font-variant: small-caps;
  letter-spacing: 0.1em;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  main { padding: 0 1.4rem; }

  .nav {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .hero { padding: 3.7rem 0 3rem; }

  .section {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    padding: 3.6rem 0;
  }

  .section h2 { margin-bottom: 2.2rem; }

  .deliverGrid { grid-template-columns: 1fr; }

  .fitSection {
    margin: 0 -1.4rem;
    padding-right: 1.4rem;
    padding-left: 1.4rem;
  }
}

@media (max-width: 660px) {
  body { font-size: 1.02rem; }

  .navLinks {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem 0.9rem;
    font-size: 0.78rem;
  }

  .caseGridTwo,
  .foundationGrid,
  .workGrid { grid-template-columns: 1fr; }

  .button {
    width: 100%;
    justify-content: space-between;
  }

  footer {
    flex-direction: column;
    gap: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .button { transition: none; }
}
