/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #fbfbfa;
  --text: #161616;
  --muted: #6b6b6b;
  --line: #e4e4e1;
  --accent: #2f5f4f;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --wrap: 60rem;
  --gutter: clamp(1rem, 5vw, 2.5rem);
  --space: clamp(4rem, 10vw, 7rem);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131313;
    --text: #ececea;
    --muted: #9a9a96;
    --line: #2a2a28;
    --accent: #8cc3ae;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

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

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s, text-decoration-color 0.15s;
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--bg);
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(1.4) blur(8px); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav { display: flex; gap: clamp(1rem, 4vw, 2rem); }
.nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}
.nav a:hover { color: var(--text); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: clamp(4rem, 14vw, 9rem);
  padding-bottom: var(--space);
}

.eyebrow {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  max-width: 24ch;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 36rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.cta {
  display: inline-block;
  margin-top: 2.25rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.cta span { display: inline-block; transition: transform 0.15s; }
.cta:hover span { transform: translateX(3px); }

/* ==========================================================================
   Sections: label on the left, content on the right
   ========================================================================== */
.section {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding-block: var(--space);
}

/* divider drawn inside the gutters so it lines up with the content */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .section { grid-template-columns: 12rem 1fr; gap: 2rem; }
}

.section-label {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.section-body { max-width: 38rem; }

.prose p + p { margin-top: 1.1em; }

/* What I do */
.list-row {
  display: grid;
  gap: 0.25rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.list-row:first-child { padding-top: 0; }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }

@media (min-width: 40rem) {
  .list-row { grid-template-columns: 12rem 1fr; gap: 1.5rem; }
}

.list-row dt { font-weight: 600; }
.list-row dd { color: var(--muted); }

/* Approach */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}
@media (min-width: 40rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.steps li { counter-increment: step; }
.steps h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.steps h3::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.steps p { color: var(--muted); font-size: 0.9875rem; }

/* Contact */
.contact-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.contact-email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

.copy {
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.2rem 0.6rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.copy:hover { color: var(--text); border-color: var(--muted); }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
}
.links a { color: var(--muted); }
.links a:hover { color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 2rem;
}
