/* young-serif-regular - latin */
@font-face {
  font-family: 'Young Serif';
  src: url('assets/fonts/young-serif-v2-latin-regular.woff2') format('woff2'); 
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* outfit-regular - latin */
@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/outfit-v15-latin-regular.woff2') format('woff2'); 
  font-weight: 400;
  font-style: normal;
  font-display: swap; 
}

/* outfit-600 - latin */
@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/outfit-v15-latin-600.woff2') format('woff2'); 
  font-weight: 600;
  font-style: normal;
  font-display: swap; 
}

/* outfit-700 - latin */
@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/outfit-v15-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/*--CSS RESET--*/

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

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  height: 100%;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* Make images easier to work with */
img,
picture,
video {
  display: block;
  max-width: 100%;
}

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

:root {
  /* == Color Pallette == */
  --color-white: hsl(0, 0%, 100%);
  --color-stone-100: hsl(30, 54%, 90%);
  --color-stone-150: hsl(30, 18%, 87%);
  --color-stone-600: hsl(30, 10%, 34%);
  --color-stone-900: hsl(24, 5%, 18%);
  --color-brown-800: hsl(14, 45%, 36%);
  --color-rose-50: hsl(330, 100%, 98%);
  --color-rose-800: hsl(332, 51%, 32%);
  
  /* == Fonts ==*/
  --ff-heading: 'Young Serif', serif;
  --ff-body: 'Outfit', sans-serif;

  /* == Weights ==*/
  --fw-young-serif: 400;

  /*Outfit weights*/
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
}


body {
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--color-slate-900);
  font-family: var(--ff-body);
  font-size: clamp(1.05rem, 1vw, 1.5rem);
  color: var(--color-stone-600);
  line-height: 1.5;
}

main {
  width: 100%;
  height: auto;
  background-color: var(--color-white);
}

main img {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

article {
  padding: clamp(1.5rem, 1vw, 2rem);
}

main h1, main h2 {
  font-family: var(--ff-heading);
  line-height: 1.1;
  text-wrap: initial;
  transition: all 1s;
}

h2 {
  font-size: 1.75rem;
  font-weight: var(--fw-normal);
  color: var(--color-brown-800);
  margin-block-start: clamp(1.5rem, 1.5vw, 2rem);
  margin-block-end: clamp(1.5rem, 2vw, 1.8rem);
}

.main__content--heading {
  color: var(--color-stone-900);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: var(--fw-regular);
  margin-block-start: 1.8rem;
  margin-block-end: 1.4rem;
}

.main__subsection {
  background-color: var(--color-rose-50);
  border-radius: 0.8rem;
  margin-block-start: 1.5rem;
  padding: 1rem 1.7rem;
  font-weight: var(--fw-regular);
  word-spacing: 0.1875rem;
}

.main__subsection--heading {
  color: var(--color-rose-800);
  font-family: var(--ff-body);
  font-size: var(--fw-regular);
  font-weight: var(--fw-semibold);
  letter-spacing: 0rem;
  margin-block-start: 0;
  margin-block-end: clamp(0.8rem, 1vw, 1rem);
}

.main__section:not(:last-child) {
  margin-block-end: clamp(1.5rem, 2vw, 1.8rem);
}


/* == List Styling == */
li {
  margin-block-end: 0.8em;
  line-height: 1.4;
}

ol {
  padding-inline-start: 1.5rem;
}

ol li::marker {
  color: var(--color-brown-800);
  font-weight: var(--fw-bold);
}

ol li {
  padding-left: 1rem;
}

ul {
  padding-inline-start: 0.625rem; /* extra left spacing for the whole UL container */
}

ul li {
  list-style: none; /*remove the browswer's default bullet */
  position: relative;
  padding-inline-start: 1.875rem; /* space for custom bullet */
}

ul li::before {
  content: "▪";       /* the bullet, reliable at any zoom */
  position: absolute;
  left: -0.1875rem;         /* position the bullet slightly to the left of the text */
  color: var(--color-brown-800);       /* your bullet color */
  font-weight: var(--fw-bold);
}

hr {
  height: 0.0625rem;
  background-color: var(--color-stone-150);
  border: none;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.3rem;
  color: var(--color-stone-600);
  font-weight: var(--fw-regular);
}

table td {
  border-bottom: 0.0625rem solid var(--color-stone-150);
  padding: 1rem 1.5rem;
}

tbody td:last-child {
  color: var(--color-brown-800);
  font-weight: var(--fw-bold);
}

tbody tr:last-child td {
  border-bottom: none;
}


/* == Media Queries for Larger Screen Sizes == */

@media screen and (min-width: 43.75rem) {
  body {
    background-color: var(--color-stone-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  main {
    width: 60%;
    max-width: 46rem;
    background-color: var(--color-white);
    padding: 2.5rem 2.5rem 1rem;
    margin: 5rem;
    border-radius: 1.5rem;
  }

  main img {
    border-radius: 1.2rem;
  }

  article {
    margin: 0;
    padding: 0;
  }

}