/* ==========================================================================
   leomohan.net — single site stylesheet
   Lion palette
   ========================================================================== */

:root {
  --ivory: #FBF5E8;      /* underbelly — page background */
  --savanna: #EDE0C4;    /* warm sand — alternate sections */
  --mane: #3D1F05;       /* deep mane — headings/nav/footer */
  --amber: #C8860A;      /* body fur — primary gold accent */
  --tawny: #D4973E;      /* mid fur — hover/highlight */
  --fur-pale: #F5E3B0;   /* pale fur glow — backgrounds */
  --muzzle: #FAF6EE;     /* white surfaces/cards */

  --font-head: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow: 0 2px 10px rgba(61, 31, 5, 0.10);
  --shadow-lift: 0 8px 22px rgba(61, 31, 5, 0.16);
  --radius: 10px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--mane);
  background: var(--ivory);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--mane);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.h4 { font-size: 1.35rem; }
.h5 { font-size: 1.2rem; }
.h6 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

a { color: var(--amber); text-decoration: none; }
a:hover, a:focus { color: var(--tawny); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--tawny); outline-offset: 2px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.lead { font-size: 1.12rem; }

/* ---------- header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--muzzle);
  border-bottom: 3px solid var(--amber);
  box-shadow: var(--shadow);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 64px;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--mane);
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--amber); text-decoration: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li > a {
  display: block;
  padding: 1.1rem 0.85rem;
  color: var(--mane);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-menu > li > a:hover,
.nav-menu > li > a:focus {
  color: var(--amber);
  text-decoration: none;
}

.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: " \25BE";
  font-size: 0.75em;
  color: var(--amber);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 205px;
  background: var(--muzzle);
  border: 1px solid var(--fur-pale);
  border-top: 3px solid var(--amber);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lift);
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.45rem 1.1rem;
  color: var(--mane);
  font-size: 0.95rem;
}
.dropdown a:hover,
.dropdown a:focus,
.dropdown a[aria-current="page"] {
  background: var(--fur-pale);
  color: var(--mane);
  text-decoration: none;
}

/* hamburger (mobile) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.6rem;
}
.nav-toggle-label span {
  width: 26px;
  height: 3px;
  background: var(--mane);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-toggle-label { display: flex; }

  .nav-bar nav {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-toggle:checked ~ nav { max-height: 100vh; overflow-y: auto; }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav-menu { flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
  .nav-menu > li > a { padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--fur-pale); }

  /* dropdowns become always-visible grouped lists on mobile */
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 1rem;
  }
}

/* ---------- hero & page hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--fur-pale) 0%, var(--ivory) 100%);
  padding: 3.5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 { margin-bottom: 0.5em; }
.hero-text h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin-top: 0.35em;
  background: var(--amber);
  border-radius: 2px;
}

.hero-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  max-width: 340px;
  margin: 0 auto;
}

.page-hero {
  background: var(--savanna);
  padding: 2.75rem 0 2.25rem;
  border-bottom: 3px solid var(--amber);
}
.page-hero h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin-top: 0.3em;
  background: var(--amber);
  border-radius: 2px;
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-img { order: -1; }
  .hero-img img { max-width: 240px; }
}

/* ---------- sections ---------- */
.section { padding: 3.25rem 0; }
.section--alt { background: var(--savanna); }

.section-title { text-align: center; }
.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin: 0.35em auto 0;
  background: var(--amber);
  border-radius: 2px;
}
.section-sub {
  text-align: center;
  font-size: 1.1rem;
  margin: -0.25rem 0 2rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--amber);
  color: var(--ivory);
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid var(--amber);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover, .btn:focus {
  background: var(--tawny);
  border-color: var(--tawny);
  color: var(--mane);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--mane);
  border-color: var(--mane);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--mane);
  color: var(--ivory);
  border-color: var(--mane);
}

.btn-small { padding: 0.4rem 1.1rem; font-size: 0.92rem; }

.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- book grid (category pages) ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1.25rem;
}

.book-card {
  display: block;
  background: var(--muzzle);
  border: 1px solid var(--fur-pale);
  border-radius: var(--radius);
  padding: 0.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.book-card:hover, .book-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--tawny);
}
.book-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.book-card figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--mane);
  padding: 0.5rem 0.2rem 0.15rem;
}

