/* ============================================================
   chadtopaz.com — shared stylesheet
   ============================================================ */

@import url('https://cdn.jsdelivr.net/npm/geist@1.3.0/dist/fonts/geist-sans/style.min.css');

:root {
  --yellow:      #F5C842;
  --yellow-tint: #FBF6E6;
  --black:       #0D0D0D;
  --mid:         #6B6860;
  --rule:        #E0DDD6;
  --bg:          #FAFAF8;
  --max-w:       1200px;
}

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

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

body {
  background: var(--bg);
  color: var(--black);
  font-family: 'Geist Sans', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
}

/* ── BANNER ───────────────────────────────────────────────── */
.banner {
  background: var(--yellow);
  color: var(--black);
  padding: 0.55rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.banner-text { font-size: 0.77rem; font-weight: 500; white-space: nowrap; }
.banner-text em { font-style: italic; font-weight: 600; }
.banner-links { display: flex; gap: 1.2rem; flex-shrink: 0; }
.banner-links a {
  color: var(--black);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  padding-bottom: 1px;
  transition: opacity 0.15s;
}
.banner-links a:hover { opacity: 0.7; }

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 3rem;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
}
.nav-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; list-style: none; align-items: stretch; }
.nav-item { position: relative; }
.nav-item > a {
  color: var(--mid);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0 1.1rem;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-item > a:hover { color: var(--black); }
.nav-item > a.active { color: var(--black); font-weight: 500; }
.nav-item.has-dropdown > a::after {
  content: " ↓";
  font-size: 0.65rem;
  opacity: 0.4;
  margin-left: 2px;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  min-width: 200px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.65rem 1.2rem;
  color: var(--mid);
  text-decoration: none;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--rule);
  transition: background 0.12s, color 0.12s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--yellow-tint); color: var(--black); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 1.8rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
}
.footer-copy { font-size: 0.72rem; color: var(--mid); }
.footer-links { display: flex; gap: 1.8rem; list-style: none; }
.footer-links a {
  color: var(--mid);
  text-decoration: none;
  font-size: 0.72rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--black); }

/* ── INNER PAGE LAYOUT ────────────────────────────────────── */
.page-header {
  padding: 3.5rem 3rem 2rem;
  border-bottom: 1px solid var(--rule);
}
.page-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.page-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.1;
}
.page-subtitle {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 600px;
}
.page-content { padding: 3rem; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 1rem;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
}
p {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 1rem;
}
p:last-child { margin-bottom: 0; }
a { color: var(--black); }

/* ── SECTION BLOCKS ───────────────────────────────────────── */
.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.section:last-child { border-bottom: none; }
.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* ── PUBLICATION / TALK LIST ──────────────────────────────── */
.pub-list { list-style: none; }
.pub-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  font-size: 0.85rem;
  line-height: 1.6;
}
.pub-item:last-child { border-bottom: none; }
.pub-num {
  font-size: 0.72rem;
  color: var(--mid);
  font-weight: 500;
  text-align: right;
}
.pub-citation { color: var(--black); }
.pub-citation a {
  color: var(--mid);
  font-size: 0.72rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  margin-left: 0.5rem;
  white-space: nowrap;
}
.pub-citation a:hover { color: var(--black); }

/* Talk list */
.talk-group { margin-bottom: 3rem; }
.talk-group-title {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.talk-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.talk-item:last-child { border-bottom: none; }
.talk-year { font-size: 0.72rem; color: var(--mid); font-weight: 500; }
.talk-venue { font-size: 0.85rem; color: var(--black); line-height: 1.5; }
.talk-event { font-size: 0.78rem; color: var(--mid); margin-top: 0.15rem; }

/* ── PRESS LIST ───────────────────────────────────────────── */
.press-group { margin-bottom: 3rem; }
.press-group-title {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.press-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
  line-height: 1.5;
}
.press-item:last-child { border-bottom: none; }
.press-item a {
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.press-item a:hover { border-color: var(--black); }
.press-outlet { display: inline; }

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.testimonial {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  max-width: 700px;
}
.testimonial:last-child { border-bottom: none; }
.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--black);
  margin-bottom: 0.8rem;
  font-style: italic;
}
.testimonial-attr {
  font-size: 0.72rem;
  color: var(--mid);
  letter-spacing: 0.04em;
}

/* ── ABOUT PAGE ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding: 3rem;
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.about-links { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.about-links a {
  font-size: 0.78rem;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  display: inline-block;
}
.about-links a:hover { color: var(--black); }
.about-text h2 { margin-top: 2rem; margin-bottom: 0.8rem; }
.about-text h2:first-child { margin-top: 0; }

/* ── BOOK PAGE ────────────────────────────────────────────── */
.book-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  padding: 3rem;
}
.book-cover-wrap img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1), 0 16px 40px rgba(0,0,0,0.15);
}
.book-buy-links { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.book-buy-link {
  display: block;
  padding: 0.65rem 1.2rem;
  background: var(--black);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  transition: background 0.15s;
}
.book-buy-link:hover { background: #333; color: var(--bg); }
.book-buy-link.secondary {
  background: transparent;
  color: var(--mid);
  border: 1px solid var(--rule);
}
.book-buy-link.secondary:hover { border-color: var(--black); color: var(--black); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .banner { padding: 0.55rem 1.5rem; }
  .banner-links { display: none; }
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .page-header, .page-content { padding: 2rem 1.5rem; }
  .about-grid, .book-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
  .about-photo img { max-width: 200px; }
  footer { padding: 1.5rem; flex-direction: column; gap: 1rem; text-align: center; }
}
