/* =========================================================
   Teri Valentine — Author & Storyteller
   Shared stylesheet for all pages
   ========================================================= */

:root {
  --cream: #f8f2e9;
  --cream-deep: #efe1cf;
  --navy: #232c46;
  --navy-soft: #5c6685;
  --gold: #ba9a71;
  --gold-light: #e3d2b8;
  --rose: #cda9a5;
  --rose-deep: #ad8581;
  --ink: #4a4540;
  --serif-display: 'Playfair Display', Georgia, serif;
  --serif-body: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1.15rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--rose-deep); text-decoration: none; }

.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Layout helpers ---------- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.narrow { max-width: 620px; }

.eyebrow {
  font-family: var(--serif-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rose-deep);
  margin: 0 0 0.85rem;
}

h2 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--navy);
  margin: 0 0 1.4rem;
  line-height: 1.2;
}

.lede {
  font-size: 1.2rem;
  color: var(--navy-soft);
  max-width: 46ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--cream);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.2s ease;
}
.btn:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.75rem;
  background: rgba(248, 242, 233, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(248, 242, 233, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(35, 44, 70, 0.08);
  padding: 0.7rem 1.75rem;
}
.nav-name {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--rose-deep); }

@media (max-width: 760px) {
  .site-nav {
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.9rem 1.25rem;
  }
  .site-nav.scrolled { padding: 0.7rem 1.25rem; }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.15rem;
  }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.12em; }
}

/* ---------- Hero (home only) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8.5rem 1.5rem 4rem;
  position: relative;
  background:
    radial-gradient(ellipse 70% 55% at 50% 18%, var(--cream-deep) 0%, var(--cream) 65%);
}
.hero-logo {
  width: min(380px, 78vw);
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 10px 28px rgba(35, 44, 70, 0.10));
}
.hero-tagline {
  font-style: italic;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  color: var(--navy-soft);
  max-width: 40ch;
  margin: 0 auto 2.4rem;
}
.scroll-cue {
  margin-top: 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 34px;
  background: var(--gold);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: 9.5rem 1.5rem 4.5rem;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--cream-deep) 0%, var(--cream) 70%);
}
.page-header h1 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.2;
}
.page-header .lede {
  margin: 0 auto;
}

/* ---------- Flourish divider ---------- */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  max-width: 420px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem;
}
.flourish-line {
  flex: 1;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.flourish-mark {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--rose);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s;
}
.flourish.is-visible .flourish-line { transform: scaleX(1); }
.flourish.is-visible .flourish-mark { opacity: 1; transform: scale(1); }

/* ---------- About (home) ---------- */
.about {
  padding: 2.5rem 0 6.5rem;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 4rem;
  align-items: start;
}
.about-grid p { margin: 0 0 1.25rem; }
.about-grid p:last-child { margin-bottom: 0; }

.pull-quote {
  border-left: 2px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.75rem;
  margin: 0;
}
.pull-quote p {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--navy);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}
.pull-quote cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Explore cards (home) ---------- */
.explore {
  background: var(--cream-deep);
  padding: 6rem 0;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.explore-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2.25rem 1.9rem;
  background: var(--cream);
  border: 1px solid var(--gold-light);
  border-radius: 3px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.explore-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -22px rgba(35, 44, 70, 0.35);
}
.explore-card .explore-icon {
  width: 30px;
  height: 30px;
  color: var(--rose-deep);
}
.explore-card h3 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0;
}
.explore-card p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--navy-soft);
}
.explore-card .explore-link {
  margin-top: auto;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rose-deep);
}
.explore-card:hover .explore-link { color: var(--navy); }

@media (max-width: 820px) {
  .explore-grid { grid-template-columns: 1fr; }
}

/* ---------- Book cover / card (shared) ---------- */
.book-cover {
  width: min(280px, 100%);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  background: linear-gradient(165deg, #2a3458 0%, var(--navy) 55%, #1c2438 100%);
  border: 1px solid var(--gold);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 2.25rem;
  text-align: center;
  color: var(--cream);
  box-shadow: 0 26px 50px -18px rgba(35, 44, 70, 0.45);
}
.book-cover .quill {
  width: 38px;
  height: 38px;
  color: var(--rose);
}
.book-cover .book-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0;
}
.book-cover .book-by {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0;
}

/* ---------- Books page ---------- */
.books-list {
  padding: 1rem 0 6.5rem;
}
.book-feature {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4rem 0;
}
.book-feature + .book-feature {
  border-top: 1px solid var(--gold-light);
}
.book-info .badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rose-deep);
  border: 1px solid var(--rose);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.1rem;
}
.book-info h2 { margin-bottom: 0.5rem; }
.book-info .genre-tag {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.book-info p { margin: 0 0 1.25rem; }
.book-info p:last-of-type { margin-bottom: 1.75rem; }

@media (max-width: 820px) {
  .book-feature { grid-template-columns: 1fr; text-align: center; gap: 2.25rem; }
  .book-info .lede,
  .book-info p { margin-left: auto; margin-right: auto; }
  .book-info .btn-row { justify-content: center; }
}

/* ---------- Connect (home) ---------- */
.connect {
  padding: 2.5rem 0 6.5rem;
  text-align: center;
}
.connect .section-inner { display: flex; flex-direction: column; align-items: center; }
.social-row {
  display: flex;
  gap: 1.1rem;
  margin-top: 1.75rem;
}
.social-row a {
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.social-row a:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--cream);
}
.social-row svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Placeholder panel (Development / Resume) ---------- */
.placeholder-panel {
  border: 1px dashed var(--gold);
  border-radius: 4px;
  padding: 2.75rem 2rem;
  text-align: center;
  background: var(--cream-deep);
  color: var(--navy-soft);
}
.placeholder-panel .placeholder-icon {
  width: 32px;
  height: 32px;
  color: var(--rose);
  margin: 0 auto 0.85rem;
}
.placeholder-panel p {
  margin: 0;
  font-style: italic;
}

/* ---------- Pill / badge ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  background: var(--cream);
}
.pill svg { width: 16px; height: 16px; color: var(--rose-deep); }

/* ---------- Generic content sections ---------- */
.content-section { padding: 1rem 0 6.5rem; }
.content-section + .content-section { padding-top: 0; }
.content-section h2 { margin-bottom: 1.75rem; }
.content-block { margin-bottom: 3.5rem; }
.content-block:last-child { margin-bottom: 0; }

/* ---------- Project / experience card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.tbd-card {
  border: 1px dashed var(--gold);
  border-radius: 3px;
  padding: 1.75rem;
  background: var(--cream);
}
.tbd-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.tbd-card h3 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.tbd-card p { margin: 0; color: var(--navy-soft); font-size: 0.98rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: var(--cream-deep);
  text-align: center;
  padding: 3.25rem 1.5rem 2.75rem;
}
.footer-name {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--cream);
  margin: 0 0 0.35rem;
}
.footer-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 1.5rem;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--navy-soft);
  margin: 0;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-deep);
  font-weight: 600;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--rose); }
