/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Source Serif 4', serif;
  background-color: #FFFDF4;
  height: 100%;
  background-image: url('./images/bg-texture2.webp');
  background-repeat: repeat;
  background-size: auto; /* or a custom size if you want to scale it */
  background-position: center; /* default, can be changed */
  color: #440C2E;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

/* Layout */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10rem 2rem 2rem 2rem; /* This adds top padding to the entire page */
}

main {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.4rem;
}

/* Typography */
h2 {
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-variation-settings: "wght" 600;
}

p {
  margin-bottom: 2rem;
}

a {
  color: #8F6D82;
  text-decoration: underline;
}

a:hover {
  text-decoration: underline;
}

.highlight {
  font-weight: 600;
}

.email {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 2rem;
}

/* Components */
header {
  margin-bottom: 9rem;
}

section {
  margin-bottom: 6rem;
}

.illustration {
  max-width: 180px;
  display: block;
  margin: 0 0 2rem auto;
}

.signature {
  display: block;
  max-width: 250px;
  margin: 0rem 0 2rem 0;
}

.photo-container {
  position: relative;
  margin: 9rem 0 3rem 0;
  max-width: 600px;
}

.photo {
  max-width: 400px;
  display: block;
  border-radius: 8px;
}

.border {
  position: absolute;
  top: -5rem;
  left:-5rem;
  width: 100%;
  max-width: 550px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.hand-drawn-hr {
  display: block;
  width: 100%; /* Fill the width of the container */
  height: auto; /* Maintain aspect ratio */
  margin: 0 0 0 0;
}

ul {
  padding-left: 1.25rem;
  margin: 1rem 0 2rem;
  color: #8F6D82;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.75rem;
  padding: 2rem 0;
  color: #8F6D82;
}

/* Responsive adjustments */

@media (max-width: 1200px) {
  .wrapper {
    padding-top: 10rem;
  }
}

@media (max-width: 992px) {
  .wrapper {
    padding-top: 8rem;
  }
}


@media (max-width: 768px) {
  .wrapper {
    padding: 8rem 1.5rem;
  }
  
  main {
    font-size: 1.2rem;
  }
  
  .signature {
    max-width: 200px;
  }

  .illustration {
    max-width: 160px;
    margin: 0 2rem 2rem auto;

  }
  

  .photo-container {
    position: relative;
    margin: 8rem 0 2rem 0;
    max-width: 100%;
  }

  .photo {
    max-width: 100%;
    display: block;
    border-radius: 8px;
  }

  .border {
    display: none;
  }
}