/* =========================================================
   Vicki Lynette Scherer — Author Site
   Design: "Mediterranean Noir"
   Sunlit warmth, charged depth. Editorial book-jacket sophistication.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --bg-canvas:    #F4EDE0;   /* aged parchment / Turkish summer light */
  --bg-surface:   #FAF6EC;   /* lighter surface */
  --bg-deep:      #ECE3D0;   /* slightly deeper canvas for contrast */

  --teal-deep:    #0B3D44;   /* primary — Mediterranean at evening */
  --teal-mid:     #1E5B66;
  --aqua:         #5BA3B0;   /* sea in daylight */
  --aqua-soft:    #A5C9CE;

  --brass:        #B08440;   /* CTA / accent */
  --brass-dark:   #8A6730;
  --rose:         #C97D6E;   /* one whisper — the walled garden rose */

  --ink:          #2A2520;   /* warm dark brown body text, never pure black */
  --ink-soft:     #4A4338;
  --ink-muted:    #6F6557;

  --rule:         rgba(11, 61, 68, 0.18);

  /* Typography */
  --font-display: "Cormorant Garamond", "Times New Roman", Times, Georgia, serif;
  --font-body:    "Times New Roman", Times, Georgia, serif;
  --font-label:   "Cormorant Garamond", "Times New Roman", Times, serif;

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6.5rem;
  --sp-8: 9rem;

  --container: 1240px;
  --gutter: 1.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, blockquote, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;        /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg-canvas);
  /* Subtle paper texture using layered radial-gradients (CSS-only, fast) */
  background-image:
    radial-gradient(circle at 18% 22%, rgba(176, 132, 64, 0.05) 0%, transparent 35%),
    radial-gradient(circle at 82% 78%, rgba(11, 61, 68, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--teal-deep); color: var(--bg-canvas);
  padding: 0.5rem 1rem; z-index: 1000;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--sp-3);
}
.eyebrow.centered { text-align: center; }

.italic { font-style: italic; font-family: var(--font-display); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
}
.section-title span { display: block; }
.section-title.centered { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 237, 224, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-2);
  padding-bottom: var(--sp-2);
  gap: var(--sp-3);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--teal-deep);
  letter-spacing: 0.01em;
}
.brand-tag {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 4px;
}
.site-nav ul {
  display: flex; gap: var(--sp-4);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.site-nav a {
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s;
}
.site-nav a:hover { color: var(--teal-deep); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-6);
  overflow: hidden;
}
.hero::before {
  /* Soft halo behind cover area */
  content: "";
  position: absolute;
  top: -10%; right: -15%;
  width: 70%; height: 120%;
  background: radial-gradient(ellipse at center,
              rgba(91, 163, 176, 0.22) 0%,
              rgba(91, 163, 176, 0.08) 35%,
              transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--sp-7);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--teal-deep);
  margin-bottom: var(--sp-4);
}
.hero-title span { display: block; }
.hero-title .italic { color: var(--teal-mid); font-weight: 400; }

.hero-sub {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 32em;
  margin-bottom: var(--sp-4);
}
.hero-sub strong { color: var(--teal-deep); font-weight: 400; }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
}

/* Cover artwork — the centerpiece */
.hero-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cover-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 2 / 3;
  transform: rotate(-1.5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 20px 40px -15px rgba(11, 61, 68, 0.35),
    0 40px 80px -20px rgba(11, 61, 68, 0.25);
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-deep);
}
.cover-frame::after {
  /* Subtle film gradient over the cover for depth */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
              rgba(255, 255, 255, 0.06) 0%,
              transparent 30%,
              transparent 70%,
              rgba(11, 61, 68, 0.1) 100%);
  pointer-events: none;
}
.cover-frame:hover { transform: rotate(0deg) translateY(-6px); }
.cover-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.cover-frame-lg {
  width: min(100%, 440px);
  transform: rotate(-1deg);
}

