:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --line: #e5e7eb;
  --accent: #2f5ea8;
  --accent-soft: #eaf0fb;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav a {
  color: var(--text);
  font-weight: 500;
}

main.container {
  padding: 3rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 320px);
  gap: 3rem;
  align-items: start;
  padding: 1rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.home-hero h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-prose p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.home-hero-photo {
  display: flex;
  justify-content: flex-end;
}

.home-hero-photo img {
  width: 100%;
  max-width: 300px;
  border-radius: 18px;
  display: block;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.button:hover {
  text-decoration: none;
  opacity: 0.95;
}

.button-secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.home-section {
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--line);
}

.home-section:last-child {
  border-bottom: 0;
}

.home-section h2 {
  margin: 0 0 1.2rem;
  font-size: 1.8rem;
  line-height: 1.2;
}

.section-prose {
  max-width: 760px;
}

.section-prose h2,
.section-prose h3 {
  margin-top: 1.5rem;
}

.section-prose p,
.section-prose li {
  font-size: 1.02rem;
}

.section-prose ul {
  padding-left: 1.2rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-list li {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.96rem;
}

.contact-list p {
  margin: 0 0 0.8rem;
  font-size: 1.02rem;
}

.page-header h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.prose h2,
.prose h3 {
  margin-top: 1.5rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 820px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-hero-photo {
    justify-content: flex-start;
  }

  .home-hero-photo img {
    max-width: 240px;
  }
}

@media (max-width: 760px) {
  .nav-wrap,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  main.container {
    padding: 2rem 0 3rem;
  }

  .home-section {
    padding: 2rem 0;
  }
}