.site-shell {
  --cs-cream: #f7f3ea;
  --cs-cream-2: #efe8da;
  --cs-paper: #fffdf8;
  --cs-ink: #171a17;
  --cs-muted-ink: #555d52;
  --cs-forest: #2f5132;
  --cs-forest-dark: #203a24;
  --cs-sage: #c9d3b5;
  --cs-sage-2: #dde5cf;
  --cs-clay: #c78f6a;
  --cs-line: #ddd3c1;
  --cs-focus: #7a9a64;
  --cs-shadow: rgba(40, 45, 35, 0.12);
  --font-display: Georgia, "Times New Roman", serif;
  background:
    linear-gradient(rgba(247, 243, 234, 0.92), rgba(247, 243, 234, 0.96)),
    url("/calm-ui/bitmap/grain_overlay.webp"), var(--cs-cream);
  background-size:
    auto,
    520px 360px,
    auto;
  color: var(--cs-ink);
  font-family: var(--font-sans, Arial, sans-serif);
  min-height: 100vh;
  overflow: hidden;
  padding: 1rem;
}

.site-shell,
.site-shell * {
  box-sizing: border-box;
}

.dark .site-shell {
  --cs-cream: #161a15;
  --cs-cream-2: #20261d;
  --cs-paper: #1f261e;
  --cs-ink: #f3eee3;
  --cs-muted-ink: #c9c1b0;
  --cs-forest: #b9c9a5;
  --cs-forest-dark: #d1ddbf;
  --cs-sage: #6d8065;
  --cs-sage-2: #263121;
  --cs-clay: #d1a17d;
  --cs-line: rgba(232, 220, 197, 0.17);
  --cs-focus: #b6ca9f;
  --cs-shadow: rgba(0, 0, 0, 0.38);
  background:
    radial-gradient(
      circle at 72% 8%,
      rgba(128, 145, 106, 0.18),
      transparent 30rem
    ),
    linear-gradient(rgba(20, 24, 19, 0.94), rgba(20, 24, 19, 0.98)),
    url("/calm-ui/bitmap/grain_overlay.webp"), #141813;
  background-size:
    auto,
    auto,
    520px 360px,
    auto;
}

.site-shell-inner {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 2rem);
  width: 100%;
}

.site-header {
  align-items: center;
  border-bottom: 0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.site-brand {
  align-items: center;
  color: var(--cs-ink);
  display: flex;
  gap: 0.5rem;
  text-decoration: none;
  width: fit-content;
}

.site-brand-mark {
  -webkit-mask: url("/connectionship-logo.png") center / contain no-repeat;
  background-color: var(--cs-forest);
  display: inline-block;
  flex: 0 0 auto;
  height: 1.5rem;
  mask: url("/connectionship-logo.png") center / contain no-repeat;
  width: 2.75rem;
}

.site-brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.site-eyebrow {
  color: var(--cs-forest);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.site-nav {
  align-items: center;
  border-radius: 999px;
  display: none;
  font-size: 0.875rem;
  gap: 2rem;
}

.site-nav-link {
  border: 1px solid transparent;
  color: var(--cs-muted-ink);
  text-decoration: none;
  transition: color 180ms ease;
  white-space: nowrap;
}

.site-nav-link:hover,
.site-nav-link.is-active {
  border-color: transparent;
  color: var(--cs-ink);
}

.site-nav-cta {
  background: var(--cs-forest);
  border-radius: 999px;
  box-shadow: 0 12px 28px var(--cs-shadow);
  color: white;
  font-weight: 700;
  padding: 0.85rem 1.2rem;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
  white-space: nowrap;
}

.site-nav-cta:hover {
  background: var(--cs-forest-dark);
  transform: translateY(-1px);
}

.site-menu-button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  gap: 0.28rem;
  padding: 0.5rem;
}

.site-menu-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cs-focus) 42%, transparent);
  outline-offset: 3px;
}

.site-menu-button span {
  background: var(--cs-ink);
  display: block;
  height: 2px;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  width: 1.4rem;
}

.site-menu-button.is-open span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.site-menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.site-menu-button.is-open span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.site-mobile-menu {
  position: relative;
}

.site-mobile-nav {
  background: color-mix(in srgb, var(--cs-paper) 96%, white);
  border: 1px solid var(--cs-line);
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px var(--cs-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem;
  position: fixed;
  right: 1rem;
  top: 4.75rem;
  width: min(18rem, calc(100vw - 2rem));
  z-index: 100;
}

.site-mobile-nav-link,
.site-mobile-nav-cta {
  border-radius: 0.9rem;
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.85rem 1rem;
  text-decoration: none;
}

.site-subnav {
  border-bottom: 1px solid var(--cs-line);
  border-top: 1px solid var(--cs-line);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 0;
}

.site-subnav-link {
  background: color-mix(in srgb, var(--cs-paper) 60%, transparent);
  border-radius: 999px;
  color: var(--cs-muted-ink);
  flex: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.site-subnav-link:hover {
  background: var(--cs-sage-2);
  color: var(--cs-ink);
}

.site-subnav-link.is-active {
  background: var(--cs-forest);
  color: white;
}

.dark .site-subnav-link.is-active {
  color: #1c211b;
}

.site-mobile-menu[open] .site-menu-button span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.site-mobile-menu[open] .site-menu-button span:nth-child(2) {
  opacity: 0;
}

.site-mobile-menu[open] .site-menu-button span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.site-mobile-nav-link {
  color: var(--cs-muted-ink);
}

.site-mobile-nav-link:hover,
.site-mobile-nav-link.is-active {
  background: var(--cs-sage-2);
  color: var(--cs-ink);
}

.site-mobile-nav-cta {
  background: var(--cs-forest);
  color: white;
  margin-top: 0.25rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .site-mobile-menu {
    display: none;
  }
}
