:root {
  --bedrock: #1a1a2e;
  --ridgeline: #16213e;
  --glacier: #0f3460;
  --summit: #e94560;
  --contour: #a3b18a;
  --sandstone: #d4a373;
  --snow: #f0f0f0;
  --granite: #6b705c;

  --font-headline: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 38rem;
}

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

html {
  font-size: 100%;
}

body {
  background: var(--bedrock);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

header {
  margin-bottom: 3rem;
}

h1 {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--snow);
}

h2 {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--granite);
  margin-bottom: 0.75rem;
}

section {
  margin-bottom: 2.5rem;
}

.lede p {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--snow);
}

.lede .principal {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--granite);
  letter-spacing: 0.01em;
  font-family: var(--font-headline);
}

.services ul {
  list-style: none;
}

.services li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(107, 112, 92, 0.25);
}

.services li:last-child {
  border-bottom: none;
}

.contact a {
  color: var(--snow);
  text-decoration: underline;
  text-decoration-color: var(--glacier);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact a:hover, .contact a:focus {
  text-decoration-color: var(--snow);
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(107, 112, 92, 0.25);
  font-size: 0.875rem;
  color: var(--granite);
}

@media (prefers-color-scheme: light) {
  body {
    background: var(--snow);
    color: var(--bedrock);
  }
  h1 {
    color: var(--bedrock);
  }
  h2 {
    color: var(--granite);
  }
  .contact a {
    color: var(--bedrock);
    text-decoration-color: var(--glacier);
  }
  .contact a:hover, .contact a:focus {
    text-decoration-color: var(--bedrock);
  }
  .services li {
    border-color: rgba(107, 112, 92, 0.4);
  }
  footer {
    color: var(--granite);
    border-color: rgba(107, 112, 92, 0.4);
  }
}

@media (max-width: 480px) {
  main {
    padding: 3rem 1.25rem 2rem;
  }
  h1 {
    font-size: 2.25rem;
  }
  .lede p {
    font-size: 1.125rem;
  }
}
