/* ============================================================
   Nubian Images Publishing — modern stylesheet
   Palette drawn from the original 2006 brand:
   burgundy #8A1C35 · crimson #A71E38 · khaki #ACA475 · blue #93AEDB
   ============================================================ */

:root {
  --burgundy: #8a1c35;
  --burgundy-dark: #6d1529;
  --burgundy-deep: #47101f;
  --crimson: #a71e38;
  --tan: #aca475;
  --tan-dark: #857c4f;
  --tan-light: #e9e4cf;
  --gold: #b98a2e;
  --blue: #93aedb;
  --blue-dark: #56719f;
  --cream: #faf7f1;
  --paper: #fffdf9;
  --ink: #2b2420;
  --ink-soft: #6a5f57;
  --line: #e9e0d2;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(43, 36, 32, 0.09);
  --shadow-sm: 0 4px 14px rgba(43, 36, 32, 0.07);
  --maxw: 1080px;
  --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--burgundy); text-underline-offset: 2px; }
a:hover { color: var(--crimson); }

:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 2px;
  border-radius: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--burgundy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.brand { display: inline-flex; align-items: center; }
.brand img { width: 200px; height: 99px; object-fit: contain; }

.header-contact {
  text-align: right;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.header-contact p { margin: 0; }
.header-contact strong { color: var(--ink); font-weight: 600; }

/* ---------------- Primary nav ---------------- */

.site-nav {
  background: var(--burgundy);
}

.nav-inner { position: relative; }

.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-sm);
  font: 600 15px var(--font-body);
  padding: 9px 16px;
  margin: 10px 0;
  cursor: pointer;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-list a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;
  letter-spacing: 0.01em;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: #fff;
  background: var(--burgundy-dark);
  box-shadow: inset 0 -3px 0 var(--tan);
}

/* ---------------- Breadcrumbs ---------------- */

.breadcrumbs { padding-top: 18px; }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.breadcrumbs li + li::before { content: "\203A"; margin-right: 8px; color: var(--tan-dark); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--burgundy); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------------- Main & sections ---------------- */

main { padding-bottom: 30px; }

.page-head {
  padding: 34px 0 8px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: #f4e6e9;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 0.55em;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }

.page-head h1 { margin-bottom: 0.3em; }
.page-head .lede {
  max-width: 46em;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.rule {
  width: 64px;
  height: 4px;
  background: var(--tan);
  border: 0;
  border-radius: 4px;
  margin: 18px auto 26px;
}

.section { padding: 42px 0 10px; }
.section-tight { padding: 26px 0 6px; }

.section-head { text-align: center; margin-bottom: 30px; }
.section-head p { color: var(--ink-soft); max-width: 44em; margin: 0 auto; }

/* ---------------- Cards & grids ---------------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid .card { display: flex; flex-direction: column; }
.grid .card p:last-child { margin-bottom: 0; }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: var(--tan-light);
  border-radius: 999px;
  padding: 4px 12px;
}

.badge-award {
  background: #f6efdd;
  color: var(--gold);
  border: 1px solid #e7d9b4;
}

/* ---------------- Hero (home) ---------------- */

.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
  padding: 52px 0 30px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 44px;
  align-items: center;
}

.hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 0.4em; }
.hero .tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--burgundy);
  margin: 0 0 1em;
}
.hero p.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 34em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

/* Book cover feature card */

.cover-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 22px;
  text-align: center;
  max-width: 330px;
  margin: 0 auto;
}

.cover-card img {
  border-radius: 6px;
  box-shadow: 0 14px 28px rgba(43, 36, 32, 0.18);
  margin: 6px auto 16px;
  display: block;
}

.cover-card .cover-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  margin: 0 0 4px;
  color: var(--burgundy);
}
.cover-card .cover-meta { font-size: 14px; color: var(--ink-soft); margin: 0 0 4px; }

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

.btn {
  display: inline-block;
  font: 600 16px var(--font-body);
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary { background: var(--burgundy); color: #fff; }
.btn-primary:hover { background: var(--burgundy-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-outline:hover { background: var(--burgundy); color: #fff; }

.btn-small { font-size: 14px; padding: 9px 20px; }

/* PayPal buy form */

.buy-form { margin: 0; }
.buy-form .btn { width: 100%; max-width: 320px; }
.buy-form .btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffc439;
  border-color: #f0b429;
  color: #243b67;
  font-weight: 700;
}
.buy-form .btn-buy:hover { background: #f5b52a; color: #243b67; }
.buy-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; }

/* ---------------- Awards ---------------- */

.award-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.award-card { text-align: center; }
.award-card .award-year {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--tan-dark);
  display: block;
  margin-bottom: 6px;
}
.award-card h3 { margin-bottom: 6px; }
.award-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------------- Testimonials ---------------- */

.quote-card blockquote {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 1.04rem;
  font-style: italic;
  color: var(--ink);
}
.quote-card cite {
  font-style: normal;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}

.quote-band {
  background: var(--burgundy);
  color: #f6e7ea;
  border-radius: var(--radius);
  padding: 40px 44px;
  text-align: center;
}
.quote-band blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.5;
}
.quote-band cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tan-light);
}

