/*
Theme Name: Zack Mukewa
Theme URI: https://zackmukewa.com
Author: Zack Mukewa
Description: Personal author and executive site for Zack Mukewa. Bio, books, and writing.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: zackmukewa
*/

:root {
  --royal: #1a3fa0;
  --royal-deep: #0f2657;
  --royal-light: #eef2fb;
  --orange: #d9622a;
  --orange-light: #ea8148;
  --orange-deep: #a83d15;
  --orange-muted: #c2551f;
  --white: #ffffff;
  --paper: #ffffff;
  --ink: #16202c;
  --gray: #5b6470;
  --border: #e2e6ee;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max: 1100px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 18px;
}

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

a { color: var(--royal-deep); text-decoration: none; }
a:hover { color: var(--orange-muted); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--royal-deep);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1.2em; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-deep);
  margin-bottom: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--orange);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--royal-deep);
  letter-spacing: 0.01em;
}

.site-title a { color: var(--royal-deep); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after { transform: scaleX(1); }

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--orange-muted);
}

.nav-toggle { display: none; }

/* Hero */
.hero {
  background: var(--royal-deep);
  color: var(--white);
  overflow: hidden;
}

.hero .wrap {
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.hero-copy {
  padding: 100px 50px 100px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  min-height: 480px;
}

.hero-photo-frame img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero .eyebrow { color: var(--orange-light); font-size: 0.8rem; letter-spacing: 0.18em; }
.hero .eyebrow::before { background: var(--orange-light); }

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  border-left: 4px solid var(--orange);
  padding-left: 28px;
  margin-bottom: 0.6em;
}

.hero p.lede {
  font-size: 1.2rem;
  color: #dbe2ea;
  line-height: 1.65;
  padding-left: 32px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-accent {
  background: var(--orange);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--orange-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(217,98,42,0.25);
}

.btn-outline {
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--orange-light); color: var(--orange-light); }

.btn-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; padding-left: 32px; }

/* Sections */
section { padding: 96px 0; }
section.alt { background: var(--royal-light); }

.section-head { max-width: 680px; margin-bottom: 54px; }
.section-head p { color: var(--gray); font-size: 1.08rem; }

/* Pillars / three-up grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

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

.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--gray); margin-bottom: 0; font-size: 0.96rem; }

/* Practice areas, richer numbered list */
.practice-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}

.practice-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 30px 0;
  border-top: 1px solid rgba(15,38,87,0.12);
  transition: padding-left 0.15s ease;
}

.practice-item:hover { padding-left: 6px; }

.practice-item:nth-child(1),
.practice-item:nth-child(2) { border-top: none; }

.practice-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--orange);
  font-weight: 700;
  line-height: 1;
}

.practice-item h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.practice-item p { color: var(--gray); margin: 0; font-size: 1rem; }

/* Homepage book teasers, deliberately small since the Books page carries the detail */
.book-teaser-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.book-teaser {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: center;
  color: var(--ink);
}

.book-teaser img {
  width: 60px;
  border-radius: 3px;
  box-shadow: 0 8px 18px rgba(15,38,87,0.22);
}

.book-teaser h3 { font-size: 1rem; margin-bottom: 2px; }
.book-teaser .desc { font-size: 0.85rem; color: var(--gray); margin: 0; }
.book-teaser:hover h3 { color: var(--orange-muted); }

@media (max-width: 700px) {
  .book-teaser-row { grid-template-columns: 1fr; }
}

/* Books */
.book-feature {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.book-feature:first-of-type { border-top: none; padding-top: 20px; }

.book-feature-cover img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 26px 54px rgba(15,38,87,0.28);
}

.book-specs {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  font-size: 0.8rem;
}

.book-specs div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.book-specs div:last-child { border-bottom: none; }

.book-specs span {
  color: var(--gray);
  font-weight: 500;
}

.theme-list {
  margin: 0;
  padding-left: 20px;
  color: var(--gray);
  font-size: 0.98rem;
}

.theme-list li { margin-bottom: 6px; }