/* ---------- feature cards (podcasts, youtube, releases) ---------- */
.feature-grid {
  display: grid;
  gap: 1.5rem;
}
.feature-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.feature-card {
  background: var(--muzzle);
  border: 1px solid var(--fur-pale);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature-card > a img { width: 100%; }
.feature-body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.feature-body .btn-small { align-self: flex-start; margin-top: auto; }
.feature-body p { margin: 0; font-size: 0.95rem; }

/* ---------- best sellers ---------- */
.seller-list { display: grid; gap: 1.75rem; }

.seller-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  background: var(--muzzle);
  border: 1px solid var(--fur-pale);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.seller-card img { border-radius: 6px; box-shadow: var(--shadow); }
.seller-body .btn { margin-top: 0.25rem; }

@media (max-width: 700px) {
  .seller-card { grid-template-columns: 1fr; }
  .seller-card img { max-width: 200px; margin: 0 auto; }
}

/* ---------- category hub cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.cat-card {
  display: block;
  background: var(--muzzle);
  border: 1px solid var(--fur-pale);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  color: var(--mane);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-card:hover, .cat-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
  color: var(--mane);
}
.cat-card p { font-size: 0.95rem; margin-bottom: 0.9rem; }

/* ---------- chips ---------- */
.chip {
  display: inline-block;
  background: var(--fur-pale);
  color: var(--mane);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

/* ---------- prose (about page) ---------- */
.prose { max-width: 820px; }
.prose h3 { margin-top: 1.8em; }

/* ---------- testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  margin: 0;
  background: var(--muzzle);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  font-style: italic;
}
.testimonial footer {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-style: normal;
  margin-top: 1rem;
}

.avatar { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; border: 2px solid var(--amber); }
.avatar-lg { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; border: 3px solid var(--amber); margin: 0 auto 0.9rem; }

/* ---------- mentors ---------- */
.mentor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.mentor-card {
  background: var(--muzzle);
  border: 1px solid var(--fur-pale);
  border-radius: var(--radius);
  padding: 1.5rem 1.1rem;
  box-shadow: var(--shadow);
}
.mentor-card p { font-size: 0.92rem; }

/* ---------- article lists ---------- */
.article-highlight {
  background: var(--fur-pale);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.article-highlight p { margin: 0; }

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
}
.article-list li {
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--savanna);
}
.article-list a { font-weight: 600; color: var(--mane); }
.article-list a:hover { color: var(--amber); }

/* ---------- book list (syngress) ---------- */
.book-list { max-width: 820px; padding-left: 1.4rem; }
.book-list li { padding: 0.5rem 0; }
.isbn { color: var(--amber); font-size: 0.9rem; white-space: nowrap; }

/* ---------- photo gallery ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.photo-cell {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--muzzle);
}
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- embeds ---------- */
.embed-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--mane);
}
.embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed-tall { aspect-ratio: 4 / 3; }

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}
.contact-grid .section-title { text-align: left; }
.contact-grid .section-title::after { margin-left: 0; }
.contact-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  max-width: 320px;
  margin: 0 auto;
}

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

/* ---------- footer ---------- */
.site-footer {
  background: var(--mane);
  color: var(--ivory);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
  border-top: 4px solid var(--amber);
  text-align: center;
}

.footer-links {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}
.footer-links a { color: var(--fur-pale); font-weight: 600; }
.footer-links a:hover { color: var(--tawny); }

.social-row {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}
.social-row a { color: var(--fur-pale); }
.social-row a:hover { color: var(--tawny); }

.copyright { margin: 0; color: var(--savanna); font-size: 0.92rem; }

/* ---------- book detail pages ---------- */
.book-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.book-detail-cover img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--fur-pale);
}
.book-detail-body .btn { margin-top: 0.5rem; }
.date {
  color: var(--amber);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

@media (max-width: 760px) {
  .book-detail { grid-template-columns: 1fr; }
  .book-detail-cover img { max-width: 260px; margin: 0 auto; }
}

/* ---------- press / news ---------- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.press-card {
  background: var(--muzzle);
  border: 1px solid var(--fur-pale);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.press-card img { width: 100%; }
.press-card figcaption { padding: 0.9rem 1.1rem; font-weight: 600; }

.pdf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
}
.pdf-list li {
  padding: 0.85rem 0.25rem 0.85rem 2rem;
  border-bottom: 1px solid var(--savanna);
  position: relative;
}
.pdf-list li::before {
  content: "\1F4C4";
  position: absolute;
  left: 0.25rem;
}
.pdf-list a { font-weight: 600; color: var(--mane); }
.pdf-list a:hover { color: var(--amber); }

/* ---------- subscribe box ---------- */
.subscribe {
  background: var(--fur-pale);
  border: 1px solid var(--tawny);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.subscribe-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.subscribe-form input[type="email"] {
  flex: 1 1 260px;
  padding: 0.65rem 1rem;
  font: inherit;
  color: var(--mane);
  background: var(--muzzle);
  border: 2px solid var(--tawny);
  border-radius: 999px;
}
.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--amber);
}
.subscribe-form button {
  font: inherit;
  cursor: pointer;
}
.subscribe .fine-print { font-size: 0.85rem; margin: 0.8rem 0 0; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
