.swerve-citation {
  --citation-ink: #242723;
  --citation-edge: #ddd7cb;
  --citation-accent: #984a2b;
  --citation-serif: "Swerve Baskervville", Georgia, serif;
  --citation-sans: "Swerve Inter", system-ui, sans-serif;
  padding: clamp(35px, 4.5vw, 63px) clamp(16px, 4.8vw, 66px) clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--citation-edge);
  background: #faf8f3;
  color: var(--citation-ink);
}

.swerve-citation h2 {
  margin: 0;
  font: 500 clamp(33px, 4vw, 45px) / 1.04 var(--citation-serif);
  letter-spacing: -.045em;
  text-align: center;
}

.swerve-citation__card {
  box-sizing: border-box;
  max-inline-size: 1136px;
  margin: clamp(18px, 3vw, 30px) auto 0;
  overflow: hidden;
  border: 1px solid var(--citation-edge);
  border-radius: 7px;
  background: #f2eee6;
}

.swerve-citation__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  padding: .64rem clamp(.75rem, 2vw, 1.25rem);
  border-bottom: 1px solid var(--citation-edge);
  background: #fcfaf6;
  font: 600 .88rem / 1.2 var(--citation-sans);
}

.swerve-citation__copy {
  min-height: 38px;
  padding: .38rem .69rem;
  border: 1px solid #b98a73;
  border-radius: 4px;
  background: #fffaf3;
  color: #773e26;
  font: 600 .79rem / 1.2 var(--citation-sans);
  cursor: pointer;
}

.swerve-citation__copy:hover:enabled { background: #f4e9de; }

.swerve-citation__copy:focus-visible {
  outline: 2px solid var(--citation-accent);
  outline-offset: 3px;
}

.swerve-citation__copy:disabled {
  border-color: #e0dacf;
  background: #f3efe8;
  color: #726961;
  cursor: default;
}

.swerve-citation pre {
  margin: 0;
  padding: clamp(.9rem, 2.25vw, 1.45rem) clamp(.75rem, 2.7vw, 1.6rem);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 400 clamp(.81rem, 1.45vw, .98rem) / 1.55 ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

.swerve-citation code { font: inherit; }

.swerve-citation__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
