/* ==========================================================================
   DicksonKeanaghan.com — "Heritage Press" design system
   Palette: deep navy / antique gold / ivory paper
   Type: Playfair Display (display serif) + Lato (body)
   Motif: gold shield colophon, thin gold rules, small-caps kickers
   ========================================================================== */

:root {
  --navy-deep: #0f2340;
  --navy:      #1b3a5f;
  --navy-soft: #2c4d75;
  --gold:      #b08d3e;
  --gold-soft: #d3b878;
  --gold-pale: #f0e6cf;
  --ivory:     #faf7f0;
  --cream:     #f1ead9;
  --ink:       #23262b;
  --ink-soft:  #55606c;
  --line:      #e2dbc9;
  --white:     #ffffff;
  --shadow:    0 2px 14px rgba(15, 35, 64, 0.10);
  --shadow-lg: 0 10px 32px rgba(15, 35, 64, 0.18);
  --radius:    6px;
  --serif:     "Playfair Display", Georgia, serif;
  --sans:      "Lato", "Segoe UI", Helvetica, Arial, sans-serif;
  --maxw:      1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-deep); line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; margin-bottom: 0.8rem; }
h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }

.kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.lead { font-size: 1.28rem; line-height: 1.6; color: var(--ink-soft); }

.gold-rule {
  width: 72px; height: 3px; background: var(--gold);
  border: none; margin: 1.4rem 0;
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

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

.site-header {
  background: var(--navy-deep);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem; gap: 1rem; flex-wrap: wrap;
}
.brand a { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-name {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.02em;
}
.brand .brand-tag {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-soft);
}

.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.06em;
  color: var(--ivory); padding: 0.25rem 0;
  border-bottom: 2px solid transparent; text-transform: uppercase;
}
.site-nav a:hover { color: var(--gold-soft); }
.site-nav a.active { color: var(--gold-soft); border-bottom-color: var(--gold); }
.site-nav .nav-cta {
  background: var(--gold); color: var(--navy-deep);
  padding: 0.5rem 1.2rem; border-radius: 3px; border-bottom: none;
}
.site-nav .nav-cta:hover { background: var(--gold-soft); color: var(--navy-deep); }

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

.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--ivory);
  padding: 5rem 0 4.5rem;
  text-align: center;
}
.hero .kicker { color: var(--gold-soft); }
.hero h1 { color: var(--white); max-width: 18em; margin: 0 auto; }
.hero .lead { color: #c8d4e4; max-width: 38em; margin: 1.3rem auto 0; }
.hero .colophon { width: 88px; margin: 0 auto 1.6rem; }

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }

.btn {
  display: inline-block; font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.85rem 1.9rem; border-radius: 3px;
  transition: all 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-deep); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold-soft); background: transparent; }
.btn-outline:hover { background: rgba(176, 141, 62, 0.15); color: var(--gold-soft); }
.btn-navy { background: var(--navy-deep); color: var(--white); }
.btn-navy:hover { background: var(--navy); color: var(--white); }

/* ---------- Stats band ---------- */

.stats-band { background: var(--gold-pale); border-bottom: 1px solid var(--line); }
.stats-band .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem; padding-top: 2.2rem; padding-bottom: 2.2rem; text-align: center;
}
.stat .stat-num {
  font-family: var(--serif); font-size: 2.3rem; font-weight: 700; color: var(--navy-deep);
  line-height: 1.1;
}
.stat .stat-label {
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}

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

.section { padding: 4rem 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy-deep); color: #c8d4e4; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .kicker { color: var(--gold-soft); }
.section-navy a { color: var(--gold-soft); }
.section-center { text-align: center; }
.section-center .lead, .section-center > .wrap > p { max-width: 44em; margin-left: auto; margin-right: auto; }

.prose { max-width: 46em; }
.prose p { margin-bottom: 1.15rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.7rem; }
.prose ul, .prose ol { margin: 0 0 1.15rem 1.5rem; }

/* Drop cap for story pages */
.dropcap::first-letter {
  font-family: var(--serif); font-size: 3.4em; font-weight: 700;
  float: left; line-height: 0.85; padding-right: 0.12em; color: var(--gold);
}

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

.book-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.8rem; margin-top: 2.2rem;
}
.book-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.book-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.book-cover {
  background: var(--navy-deep); display: flex; align-items: center; justify-content: center;
  min-height: 210px; padding: 1.4rem;
}
.book-cover img { max-height: 240px; width: auto; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.book-cover .cover-placeholder {
  font-family: var(--serif); color: var(--gold-soft); text-align: center;
  font-size: 1.15rem; line-height: 1.4; padding: 1rem;
  border: 1px solid rgba(211, 184, 120, 0.45);
}
.book-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex-grow: 1; }
.book-body h3 { font-size: 1.18rem; }
.book-body .book-series {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 0.3rem;
}
.book-body p { color: var(--ink-soft); font-size: 0.96rem; flex-grow: 1; margin-top: 0.4rem; }
.book-body .book-link { font-weight: 700; margin-top: 1rem; color: var(--navy); }
.book-body .book-link:hover { color: var(--gold); }

.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.2rem 0.65rem; border-radius: 2px; margin-bottom: 0.6rem;
  align-self: flex-start;
}
.badge-available { background: #e4efe2; color: #24571f; }
.badge-coming { background: var(--gold-pale); color: #7a5c17; }

/* ---------- Author features ---------- */

.author-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.5rem;
}
.author-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; text-align: center;
  display: flex; flex-direction: column;
}
.author-card img { width: 100%; max-height: 420px; object-fit: cover; object-position: top; }
.author-card .author-body { padding: 1.8rem 2rem 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.author-card h3 { font-size: 1.5rem; }
.author-card .author-role {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 0.7rem;
}
.author-card p { color: var(--ink-soft); flex-grow: 1; }
.author-card .btn { margin-top: 1.3rem; align-self: center; }

/* Author page hero */
.author-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center; }
.author-hero img {
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 5px solid var(--white);
}

/* ---------- Timeline (About) ---------- */

.timeline { list-style: none; margin-top: 2rem; position: relative; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--gold-soft);
}
.timeline li { position: relative; margin-bottom: 1.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: -2rem; top: 0.45em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--ivory);
}
.timeline .tl-year {
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--navy-deep);
  display: block;
}
.timeline p { color: var(--ink-soft); }

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

.contact-block {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow); max-width: 34em;
}
.contact-block p { margin-bottom: 0.9rem; }
.contact-block strong { color: var(--navy-deep); }

/* ---------- Colophon divider ---------- */

.colophon-divider { display: flex; align-items: center; gap: 1.2rem; margin: 3.5rem auto; max-width: 480px; }
.colophon-divider::before, .colophon-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--gold-soft);
}
.colophon-divider img { width: 44px; opacity: 0.9; }

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

.site-footer {
  background: var(--navy-deep); color: #9fb2c9;
  border-top: 3px solid var(--gold);
  padding: 3.2rem 0 2rem; margin-top: 4.5rem; font-size: 0.95rem;
}
.site-footer a { color: #cfdae8; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.2rem; }
.footer-grid h4 {
  color: var(--gold-soft); font-family: var(--sans); font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.9rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-colophon { width: 54px; margin-bottom: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(176, 141, 62, 0.3);
  padding-top: 1.4rem; text-align: center; font-size: 0.84rem;
}

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

@media (max-width: 860px) {
  .author-grid { grid-template-columns: 1fr; }
  .author-hero { grid-template-columns: 1fr; }
  .author-hero img { max-width: 320px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .site-header .wrap { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; flex-wrap: wrap; gap: 0.9rem; }
}
