:root {
  --blue: #1e73be;
  --text: #626262;
  --heading: #1a1a1a;
  --header: #f7f7f7;
  --line: #e5e5e5;
  --footer: #3a3a3a;
  --max: 1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--heading); font-weight: 700; }

.site-header {
  background: var(--header);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { display: block; height: 28px; width: auto; }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li { display: flex; align-items: center; }
.nav li:not(:last-child)::after {
  content: "|";
  color: #c8c8c8;
  margin: 0 14px;
  font-size: 11px;
}
.nav a {
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11px;
  font-weight: 400;
  text-decoration: none;
}
.nav a:hover,
.nav a.is-active { color: var(--blue); text-decoration: none; }

body.home { background: #02040c; }
body.home .site-header {
  background: transparent;
  border: 0;
  position: absolute;
  left: 0; right: 0; top: 0;
}
body.home .nav a { color: #fff !important; }
body.home .nav a:hover,
body.home .nav a.is-active { color: #fff !important; opacity: 0.85; }
body.home .nav li:not(:last-child)::after { color: rgba(255,255,255,.45); }

.hero {
  min-height: 100vh;
  background: #02040c url("/img/norman_pidgeon_v7-copy.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 110px 24px 60px;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: 48px;
  align-items: center;
}
.hero-book img {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
}
.hero-copy {
  color: #fff;
}
.hero-blurb {
  background: rgba(8, 10, 18, 0.72);
  padding: 22px 24px 18px;
  font-size: 15px;
  line-height: 1.55;
  max-width: 560px;
}
.hero-blurb p { margin: 0 0 14px; }
.read-more {
  display: inline-block;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  float: right;
}
.read-more:hover { text-decoration: underline; color: #fff; }
.hero-buy {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.buy-booktopia {
  background: #111;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  text-decoration: none;
  min-height: 64px;
}
.buy-booktopia img { height: 42px; width: auto; display: block; }
.buy-booktopia span {
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
}
.buy-amazon img,
.buy-kindle img { display: block; height: 52px; width: auto; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 50px 24px 70px;
  width: 100%;
}
.split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px 48px;
  align-items: start;
}
.kicker {
  margin: 0;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--heading);
}
.portrait {
  display: block;
  margin: 18px auto 0;
  max-width: 260px;
}
.band {
  background: #f5f5f5;
  padding: 50px 0;
}
.band .split { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.amazon-embed {
  text-align: center;
  padding: 40px 24px 70px;
}

.book-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.book-gallery { position: relative; text-align: center; }
.book-gallery img {
  display: none;
  margin: 0 auto;
  max-height: 460px;
  width: auto;
}
.book-gallery img.is-on { display: block; }
.gallery-nav {
  position: absolute;
  top: 40%;
  left: -8px;
  right: -8px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.gallery-nav button {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #bbb;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.book-copy h1 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}
.book-copy p { margin: 0 0 14px; }
.book-buy {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.quotes { margin-top: 36px; min-height: 140px; }
.quote { display: none; text-align: center; color: #b9b9b9; font-style: italic; font-size: 14px; }
.quote.is-on { display: block; }
.quote cite {
  display: block;
  margin-top: 12px;
  font-style: italic;
  color: #9a9a9a;
  font-size: 13px;
}
.quote-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.quote-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 0; background: #ccc; padding: 0; cursor: pointer;
}
.quote-dots button.is-on { background: #333; }

.blog-list { max-width: 760px; margin: 0 auto; }
.blog-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { text-decoration: none; }
.blog-card img { width: 100%; display: block; }
.blog-date { font-size: 13px; color: #999; margin: 0 0 8px; }
.blog-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
}
.blog-card p { margin: 0; }
.post { max-width: 760px; margin: 0 auto; }
.post h1 { font-size: 28px; font-weight: 500; margin: 0 0 8px; }
.post-date { color: #999; font-size: 13px; margin-bottom: 22px; }
.post img.lead { display: block; margin: 0 auto 24px; max-width: 420px; }

.contact-box { max-width: 520px; margin: 40px auto 20px; }
.social {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
}
.social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; text-decoration: none;
}
.social .fa-amazon { background: #ff9900; }
.social .fa-linkedin-square { background: #0077b5; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 14px;
  color: #444;
  margin-bottom: 4px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  padding: 8px 10px;
  font: inherit;
  color: #333;
  background: #fff;
}
.form-row textarea { min-height: 160px; resize: vertical; }
.hp { display: none; }
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: #1761a3; color: #fff; text-decoration: none; }
.notice {
  max-width: 520px;
  margin: 0 auto 16px;
  padding: 12px 14px;
  background: #eef7ee;
  color: #246b24;
}
.notice.err { background: #fdeeee; color: #a33; }

.site-footer {
  background: var(--footer);
  min-height: 70px;
  margin-top: auto;
}

@media (max-width: 860px) {
  .hero-inner, .split, .book-layout, .blog-card {
    grid-template-columns: 1fr;
  }
  .header-inner { flex-direction: column; }
  .hero { padding-top: 130px; }
  .nav li:not(:last-child)::after { margin: 0 8px; }
}
