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

* {
	margin: 0;
}

body {
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

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

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

#root,
#__next {
	isolation: isolate;
}

:root {
	--text: hsl(39, 82%, 10%);
	--yellow-tint: hsl(39, 82%, 90%);
	--yellow-tint-dark: hsl(39, 82%, 40%);
}

/* END CSS RESET */

@font-face {
	font-family: 'Livvic';
	src: url('./fonts/Livvic-Medium.ttf');
}

@font-face {
	font-family: 'Livvic';
	font-style: italic;
	src: url('./fonts/Livvic-MediumItalic.ttf');
}

@font-face {
	font-family: 'Livvic';
	font-weight: 800;
	src: url('./fonts/Livvic-ExtraBold.ttf');
}

@font-face {
	font-family: 'Livvic';
	font-weight: bold;
	src: url('./fonts/Livvic-Bold.ttf');
}

@font-face {
	font-family: 'Livvic';
	font-style: italic;
	font-weight: bold;
	src: url('./fonts/Livvic-BoldItalic.ttf');
}

html,
body {
	font-family: Livvic, sans-serif;
	color: var(--text);
	background-color: hsla(36, 99%, 99%);
}

body {
	margin: 0 auto;
	max-width: 728px;
	padding-inline: 1rem;
	padding-block: 4rem;
}

body > * + * {
	margin-top: 1rem;
}

.lead-in {
	color: hsl(0, 0%, 50%);
}

.lead-in p + p,
.callout p + p {
	margin-top: 1.125rem;
}

.callout {
	background-color: var(--yellow-tint);
	padding-inline: 1rem;
	padding-block: 1rem;
	border-radius: 6px;
}

.callout__heading {
	color: var(--yellow-tint-dark);
}

.dont-do {
	font-size: 1.125rem;
	background-color: var(--yellow-tint);
	border-radius: 6px;
	padding: 1rem 1rem;
	font-weight: bold;

	> div:first-child {
		text-transform: uppercase;
		color: var(--yellow-tint-dark);
	}
}

:not(h2) + .dont-do {
	margin-top: 2rem;
}

h1 {
	font-size: 2rem;
}

h2 {
	margin-top: 3rem;
	font-size: 1.5rem;
}

p {
	font-size: 1.125rem;
}

a {
	text-decoration: underline;
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.meta,
.meta a {
	color: hsl(0, 0%, 50%);
}

.meta {
	margin-top: 0;
	margin-bottom: 3rem;
	font-size: 14px;
}

@media screen and (max-width: 727px) {
	body {
		padding-block: 2rem;
	}

	.meta {
		margin-top: 0.5rem;
	}
}
