:root {
  --paper: #f5f1ea;
  --ink: #1d1b18;
  --ink-soft: #57514a;
  --ink-faint: #6f685f;
  --rule: #dcd3c5;
  --accent: #a6482b;
  --on-accent: #f5f1ea;
  --footer-bg: #1d1b18;
  --footer-ink: #f5f1ea;
  --footer-soft: #b9b1a6;
  --footer-faint: #958c81;
  --footer-rule: #36312b;
  --footer-accent: #e0805f;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151311;
    --ink: #eee8df;
    --ink-soft: #b9b1a6;
    --ink-faint: #958c81;
    --rule: #2f2a25;
    --accent: #e0805f;
    --on-accent: #151311;
    --footer-bg: #0c0b0a;
    --footer-rule: #2a2622;
    color-scheme: dark;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 48rem) {
  .wrap { padding: 0 2rem; }
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
}

/* Header */

.site-header { border-bottom: 1px solid var(--rule); }

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

.wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark span {
  font-weight: 500;
  color: var(--ink-faint);
}

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

.nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9375rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover { color: var(--ink); }

@media (max-width: 40rem) {
  .nav a:not(.nav-contact) { display: none; }
}

/* Shared */

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  max-width: 36rem;
  margin: 2rem 0 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  color: var(--ink-soft);
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 48rem) {
  .section { padding: 6.5rem 0; }
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.section-head .eyebrow { margin: 0; }

@media (min-width: 56rem) {
  .section-head {
    grid-template-columns: 1.3fr 1fr;
    column-gap: 4rem;
    align-items: end;
    margin-bottom: 4rem;
  }

  .section-head .eyebrow { grid-column: 1 / -1; }
}

.section-intro {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-soft);
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
  }
}

/* Hero */

.hero { padding: 5rem 0 4rem; }

@media (min-width: 48rem) {
  .hero { padding: 8rem 0 6rem; }
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 1.2rem + 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.375rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.text-link {
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
}

.hero-meta {
  display: grid;
  gap: 1rem;
  margin: 4.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 40rem) {
  .hero-meta { grid-template-columns: 1fr 1fr 1.6fr; gap: 2rem; }
}

.hero-meta dt {
  font-size: 0.875rem;
  color: var(--ink-faint);
}

.hero-meta dd {
  margin: 0.125rem 0 0;
  font-weight: 500;
}

/* Services */

.services {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 56rem) {
  .services { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.service {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--ink);
}

@media (min-width: 56rem) {
  .service { padding-bottom: 0; }
}

.service-num {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.service h3 {
  margin: 1rem 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.service p {
  margin: 0;
  color: var(--ink-soft);
}

.tags {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.tags li {
  padding: 0.625rem 0;
  border-top: 1px solid var(--rule);
}

/* Approach */

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  display: grid;
  gap: 0.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.principles li:first-child { border-top: 1px solid var(--ink); }

.principles h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.principles p {
  margin: 0;
  color: var(--ink-soft);
}

/* Contact */

.contact h2 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 1.2rem + 5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.contact-email {
  display: inline-block;
  margin-top: 2.25rem;
  font-size: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

.contact-email:hover { color: var(--ink); }

.support {
  display: grid;
  gap: 0.5rem;
  max-width: 40rem;
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.support h3 { font-size: 1.125rem; }

.support p {
  margin: 0;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  padding: 4rem 0 2rem;
  background: var(--footer-bg);
  color: var(--footer-soft);
  font-size: 0.9375rem;
}

@media (min-width: 48rem) {
  .site-footer { padding: 5rem 0 2.5rem; }
}

.site-footer :focus-visible { outline-color: var(--footer-accent); }

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

.site-footer .wordmark { color: var(--footer-ink); }
.site-footer .wordmark span { color: var(--footer-faint); }
.site-footer .wordmark:hover span { color: var(--footer-accent); }

.footer-tagline {
  max-width: 28rem;
  margin: 0.75rem 0 0;
}

.footer-heading {
  margin: 3.5rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-accent);
}

.footer-facts {
  display: grid;
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--footer-rule);
}

@media (min-width: 30rem) {
  .footer-facts { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
}

@media (min-width: 56rem) {
  .footer-facts { grid-template-columns: repeat(4, 1fr); }
}

.footer-facts div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--footer-rule);
}

.footer-facts dt {
  font-size: 0.8125rem;
  color: var(--footer-faint);
}

.footer-facts dd {
  margin: 0.25rem 0 0;
  font-weight: 500;
  color: var(--footer-ink);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--footer-faint);
}

.footer-bottom p { margin: 0; }

.footer-bottom nav {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom a {
  text-decoration: none;
  color: var(--footer-soft);
}

/* Long-form pages */

.prose {
  max-width: 42rem;
  padding: 4rem 0 5rem;
}

@media (min-width: 48rem) {
  .prose { padding: 6rem 0 7rem; }
}

.prose h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.prose .updated {
  margin: 1rem 0 2.5rem;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

.prose h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.375rem 0; }