/* Placeholder shown if cover image doesn't load */
.cover-placeholder {
  background: linear-gradient(160deg, var(--teal-deep) 0%, var(--teal-mid) 60%, var(--aqua) 100%);
  display: flex; align-items: center; justify-content: center;
}
.cover-placeholder-text {
  font-family: var(--font-display);
  color: var(--bg-canvas);
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.3;
  padding: 1rem;
}
.cover-placeholder-text em {
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0;
  font-size: 0.85em;
}

.cover-caption {
  margin-top: var(--sp-3);
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}

/* Decorative divider */
.hero-divider {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: var(--sp-7);
  max-width: 600px; margin-left: auto; margin-right: auto;
  padding: 0 var(--gutter);
}
.hero-divider span {
  height: 1px; flex: 1; background: var(--rule);
}
.hero-divider .diamond {
  width: 8px; height: 8px;
  background: transparent;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--teal-deep);
  color: var(--bg-canvas);
  border-color: var(--teal-deep);
}
.btn-primary:hover {
  background: var(--brass);
  border-color: var(--brass);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(176, 132, 64, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--teal-deep);
}
.btn-ghost:hover {
  background: var(--teal-deep);
  color: var(--bg-canvas);
}
.btn-lg {
  padding: 1.05em 2em;
  font-size: 1.12rem;
}
.btn-arrow {
  display: inline-block;
  transition: transform 0.3s;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- FEATURED BOOK ---------- */
.book-feature {
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-7);
  background: linear-gradient(180deg, var(--bg-canvas) 0%, var(--bg-surface) 100%);
  position: relative;
}
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: start;
}
@media (min-width: 900px) {
  .book-grid {
    grid-template-columns: 0.85fr 1fr;
    gap: var(--sp-7);
  }
}
.book-cover-col {
  display: flex; justify-content: center;
}
@media (min-width: 900px) {
  .book-cover-col {
    position: sticky;
    top: 100px;
  }
}

.book-title {
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: var(--sp-4);
}
.title-main {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
}
.title-sub {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  color: var(--teal-mid);
  margin-top: 0.3em;
}

.pull-quote {
  border-left: 2px solid var(--brass);
  padding: var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-4);
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--teal-deep);
  margin-bottom: var(--sp-1);
}
.pull-quote cite {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-style: normal;
}

.book-blurb p {
  margin-bottom: 1.15em;
  color: var(--ink);
}
.book-blurb p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.9;
  font-weight: 500;
  float: left;
  margin: 0.05em 0.1em 0 0;
  color: var(--teal-deep);
}
.book-blurb .blurb-tag {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule);
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.book-cta {
  margin-top: var(--sp-4);
}
.book-cta-note {
  margin-top: var(--sp-2);
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

/* ---------- SERIES ---------- */
.series {
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-7);
  background: var(--bg-deep);
  position: relative;
}
.series-lede {
  max-width: 38em;
  margin: var(--sp-4) auto var(--sp-6);
  text-align: center;
  font-size: 1.12rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.series-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 760px) {
  .series-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
  }
}

.series-card {
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.series-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(11, 61, 68, 0.2);
}
.series-card.available {
  border-top: 3px solid var(--brass);
}
.series-card.upcoming {
  border-top: 3px solid var(--aqua-soft);
  background: var(--bg-canvas);
}
.card-label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--sp-2);
}
.series-card.upcoming .card-label { color: var(--aqua); }

.card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--teal-deep);
  line-height: 1.1;
  margin-bottom: var(--sp-2);
}
.card-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}
.card-status {
  margin-top: var(--sp-3);
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px rgba(176, 132, 64, 0.18);
}
.status-dot-soon {
  background: var(--aqua);
  box-shadow: 0 0 0 3px rgba(91, 163, 176, 0.18);
}

