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

:root {
  --bg: #f5f4f0;
  --text: #1a1a18;
  --muted: #7a7a72;
  --rule: #d8d7d2;
}

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 10vh 2rem 4rem;
  width: 100%;
}

header {
  margin-bottom: 5rem;
}

.wordmark {
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.intro {
  margin-bottom: 5rem;
}

.intro h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 520px;
}

.intro h1 em {
  font-style: italic;
  color: var(--muted);
}

.intro p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 420px;
}

.services {
  margin-bottom: 5rem;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.service-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.service-name {
  font-size: 0.95rem;
  font-weight: 400;
}

.service-desc {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-style: italic;
  text-align: right;
}

.contact {
  margin-bottom: 2rem;
}

.contact p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.contact a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
  transition: opacity 0.15s;
}

.contact a:hover {
  opacity: 0.5;
}

footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  width: 100%;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

@media (max-width: 480px) {
  .service-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .service-desc {
    text-align: left;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}
