/* ============================================================
   Alan J. Dettlaff — Shared Stylesheet
   ============================================================ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

/* ── CSS variables ── */
:root {
  --teal:       #2b7a8d;
  --teal-dark:  #1a5c6e;
  --navy:       #174165;
  --accent:     #ED1566;
  --hero-bg:    #7a6858;
  --cream:      #f5f1ec;
  --light-gray: #f8f8f8;
  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-sans:  system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:      900px;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ── Section label ── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

/* ── Sections ── */
.section {
  padding-block: 5rem;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e4e0;
  padding-block: 0.9rem;
  transition: box-shadow 0.2s ease;
}
.nav.is-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.8; text-decoration: none; }

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #555;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-links a.active { color: var(--teal); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #555;
  margin-block: 4px;
  transition: all 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--hero-bg);
  color: #fff;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;   /* 60% text / 40% photo */
  align-items: end;
  min-height: 300px;                 /* image drives actual height */
}

.hero-left {
  display: flex;
  justify-content: flex-end;
}

.hero-text {
  width: 100%;
  max-width: 480px;
  padding: 5rem 2.5rem 5rem 1.5rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  white-space: nowrap;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.hero-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-img {
  display: block;
  width: 100%;      /* fill the 40% column width */
  height: auto;     /* natural aspect ratio — no squeezing */
}

/* ============================================================
   INNER PAGE HERO (banner strip)
   ============================================================ */
.page-hero {
  background: var(--hero-bg);
  color: #fff;
  padding-block: 4rem;
}
.page-hero .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.page-hero-text { flex: 1; }
.page-hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.page-hero-text .page-hero-sub {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
}
.page-hero-img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

/* ============================================================
   BOOK SUBTITLE STRIP
   ============================================================ */
.book-subtitle-strip {
  text-align: center;
  padding-block: 2.5rem;
  border-bottom: 1px solid #e8e4e0;
}
.book-subtitle-strip p {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  max-width: 60ch;
  margin-inline: auto;
}

/* ============================================================
   BOOK SECTION
   ============================================================ */
.book-section {
  background: #fff;
}

.book-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}

.book-cover-wrap {
  flex-shrink: 0;
}

.book-cover {
  width: 200px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  transform: perspective(600px) rotateY(-8deg);
  transition: transform 0.3s ease;
}
.book-cover:hover { transform: perspective(600px) rotateY(0deg); }

.book-text .section-label { margin-bottom: 0.5rem; }

.book-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.book-publisher {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.book-desc {
  font-size: 0.95rem;
  color: #444;
  max-width: 55ch;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 0.65rem 1.75rem;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.15s, background 0.15s;
}
.btn-primary:hover { opacity: 0.85; text-decoration: none; }

.btn-accent {
  background: var(--accent);
}

/* ============================================================
   PRAISE SECTION
   ============================================================ */
.praise-section {
  background: #e8f2f5;
}

.praise-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.praise-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy);
  line-height: 1.3;
}

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

.praise-card {
  background: #fff;
  padding: 2rem 1.75rem;
  border-radius: 4px;
  position: relative;
}

.praise-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--teal);
  opacity: 0.3;
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
}

.praise-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 1.25rem;
}

.praise-author {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 0.2rem;
}

.praise-works {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #777;
  font-style: italic;
}

/* ============================================================
   EVENTS SECTION
   ============================================================ */
.events-section {
  background: var(--teal-dark);
  color: #fff;
  padding-block: 3rem;
  text-align: center;
}
.events-section p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: #fff;
  text-align: center;
}

.contact-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.contact-note {
  font-size: 0.92rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 0.1rem;
  margin-bottom: 2.5rem;
  transition: opacity 0.15s;
}
.contact-email:hover { opacity: 0.7; text-decoration: none; }

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  transition: color 0.15s;
}
.social-link:hover { color: var(--teal); text-decoration: none; }
.social-link svg { flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding-block: 2rem;
  font-size: 0.8rem;
  font-family: var(--font-sans);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 1rem;
  color: #444;
  max-width: 58ch;
  line-height: 1.8;
}

.about-body a { color: var(--teal); }
.about-body a:hover { text-decoration: underline; }

.about-photo {
  flex-shrink: 0;
}

.about-photo img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
}

/* ============================================================
   INNER PAGE SECTIONS
   ============================================================ */
.page-section {
  padding-block: 5rem;
  min-height: 50vh;
}

.page-section h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.page-intro {
  font-size: 1.05rem;
  color: #444;
  max-width: 60ch;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.page-cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal);
  transition: opacity 0.15s;
}
.page-cta:hover { opacity: 0.75; text-decoration: none; }

/* ============================================================
   MEDIA ITEMS
   ============================================================ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.media-card {
  background: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e8e4e0;
  transition: box-shadow 0.2s;
}
.media-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.media-card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.media-card-body { padding: 1.25rem; }

.media-card-type {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.media-card-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.media-card-source {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #777;
}

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.pub-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e8e4e0;
}
.pub-item:last-child { border-bottom: none; }

.pub-cover {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pub-meta { flex: 1; }

.pub-journal {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.pub-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 0.4rem;
}

.pub-authors {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.pub-year {
  font-size: 0.8rem;
  color: #999;
}

/* ============================================================
   SPEAKING
   ============================================================ */
.speaking-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.speaking-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
}

.speaking-contact-box {
  background: var(--light-gray);
  border-left: 4px solid var(--teal);
  padding: 2rem;
  border-radius: 0 4px 4px 0;
  margin-top: 2rem;
}
.speaking-contact-box h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.speaking-contact-box p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}
.speaking-contact-box a {
  color: var(--teal);
  font-weight: 600;
}

.speaking-highlights h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--navy);
  margin-bottom: 2rem;
}

.speaking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.speaking-card {
  background: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e8e4e0;
}

.speaking-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.speaking-card-body { padding: 1.25rem; }

.speaking-card-event {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.speaking-card-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.45;
}

.speaking-card-date {
  font-size: 0.78rem;
  color: #888;
  margin-top: 0.4rem;
}

/* ============================================================
   UPEND PAGE
   ============================================================ */
.upend-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.upend-section h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.upend-section p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.upend-section img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; width: 100%; gap: 0.75rem; padding-block: 1rem; border-top: 1px solid #e8e4e0; }
  .nav-toggle { display: block; }

  .hero-layout { grid-template-columns: 1fr; min-height: 0; }
  .hero-left { justify-content: flex-start; }
  .hero-text { max-width: 100%; padding: 3rem 1.5rem 1.5rem; }
  .hero-name { white-space: normal; font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero-right { justify-content: center; }
  .hero-img { width: 80%; max-width: 380px; margin-inline: auto; }

  .page-hero .container { flex-direction: column; gap: 2rem; }
  .page-hero-img { width: 160px; height: 200px; }

  .book-inner { grid-template-columns: 1fr; }
  .book-cover { width: 150px; transform: none; }
  .book-cover:hover { transform: none; }

  .praise-grid { grid-template-columns: 1fr; }

  .about-inner { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .about-photo img { width: 100%; height: 240px; }

  .speaking-intro { grid-template-columns: 1fr; }
  .upend-section { grid-template-columns: 1fr; }

  .pub-item { grid-template-columns: 1fr; }
  .pub-cover { width: 60px; height: 78px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1.25rem; }
  .section { padding-block: 3.5rem; }
  .page-section { padding-block: 3.5rem; }
  .nav-logo { font-size: 0.9rem; }
}
