/* ==========================================================
   GlenTales — public marketing site
   Keepsake / heirloom: warm cream, antique gold, serif type
   ========================================================== */

:root {
  /* Brand: canonical GlenTales brand-board palette
     See First Projext/02 Projects/GlenTales Branding/GlenTales-Brand-Board.html */
  --navy-deep: #003087;
  --navy: #002070;
  --navy-light: #4A6499;
  --gold: #C8A84B;
  --gold-soft: #DBC383;
  --cream: #F7F4EF;
  --cream-deep: #EAE3D5;
  --bg: #FCFBF7;
  --ink: #1A1A2E;
  --body: #4A4A6B;
  --muted: #6F6F8A;
  --border: #E5DECE;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Dancing Script', cursive;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 1140px;
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--navy-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

/* -------------------- header / nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 254, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy-deep);
  letter-spacing: 0.06em;
  text-decoration: none;
}
.brand-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}
.brand-light { font-weight: 300; }
.brand-bold { font-weight: 600; }
.brand:hover { color: var(--navy); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: block; }
}

/* -------------------- hero -------------------- */
.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse at top, var(--cream) 0%, transparent 60%),
    var(--bg);
}
.hero h1 {
  max-width: 18ch;
  margin: 0 auto 1rem;
}

/* Dark navy hero — matches the GlenTales Etsy storefront banner */
.hero-dark {
  background:
    radial-gradient(ellipse at 70% 30%, #2E456B 0%, var(--navy-deep) 70%);
  color: white;
  padding: 4rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%, rgba(255,255,255,0.6) 50%, transparent 100%),
    radial-gradient(1px 1px at 18% 14%, rgba(255,255,255,0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 32% 28%, rgba(255,255,255,0.7) 50%, transparent 100%),
    radial-gradient(1px 1px at 48% 12%, rgba(255,255,255,0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 62% 84%, rgba(255,255,255,0.6) 50%, transparent 100%),
    radial-gradient(1px 1px at 78% 76%, rgba(255,255,255,0.55) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 30%, rgba(255,255,255,0.65) 50%, transparent 100%);
  pointer-events: none;
}
.hero-dark .container { position: relative; z-index: 1; }
.hero.hero-dark h1 { color: white; }
.hero.hero-dark .lead { color: rgba(255, 255, 255, 0.92); }
.hero.hero-dark .script-mark { color: var(--gold-soft); }
.hero.hero-dark .btn-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}
.hero.hero-dark .btn-secondary:hover {
  border-color: white;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

/* Split hero (text + lifestyle image) */
.hero-split .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  text-align: left;
}
.hero-split .hero-text { max-width: 540px; }
.hero-split h1 {
  margin: 0 0 1.2rem;
  text-align: left;
  max-width: 14ch;
  font-size: clamp(2.4rem, 4.8vw, 3.4rem);
}
.hero-split .lead {
  margin: 0 0 2rem;
  max-width: 48ch;
}
.hero-split .hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-logo svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.hero-logo .wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: white;
  text-transform: uppercase;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(184, 152, 99, 0.4);
}
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 33, 61, 0.25) 100%);
  pointer-events: none;
}
.hero-image-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.hero-image-badge .star {
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
}
.hero-image-badge .badge-text {
  font-size: 0.85rem;
  color: var(--ink);
}
.hero-image-badge .badge-text strong { color: var(--navy-deep); }

@media (max-width: 860px) {
  .hero-split .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-split .hero-text { margin: 0 auto; }
  .hero-split h1 { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-split .lead { margin-left: auto; margin-right: auto; }
  .hero-split .hero-cta { justify-content: center; }
  .hero-logo { justify-content: center; }
  .hero-image-frame {
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }
}

/* Trust strip — under the hero */
.trust-strip {
  background: var(--navy-deep);
  border-top: 1px solid rgba(184, 152, 99, 0.2);
  padding: 1.4rem 1.5rem;
  position: relative;
  z-index: 2;
}
.trust-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-item .accent { color: var(--gold-soft); font-weight: 600; }
.trust-item .label-script {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-soft);
  margin-right: 0.2rem;
}
.hero .lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 2.2rem;
}
.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.script-mark {
  font-family: var(--script);
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

/* -------------------- buttons -------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--navy-deep);
  color: white;
}
.btn-primary:hover {
  background: var(--navy);
  color: white;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-on-dark {
  background: white;
  color: var(--navy-deep);
}
.btn-on-dark:hover {
  background: var(--cream);
  color: var(--navy-deep);
}

/* -------------------- sections -------------------- */
section { padding: 4.5rem 0; }
.section-cream { background: var(--cream); }
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head .lead {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto;
}

/* -------------------- product line cards (home) -------------------- */
.lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.line-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.line-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.10);
}
.line-card .badge {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.line-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}
.line-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.line-card .arrow {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}

