/* =========================================================
   SUSAN REYNOLDS CRANE
   Author Website
   Global Styles
   ========================================================= */


/* ---------------------------------------------------------
   COLOR PALETTE
   --------------------------------------------------------- */

:root {
    --ivory: #f8f4ec;
    --cream: #fffdf8;
    --slate: #596f82;
    --slate-dark: #3f5263;
    --burgundy: #713b45;
    --gold: #b4935a;
    --text: #302d2a;
    --muted: #6f6962;
    --white: #ffffff;
    --border: #ded6c8;
}


/* ---------------------------------------------------------
   RESET
   --------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   BASE
   --------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.site-header {
    background-color: var(--slate);
    color: var(--white);
    border-bottom: 4px solid var(--gold);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-logo {
    font-size: 1.65rem;
    font-weight: normal;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #e3cc9d;
}

.main-nav a.active {
    color: #e3cc9d;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: var(--gold);
}


/* ---------------------------------------------------------
   MAIN
   --------------------------------------------------------- */

main {
    min-height: 70vh;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.site-footer {
    background-color: var(--slate-dark);
    color: #d9d4ca;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
}


/* ---------------------------------------------------------
   RESPONSIVE NAVIGATION
   --------------------------------------------------------- */

@media (max-width: 800px) {

    .nav-container {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.25rem;
    }

    .main-nav a {
        font-size: 0.8rem;
    }
}

/* ---------------------------------------------------------
   HERO SECTION
   --------------------------------------------------------- */

.hero {
    background-color: var(--ivory);
    min-height: 560px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 5rem 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-eyebrow,
.section-eyebrow {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: normal;
    line-height: 1.05;
    color: var(--slate-dark);
    margin-bottom: 1.75rem;
}

.hero-text {
    max-width: 620px;
    margin: 0 auto 2.25rem;
    font-size: 1.25rem;
    color: var(--muted);
}

.hero-button {
    display: inline-block;

    background-color: var(--burgundy);
    color: var(--white);

    padding: 0.9rem 2rem;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    border: 2px solid var(--burgundy);

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.hero-button:hover {
    background-color: transparent;
    color: var(--burgundy);
    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   SERIES INTRODUCTION
   --------------------------------------------------------- */

.series-intro {
    background-color: var(--cream);
    padding: 5rem 2rem;
    text-align: center;
}

.section-container {
    max-width: 850px;
    margin: 0 auto;
}

.series-intro h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: normal;
    var(--slate-dark)
    margin-bottom: 1.25rem;
}

.section-intro-text {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--muted);
}

/* =========================================
   FEATURED BOOK
   ========================================= */

.featured-book {
    background-color: var(--ivory);
    padding: 5rem 2rem;
}

.featured-container {
    max-width: 1050px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    gap: 4rem;
}

.featured-cover {
    max-width: 300px;
    margin: 0 auto;
}

.featured-cover img {
    width: 100%;
    height: auto;
    display: block;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);

    transition: transform 0.25s ease;
}

.featured-cover img:hover {
    transform: translateY(-5px);
}

.featured-content h2 {
    color: var(--slate-dark);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: normal;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.featured-subtitle {
    color: var(--burgundy);
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.featured-content > p:not(.section-eyebrow):not(.featured-subtitle) {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 580px;
}


/* =========================================
   BOOK COLLECTIONS
   ========================================= */

.book-collections {
    background-color: var(--cream);
    padding: 5rem 2rem;
    text-align: center;
}

.book-collections h2 {
    color: var(--slate-dark);
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    font-weight: normal;
    margin-bottom: 1rem;
}

.book-collections .section-intro-text {
    margin-bottom: 3rem;
}


/* COLLECTION CARD GRID */

.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: left;
}


/* INDIVIDUAL CARDS */

.collection-card {
    background-color: var(--ivory);
    border: 1px solid var(--border);
    border-top: 4px solid var(--slate);

    padding: 2rem;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.collection-number {
    color: var(--burgundy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
}

.collection-card h3 {
    color: var(--slate-dark);
    font-size: 1.65rem;
    font-weight: normal;
    margin-bottom: 1rem;
}

.collection-card p {
    color: var(--muted);
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.collection-card a {
    color: var(--burgundy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.02em;

    border-bottom: 1px solid var(--burgundy);
    padding-bottom: 0.3rem;

    transition: color 0.2s ease;
}

.collection-card a:hover {
    color: var(--slate-dark);
    border-color: var(--slate-dark);
}


/* =========================================
   RESPONSIVE BOOK SECTIONS
   ========================================= */

@media (max-width: 850px) {

    .featured-container {
        grid-template-columns: 240px 1fr;
        gap: 2.5rem;
    }

    .collection-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin: 0 auto;
    }

    .collection-card {
        padding: 1.75rem;
    }

}


@media (max-width: 600px) {

    .featured-book,
    .book-collections {
        padding: 3.5rem 1.25rem;
    }

    .featured-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-cover {
        max-width: 240px;
    }

    .featured-content {
        text-align: center;
    }

    .featured-content > p:not(.section-eyebrow):not(.featured-subtitle) {
        margin-left: auto;
        margin-right: auto;
    }

}

/* BOOKS PAGE HERO */
.books-hero {
    min-height: 350px;
    padding: 4rem 2rem;
}

/* BOOK COLLECTION SECTIONS */
.book-section {
    background-color: var(--cream);
    padding: 5rem 2rem;
}

.book-section-title {
    color: var(--slate-dark);
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    font-weight: normal;
    text-align: center;
    margin-bottom: 1rem;
}

.book-section .section-eyebrow,
.book-section .section-intro-text {
    text-align: center;
}

.book-section .section-intro-text {
    max-width: 720px;
    margin: 0 auto 3rem;
    color: var(--muted);
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.book-card {
    background-color: var(--ivory);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.book-cover {
    padding: 1.25rem 1.25rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.book-cover img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.book-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-series {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    line-height: 1.5;
    color: var(--burgundy);
    margin-bottom: 0.75rem;
}

.book-card h3 {
    color: var(--slate-dark);
    font-size: 1.4rem;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.book-buy {
    margin-top: auto;
}

.buy-button {
    width: 100%;
    background-color: var(--burgundy);
    color: var(--white);
    border: none;
    padding: 0.9rem 1rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.buy-button:hover,
.buy-button:focus-visible {
    background-color: var(--slate-dark);
}

.retailer-links {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background-color: var(--cream);
    border: 1px solid var(--border);
    border-top: none;
}

.book-buy.is-open .retailer-links {
    display: flex;
}

.retailer-links a {
    display: block;
    color: var(--slate-dark);
    padding: 0.6rem 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
}

.retailer-links a:hover,
.retailer-links a:focus-visible {
    color: var(--burgundy);
    text-decoration: underline;
}

/* RESPONSIVE BOOK GRID */
@media (max-width: 1050px) {
    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .book-section {
        padding: 3.5rem 1.25rem;
    }

    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .book-cover {
        padding: 0.65rem 0.65rem 0;
    }

    .book-card-content {
        padding: 0.85rem;
    }

    .book-card h3 {
        font-size: 1.05rem;
    }

    .book-series {
        font-size: 0.62rem;
    }

    .retailer-links {
        padding: 0.4rem;
    }

    .retailer-links a {
        font-size: 0.78rem;
        padding: 0.55rem 0.3rem;
        overflow-wrap: anywhere;
    }
}

/* BOOK DESCRIPTIONS AND RETAILER NOTES */
.book-description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.coming-soon-note {
    color: var(--muted);
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
}

/* AUTHOR BRAND BANNER */
.author-banner {
    width: 100%;
    background-color: var(--ivory);
    overflow: hidden;
    line-height: 0;
}

.author-banner a {
    display: block;
    width: 100%;
}

.author-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

/* ABOUT PAGE */
.about-section {
    background-color: var(--ivory);
    padding: 5rem 2rem;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-heading {
    max-width: 850px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.about-heading h1 {
    color: var(--slate-dark);
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.about-intro {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.about-profile {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 4rem;
    align-items: center;
}

.about-photo img {
    display: block;
    width: 100%;
    height: auto;
    border: 8px solid var(--cream);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.about-biography h2 {
    color: var(--slate-dark);
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
}

.about-biography p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.about-biography .about-signoff {
    color: var(--burgundy);
    font-style: italic;
    font-size: 1.15rem;
    margin-top: 2rem;
}

/* ABOUT PAGE COLLECTIONS */
.about-collections {
    background-color: var(--cream);
    padding: 5rem 2rem;
    text-align: center;
}

.about-collections h2 {
    color: var(--slate-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: normal;
    margin-bottom: 1rem;
}

.about-collections .section-intro-text {
    max-width: 720px;
    margin: 0 auto 3rem;
    color: var(--muted);
}

.about-cta {
    margin: 5rem auto 0;
    padding: 3rem 2rem;
    max-width: 800px;
    background-color: var(--ivory);
    border-top: 3px solid var(--gold);
}

.about-cta h2 {
    margin-bottom: 1rem;
}

.about-cta p {
    color: var(--muted);
    margin-bottom: 2rem;
}

/* ABOUT PAGE RESPONSIVENESS */
@media (max-width: 750px) {
    .about-section,
    .about-collections {
        padding: 3.5rem 1.25rem;
    }

    .about-profile {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-photo {
        max-width: 380px;
        margin: 0 auto;
    }

    .about-biography {
        text-align: left;
    }

    .about-cta {
        margin-top: 3.5rem;
        padding: 2.5rem 1.25rem;
    }
}

/* =========================
   NEWS & EVENTS PAGE
   ========================= */

.news-section {
  padding: 60px 20px 80px;
  background-color: var(--cream);
}

.news-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.news-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(48, 45, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(48, 45, 42, 0.10);
}

.news-card-content {
  padding: 36px;
}

.news-category {
  color: var(--burgundy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.news-card h2 {
  color: var(--slate-dark);
  font-size: 2rem;
  line-height: 1.3;
  margin: 0 0 12px;
}

.news-date {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.news-card-content > p:not(.news-category):not(.news-date) {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.news-card .buy-button {
  display: inline-block;
  text-decoration: none;
}

@media (max-width: 600px) {
  .news-section {
    padding: 40px 16px 55px;
  }

  .news-card-content {
    padding: 24px;
  }

  .news-card h2 {
    font-size: 1.6rem;
  }
}

/* Center the News & Events introduction */
.news-hero {
  text-align: center;
}

.news-hero .container {
  margin-left: auto;
  margin-right: auto;
}

/* Featured blog image */
.news-card-image {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 600px) {
  .news-card-image {
    height: 220px;
  }
}

/* =========================
   BLOG ARTICLE PAGE
   ========================= */

.blog-article {
  background-color: var(--cream);
  padding: 55px 20px 80px;
}

.blog-article-header {
  max-width: 800px;
  margin: 0 auto 35px;
  text-align: center;
}

.article-back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--slate-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.article-back-link:hover {
  color: var(--burgundy);
}

.blog-article-header .eyebrow {
  margin-bottom: 12px;
}

.blog-article-header h1 {
  color: var(--slate-dark);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin: 0 0 16px;
}

.article-date {
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-article-image {
  max-width: 1000px;
  margin: 0 auto 45px;
}

.blog-article-image img {
  display: block;
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.blog-article-body {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.95;
}

.blog-article-body > p {
  margin: 0 0 25px;
}

.article-signoff {
  margin-top: 42px;
  text-align: center;
}

.article-signoff p {
  margin-bottom: 22px;
}

.article-final-line {
  color: var(--burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 600;
}

.article-footer-link {
  margin-top: 45px;
  text-align: center;
}

.article-footer-link .buy-button {
  display: inline-block;
  text-decoration: none;
}

@media (max-width: 600px) {
  .blog-article {
    padding: 35px 18px 55px;
  }

  .blog-article-header {
    margin-bottom: 28px;
  }

  .article-back-link {
    margin-bottom: 24px;
  }

  .blog-article-image {
    margin-bottom: 30px;
  }

  .blog-article-image img {
    max-height: 280px;
  }

  .blog-article-body {
    font-size: 1rem;
    line-height: 1.85;
  }

  .article-final-line {
    font-size: 1.25rem;
  }
}

/* =========================
   SOCIAL MEDIA ICONS
   ========================= */

.social-links {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  padding: 0;

  background-color: #ffffff;
  border: none;
  border-radius: 50%;

  color: var(--slate);
  font-size: 20px;
  text-decoration: none;

  box-shadow: 0 3px 8px rgba(48, 45, 42, 0.16);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.social-links a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(48, 45, 42, 0.22);
}

.social-links .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  line-height: 1;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .social-links {
    top: 8px;
    left: 8px;
    gap: 6px;
  }

  .social-links a {
    width: 32px;
    height: 32px;
  }

  .social-links .social-icon {
    font-size: 17px;
  }
}

/* =========================
   CONTACT PAGE
   ========================= */

.contact-hero {
  padding: 60px 20px;
  background-color: var(--ivory);
  text-align: center;
}

.contact-hero .container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero h1 {
  color: var(--slate-dark);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin: 0 0 20px;
}

.contact-hero .container > p:last-child {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 0 auto;
}

.contact-section {
  padding: 60px 20px 80px;
  background-color: var(--cream);
}

.contact-section .container {
  max-width: 850px;
  margin: 0 auto;
}

.contact-card {
  padding: 40px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(48, 45, 42, 0.06);
}

.contact-card > h2 {
  color: var(--slate-dark);
  font-size: 2rem;
  text-align: center;
  margin: 0 0 18px;
}

.contact-card > p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 35px;
}

.contact-option {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-option h3 {
  color: var(--burgundy);
  font-size: 1.3rem;
  margin: 0 0 12px;
}

.contact-option p {
  color: var(--text);
  line-height: 1.8;
  margin: 0 auto 20px;
  max-width: 650px;
}

.contact-option .buy-button {
  display: inline-block;
  text-decoration: none;
}

.contact-social-note {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

@media (max-width: 600px) {
  .contact-hero {
    padding: 40px 18px;
  }

  .contact-section {
    padding: 40px 16px 55px;
  }

  .contact-card {
    padding: 25px 20px;
  }

  .contact-card > h2 {
    font-size: 1.7rem;
  }
}