/* ===========================
   Sienna Castello - Main Styles
   =========================== */

:root {
  --pink: #ec2f7b;
  --pink-light: #f7c8dc;
  --pink-lightest: #fceef4;
  --black: #1a1a1a;
  --white: #ffffff;
  --font-heading: 'Brush Script MT', 'Segoe Script', cursive;
  --font-body: Arial, Helvetica, sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Header
   =========================== */

.site-header {
  text-align: center;
  padding: 32px 16px 0;
}

.site-logo {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.site-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 0 24px;
}

.site-divider .line {
  flex: 1;
  height: 1px;
  background: var(--pink);
}

.site-divider .heart {
  color: var(--pink);
  padding: 0 12px;
  font-size: 16px;
}

/* ===========================
   Navigation Menu
   =========================== */

.main-nav {
  border-bottom: 1px solid var(--pink-light);
  padding: 16px 0;
  margin-bottom: 24px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--pink);
}

/* ===========================
   Section Heading with lines
   =========================== */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 40px 0;
}

.section-heading .line {
  flex: 1;
  max-width: 280px;
  height: 1px;
  background: var(--pink);
  position: relative;
}

.section-heading .line::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

.section-heading .line.left::after {
  left: 0;
}

.section-heading .line.right::after {
  right: 0;
}

.section-heading h2 {
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--pink);
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

/* ===========================
   Book Grid
   =========================== */

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.book-card {
  text-align: center;
}

.book-cover {
  background: var(--pink);
  color: var(--white);
  font-weight: bold;
  font-size: 22px;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learn-more {
  display: inline-block;
  margin-top: 14px;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 2px solid var(--pink);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.learn-more:hover {
  color: var(--pink);
  border-color: var(--black);
}

/* ===========================
   Footer
   =========================== */

.site-footer-top {
  border-top: 2px dotted var(--pink-light);
  margin-top: 24px;
  padding: 32px 0;
}

.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-tagline-script {
  font-family: var(--font-heading);
  color: var(--pink);
  font-size: 26px;
  margin: 0 0 8px;
}

.footer-tagline-sub {
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 14px;
  margin: 0;
}

.footer-divider-vert {
  width: 1px;
  height: 60px;
  background: var(--pink-light);
  display: none;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.footer-contact .envelope {
  font-size: 32px;
  color: var(--pink);
  border: 2px solid var(--pink);
  border-radius: 6px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-title {
  color: var(--pink);
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 15px;
  margin: 0 0 4px;
}

.footer-contact-text {
  font-size: 13px;
  margin: 0;
  color: #444;
}

.site-footer-nav {
  background: var(--pink-lightest);
  padding: 18px 0;
  border-top: 1px solid var(--pink-light);
}

.site-footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer-nav a {
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 14px;
  text-transform: uppercase;
}

.site-footer-nav a:hover,
.site-footer-nav a.active {
  color: var(--pink);
}

/* ===========================
   Page content wrapper
   =========================== */

.page-content {
  min-height: 40vh;
  padding: 24px 0 60px;
}

/* ===========================
   Responsive Breakpoints
   =========================== */

/* Tablet */
@media (max-width: 900px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-divider-vert {
    display: none;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .book-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .main-nav ul,
  .site-footer-nav ul {
    gap: 16px;
  }

  .section-heading {
    gap: 12px;
  }

  .section-heading .line {
    max-width: 60px;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .footer-flex {
    justify-content: center;
    text-align: center;
  }

  .footer-contact {
    flex-direction: column;
    text-align: center;
  }
}
