:root {
  --bg: #FAF9F5;
  --bg-alt: #F2F0E8;
  --ink: #0F0E0C;
  --ink-soft: #3D3B36;
  --ink-mute: #6B665C;
  --rule: #D8D4C7;
  --accent: #A0521C;
  --container: 760px;
  --container-wide: 1040px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1em;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HEADER ---------- */

.site-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(250, 249, 245, 0.9);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-wide);
}

.wordmark {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.wordmark-small {
  font-size: 22px;
  display: inline-block;
  margin-bottom: 12px;
}

.nav-link {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- SECTIONS ---------- */

section {
  padding: 112px 0;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
  font-weight: 500;
}

/* ---------- HERO ---------- */

.hero {
  padding: 140px 0 120px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 400;
  margin: 0 0 36px;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

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

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 44px;
  max-width: 620px;
  font-weight: 400;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

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

.btn-link {
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  font-weight: 400;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-link:hover {
  border-color: var(--ink);
  color: var(--accent);
}

/* ---------- CREDIBILITY ---------- */

.credibility {
  padding: 36px 0;
  background: transparent;
}

.credibility p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
  font-style: italic;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- HEADINGS ---------- */

h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 36px;
  max-width: 22ch;
}

h3 {
  font-weight: 500;
  margin: 0;
}

/* ---------- PROBLEM ---------- */

.problem p,
.about p {
  font-size: 18px;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--ink-soft);
}

.problem p:last-child,
.about p:last-child {
  margin-bottom: 0;
}

/* ---------- WHAT WE DO ---------- */

.practice.primary {
  margin-bottom: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}

.practice.primary h3 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.practice.primary p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  max-width: 640px;
}

.practice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.practice.secondary h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 14px;
  letter-spacing: 0;
}

.practice.secondary p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- STEPS ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 56px;
}

.steps li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: baseline;
}

.step-num {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  color: var(--ink-mute);
  line-height: 1;
}

.steps h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px;
}

.steps p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  max-width: 560px;
}

/* ---------- CONTACT ---------- */

.contact {
  padding: 120px 0 140px;
  border-bottom: none;
  text-align: left;
}

.contact h2 {
  margin-bottom: 28px;
}

.contact .lead {
  font-size: 18px;
  margin-bottom: 44px;
  max-width: 640px;
}

/* ---------- FOOTER ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 64px;
  background: var(--bg-alt);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: var(--container-wide);
}

.footer-meta {
  text-align: right;
}

.small {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 8px;
  line-height: 1.5;
}

.small:last-child {
  margin-bottom: 0;
}

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

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

/* ---------- RESPONSIVE ---------- */

@media (max-width: 720px) {
  section { padding: 72px 0; }
  .hero { padding: 88px 0 72px; }
  .contact { padding: 88px 0 96px; }
  .credibility { padding: 28px 0; }
  .credibility p { font-size: 17px; }

  .lead { font-size: 17px; margin-bottom: 36px; }

  h2 { margin-bottom: 28px; }

  .practice.primary { margin-bottom: 56px; padding-bottom: 44px; }
  .practice.primary h3 { font-size: 26px; }
  .practice-row { grid-template-columns: 1fr; gap: 40px; }

  .steps { gap: 44px; }
  .steps li { grid-template-columns: 48px 1fr; gap: 20px; }
  .step-num { font-size: 22px; }

  .cta-row { gap: 20px; }
  .btn { width: 100%; text-align: center; }
  .btn-link { width: 100%; text-align: center; padding-bottom: 8px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta { text-align: left; }
}

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