/* ===================================================
   Emily Indigo Books — Shared Stylesheet
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

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

:root {
  --bg:           #FAF8F4;
  --bg-alt:       #F0EAE0;
  --bg-dark:      #1E1C26;
  --indigo:       #4A5299;
  --indigo-dark:  #323A6B;
  --indigo-light: #E8EAF8;
  --accent:       #B8795A;
  --accent-light: #F5EDE7;
  --text:         #2A2A2A;
  --text-muted:   #6B6861;
  --white:        #FFFFFF;
  --border:       #E2DBD0;
  --radius:       4px;
  --radius-lg:    14px;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.15);
}

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

body {
  font-family: 'Jost', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.2rem; }
p  { font-size: 1rem; color: var(--text-muted); line-height: 1.8; }

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* --- Layout --- */
.container         { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 820px;  margin: 0 auto; padding: 0 2rem; }
.container--wide   { max-width: 1320px; margin: 0 auto; padding: 0 2rem; }
.section      { padding: 6rem 0; }
.section--sm  { padding: 3.5rem 0; }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); }
.section--dark p { color: rgba(255,255,255,0.65); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary   { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.btn--primary:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); }
.btn--outline   { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--indigo); }
.btn--outline-dark { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn--outline-dark:hover { background: var(--indigo); color: var(--white); }
.btn--accent    { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--accent:hover { filter: brightness(1.08); }
.btn--lg { padding: 1.1rem 2.8rem; font-size: 0.9rem; }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}
.nav.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 0.85rem 0;
}
.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.35s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__logo span { color: var(--accent); }
.nav.scrolled .nav__logo { color: var(--text); }

.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav.scrolled .nav__links a { color: var(--text-muted); }
.nav.scrolled .nav__links a:hover { color: var(--text); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; border-radius: 2px; }
.nav.scrolled .nav__toggle span { background: var(--text); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1.4rem;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border);
  }
  .nav__links.open { display: flex; }
  .nav__links a { color: var(--text-muted); font-size: 0.9rem; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,13,25,0.75) 0%, rgba(74,82,153,0.5) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  color: var(--white);
  max-width: 700px;
}
.hero__content h1 { color: var(--white); margin-bottom: 1.2rem; text-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.hero__content p  { color: rgba(255,255,255,0.82); font-size: 1.15rem; margin-bottom: 2rem; max-width: 540px; }
.hero__actions    { display: flex; gap: 1rem; flex-wrap: wrap; }

/* PAGE HERO (inner pages) */
.page-hero {
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4.5rem;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,18,30,0.3) 0%, rgba(20,18,30,0.7) 100%);
}
.page-hero__content { position: relative; z-index: 1; color: var(--white); }
.page-hero__content h1 { color: var(--white); }
.page-hero__content p  { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-top: 0.75rem; max-width: 600px; }

/* =============================================
   SOCIAL CHANNEL CARDS
   ============================================= */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 960px) { .channel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .channel-grid { grid-template-columns: 1fr; } }

.channel-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
}
.channel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-color, var(--indigo));
}
.channel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.channel-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--card-color, var(--indigo));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1.4rem;
  flex-shrink: 0;
}
.channel-card__platform {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--card-color, var(--indigo));
  margin-bottom: 0.3rem;
}
.channel-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.channel-card__handle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-style: italic;
}
.channel-card p {
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.8rem;
}
.channel-card .btn {
  margin-top: auto;
  background: var(--card-color, var(--indigo));
  border-color: var(--card-color, var(--indigo));
  color: var(--white);
  width: 100%;
  justify-content: center;
}
.channel-card .btn:hover { filter: brightness(1.12); }

