/* ========================================================
   Jazz Thornton: personal site
   Warm, hopeful, editorial styling
   ======================================================== */

:root {
  --cream: #faf6ef;
  --cream-deep: #f2ead9;
  --ink: #2b2420;
  --ink-soft: #5a5048;
  --rust: #c1633a;
  --rust-deep: #a34e2b;
  --gold: #d9a24b;
  --sage: #7a8b6f;
  --line: #e4d9c5;
  --white: #fffdf9;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rust-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.2em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-deep);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--rust);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 32px;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-portrait {
  aspect-ratio: 4 / 5;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  overflow: hidden;
}

.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }

.hero .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--rust);
  color: var(--white);
}
.btn-primary:hover { background: var(--rust-deep); text-decoration: none; }

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--white); text-decoration: none; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Sections ---------- */

section { padding: 70px 0; }
.section-tight { padding: 40px 0; }

.section-alt {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header { max-width: 640px; margin-bottom: 44px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px;
}

.stat {
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--rust-deep);
  display: block;
}
.stat .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Book list (text-only) ---------- */

.book-list-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.book-list-item:first-child { padding-top: 0; }
.book-list-item:last-child { border-bottom: none; }
.book-list-item h3 { margin-bottom: 4px; }
.book-list-item p:last-of-type { margin-bottom: 0; }

/* ---------- Book cards ---------- */

.book-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  align-items: start;
}
@media (max-width: 600px) {
  .book-card { grid-template-columns: 1fr; }
}
.book-cover {
  aspect-ratio: 2 / 3;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
  overflow: hidden;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Video grid (Watch page) ---------- */

.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.video-thumb {
  aspect-ratio: 16 / 9;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  position: relative;
}
.video-thumb iframe { width: 100%; height: 100%; border: 0; }
.video-card .video-body { padding: 18px 20px; }
.video-card h3 { font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- Forms ---------- */

.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--rust);
}
.form-field textarea { min-height: 130px; resize: vertical; }

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  display: none;
}
.form-status.success { color: var(--sage); display: block; }
.form-status.error { color: var(--rust-deep); display: block; }

.contact-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.contact-tab {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.contact-tab.active {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
}
.contact-panel { display: none; }
.contact-panel.active { display: block; }

/* ---------- Pull quote ---------- */

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--ink);
  border-left: 3px solid var(--rust);
  padding-left: 28px;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}
.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 14px;
}
.testimonial-card cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-socials {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-socials a { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.footer-fine { color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero p.lede { font-size: 1.1rem; max-width: 60ch; }

/* ---------- Photo galleries ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.photo-grid a {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.photo-grid a:hover img { transform: scale(1.04); }

@media (max-width: 760px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.speaking-track {
  margin-bottom: 64px;
}
.speaking-track .track-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.speaking-track .track-header p {
  margin: 0;
  max-width: 52ch;
}

/* ---------- Speaking topics ---------- */

.topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.topic-list li {
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.topic-list .num {
  font-family: var(--font-display);
  color: var(--rust);
  font-size: 1.1rem;
}
