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

:root {
  --bg: #F7F5F2;
  --text: #111;
  --divider: #DDD9D3;
  --muted: #525252;
  --serif: 'Instrument Serif', 'Georgia', serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles */

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

/* Header */

header {
  position: sticky;
  top: 0;
  background: rgba(247, 245, 242, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
  z-index: 10;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logotype {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 140px 0 120px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
}

.hero .subtitle {
  margin-top: 32px;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  font-weight: 400;
}

/* Section label */

.section-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 48px;
}

/* Services */

.services {
  padding: 100px 0;
  border-top: 1px solid var(--divider);
}

.services-list {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.service {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--divider);
  align-items: baseline;
}

.service:first-child {
  padding-top: 0;
}

.service-number {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
  flex-shrink: 0;
  width: 40px;
}

.service h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
}

/* About */

.about {
  padding: 100px 0;
  border-top: 1px solid var(--divider);
}

.about p {
  font-size: 1.0625rem;
  max-width: 560px;
  line-height: 1.75;
  color: var(--muted);
}

/* Contact */

.contact {
  padding: 120px 0;
  border-top: 1px solid var(--divider);
  text-align: center;
}

.contact h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact p {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.contact-email {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 16px 40px;
  border: 2px solid var(--text);
  transition: background 0.2s, color 0.2s;
}

.contact-email:hover {
  background: var(--text);
  color: var(--bg);
}

/* Footer */

footer {
  padding: 32px 0;
  border-top: 1px solid var(--divider);
}

footer small {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Small screens */

@media (max-width: 600px) {
  .hero {
    padding: 80px 0 60px;
  }

  .service {
    flex-direction: column;
    gap: 8px;
  }

  .service-number {
    width: auto;
  }

  .services, .about {
    padding: 64px 0;
  }

  .contact {
    padding: 80px 0;
  }
}

/* Reduced motion */

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

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
