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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul.no-list-style,
ol.no-list-style {
  list-style: none;
}

/* Prevent zooming when orientation changes on some iOS devices */
html {
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Make gutter area stable and present on both edges of the scrollbar */
html {
  scrollbar-gutter: stable;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  min-height: 100dvh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg,
canvas {
  max-inline-size: 100%;
  block-size: auto;
  vertical-align: middle;
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
  shape-margin: 0.75rem;
}

/* remove default button styles */
button {
  all: unset;
}

/* Inherit fonts for inputs and buttons */
button,
input,
textarea,
select {
  font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Adding cursor style to interactive elements */
button,
label,
select,
summary,
[role='button'],
[role='option'] {
  cursor: pointer;
}

/* No typographic widows */
* {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4 {
  text-wrap: pretty;
}

/* Scroll margin allowance above anchor links */
:target {
  scroll-margin-block-start: 2ex;
}

/* Scroll margin allowance below focused elements
  to ensure they are clearly in view */
:focus {
  scroll-margin-block-end: 8vh;
}

/* Custom styles */
:root {
  font-family: 'Chivo','Open Sans',Optima,Candara,Noto Sans,source-sans-pro,system-ui,sans-serif;
  font-size: 125%;
  line-height: 130%;
}

body {
  background: #fcfdfa;
  color: #543631;
  padding: 5vh 5vw;
}

main {
  max-width: 30em;
  margin: 5em 0 0 5em;
}

h1 {
  font-size: 4em;
}

p, summary {
  margin: 0 0 1.25em;
}

li {
	margin: .5em 0;
}

a {
  color: #44f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.cool {
	position: relative;
	margin-left: .3em;
}
.cool::before {
	content: "✨";
	left: -1.5rem;
  position: absolute;
  bottom: -1rem;
	font-size: 2rem;
}
.cool::after {
	content: "✨";
  left: 95%;
  position: absolute;
  bottom: 25%;
	font-size: 3rem;
}

section {
	padding-left: 1em;
	margin-left: 1em;
	border-left: 2px solid #543631;
}

footer {
	margin-top: 2em;
	color: #745651;
}

@media screen and (max-width: 750px) {
	main {
		margin: 0;
	}
	h1 {
		font-size: 3em;
	}
}

@media screen and (max-width: 550px) {
	h1 {
		text-align: center;
		font-size: 2.5em;
	}
	.cool {
		position: initial;
		margin: initial;
		display: initial;
	}
	.cool::before, .cool::after {
		content: "";
	}
	section {
		padding-left: .7em;
		margin-left: .2em;
	}
}
