:root {
  --bg: #f0eee5;
  --bg-soft: #e9e5d6;
  --fg: #1f1f1e;
  --fg-secondary: #57564f;
  --fg-tertiary: #8a8780;
  --border: #d9d2c3;
  --border-soft: #e3ddcd;
  --accent: #cc785c;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --max: 1100px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

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

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

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.125rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg);
  letter-spacing: -0.005em;
}

.nav-name:hover {
  color: var(--fg);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.8125rem;
  text-decoration: none;
  color: var(--fg-secondary);
  letter-spacing: 0.005em;
}

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

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Sections */
.section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.section:last-of-type {
  border-bottom: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-secondary);
}

.section-aside {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--fg-tertiary);
  text-transform: uppercase;
  font-weight: 400;
}

/* Hero */
.hero {
  padding: 9rem 0 7rem;
  max-width: 900px;
  border-bottom: 1px solid var(--border-soft);
}

.hero-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin-bottom: 2.5rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.65vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg);
  max-width: 20ch;
}

.hero-supporting {
  margin-top: 2.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--fg-secondary);
  max-width: 52ch;
}

/* Prose */
.prose {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--fg);
}

.prose p {
  margin-bottom: 1.375rem;
}

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

.prose strong {
  font-weight: 600;
  color: var(--fg);
}

/* Clients credit line */
.clients {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  max-width: 62ch;
  line-height: 1.6;
}

/* Contact */
.section-contact {
  padding-bottom: 4rem;
}

.contact-text {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.008em;
}

.contact-text a {
  font-family: var(--serif);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 0;
  padding: 2.25rem 2.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--fg-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 720px) {
  .nav-inner {
    padding: 0.875rem 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  main {
    padding: 0 1.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .hero-label {
    margin-bottom: 1.75rem;
  }

  .hero-supporting {
    font-size: 1rem;
    margin-top: 1.75rem;
  }

  .section-head {
    margin-bottom: 2.5rem;
  }

  .clients {
    margin-top: 2rem;
    padding-top: 1.25rem;
  }

  .footer {
    padding: 1.75rem 1.5rem;
  }
}
