/* ============================================================
   Good Vibes with Laura — goodvibeswithlaura.com
   Palette drawn from the dawn headers: ivory light, twilight plum,
   sun gold, soft lavender.
   ============================================================ */

:root {
  --ivory: #fbf7f1;
  --vellum: #f4ede2;
  --vellum-deep: #ece2d2;
  --plum: #322939;
  --plum-soft: #5c5164;
  --plum-faint: #8d8296;
  --gold: #c0904f;
  --gold-soft: #d9b789;
  --lavender: #a995be;
  --rose: #e9cfc4;
  --white: #ffffff;
  --shadow: 0 20px 60px -20px rgba(50, 41, 57, 0.25);
  --shadow-soft: 0 10px 40px -14px rgba(50, 41, 57, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Karla', sans-serif;
  background: var(--ivory);
  color: var(--plum);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold-soft); color: var(--plum); }

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

h1, h2, h3, .serif { font-family: 'Cormorant Garamond', serif; font-weight: 500; }

/* ---------- Utility ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s;
}
.nav.scrolled {
  background: rgba(251, 247, 241, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(50, 41, 57, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-style: italic;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.5s;
}
.nav.scrolled .nav-logo { color: var(--plum); }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.4s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav.scrolled .nav-links a { color: var(--plum-soft); }
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero-scroll-container {
  position: relative;
  height: 240vh; /* 2.4x viewport tall — user scrolls through this while hero stays sticky */
}
.hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.hero-canvas.ready { opacity: 1; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroDrift 22s var(--ease) forwards;
  z-index: 0;
  transition: opacity 0.8s var(--ease);
}
.hero-bg.faded { opacity: 0; }
.hero-bg.hidden { display: none; }
@keyframes heroDrift { to { transform: scale(1.0); } }

/* soft veil + the gradient that flows down into the page — kept light on purpose */
.hero-veil {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(50,41,57,0.01) 0%, rgba(50,41,57,0) 34%, rgba(251,247,241,0) 62%, rgba(251,247,241,0.02) 84%, rgba(251,247,241,0.12) 100%);
}
/* a tight, local scrim just behind the copy block — keeps text readable
   without darkening the whole photo the way the old full veil did */
.hero-content::before {
  content: '';
  position: absolute;
  top: -60px; left: -40px; right: -40px; bottom: -60px;
  background: radial-gradient(ellipse 70% 65% at 25% 40%, rgba(30,24,34,0.38), rgba(30,24,34,0) 72%);
  z-index: -1;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-content { position: relative; z-index: 2; padding: 140px 0 180px; max-width: 780px; }
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 2px 18px rgba(0,0,0,0.5);
  opacity: 0;
  animation: riseIn 1.2s var(--ease) 0.3s forwards;
}
.hero h1 {
  font-size: clamp(52px, 7.5vw, 104px);
  line-height: 1.02;
  color: var(--white);
  font-weight: 500;
  margin: 22px 0 26px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 6px 30px rgba(0,0,0,0.55), 0 2px 60px rgba(0,0,0,0.35);
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; transform: translateY(110%); animation: lineUp 1.3s var(--ease) forwards; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.18s; }
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-style: italic;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 3px 20px rgba(0,0,0,0.5);
  max-width: 560px;
  opacity: 0;
  animation: riseIn 1.2s var(--ease) 0.75s forwards;
}
.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 1.2s var(--ease) 1s forwards;
}
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s;
}
.btn:hover { transform: translateY(-3px); }
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 14px 34px -12px rgba(192,144,79,0.7); }
.btn-gold:hover { background: #cf9f5e; box-shadow: 0 20px 44px -12px rgba(192,144,79,0.8); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.65); color: var(--white); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--plum-soft);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0;
  animation: riseIn 1.2s var(--ease) 1.5s forwards;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 1; transform: scaleY(1); } 50% { opacity: 0.4; transform: scaleY(0.7); } }

