@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700&display=swap');

:root {
	color-scheme: light;
	--primary: #262626;
	--secondary: #fff;
	--shadow: #00000047;
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--primary: #d7d7d7;
	--secondary: #1c1c1c;
	--shadow: #000;
}

::selection {
	color: var(--secondary);
	background: var(--primary);
}

body {
	font-family: 'Roboto', 'Arial', sans-serif;
	color: var(--primary);
	background-color: var(--secondary);
}

h1 {
	font-weight: 100;
	text-align: center;
}

h1 span {
	font-weight: bold;
}

h1 sup {
	font-size: 0.5em;
}

a {
	color: var(--primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.toolbox {
	text-align: center;
	margin: 20px 0 20px 0;
}

.toolbox span {
	cursor: pointer;
}

.toolbox svg {
	height: 20px;
	width: 20px;
	fill: var(--primary);
	stroke: var(--primary);
}

#root {
	display: grid;
	gap: 20px;
	grid-template-columns: auto auto auto auto;
	justify-content: center;
}

@media only screen and (max-width: 1120px) {
	#root {
		grid-template-columns: auto auto auto;
	}
}

@media only screen and (max-width: 850px) {
	#root {
		grid-template-columns: auto auto;
	}
}

@media only screen and (max-width: 600px) {
	#root {
		grid-template-columns: auto;
	}
}

.swatch {
	width: 250px;
	box-shadow: 0px 0px 5px var(--shadow);
}

.swatch .color {
	width: 100%;
	height: 200px;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
}

.swatch .color h2 {
	margin: 0;
	opacity: 0.5;
	color: var(--secondary);
	font-size: 3em;
	line-height: 0.7;
}

.swatch .color-name p {
	margin: 5px;
	font-weight: bold;
	font-size: 1.25em;
}

.swatch .details {
	display: flex;
	justify-content: space-between;
}

.swatch .details div {
	margin: 5px;
}

.swatch .details p {
	line-height: 0.25;
}

.swatch .details .pantone {
	font-weight: bold;
	text-transform: uppercase;
}

.swatch .details .codes {
	text-align: right;
}

.footer {
	text-align: center;
}
