@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Cormorant+Garamond:wght@600;700&display=swap');

/* Stories with Charlene — palette
   Anchor Teal     #4F86A6   links, accents, small headings
   Warm Barn Red   #6B302E   buttons (deeper, muted)
   Weathered Wood  #A89A8E   dividers, soft blocks
   Cream           #F7F3EE   page background
   Soft Charcoal   #3E414A   body text
   Light Linen     #EDE6DF   alternate sections
*/

:root {
  --teal: #4F86A6;
  --teal-dark: #3E6B88;
  --barn: #6B302E;
  --barn-dark: #4F2321;
  --wood: #A89A8E;
  --cream: #F7F3EE;
  --charcoal: #3E414A;
  --linen: #EDE6DF;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --measure: 38rem;
  --wide: 64rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2rem; font-weight: 600; }
h2 { font-size: 1.9rem; color: var(--teal); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover { color: var(--teal-dark); border-bottom-color: var(--teal-dark); }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--linen);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-logo img {
  height: 64px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.site-nav a {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--charcoal);
  border-bottom: none;
  letter-spacing: 0.01em;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--teal);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: var(--charcoal);
  cursor: pointer;
}

@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
  }
  .site-nav.open { display: flex; }
}

/* ---------- Layout ---------- */
main { display: block; }

.section {
  padding: 0.5rem 1.5rem;
}
.section--narrow {
  max-width: var(--measure);
  margin: 0 auto;
}
.section--wide {
  max-width: var(--wide);
  margin: 0 auto;
}
.section--linen { background: var(--linen); }
.section--linen h2 { font-size: 2.6rem; font-weight: 700; }
.section--linen p { font-size: 1.35rem; color: var(--charcoal); }
.bg-linen { background: var(--linen); }

.divider {
  border: 0;
  height: 1px;
  background: var(--wood);
  opacity: 0.4;
  max-width: 6rem;
  margin: 1.25rem auto;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 1.5rem 1.5rem 1.5rem;
}
.hero img {
  max-width: 320px;
  width: 80%;
  height: auto;
  transform: translateX(30px);
}
.hero-portrait {
  text-align: center;
  padding: 1rem 1.5rem 1rem;
}
.hero-portrait img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(62, 65, 74, 0.14);
  -webkit-mask-image: radial-gradient(circle, black 50%, transparent 90%);
  mask-image: radial-gradient(circle, black 50%, transparent 90%);
}
.intro {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
  padding: 1rem 1.5rem;
}
.intro h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.intro p {
  color: var(--charcoal);
}