/* ---------- Verse strip ---------- */
.verse-strip { padding: 96px 0 40px; text-align: center; }
.verse-strip blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.4vw, 40px);
  font-style: italic;
  line-height: 1.4;
  color: var(--plum);
  max-width: 820px;
  margin: 0 auto;
}
.verse-strip cite {
  display: block;
  margin-top: 22px;
  font-family: 'Karla', sans-serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- About ---------- */
.about { padding: 90px 0 110px; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.about-photo { position: relative; }
.about-photo img {
  border-radius: 260px 260px 22px 22px; /* arched window / cathedral frame */
  box-shadow: var(--shadow);
}
.about-photo::before {
  content: '';
  position: absolute;
  inset: -22px -22px auto auto;
  width: 62%; height: 62%;
  border: 1px solid var(--gold-soft);
  border-radius: 260px 260px 0 0;
  z-index: -1;
}
.about h2 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.1; margin: 18px 0 24px; }
.about h2 em { font-style: italic; color: var(--gold); }
.about p { color: var(--plum-soft); margin-bottom: 18px; max-width: 54ch; }
.about .signature {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 30px;
  color: var(--gold);
  margin-top: 26px;
}

/* ---------- Section headers ---------- */
.section { padding: 100px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 54px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.08; margin-top: 14px; }
.section-head h2 em { font-style: italic; color: var(--gold); }
.section-head p { color: var(--plum-faint); max-width: 44ch; font-size: 15.5px; }

/* ---------- Art gallery ---------- */
.art-section { background: linear-gradient(180deg, var(--ivory), var(--vellum) 30%, var(--ivory)); }
.art-grid { columns: 3; column-gap: 26px; }
.art-card {
  break-inside: avoid;
  margin-bottom: 26px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.art-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.art-card img { width: 100%; transition: transform 1.2s var(--ease); }
.art-card:hover img { transform: scale(1.045); }
.art-card-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(50,41,57,0.78));
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.art-card:hover .art-card-info { opacity: 1; transform: none; }
.art-card-info h3 { font-size: 24px; font-style: italic; }
.art-card-info span { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }

/* ---------- Poetry ---------- */
.poem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.poem-card {
  background: var(--white);
  border: 1px solid rgba(50,41,57,0.07);
  border-radius: 20px;
  padding: 40px 36px 34px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.poem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.poem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--lavender), var(--rose));
  opacity: 0;
  transition: opacity 0.5s;
}
.poem-card:hover::before { opacity: 1; }
.poem-card .p-date { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--plum-faint); font-weight: 700; }
.poem-card h3 { font-size: 30px; line-height: 1.15; margin: 14px 0 16px; font-style: italic; }
.poem-card .p-excerpt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  color: var(--plum-soft);
  line-height: 1.6;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.poem-card .p-read { margin-top: 22px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* ---------- Thoughts & God Talk ---------- */
.thoughts-section { background: var(--vellum); border-radius: 60px 60px 0 0; }
.entry-list { display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.entry-row {
  background: var(--white);
  border-radius: 18px;
  padding: 32px 38px;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.entry-row:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.entry-row .e-date {
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
  min-width: 60px;
}
.entry-row .e-date .d { font-size: 34px; line-height: 1; color: var(--gold); }
.entry-row .e-date .m { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--plum-faint); font-family: 'Karla', sans-serif; font-weight: 700; }
.entry-row h3 { font-size: 25px; font-style: italic; margin-bottom: 4px; }
.entry-row p { font-size: 15px; color: var(--plum-faint); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry-row .e-arrow { color: var(--gold); font-size: 22px; transition: transform 0.4s var(--ease); }
.entry-row:hover .e-arrow { transform: translateX(6px); }

/* God Talk gets the twilight treatment */
.godtalk-section {
  background: linear-gradient(160deg, var(--plum) 0%, #453754 60%, #5a4668 100%);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.godtalk-section::before {
  content: '';
  position: absolute;
  top: -30%; right: -12%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(217,183,137,0.22), transparent 65%);
  pointer-events: none;
}
.godtalk-section .section-head h2, .godtalk-section .section-head p { color: var(--ivory); }
.godtalk-section .section-head p { color: rgba(251,247,241,0.6); }
.godtalk-grid { display: grid; grid-template-columns: 1fr 0.62fr; gap: 70px; align-items: start; }
.godtalk-section .entry-row { background: rgba(251,247,241,0.07); backdrop-filter: blur(8px); border: 1px solid rgba(251,247,241,0.12); box-shadow: none; }
.godtalk-section .entry-row:hover { background: rgba(251,247,241,0.12); }
.godtalk-section .entry-row h3 { color: var(--ivory); }
.godtalk-section .entry-row p { color: rgba(251,247,241,0.55); }
.godtalk-section .entry-row .e-date .m { color: rgba(251,247,241,0.5); }
.godtalk-photo { position: sticky; top: 110px; }
.godtalk-photo img { border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5); }
.godtalk-photo figcaption {
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 21px;
  color: var(--gold-soft);
  line-height: 1.5;
}

/* ---------- Empty state ---------- */
.empty-note {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--plum-faint);
  padding: 40px 0;
}

/* ---------- Reader overlay ---------- */
.reader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ivory);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.reader.open { opacity: 1; pointer-events: auto; }
.reader-close {
  position: fixed;
  top: 26px; right: 30px;
  z-index: 210;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(50,41,57,0.16);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  color: var(--plum);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.4s;
}
.reader-close:hover { transform: rotate(90deg); background: var(--white); }
.reader-inner { max-width: 720px; margin: 0 auto; padding: 130px 28px 140px; }
.reader-inner .eyebrow { justify-content: center; width: 100%; }
.reader-inner .eyebrow::before { display: none; }
.reader-inner h1 {
  text-align: center;
  font-size: clamp(40px, 6vw, 68px);
  font-style: italic;
  line-height: 1.1;
  margin: 20px 0 10px;
}
.reader-date { text-align: center; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--plum-faint); font-weight: 700; margin-bottom: 50px; }
.reader-rule { width: 70px; height: 1px; background: var(--gold); margin: 0 auto 60px; }
.reader-image { border-radius: 22px; box-shadow: var(--shadow); margin: 0 auto 60px; }
.reader-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  line-height: 1.85;
  color: var(--plum);
}
.reader-body.is-poem { text-align: center; white-space: pre-line; font-size: 26px; }
.reader-body p { margin-bottom: 1.4em; }
.reader-body > .stanza {
  opacity: 0;
  transform: translateY(18px);
  animation: stanzaRise 1.4s var(--ease) forwards;
  margin-bottom: 1.6em;
  white-space: pre-line;
}
@keyframes stanzaRise { to { opacity: 1; transform: none; } }
.reader-body .dropcap::first-letter {
  font-size: 3.1em;
  float: left;
  line-height: 0.82;
  padding: 6px 12px 0 0;
  color: var(--gold);
}
.reader-amen {
  text-align: center;
  margin-top: 70px;
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  font-family: 'Karla', sans-serif;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(50,41,57,0.92);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: 900px; text-align: center; }
.lightbox img { max-height: 74vh; margin: 0 auto; border-radius: 14px; box-shadow: 0 40px 100px rgba(0,0,0,0.5); }
.lightbox figcaption { margin-top: 26px; color: var(--ivory); }
.lightbox figcaption h3 { font-size: 32px; font-style: italic; }
.lightbox figcaption p { color: rgba(251,247,241,0.7); font-size: 15.5px; max-width: 60ch; margin: 8px auto 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--plum);
  color: var(--ivory);
  padding: 90px 0 46px;
  border-radius: 60px 60px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  bottom: -40%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(217,183,137,0.16), transparent 65%);
  pointer-events: none;
}
.footer img.footer-photo {
  width: 92px; height: 92px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 24px;
  border: 2px solid var(--gold-soft);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.footer .serif { font-size: clamp(26px, 3.4vw, 38px); font-style: italic; max-width: 640px; margin: 0 auto 12px; line-height: 1.35; }
.footer .f-verse { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; margin-bottom: 54px; }
.footer .f-bottom { font-size: 13px; color: rgba(251,247,241,0.45); display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.footer .f-bottom a { color: rgba(251,247,241,0.45); text-decoration: none; transition: color 0.3s; }
.footer .f-bottom a:hover { color: var(--gold-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .godtalk-grid { grid-template-columns: 1fr; gap: 50px; }
  .art-grid { columns: 2; }
  .godtalk-photo { position: static; max-width: 420px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none; border: none;
    color: inherit;
    font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
    color: rgba(255,255,255,0.92);
    cursor: pointer;
  }
  .nav.scrolled .nav-toggle { color: var(--plum); }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(251,247,241,0.97);
    padding: 26px;
    gap: 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open a { color: var(--plum); }
  .art-grid { columns: 1; }
  .entry-row { grid-template-columns: 1fr; gap: 10px; padding: 26px; }
  .entry-row .e-date { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
  .entry-row .e-arrow { display: none; }
  .section { padding: 70px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line span { transform: none; }
  .hero-eyebrow, .hero-sub, .hero-cta, .hero-scroll { opacity: 1; }
  .reader-body > .stanza { opacity: 1; transform: none; }
}
