@import "./variables.css";

*,
::before,
::after {
	background-repeat: no-repeat;
	box-sizing: inherit;
}

::before,
::after {
	text-decoration: inherit;
	vertical-align: inherit;
}

html {
	box-sizing: border-box;
	cursor: default;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
  font-size: 100%;
}

article,
aside,
footer,
header,
nav,
section {
	display: block;
}

body {
	margin: 0;
  padding: 0;
}

figcaption,
figure,
main {
	display: block;
}

figure {
	margin: 1em 40px;
}

hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

nav ol,
nav ul {
	list-style: none;
}

pre {
  margin: 0;
  height: 100%;

  code {
    display: block;
    overflow-x: auto;
  }
}

a {
	-webkit-text-decoration-skip: objects;
}

abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

b,
strong {
	font-weight: inherit;
}

b,
strong {
	font-weight: bold;
}

pre,
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1rem;
}

dfn {
	font-style: italic;
}

mark {
	background-color: #ffff00;
	color: #000000;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -.25em;
}

sup {
	top: -.5em;
}

::-moz-selection {
	background-color: #b3d4fc;
	color: #000000;
	text-shadow: none;
}

::selection {
	background-color: #b3d4fc;
	color: #000000;
	text-shadow: none;
}

audio,
canvas,
iframe,
img,
svg,
video {
	vertical-align: middle;
}

audio,
video {
	display: inline-block;
}

audio:not([controls]) {
	display: none;
	height: 0;
}

img {
	border-style: none;
}

svg {
	fill: currentColor;
}

svg:not(:root) {
	overflow: hidden;
}

table {
	border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
	margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
	background-color: transparent;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

button,
input {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
html [type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

progress {
	display: inline-block;
	vertical-align: baseline;
}

textarea {
	overflow: auto;
	resize: vertical;
}

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

details,
menu {
	display: block;
}

summary {
	display: list-item;
}

canvas {
	display: inline-block;
}

template {
	display: none;
}

a,
area,
button,
input,
label,
select,
summary,
textarea,
[tabindex] {
	-ms-touch-action: manipulation;
	touch-action: manipulation;
}

[hidden] {
	display: none;
}

[aria-busy="true"] {
	cursor: progress;
}

[aria-controls] {
	cursor: pointer;
}

[aria-hidden="false"][hidden]:not(:focus) {
	clip: rect(0, 0, 0, 0);
	display: inherit;
	position: absolute;
}

[aria-disabled] {
	cursor: default;
}

code {
  padding: 0 8px;
  color: var(--color-code);
  background-color: var(--color-bg);
  border-radius: 4px;
}

i {
  font-style: normal;
}


/**
 * UNITS base styles
 */

body {
  font-family: Roboto, var(--font-stack);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: .05em;
}

a {
  color: var(--color-text);
	background-color: transparent;
  text-decoration: underline;

  ._dark &,
  ._black & {
    color: white;
  }

  &:hover {
    text-decoration: none;
  }
}

hr,
.uc-hr {
  height: 0;
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 80px 0 40px;
  box-sizing: content-box;
  overflow: visible;

  @media (--small-viewport) {
    margin: 40px 24px;
  }
}

.uc-content {
  position: relative;
}

.uc-grid-unit,
.uc-hero-unit,
.uc-btn-unit,
.uc-card-unit,
.uc-list-unit,
.uc-code-unit,
.uc-table-unit,
.uc-form-unit,
.uc-photo-unit,
.uc-video-unit,
.uc-loading-unit {
  margin: 56px auto 0;

  @media (--small-viewport) {
    margin: 40px auto 0;
  }

  & + * {
    margin: 56px auto 0;

    @media (--small-viewport) {
      margin: 40px auto 0;
    }
  }
}

p + .uc-btn {
  margin: 32px 0 0;

  @media (--small-viewport) {
    margin: 24px 0 0;
  }
}
