/**
 * Burak Varol global design foundation.
 */

html {
	background: var(--bv-bg);
	color-scheme: dark;
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	min-width: 20rem;
	margin: 0;
	background: var(--bv-bg);
	color: var(--bv-text);
	font-family: var(--bv-font-sans);
	font-size: var(--bv-type-body);
	font-weight: var(--bv-font-weight-regular);
	line-height: var(--bv-leading-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
	font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: 0 var(--bv-space-6);
	color: var(--bv-text);
	font-family: var(--bv-font-sans);
	font-weight: var(--bv-font-weight-semibold);
	letter-spacing: var(--bv-tracking-tight);
	line-height: var(--bv-leading-heading);
}

h1 {
	font-size: var(--bv-type-h1);
}

h2 {
	font-size: var(--bv-type-h2);
}

h3 {
	font-size: var(--bv-type-h3);
}

h4,
h5,
h6 {
	font-size: var(--bv-type-h4);
}

p {
	margin-block: 0 var(--bv-space-6);
}

small {
	font-size: var(--bv-type-body-sm);
}

code,
kbd,
samp,
pre {
	font-family: var(--bv-font-mono);
}

a,
a:visited {
	color: var(--bv-accent);
	text-decoration-line: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
	color: var(--bv-accent-hover);
	text-decoration-thickness: 0.14em;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

img,
video {
	height: auto;
}

::selection {
	background: var(--bv-selection-bg);
	color: var(--bv-selection-text);
}

:focus-visible {
	outline: var(--bv-focus-width) solid var(--bv-focus-color);
	outline-offset: var(--bv-focus-offset);
}

.bv-container {
	width: min(calc(100% - (2 * var(--bv-container-padding))), var(--bv-container-max));
	margin-inline: auto;
}

.bv-reading-width {
	width: min(100%, var(--bv-reading-max));
	margin-inline: auto;
}

.bv-section {
	padding-block: var(--bv-section-space);
}

.bv-section--light {
	--bv-focus-color: var(--bv-primary);

	background: var(--bv-light-bg);
	color: var(--bv-light-text);
	color-scheme: light;
}

.bv-section--light a:not(.bv-button),
.bv-section--light .bv-eyebrow {
	color: var(--bv-primary);
}

.bv-section--light h1,
.bv-section--light h2,
.bv-section--light h3,
.bv-section--light h4,
.bv-section--light h5,
.bv-section--light h6 {
	color: var(--bv-light-text);
}

.bv-eyebrow {
	margin-block: 0 var(--bv-space-4);
	color: var(--bv-accent);
	font-family: var(--bv-font-mono);
	font-size: var(--bv-type-label);
	font-weight: var(--bv-font-weight-semibold);
	letter-spacing: var(--bv-tracking-label);
	line-height: 1.4;
	text-transform: uppercase;
}

.bv-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.75rem var(--bv-space-6);
	border: var(--bv-border-width) solid transparent;
	border-radius: var(--bv-radius-default);
	font-family: var(--bv-font-sans);
	font-size: var(--bv-type-body-sm);
	font-weight: var(--bv-font-weight-semibold);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color var(--bv-motion-fast) var(--bv-easing-standard),
		border-color var(--bv-motion-fast) var(--bv-easing-standard),
		color var(--bv-motion-fast) var(--bv-easing-standard),
		box-shadow var(--bv-motion-fast) var(--bv-easing-standard);
}

.bv-button:hover,
.bv-button:focus-visible {
	text-decoration: none;
	box-shadow: inset 0 0 0 1px currentcolor;
}

.bv-button--primary,
.bv-button--primary:visited {
	background: var(--bv-primary);
	color: var(--bv-text);
}

.bv-button--primary:hover,
.bv-button--primary:focus-visible {
	background: var(--bv-primary-hover);
	color: var(--bv-text);
}

.bv-button--secondary,
.bv-button--secondary:visited {
	border-color: var(--bv-accent);
	background: transparent;
	color: var(--bv-accent);
}

.bv-button--secondary:hover,
.bv-button--secondary:focus-visible {
	background: var(--bv-accent);
	color: var(--bv-bg);
}

.bv-button--ghost,
.bv-button--ghost:visited {
	border-color: var(--bv-border);
	background: transparent;
	color: var(--bv-text);
}

.bv-button--ghost:hover,
.bv-button--ghost:focus-visible {
	border-color: var(--bv-text-secondary);
	background: var(--bv-surface-elevated);
	color: var(--bv-text);
}

.bv-section--light .bv-button--secondary,
.bv-section--light .bv-button--secondary:visited,
.bv-section--light .bv-button--ghost,
.bv-section--light .bv-button--ghost:visited {
	border-color: currentcolor;
	color: var(--bv-primary);
}

.bv-section--light .bv-button--secondary:hover,
.bv-section--light .bv-button--secondary:focus-visible,
.bv-section--light .bv-button--ghost:hover,
.bv-section--light .bv-button--ghost:focus-visible {
	background: var(--bv-primary);
	color: var(--bv-text);
}

.bv-button:disabled,
.bv-button[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto !important;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}