/* ---------- Featured cards ---------- */
.feature {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.feature h2 {
  font-family: var(--serif);
  text-align: center;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.section h2 {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-card .learn-more {
  margin-top: auto;
  padding-top: 0.75rem;
}
.feature-card-cover {
  width: 100%;
  aspect-ratio: 1 / 1.3;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.75rem;
  box-shadow: 0 3px 10px rgba(62, 65, 74, 0.18);
}
.feature-card h3 {
  color: var(--teal-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  min-height: 4.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.feature-card p { font-size: 1.35rem; color: var(--charcoal); }

.learn-more {
  font-family: var(--serif);
  font-style: italic;
  color: #1a3347;
  border-bottom: 1px solid currentColor;
  display: inline-block;
  margin-top: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--barn);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 120ms ease;
}
.btn:hover {
  background: var(--barn-dark);
  color: var(--cream);
  border-bottom: none;
}
.btn--ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
}
.btn--ghost:hover {
  background: var(--teal);
  color: var(--cream);
}

/* ---------- Books page ---------- */
.books-page-top { padding-top: 0; }
.books-page-top h1 { font-weight: 600; }

.book {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(168, 154, 142, 0.4);
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.book:last-of-type { border-bottom: 0; }
.book-cover {
  flex: 0 0 250px;
  width: 250px;
  background: var(--linen);
  border-radius: 3px;
  box-shadow: 0 6px 22px rgba(62, 65, 74, 0.14);
  overflow: hidden;
}
.book-cover a { display: block; }
.book-cover a img {
  transition: opacity 0.2s ease;
}
.book-cover a:hover img {
  opacity: 0.82;
}
.book-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.book-body {
  flex: 1 1 0;
  min-width: 0;
}
.book-header { text-align: left; }
.book h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 0.25rem; }
.book h3 a { color: inherit; text-decoration: none; }
.book h3 a:hover { text-decoration: underline; }
.book .status {
  font-family: var(--serif);
  font-style: italic;
  color: var(--wood);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.book-detail {
  display: none;
  margin-top: 1rem;
}
.book-detail.open { display: block; }
.toggle-link {
  background: none;
  border: 0;
  color: #1a3347;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid #1a3347;
}
.toggle-link:hover { color: #0f1f2c; border-bottom-color: #0f1f2c; }


/* ---------- Back link ---------- */
.back-link {
  margin-bottom: 1.5rem;
}
.back-link a {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--teal);
  text-decoration: none;
  border-bottom: none;
}
.back-link a:hover {
  text-decoration: underline;
}

/* ---------- Reviews ---------- */
.reviews {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--linen);
  border-radius: 4px;
}
.reviews h4 {
  margin-top: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--teal);
}
.review {
  font-family: var(--serif);
  font-style: italic;
  margin: 0 0 0.6em;
  font-size: 1.02rem;
}
.review-attr {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--wood);
}

/* ---------- Speaking page ---------- */
.speaking-topics {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0.5rem 0 0;
}
.speaking-topics li {
  padding: 0.1rem 0;
  font-size: 1.1rem;
}
.speaking-appearances {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0.5rem 0 0;
}
.speaking-appearances li {
  padding: 0.1rem 0;
  font-size: 1.1rem;
}
.speaking-body {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}
.speaking-body h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(168, 154, 142, 0.4);
}
.speaking-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.speaking-topics-section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}
.speaking-topics-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.speaking-topics-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 260px);
  gap: 3rem;
  align-items: start;
}
.speaking-topics-photo {
  margin-top: -1.5rem;
}
.speaking-topics-photo img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  box-shadow: 0 6px 22px rgba(62, 65, 74, 0.14);
  display: block;
}
.speaking-subhead {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 2rem 0 0.75rem;
}
.podcast-list {
  margin: 0.75rem 0 0;
}
.podcast-item {
  padding: 0 0 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(168, 154, 142, 0.35);
}
.podcast-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}
.podcast-meta {
  margin-bottom: 0.25rem;
}
.podcast-title {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--teal-dark);
  margin-bottom: 0.1rem;
  border-bottom: none;
}
a.podcast-title:hover { color: var(--teal); border-bottom: 1px solid var(--teal); }
.podcast-episode {
  display: block;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 0.1rem;
}
.podcast-host {
  display: block;
  font-size: 0.9rem;
  color: var(--wood);
}
.podcast-desc {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--charcoal);
}
.podcast-link {
  font-family: var(--serif);
  font-style: italic;
  color: #1a3347;
  border-bottom: 1px solid currentColor;
  font-size: 0.95rem;
}
.podcast-link:hover { color: #0f1f2c; }
.podcast-link--soon {
  font-family: var(--serif);
  font-style: italic;
  color: var(--wood);
  font-size: 0.95rem;
}

.speaking-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(168, 154, 142, 0.4);
  text-align: center;
}
.speaking-cta p { margin: 0 0 0.75rem; }
@media (max-width: 720px) {
  .speaking-topics-grid { grid-template-columns: 1fr; }
  .speaking-cta { flex-direction: column; text-align: center; }
  .book { flex-direction: column; align-items: center; }
  .book-cover { flex: 0 0 auto; width: 160px; }
  .book-body { width: 100%; }
  .book h3 { font-size: 1.35rem; }
}

/* ---------- Speaking layout ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}
.split--top { align-items: start; }
.split-photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 22px rgba(62, 65, 74, 0.14);
  display: block;
}
@media (max-width: 720px) {
  .split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .split-photo { max-width: 280px; margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- About layout (photo right) ---------- */
.about-intro {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.about-intro::after { content: ""; display: block; clear: both; }
.about-photo {
  float: right;
  width: 220px;
  margin: 0.4rem 0 1rem 1.75rem;
  shape-outside: margin-box;
}
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 22px rgba(62, 65, 74, 0.14);
  display: block;
}
@media (max-width: 640px) {
  .about-photo {
    float: none;
    margin: 0 auto 1.5rem;
    max-width: 200px;
  }
}

/* ---------- Blog ---------- */
.blog-image {
  max-width: var(--measure);
  margin: 0 auto 0.25rem;
  padding: 0 1.5rem;
}
.blog-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(62, 65, 74, 0.1);
  display: block;
}

