:root {
  --product-background: #f6f8fc;
  --product-ink: #101c31;
  --product-muted: #475772;
  --product-surface: #ffffff;
  --product-border: #e1e6ef;
  --product-nav-hover: #f1f3f8;
  --product-accent: #4f46e5;
  --product-focus: #5b52ed;
  --product-active: #efedff;
  --product-input: #77849c;
}

:root[data-theme="dark"] {
  --product-background: #111622;
  --product-ink: #eef2ff;
  --product-muted: #b3bfd4;
  --product-surface: #111b2d;
  --product-border: #2b3851;
  --product-nav-hover: #1e2941;
  --product-accent: #a9a7ff;
  --product-focus: #a5b4fc;
  --product-active: #293055;
  --product-input: #7887a2;
}

.product-shell,
.product-header-inner {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
}

.product-header {
  position: relative;
  z-index: 2;
  color: var(--product-ink);
  background: var(--product-surface);
  border-block-end: 1px solid var(--product-border);
}

.product-header-inner {
  display: flex;
  align-items: center;
  min-height: 4.3rem;
  gap: clamp(.75rem, 2.4vw, 2rem);
}

.product-wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .64rem;
  color: var(--product-ink);
  font-size: 1.06rem;
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.product-wordmark:hover { color: var(--product-ink); }

.product-mark {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: .56rem;
  background: #4f46e5;
  color: white;
}

.product-mark::before {
  content: "";
  width: .95rem;
  height: .46rem;
  margin-block-end: .42rem;
  border: 1.5px solid currentColor;
  border-radius: .15rem;
  transform: skewY(-12deg);
}

.product-mark::after {
  content: "";
  position: absolute;
  width: .95rem;
  height: .39rem;
  inset-block-start: .99rem;
  border: 1.5px solid currentColor;
  border-block-start: 0;
  border-radius: .15rem;
  transform: skewY(-12deg);
  opacity: .82;
}

.product-nav,
.product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .24rem;
}

.product-actions {
  justify-content: flex-end;
  gap: .6rem;
  margin-inline-start: auto;
}

.product-nav a,
.product-actions > a:not(.product-button) {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: .35rem .68rem;
  border-radius: .46rem;
  color: var(--product-muted);
  font-size: .89rem;
  font-weight: 630;
  line-height: 1.2;
  text-decoration: none;
}

.product-nav a:hover,
.product-actions > a:not(.product-button):hover {
  background: var(--product-nav-hover);
  color: var(--product-ink);
}

.product-nav a[aria-current="page"] {
  background: var(--product-active);
  color: var(--product-accent);
}

.product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--product-border);
  border-radius: .55rem;
  background: var(--product-surface);
  color: var(--product-ink);
  font: inherit;
  font-size: .91rem;
  font-weight: 690;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.product-button:hover {
  background: var(--product-nav-hover);
  color: var(--product-ink);
}

.product-button-primary,
.product-button-primary:hover {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
}

.product-button-primary:hover {
  border-color: #3f35c9;
  background: #3f35c9;
}

.product-header :focus-visible,
.product-button:focus-visible {
  outline: 2px solid var(--product-focus);
  outline-offset: 3px;
}

@media (max-width: 39rem) {
  .product-shell,
  .product-header-inner { width: min(1200px, calc(100% - 2rem)); }
  .product-header-inner { min-height: 3.8rem; flex-wrap: wrap; gap: .4rem .8rem; padding-block: .45rem; }
  .product-nav { order: 1; flex-basis: 100%; }
  .product-nav a,
  .product-actions > a:not(.product-button) { padding-inline: .45rem; }
  .product-actions { gap: .35rem; flex-wrap: nowrap; }
}
