* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  .cormorant-sc-semibold {
    font-family: "Cormorant SC", serif;
    font-weight: 600;
    font-style: normal;
  }
  
  body {
    font-family: "Georgia", "Times New Roman", serif;
    background-color: #1b3a3a; /* dark petrol */
    color: #2b2b2b;
    line-height: 1.6;
  }
  
  /* -------- HEADER -------- */
  
  header {
    background-color: #173232;
    color: #d4b26a; /* brass */
    padding: 2.5rem 1rem;
    text-align: center;
  }
  
  header h1 {
    font-size: 3rem;
    letter-spacing: 0.08em;
    font-family: "Cormorant SC", serif;
    font-weight: 600;
    font-style: normal;
  }
  
  /* -------- NAVIGATION -------- */
  
  nav {
    background-color: #142929;
    border-top: 1px solid #2f5a5a;
    border-bottom: 1px solid #2f5a5a;
  }
  
  nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 1rem 1rem;
  }
  
  nav a {
    font-family: "Cormorant SC", serif;
    font-weight: 600;
    font-style: normal;
    position:relative;
    color: #d4b26a;
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    padding-left: 1.2rem;
  }
  
  nav a:hover {
    text-decoration: underline;
    color: #f6dba1;
  }
/* Ornamentti */
nav a::before {
    content: "✧"; /* voit vaihtaa symboliin */
    position: absolute;
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    color: #d4b26a;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  
  /* Hover & keyboard focus */
  nav a:hover::before,
  nav a:focus-visible::before {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
  }
  
  /* -------- MAIN CONTENT -------- */
  
  main {
    background-color: #e8e3d8; /* light parchment */
    background-image: url(./images/backgroundornament4.png);
    padding: 4rem 2rem;
  }
  
  .intro {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
  }
  
  .portrait img {
    width: 100%;
    border: 2px solid #142929;
    border-radius: 20px;
    box-shadow: 4px 4px 3px #92876f;
  }
  
  /* -------- TEXT -------- */
  
  .intro-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #173232;
  }
  
  .intro-text p, .intro p {
    margin-bottom: 1.2rem;
  }
  
.intro-text {
  position: relative;
  z-index: 0;
  padding: 1rem;
  border: 0.5px solid #92876f;
  border-radius: 10px;
}

.intro-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(232, 227, 216, 0.7); /* parchment + läpinäkyvyys */
  z-index: -1;
  border-radius: 8px;
}

  
  /* -------- FOOTER -------- */
  
  footer {
    background-color: #142929;
    color: #d4b26a;
    text-align: center;
    padding: 2rem 1rem;
  }
  
  footer .social {
    margin-bottom: 1rem;
  }
  
  footer .social a {
    margin: 0 0.75rem;
    color: #d4b26a;
    text-decoration: none;
    font-size: 0.9rem;
  }
  
  footer .social a:hover {
    text-decoration: underline;
    color: #f6dba1;
  }
  
  footer p {
    font-size: 0.8rem;
    opacity: 0.8;
  }
    .imagesholder img {
    display: block;
    margin: auto;
    margin-top: 50px;
    width: 50%;
  }
  /* -------- RESPONSIVE -------- */
  
  @media (max-width: 768px) {
    .intro {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .portrait {
      max-width: 250px;
      margin: 0 auto;
    }
    nav ul {
        flex-direction: column;
        padding-left: 15%;
    }
    .imagesholder img {
        width: 90%;
    }
  }
  .medieval {
    background-image: url("./images/celticornament.png");
  }

  .book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.book-card {
  text-decoration: none;
  color: inherit;
  background: #f0ece3;
  border: 1px solid #d4b26a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.book-card img {
  width: 100%;
  display: block;
}

.book-info {
  padding: 1rem;
}

.book-info h3 {
  color: #173232;
}

.tag {
  font-size: 0.8rem;
  color: #6d0505;
  margin-bottom: 0.5rem;
}

.status {
  font-size: 0.75rem;
  opacity: 0.7;
}
.featured-book {
  display: block;
  max-width: 320px;
  margin-top: 1.5rem;
  background: #f0ece3;
  border: 1px solid #d4b26a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.featured-book:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px); /* hyvin hienovarainen */
}

.blog-posts {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 2rem;
}
.blog-post {
  margin-bottom: 4rem;
  max-width: 700px;
}