.book-feature-body h2 { margin-bottom: 0.3em; }

.book-meta {
  font-size: 0.86rem;
  color: var(--gray);
  margin-bottom: 18px;
}

.book-formats {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.book-formats span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--royal-deep);
  background: var(--royal-light);
  padding: 6px 12px;
  border-radius: 3px;
}

.book-praise {
  font-family: var(--serif);
  font-style: italic;
  color: var(--royal-deep);
  border-left: 3px solid var(--orange);
  padding-left: 20px;
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0 0 28px;
}

.book-praise span {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 8px;
}

.book-detail { margin-bottom: 20px; }

.book-detail h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 6px;
}

.book-detail p { color: var(--gray); font-size: 0.98rem; margin: 0; }

.retailer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.retailer-links a {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--royal-deep);
}

.retailer-links a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: #fbf6ec;
}

/* Writing / essays list */
.essay-list { list-style: none; margin: 0; padding: 0; }

.essay-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: baseline;
}

.essay-item:first-child { padding-top: 0; }

.essay-item h3 { margin-bottom: 6px; font-size: 1.15rem; }
.essay-item .essay-excerpt { color: var(--gray); font-size: 0.94rem; margin: 0; }
.essay-item .essay-date { color: var(--gray); font-size: 0.82rem; white-space: nowrap; }

.essay-source-note {
  margin-top: 30px;
  font-size: 0.85rem;
  color: var(--gray);
}

/* About page */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.about-hero .about-photo img {
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(15,38,87,0.3);
  transform: rotate(5deg);
  border: 8px solid var(--white);
  outline: 1px solid var(--border);
}

.about-photo {
  position: relative;
  padding-top: 16px;
}

.about-photo::before {
  content: '';
  position: absolute;
  top: 0; right: 14px;
  width: 72%; height: 72%;
  background: var(--royal-light);
  border-radius: 6px;
  transform: rotate(-5deg);
  z-index: 0;
}

.about-photo img { position: relative; z-index: 1; }

.about-body h2 { margin-top: 1.4em; }

.about-lede {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--royal-deep);
  border-left: 3px solid var(--orange);
  padding-left: 20px;
  margin: 24px 0 26px;
  line-height: 1.5;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-block h3 { margin-bottom: 0.3em; }
.contact-block p { color: var(--gray); margin-bottom: 1.6em; }
.contact-block a.email { font-weight: 600; color: var(--orange-deep); font-size: 1.05rem; }
.contact-block a.email:hover { color: var(--orange); }

/* Shared decorative page head used on Writing and Contact */
.writing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 36px;
}

.writing-intro {
  max-width: 58ch;
  color: var(--gray);
  font-size: 1.08rem;
  margin-top: 14px;
}

.writing-mark {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  opacity: 0.9;
}

@media (max-width: 700px) {
  .writing-head { flex-direction: column-reverse; }
  .writing-mark { width: 64px; height: 64px; }
}

/* Footer */
.site-footer {
  background: var(--royal-deep);
  color: #b7c1cf;
  padding: 50px 0 34px;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a { color: #dbe2ea; }
.site-footer a:hover { color: var(--orange-muted); }

.footer-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-note { font-size: 0.82rem; color: #8b96a5; }

/* Generic page content (About/Contact editor content) */
.entry-content h2 { margin-top: 1.4em; }
.entry-content ul { padding-left: 1.2em; }

/* Responsive */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 240px; }
  .grid-3 { grid-template-columns: 1fr; }
  .practice-list { grid-template-columns: 1fr; }
  .practice-item:nth-child(2) { border-top: 1px solid rgba(15,38,87,0.12); }
  .book-feature { grid-template-columns: 1fr; gap: 24px; }
  .book-feature-cover { max-width: 220px; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero { display: flex; flex-direction: column-reverse; }
  .about-hero .about-photo img { max-width: 220px; }
  .contact-grid { grid-template-columns: 1fr; }
  .main-nav ul { gap: 20px; flex-wrap: wrap; }
  .essay-item { flex-direction: column; gap: 6px; }
}
