/* 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: 2.4rem; }
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: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-logo img {
  height: 52px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.site-nav a {
  font-family: var(--serif);
  font-size: 1.05rem;
  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: 3rem 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); }

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

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 1.5rem;
}
.hero img {
  max-width: 320px;
  width: 80%;
  height: auto;
  transform: translateX(24px);
}
.hero-portrait {
  text-align: center;
  padding: 2.5rem 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 1.5rem;
}
.intro h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.intro p {
  font-size: 1.15rem;
  color: var(--charcoal);
}

/* ---------- Featured cards ---------- */
.feature {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.feature h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.feature-card {
  text-align: center;
  padding: 1rem;
}
.feature-card-cover {
  width: 90px;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
  box-shadow: 0 3px 10px rgba(62, 65, 74, 0.18);
}
.feature-card h3 {
  color: var(--teal);
  font-style: italic;
}
.feature-card p { font-size: 1rem; }

.learn-more {
  font-family: var(--serif);
  font-style: italic;
  color: var(--teal);
  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: 1.5rem; }

.book {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(168, 154, 142, 0.4);
}
.book:last-of-type { border-bottom: 0; }
.book-header { text-align: center; }
.book-cover {
  width: 220px;
  margin: 0 auto 1.25rem;
  background: var(--linen);
  border-radius: 3px;
  box-shadow: 0 6px 22px rgba(62, 65, 74, 0.14);
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.book h3 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.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: var(--teal);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid var(--teal);
}
.toggle-link:hover { color: var(--teal-dark); border-bottom-color: var(--teal-dark); }


/* ---------- 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 layout ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.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; }
}

/* ---------- 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 1.5rem;
  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;
}

.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: 2rem;
  text-align: center;
}
.post-body { display: none; margin-top: 0.5rem; }
.post-body.open { display: block; }
.post-excerpt { margin-bottom: 0.5rem; }
.post-signature {
  font-family: var(--serif);
  font-style: italic;
  margin-top: 2rem;
  color: var(--teal);
}

/* ---------- 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);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--linen);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--wood);
  margin-top: 4rem;
}
.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: 2.4rem; }
}
