/* ============================================================
   Grass & Sky Press — style.css
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --bg:          #E8E0D8;
  --bg-light:    #EDE7DF;
  --bg-section:  #F2EDE7;
  --text:        #4A4845;
  --text-light:  #7A7470;
  --sage:        #7A9E7E;
  --sage-mid:    #7A9E7E;
  --sage-faint:  #C8D9C8;
  --sky:         #8AABBD;
  --sky-pale:    #D4E4ED;
  --accent:      #9E7A5E;
  --border:      rgba(74,72,69,0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-script:  'Caveat', cursive;

  --radius: 4px;
  --max-w: 1100px;
  --section-pad: 5rem 1.5rem;
}

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Typography ------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
}

/* --- Layout Helpers --------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pad);
}

.section:nth-of-type(even),
.books {
  background-color: var(--bg-section);
}

/* --- Navigation ------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  text-align: left;
}

.hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-book {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hero-cover {
  width: clamp(180px, 28vw, 340px);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(74,72,69,0.18), 0 2px 8px rgba(74,72,69,0.1);
}

/* --- Books Section ---------------------------------------- */
.books {
  background: var(--bg-section);
}

.book-byline {
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.book-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.book-covers {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cover-figure {
  margin: 0;
}

.cover-figure img {
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(74,72,69,0.15);
  width: 100%;
}

.cover-figure figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.5rem;
  text-align: center;
}

.book-description {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.series-note {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--sage);
  margin-bottom: 1.75rem;
}

/* --- Accordion -------------------------------------------- */
.accordion {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-align: left;
}

.accordion-toggle:hover { color: var(--sage); }

.accordion-icon {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s;
}

.accordion-icon::before {
  width: 16px; height: 2px;
  top: 7px; left: 0;
}

.accordion-icon::after {
  width: 2px; height: 16px;
  top: 0; left: 7px;
}

.accordion-toggle[aria-expanded="true"] .accordion-icon::after {
  transform: rotate(90deg);
}

.accordion-body {
  padding: 1.25rem 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

.accordion-body p + p { margin-top: 0.75rem; }

/* --- Divider ---------------------------------------------- */
.divider {
  padding: 0.5rem 0;
  text-align: center;
  overflow: hidden;
}

.divider svg {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 0 auto;
}

/* --- Authors Section -------------------------------------- */
.authors {
  background: var(--bg);
}

.authors-sub {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.authors-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  align-items: start;
}

.author-illustration {
  width: 100%;
  max-width: 160px;
  opacity: 0.85;
}

.authors-text p {
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.authors-script {
  font-family: var(--font-script) !important;
  font-size: 1.4rem !important;
  color: var(--sage);
  margin-top: 1.5rem;
}

/* --- Series Section --------------------------------------- */
.series {
  background: var(--bg-section);
}

.series-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.series-description {
  font-size: 1.05rem;
  line-height: 1.85;
}

.series-motif svg {
  width: 260px;
  flex-shrink: 0;
}

.coming-soon {
  background: var(--bg);
  border-left: 3px solid var(--sage);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.coming-soon p {
  font-size: 0.97rem;
  line-height: 1.75;
}

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: var(--text);
  color: var(--bg-light);
  padding: 4rem 1.5rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(232,224,216,0.15);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-light);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: rgba(232,224,216,0.6);
}

.footer-contact .section-label {
  color: var(--sage-faint);
}

.footer-contact a {
  color: var(--bg-light);
  opacity: 0.8;
  transition: opacity 0.2s;
  font-size: 0.95rem;
}

.footer-contact a:hover { opacity: 1; }

.footer-contact p { margin-bottom: 0.4rem; }

.footer-social {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232,224,216,0.7) !important;
  transition: color 0.2s !important;
}

.social-link:hover { color: var(--bg-light) !important; opacity: 1 !important; }

.footer-bottom {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(232,224,216,0.45);
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-content { max-width: 100%; }

  .hero-cover { width: clamp(200px, 55vw, 300px); }

  .book-layout {
    grid-template-columns: 1fr;
  }

  .book-covers {
    flex-direction: row;
    justify-content: center;
  }

  .book-covers .cover-figure {
    max-width: 48%;
  }

  .authors-body {
    grid-template-columns: 1fr;
  }

  .author-illustration { display: none; }

  .series-layout {
    grid-template-columns: 1fr;
  }

  .series-motif { display: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  :root { --section-pad: 3.5rem 1.25rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(74,72,69,0.08);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: flex; }

  .book-covers {
    flex-direction: column;
    align-items: center;
  }

  .book-covers .cover-figure { max-width: 80%; }

  .btn { width: 100%; text-align: center; }
}
