/* ============================================================
   SERONA PRESS — Global Stylesheet
   Brand: Teal (#2A7F7F), Warm White (#FAF8F5), Charcoal (#1C1C1C)
   ============================================================ */

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:       #2A7F7F;
  --teal-light: #3A9F9F;
  --teal-dark:  #1D5C5C;
  --cream:      #FAF8F5;
  --white:      #FFFFFF;
  --charcoal:   #1C1C1C;
  --mid-grey:   #6B6B6B;
  --border:     #E0DBD4;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 16px;
}

/* ---- NAVIGATION ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid-grey);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

/* ---- HERO ---- */
.hero {
  background: var(--teal-dark);
  color: var(--white);
  padding: 6rem 2rem 5rem;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--teal-light);
  color: var(--white);
}

.btn-primary:hover { background: var(--teal); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-dark {
  background: var(--teal-dark);
  color: var(--white);
}

.btn-dark:hover { background: var(--teal); }

/* ---- SECTIONS ---- */
section { padding: 5rem 2rem; }

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: 1rem;
  color: var(--mid-grey);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ---- CATALOG GRID ---- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.book-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.book-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }

.book-card-cover {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--teal-dark);
}

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

.book-card-body { padding: 1.25rem; }

.book-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.book-card-sub {
  font-size: 0.8rem;
  color: var(--mid-grey);
  margin-bottom: 1rem;
}

.book-card-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.book-card-link:hover { color: var(--teal-dark); }

/* ---- LOOP STRIP ---- */
.loop-strip {
  background: var(--teal-dark);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.loop-strip .section-title { color: var(--white); }
.loop-strip .section-body { color: rgba(255,255,255,0.7); margin: 0 auto 2rem; }

.loop-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.loop-step {
  flex: 0 0 200px;
  padding: 2rem 1.5rem;
  position: relative;
}

.loop-step::after {
  content: '→';
  position: absolute;
  right: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
}

.loop-step:last-child::after { display: none; }

.loop-step-num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
}

.loop-step-word {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.loop-step-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ---- FREE PAGE ---- */
.free-hero {
  background: var(--teal-dark);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}

.free-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.free-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto;
}

.free-form-section {
  background: var(--white);
  max-width: 560px;
  margin: -3rem auto 0;
  border-radius: 4px;
  padding: 3rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
}

.free-form-section h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.free-form-section p {
  font-size: 0.9rem;
  color: var(--mid-grey);
  margin-bottom: 2rem;
}

/* ---- MAILERLITE EMBED SLOT ---- */
.mailerlite-embed {
  /* MailerLite embed code goes here */
  min-height: 120px;
}

/* Fallback form styling (used until MailerLite is connected) */
.fallback-form { display: flex; flex-direction: column; gap: 1rem; }

.fallback-form input[type="email"],
.fallback-form input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--cream);
  transition: border-color 0.2s;
}

.fallback-form input:focus {
  outline: none;
  border-color: var(--teal);
}

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

/* ---- ABOUT PAGE ---- */
.about-hero {
  background: var(--cream);
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.about-hero .section-title { margin-bottom: 1rem; }
.about-hero .section-body { margin: 0 auto; }

.about-bio {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.about-bio p {
  font-size: 1rem;
  color: var(--mid-grey);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-bio p strong { color: var(--charcoal); }

/* ---- FOOTER ---- */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
}

footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

footer a:hover { color: var(--white); }

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.25rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 1.25rem; }
  section { padding: 3.5rem 1.25rem; }
  .loop-step::after { display: none; }
  .loop-steps { flex-direction: column; align-items: center; }
  .free-form-section { margin: -2rem 1.25rem 0; padding: 2rem 1.5rem; }
}
