:root {
  --color-bg: #FAF8F5;
  --color-text: #1A1A1A;
  --color-ink: #0D2B4E;
  --color-muted: #707070;
  --color-rule: #D9D4CB;

  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --size-step-0: 1rem;
  --size-step-1: 1.125rem;
  --size-step-2: 1.375rem;
  --size-step-3: 1.75rem;
  --size-step-4: 2.25rem;
  --size-step-5: 2.75rem;

  --measure: 44rem;
  --frame: 52rem;

  --space-section: clamp(3rem, 6vw, 5rem);
}

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

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

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--size-step-1);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--color-ink);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: var(--size-step-5);
  line-height: 1.15;
  max-width: 22ch;
}

h2 {
  font-size: var(--size-step-4);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: var(--size-step-2);
  margin-bottom: 0.4rem;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.frame {
  max-width: var(--frame);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.site-header {
  padding-block: 2.25rem 1.5rem;
  border-bottom: 1px solid var(--color-rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: var(--color-ink);
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark-primary {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  margin: 0 0 0.55rem;
  padding: 0 0 0.5rem 0.24em;
  border-bottom: 1px solid var(--color-ink);
  text-indent: 0;
}

.wordmark-secondary {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  color: var(--color-muted);
  margin: 0;
  padding-left: 0.5em;
  text-align: center;
}

.locality {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0;
  letter-spacing: 0.02em;
}

main > section {
  padding-block: var(--space-section);
}

.hero {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.hero h1 {
  margin-bottom: 1rem;
}

.subhead {
  color: var(--color-muted);
  font-size: var(--size-step-2);
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 2rem;
}

.lede {
  font-size: var(--size-step-1);
  color: var(--color-text);
}

.services,
.approach {
  border-top: 1px solid var(--color-rule);
}

.service {
  margin-block: 2rem;
}

.service:first-of-type {
  margin-top: 0;
}

.service h3 {
  color: var(--color-ink);
}

.service p {
  margin: 0;
}

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

.contact-line {
  margin: 0.35em 0;
}

.contact-line .label {
  color: var(--color-muted);
  display: inline-block;
  min-width: 4rem;
}

.site-footer {
  padding-block: 3rem 4rem;
  border-top: 1px solid var(--color-rule);
  color: var(--color-muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0 0 0.5em;
}

.site-footer .copyright {
  margin-top: 0.75rem;
}

@media (min-width: 48rem) {
  body {
    font-size: var(--size-step-1);
  }

  .service {
    margin-block: 2.5rem;
  }
}

@media (max-width: 30rem) {
  h1 {
    font-size: var(--size-step-4);
  }

  h2 {
    font-size: var(--size-step-3);
  }

  h3 {
    font-size: var(--size-step-1);
    font-weight: 600;
  }

  .subhead {
    font-size: var(--size-step-1);
  }
}
