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

:root {
  --color-text: #1a1a1a;
  --color-bg: #ffffff;
  --color-muted: #666666;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-card-bg: #f9fafb;
  --color-border: #e5e7eb;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 960px;
}

html {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero */

.hero {
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Services */

.services {
  padding: 4rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.services h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.service-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

/* Contact */

.contact {
  padding: 4rem 1.5rem;
  text-align: center;
}

.contact h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.contact a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
}

.contact a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.contact a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Footer */

.footer {
  margin-top: auto;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--color-border);
}

/* Responsive */

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 8rem 2rem 6rem;
  }

  .hero h1 {
    font-size: 4rem;
  }
}
