html {
  scrollbar-gutter: stable;
}

:root {
  --oa-surface-light: #fff;
  --oa-surface-light-hover: #e0e0e0;
  --oa-ink-dark: #000;
}

coda0-header {
  display: block;
  min-height: 64px;
  contain: layout;
}

.oa-header-panel {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  height: 64px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.oa-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 24px;
  text-decoration: none;
}

.oa-brand-mark {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid var(--border-light);
  background: var(--bg);
}

.oa-brand-mark::after {
  width: 9px;
  height: 9px;
  background: var(--accent);
  content: "";
}

.oa-brand-wordmark {
  letter-spacing: -0.03em;
}

.oa-account-slot {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.oa-header-meta,
.oa-header-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-dim);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
}

.oa-header-meta {
  color: var(--accent);
}

.oa-header-link {
  white-space: nowrap;
  text-transform: none;
}

.oa-header-link:hover {
  color: var(--text);
}

.oa-header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border-radius: 3px;
  background: var(--oa-surface-light);
  padding: 8px 16px;
  color: var(--oa-ink-dark);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background-color 100ms ease,
    transform 100ms ease;
}

.oa-header-cta:hover {
  background: var(--oa-surface-light-hover);
  transform: translateY(-1px);
}

.oa-brand:focus-visible,
.oa-header-link:focus-visible,
.oa-header-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  coda0-header {
    min-height: 56px;
  }

  .oa-header-panel {
    width: min(100% - 32px, 440px);
    height: 56px;
  }

  .oa-account-slot {
    gap: 16px;
  }

  .oa-header-meta {
    font-size: 9px;
  }

  .oa-header-cta {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oa-header-cta {
    transition: none;
  }

  .oa-header-cta:hover {
    transform: none;
  }
}