/* -------------------- book grid -------------------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.book-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(20, 33, 61, 0.15);
  border-color: var(--navy-light);
}
.book-cover {
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, var(--cream) 0%, var(--cream-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}
.book-cover .cover-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  text-align: center;
  color: var(--ink);
  font-style: italic;
  line-height: 1.3;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-meta {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.book-meta h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.book-meta .tagline {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}
.book-meta .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
}
.book-meta .price {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}
.book-meta .price .from {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 0.3rem;
}
.book-meta .cta {
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

/* -------------------- features / how it works -------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.feature {
  text-align: center;
}
.feature .icon {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-style: italic;
}
.feature h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.feature p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* -------------------- prose pages (about, faq) -------------------- */
.prose {
  max-width: 70ch;
  margin: 0 auto;
}
.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}
.prose h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.faq-item p {
  color: var(--body);
  margin: 0;
}

/* -------------------- coming soon banner -------------------- */
.coming-soon {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.coming-soon h2 { margin-bottom: 0.6rem; }
.coming-soon p { color: var(--muted); margin-bottom: 1.5rem; }

/* -------------------- footer -------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #C2CADB;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.site-footer a { color: #E5DECE; }
.site-footer a:hover { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .brand { color: white; }
.footer-brand .brand-light,
.footer-brand .brand-bold { color: white; }
.footer-brand p {
  color: #B5BCD0;
  font-size: 0.95rem;
  max-width: 38ch;
  margin-top: 0.6rem;
}
.footer-col h4 {
  color: white;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.footer-bottom {
  border-top: 1px solid #2A3D5C;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6F7A8A;
  flex-wrap: wrap;
  gap: 0.5rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* -------------------- utilities -------------------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.loading {
  text-align: center;
  color: var(--muted);
  padding: 3rem 0;
}

/* -------------------- email capture (footer) -------------------- */
.email-capture {
  margin-top: 1.25rem;
  max-width: 32ch;
}
.email-capture label {
  display: block;
  color: white;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.email-capture-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.email-capture input[type="email"] {
  flex: 1 1 14ch;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid #2A3D5C;
  border-radius: 6px;
  background: #14223A;
  color: white;
  font: inherit;
  font-size: 0.95rem;
}
.email-capture input[type="email"]:focus {
  outline: none;
  border-color: #6F8FB9;
}
.email-capture .btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
.email-capture-msg {
  display: block;
  margin-top: 0.5rem;
  color: #C8D1E0;
  font-size: 0.85rem;
  min-height: 1em;
}

/* -------------------- blog -------------------- */
.hero-cream {
  background: #FBF7F0;
  padding: 4rem 0 3rem;
}
.blog-card .book-meta .tagline {
  -webkit-line-clamp: 3;
}
.blog-article {
  padding: 3rem 0 5rem;
}
.blog-header {
  max-width: 50rem;
  margin: 0 auto 2rem;
  text-align: center;
}
.blog-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0.5rem 0 0.75rem;
}
.blog-meta {
  color: var(--muted);
  font-size: 0.95rem;
}
.blog-hero {
  max-width: 60rem;
  margin: 0 auto 2.5rem;
  border-radius: 12px;
  overflow: hidden;
}
.blog-hero img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-body {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}
.blog-body h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}
.blog-body p { margin: 0 0 1rem; }
.blog-body ul { margin: 0 0 1.25rem 1.25rem; padding: 0; }
.blog-body li { margin-bottom: 0.5rem; }
.blog-body blockquote {
  border-left: 3px solid var(--accent, #C49B46);
  margin: 1.5rem 0;
  padding: 0.5rem 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
}
.blog-body hr {
  border: none;
  border-top: 1px solid #E6E2DA;
  margin: 2.5rem 0;
}
.blog-footer-note {
  font-size: 0.95rem;
  color: var(--muted);
}
.is-current { font-weight: 600; }
