/* --- CSS RESET --- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Merriweather", serif;
  -webkit-font-smoothing: antialiased;
  background-image: url("../../images/site-background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  line-height: 1.6;
  color: #ffffff;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
strong,
em,
small,
label,
blockquote {
  color: #ffffff;
  overflow-wrap: break-word;
}

/* =========================================================
   CONTENT LISTS
========================================================= */

main ul,
main ol {
  margin: 20px 0;
  list-style: none;
  display: grid;
  gap: 0;
}

main li {
  position: relative;
  padding: 18px 22px 18px 58px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(77, 184, 255, 0.18);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.86);
  font-family: "Merriweather", serif;
  font-size: 1.08rem;
  line-height: 1.75;
}

/* UL SYMBOL */

main ul li::before {
  content: "⌬";
  position: absolute;
  left: 20px;
  top: 20px;
  color: #4db8ff;
  font-size: 1.75rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(77, 184, 255, 0.4);
}

/* OL NUMBERS */

main ol {
  counter-reset: universal-list;
}

main ol li {
  counter-increment: universal-list;
}

main ol li::before {
  content: counter(universal-list);
  position: absolute;
  left: 20px;
  top: 19px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4db8ff, #8fd6ff);
  color: #06111f;
  border-radius: 10px;
  font-family: "Acme", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(77, 184, 255, 0.28);
}

/* =========================================================
   GLOBAL TYPOGRAPHY DEFAULTS
========================================================= */

h1,
h2,
h3,
h4 {
  font-family: "Acme", sans-serif;
  color: #ffffff;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  margin: 0 0 32px;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.5px;
  font-family: "Merriweather", serif;
}

h2 {
  margin: 72px 0 28px;
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: 0.4px;
}

h3 {
  margin: 52px 0 22px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: 0.3px;
}

h4 {
  margin: 36px 0 16px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: 0.6px;
}

p {
  max-width: 72ch;
  margin: 0 0 26px;
  font-family: "Merriweather", serif;
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  line-height: 1.85;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.88);
}

strong,
b {
  font-weight: 700;
  color: #ffffff;
}

/* =========================================================
   INLINE TEXT LINKS
========================================================= */

p a,
li a,
figcaption a {
  position: relative;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

p a::after,
li a::after,
figcaption a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(77, 184, 255, 0.2),
    rgba(77, 184, 255, 1)
  );
  opacity: 0.5;
  transition: all 0.25s ease;
}

p a:hover,
li a:hover,
figcaption a:hover {
  color: #4db8ff;
  text-shadow: 0 0 8px rgba(77, 184, 255, 0.35);
}

p a:hover::after,
li a:hover::after,
figcaption a:hover::after {
  opacity: 1;
  box-shadow: 0 0 8px rgba(77, 184, 255, 0.45);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  main li {
    padding: 16px 18px 16px 52px;
    font-size: 1rem;
  }

  main ul li::before,
  main ol li::before {
    left: 16px;
    top: 18px;
  }
}
