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

:root {
  --amber:       #C47B1A;
  --amber-light: #F5E6CC;
  --amber-dark:  #7A4A08;
  --ink:         #1C1A16;
  --ink-mid:     #3D3A33;
  --ink-light:   #6B6458;
  --paper:       #FAF7F2;
  --paper-warm:  #F2EDE4;
  --white:       #FFFFFF;
  --rule:        rgba(28, 26, 22, 0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ─── NAV ─────────────────────────────────────────────── */

.site-nav {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 48px;
  position: relative;
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  margin-right: -0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
  transition: background 0.2s ease, transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle:hover span {
  background: var(--white);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-menu {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  min-width: 160px;
  background: var(--ink-mid);
  z-index: 100;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-radius: 3px;
}

.nav-menu.is-open {
  display: block;
}

.nav-menu a {
  display: block;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-menu a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-menu a + a {
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ─── HEADER ──────────────────────────────────────────── */

.site-header {
  background: var(--ink);
  color: var(--white);
  padding: 2rem 1.5rem;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.headshot-wrap {
  flex-shrink: 0;
  width: 200px;
}

.headshot-wrap img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.15);
}

/* Placeholder circle when no headshot yet */
.headshot-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 3px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 1rem;
  line-height: 1.4;
}

.header-text {
  padding-top: 0.25rem;
}

.header-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.header-bio {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.btn-speaking {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-speaking:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  color: var(--white);
}

/* ─── MAIN CONTENT ────────────────────────────────────── */

.site-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 2.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.books-formats {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 2rem;
  margin-top: -1.5rem;
}

/* ─── ST. JOE PAGE ────────────────────────────────────── */

.stjoe-body {
  max-width: 640px;
}

.stjoe-body p {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.stjoe-sig {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem !important;
  margin-bottom: 2rem !important;
}

.btn-download {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-download:hover {
  background: var(--white);
  color: var(--ink);
}

/* ─── CONTACT PAGE ────────────────────────────────────── */

.contact-intro {
  max-width: 640px;
  margin-bottom: 2rem;
}

.contact-intro p {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.8;
}

.contact-form {
  max-width: 560px;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 2px;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s ease;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--ink);
}

.form-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.btn-submit {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-submit:hover {
  background: var(--white);
  color: var(--ink);
}

.form-success {
  display: none;
  padding: 1.25rem;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 2px;
  margin-top: 1rem;
}

.form-success p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
}

/* ─── ABOUT PAGE ──────────────────────────────────────── */

.about-body {
  max-width: 640px;
}

.about-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--amber);
  transition: color 0.15s ease;
}

.about-body a:hover {
  color: var(--amber-dark);
}

/* ─── BOOKS GRID ──────────────────────────────────────── */

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem 2rem;
}

/* ─── BOOK CARD ───────────────────────────────────────── */

.book-card {
  display: flex;
  flex-direction: column;
}

.book-title-wrap {
  flex-grow: 1;
  min-height: 3.5rem;
}

.book-cover-wrap {
  position: relative;
  margin-bottom: 1rem;
  line-height: 0;
  overflow: hidden;
  border-radius: 3px;
}

.book-cover-wrap img {
  width: 100%;
  aspect-ratio: 2/3;
  max-height: 400px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow:
    2px 4px 8px rgba(28,26,22,0.15),
    0 1px 2px rgba(28,26,22,0.1);
  transition: transform 0.3s ease;
}

.book-cover-wrap a:hover img {
  transform: scale(1.03);
}

.book-title a:hover {
  color: var(--amber-dark);
}

/* Cover placeholder */
.cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  max-height: 400px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-align: center;
  padding: 1.5rem;
  line-height: 1.5;
}

/* ─── AWARD BADGES ────────────────────────────────────── */

.award-badges {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.award-badge {
  background: #600b4d;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  line-height: 1.3;
  white-space: nowrap;
}

/* ─── BOOK META ───────────────────────────────────────── */

.book-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.book-subtitle {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
  font-style: italic;
}

/* ─── STAR RATINGS ────────────────────────────────────── */

.book-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.stars {
  display: flex;
  gap: 1px;
}

.star {
  width: 13px;
  height: 13px;
  fill: var(--amber);
}

.star-half {
  fill: url(#half-star-gradient);
}

.star-empty {
  fill: var(--paper-warm);
  stroke: var(--amber);
  stroke-width: 1px;
}

.rating-text {
  font-size: 0.78rem;
  color: var(--ink-light);
  font-weight: 300;
}

/* ─── BUY BUTTON ──────────────────────────────────────── */

.btn-buy {
  display: inline-block;
  margin-top: auto;
  padding: 0.6rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1.5px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
  text-align: center;
  align-self: flex-start;
  cursor: pointer;
}

.btn-buy:hover {
  background: var(--white);
  color: var(--ink);
}

/* ─── FOOTER ──────────────────────────────────────────── */

.site-footer {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-social a {
  color: var(--ink-light);
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--amber-dark);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-light);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-light);
}

.footer-copy a {
  color: var(--ink-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.footer-copy a:hover {
  color: var(--amber-dark);
}

/* ─── APPEARANCES PAGE ────────────────────────────────── */

.appearances-section {
  max-width: 640px;
}

.appearances-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 2.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.event-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.event-item {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0 1.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.event-item:first-child {
  border-top: 1px solid var(--rule);
}

.event-date-block {
  text-align: right;
  padding-top: 0.1rem;
  flex-shrink: 0;
}

.event-month {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.event-day {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.event-year {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--ink-light);
  margin-top: 0.15rem;
}

.event-details {
  padding-top: 0.2rem;
}

.event-location {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.event-location a {
  color: var(--ink);
  border-bottom: 1px solid var(--amber);
  transition: color 0.15s ease;
}

.event-location a:hover {
  color: var(--amber-dark);
}

.event-time {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-light);
  font-style: italic;
}

.no-events {
  display: none;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.no-events p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.7;
}

.booking-cta {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  padding: 1.5rem 1.75rem;
}

.booking-cta p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.event-year-header {
  list-style: none;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 1.5rem 0 0.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
  padding-left: calc(6rem + 1.75rem);
}

.appearances-intro a {
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--amber);
  transition: color 0.15s ease;
}

.appearances-intro a:hover {
  color: var(--amber-dark);
}

/* ─── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 600px) {
  .site-header {
    padding: 1.25rem 1.5rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .header-bio {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.92rem;
    margin-bottom: 1rem;
  }

  .headshot-wrap {
    width: 72px;
  }

  .headshot-placeholder,
  .headshot-wrap img {
    width: 72px;
    height: 72px;
  }

  .header-name {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }

  .books-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .award-badge {
    font-size: 0.55rem;
    padding: 0.2rem 0.35rem;
  }

  .book-title {
    font-size: 0.88rem;
  }

  .btn-buy {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 380px) {
  .books-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}