/* Platform colour tokens */
.channel--instagram { --card-color: #C13584; }
.channel--tiktok    { --card-color: #010101; }
.channel--youtube   { --card-color: #FF0000; }
.channel--goodreads { --card-color: #553B08; }
.channel--threads   { --card-color: #000000; }
.channel--kofi      { --card-color: #FF5E5B; }

/* =============================================
   EMAIL SIGNUP / NEWSLETTER
   ============================================= */
.signup-box {
  background: var(--indigo);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.signup-box::before {
  content: '@';
  font-family: 'Cormorant Garamond', serif;
  font-size: 22rem;
  line-height: 0.8;
  position: absolute;
  right: -2rem; bottom: -3rem;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
}
.signup-box h2, .signup-box h3 { color: var(--white); }
.signup-box p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.form-row {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}
.form-row input[type="email"],
.form-row input[type="text"] {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-row input::placeholder { color: rgba(255,255,255,0.45); }
.form-row input:focus { border-color: rgba(255,255,255,0.65); }
@media (max-width: 500px) {
  .form-row { flex-direction: column; }
  .signup-box { padding: 2rem 1.5rem; }
}

/* =============================================
   TWO-COLUMN SPLIT
   ============================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split--reverse .split__image { order: -1; }
.split__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.split__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.split__image:hover img { transform: scale(1.03); }
.split__text h2 { margin-bottom: 1rem; }
.split__text p  { margin-bottom: 1.2rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reverse .split__image { order: 0; }
  .split__image { aspect-ratio: 16/9; }
}

/* =============================================
   SUPPORT / KO-FI PAGE
   ============================================= */
.support-hero {
  text-align: center;
  padding: 7rem 0 5rem;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2D1F2E 100%);
  position: relative;
  overflow: hidden;
}
.support-hero::before {
  content: '☕';
  font-size: 20rem;
  position: absolute;
  top: -3rem; right: -3rem;
  opacity: 0.05;
  pointer-events: none;
}
.support-hero h1, .support-hero h2 { color: var(--white); }
.support-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; margin: 1rem auto 0; }

.kofi-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 2.8rem;
  background: #FF5E5B;
  color: var(--white);
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(255,94,91,0.4);
  border: none;
  cursor: pointer;
}
.kofi-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,94,91,0.5);
  filter: brightness(1.08);
}
.kofi-btn i { font-size: 1.3rem; }

.support-tier {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
  transition: transform 0.3s, box-shadow 0.3s;
}
.support-tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.support-tier__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.support-tier h4 { margin-bottom: 0.4rem; }
.support-tier p { font-size: 0.9rem; }
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 700px) { .tiers-grid { grid-template-columns: 1fr; } }

/* =============================================
   WEBSHOP COMING SOON
   ============================================= */
.coming-soon {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.coming-soon__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2A2340 100%);
}
.coming-soon__content { position: relative; z-index: 1; }
.coming-soon h1 { color: var(--white); margin-bottom: 1.2rem; }
.coming-soon p  { color: rgba(255,255,255,0.65); font-size: 1.1rem; max-width: 580px; margin: 0 auto 2rem; }
.coming-soon__badge {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2rem;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 180px);
  gap: 1.2rem;
  justify-content: center;
  margin: 3rem auto 0;
  max-width: 640px;
}
.preview-item {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 2rem;
  color: rgba(255,255,255,0.5);
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.preview-item span { font-size: 2.2rem; }
@media (max-width: 560px) {
  .preview-grid { grid-template-columns: repeat(2, 140px); }
}

/* =============================================
   COLLAB PAGE
   ============================================= */
.collab-type {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--indigo);
  transition: transform 0.25s, box-shadow 0.25s;
}
.collab-type:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.collab-type h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.collab-type p  { font-size: 0.92rem; }
.collab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 640px) { .collab-grid { grid-template-columns: 1fr; } }

.contact-box {
  background: var(--indigo);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  color: var(--white);
}
.contact-box h2, .contact-box h3 { color: var(--white); margin-bottom: 0.75rem; }
.contact-box p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--white);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  word-break: break-all;
}
.contact-email:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
}
.contact-email i { font-size: 1.2rem; flex-shrink: 0; }

/* =============================================
   PULL QUOTE
   ============================================= */
.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 1rem 2rem;
  margin: 2rem 0;
}
.pull-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}
.pull-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

/* Tags */
.tag { display: inline-block; padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--indigo-light); color: var(--indigo); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0.2rem; }
.tag--accent { background: var(--accent-light); color: var(--accent); }

/* =============================================
   FADE-IN ANIMATION
   ============================================= */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
}
.footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.footer__brand h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer__brand h3 span { color: var(--accent); }
.footer__brand p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; margin-bottom: 1rem; }
.footer__email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  margin-bottom: 1.2rem;
}
.footer__email-link:hover { color: var(--white); }
.footer__col h4 {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.footer__col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--white); }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: all 0.2s;
}
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.footer__bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
