/*--------------------------------------------------------------
# Typography, Elements & Links
# Uses design tokens from _variables.css
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-md);
	line-height: var(--leading-relaxed);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-family: var(--font-heading);
	font-weight: var(--weight-bold);
	line-height: var(--leading-tight);
	color: var(--color-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
	margin-bottom: var(--space-5);
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 var(--space-5);
}

address {
	margin: 0 0 var(--space-5);
}

pre {
	background: var(--color-bg-alt);
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted var(--color-text-light);
	cursor: help;
}

mark,
ins {
	background: var(--color-accent-light);
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: var(--color-bg);
}

hr {
	background-color: var(--color-border);
	border: 0;
	height: 1px;
	margin-bottom: var(--space-5);
}

ul,
ol {
	margin: 0 0 var(--space-5) var(--space-6);
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: var(--space-5);
}

dt {
	font-weight: var(--weight-bold);
}

dd {
	margin: 0 var(--space-5) var(--space-5);
}

embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: var(--space-4) 0;
}

table {
	margin: 0 0 var(--space-5);
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: var(--color-accent-dark);
	transition: color var(--transition-fast);
}

a:visited {
	color: var(--color-accent-dark);
}

a[class*="btn-"]:visited {
	color: inherit;
}

a:hover,
a:focus,
a:active {
	color: var(--color-accent);
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}
