/**
 * Buttons: .bst-button (primary) and .bst-button--outline (secondary),
 * for links and button elements. See "Buttons" in docs/design-system.md.
 *
 * Colors come from the surface pair: --focus-color is the ink (forest on
 * light surfaces, white on dark ones), --surface-color the surface
 * background (ivory / forest). Dark surfaces set both.
 *
 * `a.` / `button.` prefixes: enough specificity to beat the base link
 * styles in base.css, GeneratePress content link colors
 * (`.inside-article a`) and the GeneratePress `button` styles.
 */

a.bst-button,
button.bst-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 0.5em 2em;
	border: 1px solid var(--focus-color);
	border-radius: var(--radius);
	background-color: var(--focus-color);
	color: var(--surface-color);
	font-family: var(--font-heading);
	font-size: var(--text-link);
	font-style: italic;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

/* Primary hover and focus: the outline look. */
a.bst-button:hover,
a.bst-button:focus-visible,
button.bst-button:hover,
button.bst-button:focus-visible {
	border-color: var(--focus-color);
	background-color: transparent;
	color: var(--focus-color);
	text-decoration: none;
}

/* Outline: transparent, ink-colored text and border. */
a.bst-button--outline,
button.bst-button--outline {
	background-color: transparent;
	color: var(--focus-color);
}

/* Outline hover and focus: filled. */
a.bst-button--outline:hover,
a.bst-button--outline:focus-visible,
button.bst-button--outline:hover,
button.bst-button--outline:focus-visible {
	background-color: var(--focus-color);
	color: var(--surface-color);
}
