:root {
  --bg: #f8f6f1;
  --text: #1e1b16;
  --muted: #6b6256;
  --accent: #0f8f80;
  --shadow: rgba(30, 27, 22, 0.08);
  --font-heading: "Space Grotesk", "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --radius-pill: 999px;
  --radius-md: 1.5rem;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  font-size: 1.25em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video {
  max-width: 100%;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0 var(--space-lg);
  max-width: 60rem;
  margin: 0 auto;
  gap: var(--space-lg);
}

.site-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}

.contact-nav ul {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.contact-nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xxs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-weight: 500;
  position: relative;
  transition: color 200ms ease, transform 200ms ease;
}

.contact-nav a::after {
  content: "";
  position: absolute;
  left: var(--space-xs);
  right: var(--space-xs);
  bottom: calc(var(--space-xxs) * -0.5);
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.contact-nav a:hover::after,
.contact-nav a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.contact-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

h1,
h2 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 4vw + 1rem, 4.5rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.8rem, 2vw + 0.5rem, 2.5rem);
  font-weight: 500;
}

p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.eyebrow {
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0;
}

.subheading {
  font-size: 1.25rem;
  color: var(--accent);
  font-family: var(--font-heading);
}

.divider,
hr {
  width: 100%;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--shadow), transparent);
  margin: var(--space-lg) 0;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.section-story {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: min(100%, 48rem);
  margin: 0 auto;
  align-items: center;
}

.closing-note {
  color: var(--text);
  font-weight: 500;
}

footer {
  width: 100%;
  height: var(--space-lg);
}

@media (max-width: 640px) {
  .page-shell {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .site-hero {
    padding: var(--space-md) 0;
  }

  .contact-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .contact-nav a {
    justify-content: center;
    width: 100%;
    border: 1px solid var(--shadow);
  }

  footer {
    padding-bottom: var(--space-md);
  }
}
