/* =========================================================
   Storytelling Man Press — Stylesheet
   Design tokens
   ========================================================= */
:root{
  /* Colors — pulled directly from the Storytelling Man Press logo */
  --navy-deep:   #0A1D2E;
  --navy:        #0F2A40;
  --navy-soft:   #1E3E58;
  --cream:       #FBF3E6;
  --cream-soft:  #F3E7D3;
  --parchment:   #FFFBF3;
  --gold:        #B8925A;
  --gold-bright: #D3A968;
  --gold-deep:   #8C6B3C;
  --ink:         #26364A;
  --ink-soft:    #56687C;
  --white:       #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;
  --shadow-card: 0 12px 30px -14px rgba(10, 29, 46, 0.35);
  --shadow-soft: 0 6px 18px -10px rgba(10, 29, 46, 0.25);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 600;
}

h1{ font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3{ font-size: clamp(1.3rem, 2vw, 1.6rem); }

p{ margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after{
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}
.eyebrow .star{ font-size: .7rem; color: var(--gold); transform: translateY(-1px); }

.center{ text-align: center; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-gold{
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-gold:hover{ background: var(--gold-deep); transform: translateY(-2px); }

.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}
.btn-outline:hover{ background: rgba(255,255,255,.12); transform: translateY(-2px); }

.btn-navy{
  background: var(--navy);
  color: var(--cream);
}
.btn-navy:hover{ background: var(--navy-soft); transform: translateY(-2px); }

.btn-small{
  padding: 10px 18px;
  font-size: .82rem;
}
.btn-ghost{
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover{ background: var(--navy); color: var(--cream); }

.btn[aria-disabled="true"]{
  opacity: .55;
  cursor: default;
  pointer-events: none;
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15,42,64,.08);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img{ width: 44px; height: 44px; }
.brand-word{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: .01em;
  line-height: 1.1;
}
.brand-word span{
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .58rem;
  letter-spacing: .28em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav ul{ display: flex; gap: 6px; align-items: center; }
.main-nav a{
  display: inline-block;
  padding: 9px 16px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--navy);
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover{ background: var(--cream-soft); }
.main-nav a.active{ background: var(--navy); color: var(--cream); }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* =========================================================
   Hero (Home)
   ========================================================= */
.hero{
  position: relative;
  color: var(--white);
  overflow: hidden;
  min-height: 86vh;
  display: flex;
  align-items: center;
}
.hero-bg{
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-cabin.jpg');
  background-size: cover;
  background-position: center 30%;
}
.hero-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,29,46,.88) 0%, rgba(10,29,46,.72) 40%, rgba(10,29,46,.92) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 90px 28px 70px;
}
.hero-content img.hero-logo{
  width: 128px;
  height: 128px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.35));
}
.hero-kicker{
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .74rem;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.hero h1{
  color: var(--white);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.hero .tagline{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--cream);
  max-width: 620px;
  margin: 0 auto 34px;
  opacity: .92;
}
.hero-ctas{
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sub-page hero (Books / About) */
.page-hero{
  position: relative;
  color: var(--white);
  padding: 120px 28px 90px;
  text-align: center;
  overflow: hidden;
}
.page-hero .hero-bg{ background-position: center 40%; }
.page-hero h1{ color: var(--white); }
.page-hero p{
  color: var(--cream);
  opacity: .9;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.08rem;
}

/* =========================================================
   Sections
   ========================================================= */
section{ padding: 88px 0; }
.section-tight{ padding: 60px 0; }
.bg-cream-soft{ background: var(--cream-soft); }
.bg-navy{ background: var(--navy); color: var(--cream); }
.bg-navy h2, .bg-navy h3{ color: var(--white); }
.bg-navy p{ color: rgba(251,243,230,.82); }
.bg-parchment{ background: var(--parchment); }

.intro-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: center;
}
.intro-grid p{ font-size: 1.08rem; }
.pull-panel{
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 44px 38px;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
}
.pull-panel .pull-line{
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--navy);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.pull-panel .pull-line:last-of-type{ margin-bottom: 0; }
.pull-panel .pull-line em{ color: var(--gold-deep); font-style: italic; }

/* Feature strip */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  text-align: center;
  margin-top: 50px;
}
.feature-grid .feature-icon{
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cream-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  font-size: 1.3rem;
}
.feature-grid h4{
  font-size: .98rem;
  margin-bottom: 4px;
}
.feature-grid p{ font-size: .88rem; margin: 0; }

/* Divider */
.motif-divider{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto;
  max-width: 340px;
}
.motif-divider .line{ flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.motif-divider .star{ color: var(--gold); font-size: .95rem; }

/* Book teaser cards (home) */
.book-teaser-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 54px;
}
.book-teaser{
  background: var(--white);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.book-teaser:hover{ transform: translateY(-6px); box-shadow: 0 20px 40px -16px rgba(10,29,46,.4); }
.book-teaser .cover{
  padding: 26px 20px 0;
  background: linear-gradient(180deg, var(--cream-soft) 0%, var(--white) 100%);
}
.book-teaser .info{ padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.book-teaser .info h3{ margin-bottom: 6px; }
.book-teaser .info .subtitle{
  font-style: italic;
  color: var(--gold-deep);
  font-size: .88rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.book-teaser .info p{ font-size: .92rem; flex: 1; }
.book-teaser .info a.link-more{
  font-weight: 800;
  font-size: .85rem;
  color: var(--navy);
  margin-top: 10px;
}
.book-teaser .info a.link-more::after{ content: " →"; }

/* Watch listen read */
.wlr-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 50px;
}
.wlr-card{
  background: var(--parchment);
  border: 1px solid rgba(15,42,64,.08);
  border-radius: var(--radius-m);
  padding: 34px 26px;
  text-align: center;
}
.wlr-card .icon{ font-size: 2rem; margin-bottom: 14px; }
.wlr-card h4{ margin-bottom: 6px; }
.wlr-card p{ font-size: .9rem; margin-bottom: 0; }

/* Join / CTA band */
.join-band{ text-align: center; }
.join-band h2{ margin-bottom: 10px; }
.join-band p{ max-width: 560px; margin-left: auto; margin-right: auto; }
.join-band .btn-gold{ margin-top: 18px; }

/* =========================================================
   3D Book Mockup (used for all cover art — home + books page)
   ========================================================= */
.book3d-stage{
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book3d{
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-28deg);
  transition: transform .35s ease;
  width: 100%;
  max-width: 320px;
}
.book3d-stage:hover .book3d{ transform: rotateY(-16deg); }
.book3d .face{
  position: relative;
  display: block;
  width: 100%;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  box-shadow:
    2px 2px 0 rgba(0,0,0,.05),
    22px 26px 40px -18px rgba(10,29,46,.55);
}
.book3d .face img{ display: block; width: 100%; height: auto; }
/* page-edge sliver, revealed on the left as the book turns */
.book3d .face::before{
  content: "";
  position: absolute;
  top: 1.5%;
  left: 0;
  width: 16px;
  height: 97%;
  transform-origin: left center;
  transform: translateX(-15px) rotateY(90deg);
  background: linear-gradient(90deg, #efe6d4 0%, #fbf8f1 45%, #e4d9c2 100%);
}
/* spine shadow — darkens the inner edge of the front cover itself */
.book3d .face::after{
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 22px;
  background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,0));
  pointer-events: none;
}
.book3d-shadow{
  height: 22px;
  margin: 6px auto 0;
  width: 78%;
  background: radial-gradient(ellipse at center, rgba(10,29,46,.28) 0%, rgba(10,29,46,0) 72%);
}

/* fixed-height stage used in grids so mixed cover ratios align */
.book3d-frame{
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.book3d-frame .book3d-stage{ width: 100%; height: 100%; }
.book3d-frame .book3d{ max-width: 240px; }


.book-full-list{ display: flex; flex-direction: column; gap: 70px; margin-top: 20px; }
.book-full{
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}
.book-full:nth-child(even){ direction: rtl; }
.book-full:nth-child(even) > *{ direction: ltr; }
.book-full .cover-wrap{
  padding: 10px;
}
.book-full .subtitle{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.book-full .buy-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.book-coming{
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
  opacity: .82;
}
.book-coming .cover-wrap{
  aspect-ratio: 4/5;
  border-radius: var(--radius-m);
  background: var(--cream-soft);
  border: 2px dashed rgba(140,107,60,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.book-coming .cover-wrap span{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1rem;
}
.tag-pill{
  display: inline-block;
  background: var(--cream-soft);
  color: var(--gold-deep);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.tip-banner{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--parchment);
  border: 1px solid rgba(140,107,60,.25);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-m);
  padding: 20px 24px;
  max-width: 900px;
  margin: 0 auto;
}
.tip-banner-icon{
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.tip-banner p{
  margin: 0;
  font-size: .95rem;
  color: var(--ink);
}
.tip-banner strong{ color: var(--navy); }

.more-coming-banner{
  text-align: center;
  padding: 50px 30px;
  border-radius: var(--radius-l);
  background: var(--cream-soft);
  border: 2px dashed rgba(140,107,60,.3);
}

/* =========================================================
   About page
   ========================================================= */
.about-grid{
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-grid img{
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}
.mission-panel{
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.mission-panel h2{ margin-bottom: 18px; }
.mission-panel p{ font-size: 1.12rem; }

.about-signature{
  text-align: center;
}
.about-signature img{
  width: 96px;
  margin: 0 auto 20px;
}
.about-signature .sig-line{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--navy);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: var(--navy-deep);
  color: rgba(251,243,230,.75);
  padding: 60px 0 30px;
}
.footer-top{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(251,243,230,.14);
}
.footer-brand{ display: flex; align-items: center; gap: 12px; }
.footer-brand img{ width: 40px; }
.footer-brand-word{
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
}
.footer-brand-word span{
  display: block;
  font-family: var(--font-body);
  font-size: .55rem;
  letter-spacing: .26em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-top: 2px;
}
.footer-nav ul{ display: flex; gap: 26px; }
.footer-nav a{ font-weight: 700; font-size: .9rem; color: rgba(251,243,230,.85); }
.footer-nav a:hover{ color: var(--gold-bright); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: .8rem;
}
.footer-bottom a{ color: var(--gold-bright); font-weight: 700; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px){
  .intro-grid{ grid-template-columns: 1fr; gap: 36px; }
  .feature-grid{ grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .book-teaser-grid{ grid-template-columns: 1fr 1fr; }
  .wlr-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .book-full, .book-coming{
    grid-template-columns: 1fr;
    direction: ltr !important;
    text-align: left;
  }
  .book-full .cover-wrap, .book-coming .cover-wrap{ max-width: 320px; }
}

@media (max-width: 680px){
  .main-nav{
    position: fixed;
    inset: 68px 0 0 0;
    z-index: 60;
    background: var(--cream);
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 24px;
    box-shadow: -8px 0 24px rgba(10,29,46,.15);
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a{ display: block; padding: 14px 18px; }
  .nav-toggle{ display: block; }
  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
  .book-teaser-grid{ grid-template-columns: 1fr; }
  .hero{ min-height: auto; }
  .footer-top{ flex-direction: column; align-items: flex-start; }
}