/* ---------- NEWS ---------- */
.news {
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-7);
  background: linear-gradient(135deg, #7A6AAF 0%, #8A78BE 35%, #9A86C8 60%, #B8A8D8 85%, #D4C4A8 100%);
  position: relative;
  overflow: hidden;
}
/* Dusk atmosphere — blues and purples bleeding into sand */
.news::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(150, 120, 210, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(100, 130, 220, 0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 90%, rgba(210, 190, 150, 0.15) 0%, transparent 40%);
  pointer-events: none;
}
.news .eyebrow { color: #3D2F6A; }
.news .section-title { color: #2A2050; }

/* Carousel wrapper */
.news-carousel-outer {
  position: relative;
  margin-top: var(--sp-6);
}
.news-carousel-track-wrap {
  overflow: hidden;
}
.news-carousel-track {
  display: flex;
  gap: var(--sp-4);
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* Each card takes up most of the viewport so it feels like a feature */
.news-card {
  flex: 0 0 min(82vw, 560px);
  background: rgba(240, 236, 250, 0.82);
  border: 1px solid rgba(255,255,255,0.6);
  border-top: 3px solid #6A58A8;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
@media (min-width: 900px) {
  .news-card {
    flex: 0 0 min(44vw, 520px);
  }
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.4);
}
.news-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.news-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #7BA7C7 0%, #A8C5DC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-image-placeholder span {
  font-family: var(--font-display);
  font-style: italic;
  color: #F0EAE0;
  font-size: 1.1rem;
  opacity: 0.85;
}
.news-card-body {
  padding: var(--sp-3) var(--sp-3) var(--sp-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card-date {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #6A58A8;
  margin-bottom: var(--sp-2);
}
.news-card-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.2;
  color: #2A2050;
  margin-bottom: var(--sp-2);
}
.news-card-text {
  font-size: 1rem;
  line-height: 1.65;
  color: #3D3460;
  flex: 1;
  margin-bottom: var(--sp-3);
}
.news-card-text a {
  color: #6A58A8;
  text-decoration: underline;
  text-decoration-color: rgba(106, 88, 168, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.news-card-text a:hover { color: #3A3070; }
.news-card-cta { margin-top: auto; }
.news-card-cta .btn {
  width: 100%;
  justify-content: center;
  background: #6A58A8;
  border-color: #6A58A8;
  color: #F0EAE0;
}
.news-card-cta .btn:hover {
  background: #2A2050;
  border-color: #2A2050;
  color: #F0EAE0;
}

/* Prev / Next arrow buttons */
.news-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.news-carousel-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(42, 32, 80, 0.3);
  background: rgba(255,255,255,0.35);
  color: #2A2050;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  line-height: 1;
}
.news-carousel-btn:hover {
  background: #6A58A8;
  border-color: #6A58A8;
  color: #F0EAE0;
  transform: scale(1.08);
}
.news-carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}
/* Dot indicators */
.news-carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.news-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(42, 32, 80, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.news-carousel-dot.active {
  background: #6A58A8;
  transform: scale(1.3);
}

/* ---------- AUTHOR ---------- */
.author {
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-7);
}
.author-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 900px) {
  .author-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: var(--sp-7);
  }
}
.author-intro .section-title { margin-top: 0; }
.author-body p {
  margin-bottom: 1.15em;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}
.author-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: 0.9;
  font-weight: 500;
  float: left;
  margin: 0.05em 0.1em 0 0;
  color: var(--teal-deep);
}
.author-body em, .author-body strong {
  color: var(--teal-deep);
}
.author-body strong { font-weight: 500; }

/* ---------- CONNECT ---------- */
.connect {
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-7);
  background: linear-gradient(180deg, var(--bg-canvas) 0%, var(--bg-deep) 100%);
  text-align: center;
  position: relative;
}
.connect-lede {
  max-width: 34em;
  margin: var(--sp-4) auto var(--sp-5);
  font-size: 1.12rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.connect-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.connect-handle {
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--teal-deep);
  color: var(--bg-canvas);
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-5);
  text-align: center;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.3em;
}
.footer-meta {
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aqua-soft);
  margin-bottom: var(--sp-3);
}
.footer-copy {
  font-size: 0.85rem;
  color: rgba(244, 237, 224, 0.6);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cover-frame { transform: none; }
  .cover-frame:hover { transform: none; }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-cta, .book-cta, .connect-cta, .site-nav { display: none; }
  body { background: white; color: black; }
}
