:root {
  --bg: #f7f9f4;
  --surface: #ffffff;
  --surface-muted: #edf4ef;
  --ink: #1d1b16;
  --navy: #17213d;
  --slate: #555c55;
  --line: #d7ded5;
  --moss: #2f7d6e;
  --ember: #ff6b3d;
  --ember-dark: #d95732;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.7rem max(1rem, calc((100vw - 1120px) / 2));
  background: rgba(247, 249, 244, 0.92);
  border-bottom: 1px solid rgba(215, 222, 213, 0.72);
  backdrop-filter: blur(14px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.brand-link img {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
}

.site-nav,
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.site-nav a,
.footer-inner a {
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.footer-inner a:hover {
  color: var(--moss);
}

.hero {
  min-height: 72svh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(247, 249, 244, 0.98) 0%, rgba(247, 249, 244, 0.8) 46%, rgba(247, 249, 244, 0.34) 100%),
    url("/assets/brand-hero.jpg") center right / cover no-repeat;
}

.hero-content {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.08;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.lede {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  color: var(--slate);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ember);
  border-radius: 8px;
  background: var(--ember);
  color: #fffdf7;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  border-color: var(--ember-dark);
  background: var(--ember-dark);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy);
}

.button-secondary:hover {
  border-color: var(--moss);
  background: var(--surface);
}

.section {
  padding: 4.25rem 0;
  background: var(--surface);
}

.section-muted {
  background: var(--surface-muted);
}

.section-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.split p {
  margin: 0;
  color: var(--slate);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-item {
  min-height: 10.25rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-item p {
  margin: 0.65rem 0 0;
  color: var(--slate);
}

.doc-page {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.doc {
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.doc h1 {
  max-width: 14ch;
  font-size: 3.4rem;
}

.doc h2 {
  margin-top: 2.35rem;
  font-size: 1.45rem;
}

.doc p,
.doc li {
  color: var(--slate);
}

.doc p {
  margin: 1rem 0 0;
}

.doc ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.55rem;
}

.doc-meta {
  margin-top: 0.5rem;
  color: var(--moss);
  font-weight: 700;
}

.site-footer {
  padding: 1.5rem 0;
  background: var(--navy);
  color: #fffdf7;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 253, 247, 0.76);
}

.footer-inner a {
  color: rgba(255, 253, 247, 0.82);
}

.footer-inner a:hover {
  color: #ffffff;
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .footer-inner nav {
    gap: 0.75rem;
  }

  .hero {
    min-height: 70svh;
    background:
      linear-gradient(90deg, rgba(247, 249, 244, 0.98) 0%, rgba(247, 249, 244, 0.86) 68%, rgba(247, 249, 244, 0.58) 100%),
      url("/assets/brand-hero.jpg") center right / cover no-repeat;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .split,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .doc {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  h1,
  .doc h1 {
    font-size: 2.75rem;
  }

  .lede {
    font-size: 1.02rem;
  }
}
