/**
 * Canvas chrome: editorial brand nav loaded across every Atlas-owned page.
 * Self-contained — fonts pulled from Google Fonts, design tokens inlined as
 * literals because the host theme on the demo aggregator does not enqueue the
 * shared token stylesheet. Overrides the generic .atlas-nav scaffold from
 * canvas-transitions.css by virtue of load order (linked after it in
 * templates/canvas.php).
 */

@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:ital,wght@1,500&display=swap');

.atlas-nav {
  /* Override the generic flex chrome from canvas-transitions.css. */
  display: block;
  padding: 0;
  background: color-mix(in srgb, #f5f0ea 88%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid #e6ddd1;
  font-family: 'Familjen Grotesk', system-ui, -apple-system, sans-serif;
  color: #1f1b1a;
}

.atlas-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px clamp(20px, 4vw, 40px);
}

/* ───── Brand lockup (mark + wordmark + ding) ───── */
.atlas-nav .atlas-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  background: transparent;
  line-height: 1;
}
.atlas-nav .atlas-nav__brand:hover {
  background: transparent;
}

.atlas-nav__mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cg transform='translate(13 13)' fill='none' stroke='%239c4a3a' stroke-width='2' stroke-linecap='square'%3E%3Cline x1='-12' y1='9' x2='-2' y2='-9'/%3E%3Cline x1='-5' y1='9' x2='5' y2='-9'/%3E%3Cline x1='2' y1='9' x2='12' y2='-9'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.atlas-nav__word {
  font-family: 'Familjen Grotesk', system-ui, -apple-system, sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  line-height: 0.86;
  letter-spacing: -0.025em;
  color: #1f1b1a;
  white-space: nowrap;
}

.atlas-nav__ding {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-bottom: 3px;
  background: #9c4a3a;
  border-radius: 50%;
  align-self: flex-end;
  flex-shrink: 0;
}

/* ───── CTA ───── */
.atlas-nav__links {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.atlas-nav .atlas-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 16px;
  border: 1px solid #2a201d;
  border-radius: 2px;
  background: #2a201d;
  color: #e8dfd5;
  font-family: 'Familjen Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 11.5px;
  font-style: normal;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: none;
  transition:
    background 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.atlas-nav .atlas-nav__cta:hover {
  background: #9c4a3a;
  border-color: #9c4a3a;
  color: #fbf7f2;
  letter-spacing: 0.06em;
}

.atlas-nav__cta-arrow {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.atlas-nav__cta-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* ───── Responsive ───── */
@media (max-width: 720px) {
  .atlas-nav__inner {
    grid-template-columns: auto auto;
    gap: 12px;
  }
}