.blog-tagline {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
}
.post-category {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  text-align: left;
  color: var(--teal);
  margin: 0 0 0.15rem;
}
.post h3.post-title-preview {
  font-family: var(--sans);
  font-style: normal;
  text-align: center;
  font-weight: 700;
  color: #000;
  margin: 0 0 0.5rem;
}
.post h3.post-title-preview a {
  color: #000;
  border-bottom: none;
}
.post h3.post-title-preview a:hover {
  color: var(--teal);
}
.post {
  max-width: var(--measure);
  margin: 0 auto;
}
.post + .post {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(168, 154, 142, 0.4);
}
.post h2 { color: var(--teal); }
.post h3 { color: var(--charcoal); font-style: italic; text-align: center; }
.post-meta {
  font-family: var(--serif);
  font-style: italic;
  color: var(--wood);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-align: center;
}
.post-body { display: none; margin-top: 0.5rem; }
.post-body.open { display: block; }
.post p:has(.toggle-link) { margin-bottom: 0.25rem; }
.post-excerpt { margin-bottom: 0.5rem; }
.post-signature {
  font-family: var(--serif);
  font-style: italic;
  margin-top: 1rem;
  color: var(--teal);
}
.post-title {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  color: #000;
  font-size: 1.6rem;
  text-align: center;
  margin: 0.5rem 0 0.5rem;
}
.blog-post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(168, 154, 142, 0.4);
  font-family: var(--serif);
  font-size: 0.95rem;
  gap: 1rem;
}
.blog-nav-home {
  text-align: center;
  white-space: nowrap;
  color: var(--teal);
}
.blog-nav-prev,
.blog-nav-next {
  flex: 1;
  font-style: italic;
  color: var(--teal);
}
.blog-nav-prev a,
.blog-nav-next a {
  color: var(--teal);
}
.blog-nav-next {
  text-align: right;
}

/* ---------- Forms ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 28rem;
}
.contact-form label {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--wood);
  background: var(--cream);
  color: var(--charcoal);
  border-radius: 4px;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { align-self: flex-start; }

.contact-direct {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--charcoal);
}

/* ---------- Category ribbon ---------- */
.category-ribbon {
  background: #C2B5AB;
  padding: 0.45rem 1.5rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--teal);
}
.category-ribbon span:not(:last-child)::after {
  content: " \00B7 ";
  color: #9a8880;
}
.category-ribbon + .site-footer {
  margin-top: 0;
}

/* ---------- Signed copies ---------- */
.signed-copies {
  margin: 1.75rem 0 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--linen);
  border-left: 3px solid var(--teal);
  border-radius: 0 4px 4px 0;
}
.signed-copies p {
  margin: 0.4rem 0;
}
.order-link {
  color: var(--teal);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
}
.order-link:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--linen);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--wood);
  margin-top: 1.5rem;
}
.site-footer a { color: var(--teal); border-bottom: none; }
.site-footer a:hover { border-bottom: 1px solid var(--teal); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.italic { font-style: italic; }
.lead { font-size: 1.15rem; }
.tight { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* ---------- Easter egg overlay ---------- */
#adam-tribute {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(ellipse at center, #1a3358 0%, #0a1a30 70%, #050a18 100%);
  display: flex;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 280ms ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Use auto margins (not align-items: center) so content scrolls cleanly
   from the top when it's taller than the viewport. */
#adam-tribute .adam-stage { margin: auto; }
#adam-tribute.show { opacity: 1; }
#adam-tribute .adam-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: 0;
  color: rgba(255,255,255,0.7);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  padding: 0.25rem 0.75rem;
  transition: color 120ms ease;
}
#adam-tribute .adam-close:hover { color: #fff; }
.adam-stage {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 60rem;
  width: 100%;
  color: #F7F3EE;
}
.adam-hero {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6));
  animation: adam-float 3.6s ease-in-out infinite;
}
@keyframes adam-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}
.adam-text { font-family: var(--serif); }
.adam-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-family: var(--sans);
  color: #FFD21E;
  margin-bottom: 0.5rem;
}
.adam-text h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: rgba(247,243,238,0.85);
  font-weight: 400;
  margin: 0 0 0.25rem;
}
.adam-text h1 {
  font-family: var(--serif);
  font-size: 3.2rem;
  color: #FFD21E;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 18px rgba(255,210,30,0.35);
  letter-spacing: 0.01em;
}
.adam-title {
  font-style: italic;
  color: rgba(247,243,238,0.85);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.adam-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.55;
}
.adam-feats li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: rgba(247,243,238,0.92);
}
.adam-feats li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #FFD21E;
}
.adam-sig {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(247,243,238,0.65);
  font-size: 0.95rem;
  margin: 0;
}
@media (max-width: 720px) {
  .adam-stage {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .adam-hero { max-width: 240px; margin: 0 auto; }
  .adam-feats { text-align: left; }
  .adam-text h1 { font-size: 2rem; font-weight: 600; }
}
