:root {
  --bg: #f5f1e8;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --rule: rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

.wordmark {
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  margin: 0;
}

.typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  width: 0;
  animation: type 1.4s steps(14, end) forwards;
}

@keyframes type {
  to { width: 14.5ch; }
}

.cursor {
  display: inline-block;
  margin-left: 0.1em;
  color: var(--fg);
  animation: blink 1.1s steps(2, end) infinite;
  animation-delay: 1.4s;
}

@keyframes blink {
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .typed { animation: none; width: auto; }
  .cursor { animation: none; }
}

h1, h2, h3 {
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 0.15s ease, text-underline-offset 0.15s ease;
}

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

section {
  margin-top: 3rem;
}

.hero {
  margin-top: 0;
}

.hero p {
  font-size: 1.125rem;
}

.services article,
.approach article {
  margin-bottom: 1.5rem;
  padding-left: 0;
  border-left: 2px solid transparent;
  transition: padding-left 0.18s ease, border-left-color 0.18s ease;
}

.services article:hover,
.approach article:hover {
  padding-left: 0.75rem;
  border-left-color: var(--fg);
}

.services article:last-child,
.approach article:last-child {
  margin-bottom: 0;
}

.process ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.process li {
  margin-bottom: 0.75rem;
}

.process li:last-child {
  margin-bottom: 0;
}

.ownership {
  font-style: italic;
  color: var(--muted);
}

.profile-link {
  color: var(--muted);
  font-size: 0.9375rem;
}

.profile-link a {
  color: var(--muted);
}

.email {
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 1.0625rem;
  margin-top: 1rem;
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  body { padding: 2rem 1rem; }
  h1 { font-size: 1.5rem; }
  section { margin-top: 2.5rem; }
}