/* ---------------- Book / split layouts ---------------- */

.split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 38px;
  align-items: start;
}

.split .split-media img { border-radius: var(--radius-sm); box-shadow: var(--shadow); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 18px 0;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th { color: var(--ink-soft); font-weight: 600; width: 38%; }
.spec-table td { font-weight: 600; color: var(--ink); }

/* ---------------- Photo gallery ---------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-grid figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-grid img { width: 100%; display: block; }

.gallery-grid figcaption {
  padding: 13px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.gallery-grid figcaption strong { color: var(--ink); }

/* ---------------- Author bios ---------------- */

.bio-grid {
  column-count: 2;
  column-gap: 26px;
}

.bio {
  break-inside: avoid;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0 0 16px;
}
.bio h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--burgundy);
}
.bio p { margin: 0; font-size: 15px; color: var(--ink); }

/* ---------------- FAQ ---------------- */

.faq-list { max-width: 46em; margin: 0 auto; }

.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 12px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 1.05rem;
  padding: 15px 20px;
  list-style-position: inside;
}
.faq-list summary::marker { color: var(--burgundy); }
.faq-list details[open] summary { color: var(--burgundy); border-bottom: 1px solid var(--line); }
.faq-list .faq-body { padding: 14px 20px 18px; color: var(--ink-soft); }
.faq-list .faq-body p { margin: 0 0 10px; }
.faq-list .faq-body p:last-child { margin: 0; }

/* ---------------- Events list ---------------- */

.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px dashed var(--line);
}
.event-list time {
  font-weight: 700;
  color: var(--burgundy);
  white-space: nowrap;
  min-width: 168px;
}

/* ---------------- Links page ---------------- */

.resource { display: flex; gap: 18px; align-items: flex-start; }
.resource img { flex-shrink: 0; border-radius: 6px; background: #fff; padding: 6px; border: 1px solid var(--line); }

/* ---------------- Contact ---------------- */

.contact-card h3 { color: var(--burgundy); }
.contact-card p { margin: 0 0 4px; }
.contact-card .label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 2px;
}

/* ---------------- Explore cards (home) ---------------- */

.explore-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.explore-card:hover { border-color: var(--tan); box-shadow: var(--shadow); }
.explore-card h3 { color: var(--burgundy); margin-bottom: 4px; }
.explore-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------------- CTA band ---------------- */

.cta-band {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  padding: 44px 30px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #f2dfe4; max-width: 38em; margin: 0 auto 22px; }
.cta-band .btn { background: #fff; color: var(--burgundy); }
.cta-band .btn:hover { background: var(--tan-light); color: var(--burgundy-deep); }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

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

.site-footer {
  background: var(--burgundy-deep);
  color: #e8d3d9;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0 30px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.site-footer p, .site-footer li { font-size: 14.5px; line-height: 1.7; }
.site-footer a { color: #eec9d3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer p { margin: 0 0 8px; }

.footer-tagline {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--tan-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0 22px;
  text-align: center;
  font-size: 13px;
  color: #cfa9b4;
}
.footer-bottom p { margin: 0 0 4px; }

/* ---------------- Utility ---------------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 22px; }
.mt-3 { margin-top: 34px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 22px; }
.text-soft { color: var(--ink-soft); }
.small { font-size: 14px; }
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.pill-nav a {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--burgundy);
}
.pill-nav a:hover { border-color: var(--burgundy); }

.notice {
  background: #fdf6e8;
  border: 1px solid #ecdfc0;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14.5px;
  color: #6a5527;
}

/* ---------------- Book cover viewer page ---------------- */

.viewer {
  max-width: 620px;
  margin: 40px auto 0;
  text-align: center;
}
.viewer img {
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(43, 36, 32, 0.2);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .split { grid-template-columns: 1fr; }
  .split .split-media { max-width: 360px; margin: 0 auto; }
  .award-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bio-grid { column-count: 1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand img { width: 168px; height: 84px; }
  .header-contact { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-list { display: none; flex-direction: column; padding-bottom: 10px; }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 11px 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-list a:hover, .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--tan); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .quote-band { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .event-list li { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-nav, .breadcrumbs, .site-footer, .buy-form { display: none; }
  body { background: #fff; }
}