/* =====================================================================
   NorthWind Analytics — northwindanalytics.com
   Brand: navy #0A1628 · cobalt #1E3A6F · gold #C9A84C · cream #F7F2E7
   Header accent: darker gold #9F8243 (on white pinned header)
   Type:  Playfair Display (serif) · IBM Plex Sans (UI/body)
   Author: Capt. Kurt J. Breitfeller
   ===================================================================== */

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

/* Anchor links jump instantly. scroll-padding-top clears the sticky header
   so the target heading is never hidden underneath it. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; scroll-padding-top: 110px; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1a1f2e;
  background: #F7F2E7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #1E3A6F;
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 58, 111, 0.25);
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover { color: #C9A84C; border-bottom-color: #C9A84C; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: #0A1628;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: 2.6rem; letter-spacing: -0.01em; }
h2 { font-size: 2rem; letter-spacing: -0.005em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ----------
   White pinned header with navy text and darker gold (#9F8243) accents.
   Everything else on the page is untouched. */
.site-header {
  background: #FFFFFF;
  color: #0A1628;
  border-bottom: 3px solid #9F8243;
  box-shadow: 0 2px 4px rgba(10, 22, 40, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #0A1628;
  border-bottom: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand:hover { color: #9F8243; border-bottom: none; }
.brand .compass { width: 66px; height: 66px; flex-shrink: 0; }
.brand-mark { display: flex; flex-direction: column; line-height: 1.0; }
.brand-mark .top { font-size: 1.58rem; }
.brand-mark .bottom {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.99rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9F8243;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #0A1628;
  border-bottom: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: #9F8243;
  border-bottom: 2px solid #9F8243;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #0A1628;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #FFFFFF;
    padding: 12px 24px 20px;
    gap: 12px;
    border-bottom: 3px solid #9F8243;
    box-shadow: 0 4px 8px rgba(10, 22, 40, 0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(30,58,111,0.88) 100%),
    radial-gradient(circle at 30% 20%, rgba(201,168,76,0.25), transparent 60%);
  background-color: #0A1628;
  color: #F7F2E7;
  padding: 88px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Inline links inside the navy hero. Without this they inherit the base
   cobalt #1E3A6F, which sits at ~1.4:1 against the hero background and is
   effectively invisible. Mirrors the existing section.dark treatment.
   :not(.btn) so hero button rows keep their own styling.
   Contrast: #C9A84C on #0A1628 = 7.93:1 (AAA). */
.hero a:not(.btn) {
  color: #C9A84C;
  border-bottom-color: rgba(201, 168, 76, 0.45);
}
.hero a:not(.btn):hover {
  color: #F7F2E7;
  border-bottom-color: #F7F2E7;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 80%, rgba(201,168,76,0.18), transparent 50%);
  pointer-events: none;
}

.hero h1 {
  color: #F7F2E7;
  font-size: 3rem;
  margin-bottom: 0.3em;
  position: relative;
}
.hero .tagline {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.3rem;
  color: #C9A84C;
  margin-bottom: 1.4em;
  position: relative;
}
.hero .lede {
  max-width: 660px;
  margin: 0 auto 2em;
  font-size: 1.1rem;
  color: rgba(247,242,231,0.9);
  position: relative;
}

.hero-rule {
  width: 80px;
  height: 2px;
  background: #C9A84C;
  margin: 0 auto 28px;
  border: none;
}

/* Compact hero for utility pages (Contact, etc.) where the full-height navy
   banner overpowers the content beneath it. Same treatment, less mass. */
.hero.hero-compact { padding: 40px 0 34px; }
.hero.hero-compact h1 { font-size: 2.15rem; margin-bottom: 0.2em; }
.hero.hero-compact .tagline { font-size: 1.08rem; margin-bottom: 0; }
.hero.hero-compact .hero-rule { margin-bottom: 18px; }

@media (max-width: 760px) {
  .hero.hero-compact { padding: 30px 0 26px; }
  .hero.hero-compact h1 { font-size: 1.65rem; }
  .hero.hero-compact .tagline { font-size: 0.98rem; }
}

@media (max-width: 760px) {
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 2.1rem; }
  .hero .tagline { font-size: 1.05rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.btn-primary {
  background: #C9A84C;
  color: #0A1628;
  border-color: #C9A84C;
}
.btn-primary:hover {
  background: #b69335;
  border-color: #b69335;
  color: #0A1628;
}
.btn-secondary {
  background: transparent;
  color: #F7F2E7;
  border-color: #F7F2E7;
}
.btn-secondary:hover {
  background: #F7F2E7;
  color: #0A1628;
}
.btn-ghost {
  background: transparent;
  color: #1E3A6F;
  border: 2px solid #1E3A6F;
}
.btn-ghost:hover {
  background: #1E3A6F;
  color: #F7F2E7;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.alt { background: #ffffff; }
section.dark {
  background: #0A1628;
  color: #F7F2E7;
}
section.dark h2, section.dark h3 { color: #F7F2E7; }
section.dark a { color: #C9A84C; border-bottom-color: rgba(201,168,76,0.4); }

/* Restore button text colors inside dark sections (override section.dark a) */
section.dark .btn-primary,
section.dark .btn-primary:hover {
  color: #0A1628;
  border-bottom-color: transparent;
}
section.dark .btn-secondary {
  color: #F7F2E7;
  border-bottom-color: transparent;
}
section.dark .btn-secondary:hover {
  color: #0A1628;
  border-bottom-color: transparent;
}
section.dark .btn-ghost {
  color: #1E3A6F;
  border-bottom-color: transparent;
}
section.dark .btn-ghost:hover {
  color: #F7F2E7;
  border-bottom-color: transparent;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 { margin-bottom: 8px; }
.section-head .eyebrow {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #C9A84C;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head .deck {
  max-width: 600px;
  margin: 0 auto;
  color: #4a5468;
}
section.dark .section-head .deck { color: rgba(247,242,231,0.78); }

/* ---------- Featured book block ---------- */
.featured-book {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 56px;
  align-items: center;
}
.featured-book .cover-wrap {
  position: relative;
}
.featured-book img.cover {
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(10,22,40,0.1),
    0 18px 40px -12px rgba(10,22,40,0.45),
    -6px 0 0 -3px rgba(201,168,76,0.4);
  transform: perspective(1200px) rotateY(-4deg);
  transition: transform 250ms ease;
}
.featured-book img.cover:hover { transform: perspective(1200px) rotateY(0); }

.featured-book .meta {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A84C;
  font-weight: 600;
  margin-bottom: 12px;
}
.featured-book h2 { font-size: 2.2rem; margin-bottom: 0.2em; }
.featured-book .subtitle {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #4a5468;
  margin-bottom: 1em;
}
.featured-book .blurb { font-size: 1.05rem; color: #2a3142; }

@media (max-width: 760px) {
  .featured-book { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .featured-book img.cover { max-width: 240px; margin: 0 auto; transform: none; }
  .featured-book h2 { font-size: 1.7rem; }
}

/* ---------- Buy grid (formats) ---------- */
.buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.format-card {
  background: #ffffff;
  border: 1px solid #e6dcc4;
  border-radius: 4px;
  padding: 28px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.format-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(10,22,40,0.25);
  border-color: #C9A84C;
}
.format-card .badge {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A84C;
  font-weight: 600;
  margin-bottom: 10px;
}
.format-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.format-card .price {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: #1E3A6F;
  font-weight: 700;
  margin: 8px 0;
}
.format-card .desc {
  color: #4a5468;
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 18px;
}
.format-card .btn {
  width: 100%;
  font-size: 0.85rem;
  padding: 12px 18px;
}
.format-card.featured {
  border-color: #C9A84C;
  border-width: 2px;
  position: relative;
}
.format-card.featured::after {
  content: "Premium";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #C9A84C;
  color: #0A1628;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 2px;
}

/* "Available Now" ribbon for live formats */
.format-card.available {
  border-color: #1E3A6F;
  border-width: 2px;
  position: relative;
}
.format-card.available::after {
  content: "Available Now";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #1E3A6F;
  color: #F7F2E7;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 2px;
}

/* Disabled "Coming Soon" placeholder for not-yet-live formats */
.btn-disabled {
  display: inline-block;
  width: 100%;
  padding: 12px 18px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 2px dashed #c2bca8;
  background: transparent;
  color: #8a8470;
  cursor: not-allowed;
  text-align: center;
}

/* ---------- Three-column features ---------- */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}
.feature .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: #C9A84C;
}
.feature h3 { color: #0A1628; }
section.dark .feature h3 { color: #F7F2E7; }
.feature p { color: #4a5468; }
section.dark .feature p { color: rgba(247,242,231,0.8); }

/* ---------- TOC list ---------- */
.toc {
  background: #fffdf6;
  border-left: 3px solid #C9A84C;
  padding: 28px 32px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}
.toc h3 {
  font-family: "Playfair Display", serif;
  color: #0A1628;
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.toc ol { margin: 0; padding-left: 22px; color: #2a3142; }
.toc ol li { margin-bottom: 6px; }
.toc .part {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #1E3A6F;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin: 18px 0 8px;
  list-style: none;
  margin-left: -22px;
}
.toc .part:first-child { margin-top: 0; }

/* ---------- Quote / pull ---------- */
.pullquote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #0A1628;
  text-align: center;
  max-width: 720px;
  margin: 48px auto;
  padding: 28px 24px;
  border-top: 1px solid #C9A84C;
  border-bottom: 1px solid #C9A84C;
  line-height: 1.4;
}
.pullquote cite {
  display: block;
  font-style: normal;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4a5468;
  margin-top: 14px;
}

/* ---------- Author / about ---------- */
.author-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
}
.author-block .avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E3A6F, #0A1628);
  border: 3px solid #C9A84C;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C9A84C;
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (max-width: 600px) {
  .author-block { grid-template-columns: 1fr; text-align: center; }
  .author-block .avatar { margin: 0 auto; }
}

/* ---------- Contact ---------- */
.contact-card {
  background: #ffffff;
  border: 1px solid #e6dcc4;
  border-left: 4px solid #C9A84C;
  padding: 32px 36px;
  border-radius: 0 4px 4px 0;
  max-width: 620px;
  margin: 0 auto;
}
.contact-card .label {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A84C;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-card .value {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: #0A1628;
  margin-bottom: 24px;
}
.contact-card .value a {
  color: #1E3A6F;
  border-bottom: 1px solid rgba(30,58,111,0.3);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0A1628;
  color: #cdd3df;
  padding: 48px 0 28px;
  font-size: 0.92rem;
}
.site-footer a {
  color: #C9A84C;
  border-bottom-color: rgba(201,168,76,0.3);
}
.site-footer a:hover { color: #F7F2E7; border-bottom-color: #F7F2E7; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: #F7F2E7;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li { margin-bottom: 8px; }
.footer-grid p { color: rgba(247,242,231,0.7); margin-bottom: 0.6em; }
.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.2);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(205,211,223,0.7);
  font-size: 0.84rem;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Disclaimer / fine print ---------- */
.disclaimer {
  background: #fffdf6;
  border-top: 1px solid #e6dcc4;
  border-bottom: 1px solid #e6dcc4;
  padding: 24px 0;
  font-size: 0.85rem;
  color: #6a7384;
  line-height: 1.55;
}
.disclaimer .container-narrow { font-style: italic; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.gold { color: #C9A84C; }
.spacer { height: 32px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { background: #fff; }
  .hero { background: #fff; color: #000; padding: 24px 0; }
  .hero h1, .hero .tagline, .hero .lede { color: #000; }
}

/* =====================================================================
   Dropdown navigation — added 2026-08-03 with the Navigator Series.
   Parent item "Slop Chest" opens a submenu on hover/focus (desktop)
   and renders as an indented sub-list inside the burger menu (mobile).
   No JavaScript required.
   ===================================================================== */
.nav-links li { position: relative; }

.nav-links .caret {
  font-size: 0.68em;
  margin-left: 5px;
  opacity: 0.75;
}

/* Invisible bridge so the pointer can travel from the nav item
   down into the panel without the menu closing mid-move. */
.nav-links .has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
}

.nav-links .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 17px);
  left: -18px;
  min-width: 236px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #FFFFFF;
  border: 1px solid #e6dcc4;
  border-top: 3px solid #9F8243;
  box-shadow: 0 14px 30px -10px rgba(10, 22, 40, 0.35);
  z-index: 200;
}

.nav-links .has-dropdown:hover > .dropdown,
.nav-links .has-dropdown:focus-within > .dropdown { display: block; }

.nav-links .dropdown li { margin: 0; }

.nav-links .dropdown a {
  display: block;
  padding: 10px 22px;
  font-size: 0.9rem;
  color: #0A1628;
  border-bottom: none;
  white-space: nowrap;
}
.nav-links .dropdown a:hover,
.nav-links .dropdown a:focus {
  background: #F7F2E7;
  color: #9F8243;
  border-bottom: none;
}
.nav-links .dropdown a .dd-note {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: #6a7384;
  margin-top: 1px;
}
.nav-links .dropdown a:hover .dd-note,
.nav-links .dropdown a:focus .dd-note { color: #4a5468; }

.nav-links .dropdown .dd-divider {
  height: 1px;
  background: #e6dcc4;
  margin: 7px 0;
}

/* Visible keyboard focus */
.nav-links a:focus-visible,
.nav-links .dropdown a:focus-visible {
  outline: 2px solid #9F8243;
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .nav-links .has-dropdown::after { display: none; }
  .nav-links .caret { display: none; }
  .nav-links .dropdown {
    display: block;
    position: static;
    min-width: 0;
    margin: 6px 0 2px 4px;
    padding: 2px 0 2px 14px;
    background: transparent;
    border: none;
    border-left: 2px solid #e6dcc4;
    box-shadow: none;
  }
  .nav-links .dropdown a {
    padding: 7px 0;
    font-size: 0.88rem;
    color: #4a5468;
  }
  .nav-links .dropdown a:hover,
  .nav-links .dropdown a:focus { background: transparent; }
  .nav-links .dropdown .dd-divider { display: none; }
}

/* Phones: let long values (the support email) shrink and wrap inside their box
   instead of pushing the whole page wider than the screen. */
.contact-card .value { overflow-wrap: anywhere; word-break: break-word; }
.contact-card .value a { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .contact-card .value { font-size: clamp(1rem, 5vw, 1.4rem); }
}
