/* Moonlight Press — site styles.
   Same family as moonlightmarketingconsultants.com and davelangley.com:
   night-navy ground, moonlight-blue accent, hairline "blueprint" frames with corner marks.
   Two fonts only: Barlow Condensed (headlines) + Bitter (reading text). */

:root {
  --color-bg: #0e1319;
  --color-surface: #161d25;
  --color-surface-2: #11171e;
  --color-text: #eaf0f6;
  --color-muted: #a9b6c3;
  --color-accent: #94bce3;        /* moonlight blue — buttons, kickers, links */
  --color-accent-300: #b5d9fd;
  --color-accent-600: #597ea3;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;
  --color-divider: rgba(234, 240, 246, 0.18);
  --color-divider-strong: rgba(234, 240, 246, 0.32);
  --color-ok: #9fd8b0;

  --font-heading: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Bitter", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: 28px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65; font-weight: 400;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-300); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
::selection { background: rgba(148, 188, 227, 0.35); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: 600; line-height: 1.08;
  letter-spacing: -0.005em; margin: 0 0 12px; text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.6vw, 66px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 26px; }
h4 { font-size: 21px; }
p { margin: 0 0 14px; text-wrap: pretty; }
.kicker {
  display: block; font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); margin: 0 0 12px;
}
.lede { font-size: 19px; line-height: 1.65; max-width: 58ch; }
.muted { color: var(--color-muted); }
.small { font-size: 14px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--color-accent); color: var(--color-bg); padding: 8px 14px; z-index: 50; }
.skip-link:focus { left: 12px; }

/* ── layout ─────────────────────────────────────────── */
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: 72px; border-top: 1px solid var(--color-divider); }
.section.no-rule { border-top: 0; }
.band { background: var(--color-accent-900); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.band-dark { background: var(--color-surface); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between; margin-bottom: 36px; }
.section-head > div { min-width: 0; max-width: 60ch; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── blueprint frame (shared with the sister sites) ─── */
.blueprint { position: relative; border: 1px solid var(--color-divider); }
.blueprint > .corner { position: absolute; width: 11px; height: 11px; color: rgba(234, 240, 246, 0.55); }
.blueprint > .corner::before, .blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }
/* Corner marks appear only on the photos (one quiet nod to the sister sites).
   Cards, panels, forms and covers keep just the hairline frame.
   To bring them back everywhere, delete the next two lines. */
.blueprint > .corner { display: none; }
figure.blueprint > .corner { display: block; }
.duotone { position: relative; }
.duotone > .tone { position: absolute; inset: 0; background: var(--color-accent); mix-blend-mode: color; pointer-events: none; }

/* ── header / nav ───────────────────────────────────── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(14, 19, 25, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-divider);
}
.nav { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; color: var(--color-text); }
.brand:hover { color: var(--color-text); }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-name { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 21px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-sub { display: block; font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent); margin-top: 4px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-heading); font-size: 17px; letter-spacing: 0.04em; color: var(--color-text); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-accent); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nav-toggle { display: none; }

/* ── buttons, tags, forms ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 18px; letter-spacing: 0.03em; line-height: 1.1;
  padding: 13px 24px; min-height: 48px; border: 1px solid var(--color-divider-strong);
  background: transparent; color: var(--color-text); text-decoration: none; cursor: pointer; border-radius: 0;
}
.btn:hover { background: rgba(234, 240, 246, 0.08); color: var(--color-text); }
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: #0e1319; }
.btn-primary:hover { background: var(--color-accent-300); border-color: var(--color-accent-300); color: #0e1319; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { font-size: 16px; padding: 9px 16px; min-height: 40px; }

.tag {
  white-space: nowrap; flex: none;
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border: 1px solid var(--color-divider-strong); color: var(--color-text);
}
.tag-available { border-color: var(--color-ok); color: var(--color-ok); }
.tag-coming { border-color: var(--color-accent); color: var(--color-accent); }
.tag-solid { background: rgba(148, 188, 227, 0.16); border-color: transparent; color: var(--color-accent-300); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .legend { font-family: var(--font-heading); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.input {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--color-text);
  background: var(--color-surface-2); border: 1px solid var(--color-divider-strong); border-radius: 0;
}
.input:hover { border-color: rgba(234, 240, 246, 0.5); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-accent) 50%), linear-gradient(135deg, var(--color-accent) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #94bce3; flex: none; }
.form-note { font-size: 14px; color: var(--color-muted); margin: 0; }
.form-status { font-size: 15px; margin: 0; min-height: 1.5em; }
.form-status.ok { color: var(--color-ok); }
.form-status.err { color: #f2b8a2; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form .input { flex: 1 1 220px; }
.inline-form .btn { flex: 0 0 auto; }
.hp { position: absolute; left: -5000px; }

/* ── stand-in covers (swap for real cover art) ─────── */
.cover {
  position: relative; aspect-ratio: 2 / 3; width: 100%; max-width: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  padding: 9% 9% 8%; overflow: hidden; color: #f4f7fa;
  background: var(--cover-bg, #1d2d3d); border: 1px solid rgba(234, 240, 246, 0.2);
  container-type: inline-size;
}
.cover::before { /* the moon */
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -18%; top: -12%;
  border-radius: 50%; background: rgba(234, 240, 246, 0.07); box-shadow: 0 0 0 1px rgba(234, 240, 246, 0.1);
}
.cover-top { position: relative; font-family: var(--font-heading); font-size: 6.5cqi; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent-300); line-height: 1.2; }
.cover-title { position: relative; font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; font-size: 13cqi; line-height: 0.98; letter-spacing: 0.01em; text-wrap: balance; overflow-wrap: anywhere; }
.cover-sub { position: relative; display: block; font-family: var(--font-body); font-size: 5.6cqi; line-height: 1.35; text-transform: none; letter-spacing: 0; color: rgba(244, 247, 250, 0.82); margin-top: 6%; font-weight: 400; }
.cover-foot { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 8px; border-top: 1px solid rgba(234, 240, 246, 0.3); padding-top: 6%; }
.cover-author { font-family: var(--font-heading); font-size: 7cqi; letter-spacing: 0.12em; text-transform: uppercase; }
.cover-foot img { width: 16cqi; height: auto; opacity: 0.9; }
.cover.paperback { box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.35), inset 7px 0 0 rgba(234, 240, 246, 0.12); }
.cover.letter { aspect-ratio: 17 / 22; }
.cover.audio::after { /* headphones badge for audiobook formats */
  content: ""; position: absolute; left: 9%; bottom: 22%; width: 15cqi; height: 15cqi;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5d9fd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E");
}
.cover-img { width: 100%; height: auto; border: 1px solid rgba(234, 240, 246, 0.2); } /* real cover art drops in here */
.shelf-business { --cover-bg: #1f3347; }
.shelf-faith { --cover-bg: #2b2a35; }
.shelf-leadership { --cover-bg: #24383a; }
.shelf-parables { --cover-bg: #152029; }

/* ── product cards ──────────────────────────────────── */
.product-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--color-text); min-width: 0; }
.product-card:hover { color: var(--color-text); }
.product-card:hover .cover { border-color: var(--color-accent); }
.cover-slot { display: flex; align-items: flex-end; aspect-ratio: 2 / 3; width: 100%; max-width: 100%; }
.product-card .meta { display: flex; flex-direction: column; gap: 6px; }
.product-card h3 { font-size: 23px; margin: 0; }
.product-card .formats { font-size: 15px; color: var(--color-muted); margin: 0; }
.product-card .shelf-name { font-family: var(--font-heading); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }
.product-card .row { margin-top: 2px; }
.card-cta { font-family: var(--font-heading); font-size: 17px; color: var(--color-accent); }

/* ── shelf tiles ────────────────────────────────────── */
.shelf-tile { display: flex; flex-direction: column; gap: 10px; padding: 26px; text-decoration: none; color: var(--color-text); min-width: 0; }
.shelf-tile:hover { background: rgba(148, 188, 227, 0.06); color: var(--color-text); }
.shelf-tile h3 { margin: 0; }
.shelf-tile p { margin: 0; font-size: 16px; color: var(--color-muted); flex: 1; }
.shelf-tile .count { font-family: var(--font-heading); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }

/* ── filters ────────────────────────────────────────── */
.filters { display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-heading); font-size: 16px; letter-spacing: 0.04em; padding: 8px 14px; min-height: 40px;
  border: 1px solid var(--color-divider-strong); background: transparent; color: var(--color-text); cursor: pointer; border-radius: 0; text-decoration: none;
}
.chip:hover { border-color: var(--color-accent); color: var(--color-text); }
.chip[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: #0e1319; }
.empty-note { display: none; padding: 32px; text-align: center; }

/* ── product page ───────────────────────────────────── */
.crumbs { font-size: 15px; color: var(--color-muted); padding-top: 28px; }
.crumbs a { color: var(--color-muted); }
.product { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 28px 64px; }
.product > * { min-width: 0; }
.product-art { max-width: 420px; width: 100%; justify-self: center; }
.product-info h1 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 8px; }
.product-info h1 .fmt { color: var(--color-muted); font-weight: 400; }
.subtitle { font-size: 19px; color: var(--color-muted); margin: 0 0 18px; }
.price { font-family: var(--font-heading); font-size: 30px; letter-spacing: 0.02em; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.seg legend { margin-bottom: 8px; padding: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--color-divider-strong); font-family: var(--font-heading); font-size: 17px; }
.seg input:checked + span { border-color: var(--color-accent); background: rgba(148, 188, 227, 0.16); color: var(--color-accent-300); }
.seg input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.buy-box { display: flex; flex-direction: column; gap: 16px; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--color-divider); }
.hook { font-size: 20px; line-height: 1.55; font-weight: 600; margin: 4px 0 0; }
.retailers { font-size: 15px; color: var(--color-muted); margin: 0; }
.details-list { margin-top: 36px; border-top: 1px solid var(--color-divider); }
details.row-detail { border-bottom: 1px solid var(--color-divider); }
details.row-detail summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font-family: var(--font-heading); font-size: 20px;
}
details.row-detail summary::-webkit-details-marker { display: none; }
details.row-detail summary::after { content: "+"; font-size: 24px; color: var(--color-accent); line-height: 1; }
details.row-detail[open] summary::after { content: "\2212"; }
details.row-detail > div { padding: 0 0 18px; font-size: 16px; }
details.row-detail ul { margin: 0; padding-left: 20px; }
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 8px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.bundle-list, .prose .bundle-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-divider); }
.bundle-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color-divider); }
.bundle-list li span:last-child { color: var(--color-muted); font-size: 15px; text-align: right; }
.bundle-list a { color: var(--color-text); }

/* ── quote band ─────────────────────────────────────── */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote p { font-family: var(--font-heading); font-weight: 600; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.12; margin: 0 0 18px; }
.quote cite { font-style: normal; font-family: var(--font-heading); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); }

/* ── panels ─────────────────────────────────────────── */
.panel { padding: 30px; }
.panel h3 { margin-bottom: 10px; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { font-family: var(--font-heading); font-size: 22px; padding: 11px 0; border-bottom: 1px solid var(--color-divider); }
.feature-list li:last-child { border-bottom: 0; }
.family-link { display: flex; align-items: center; gap: 16px; padding: 18px; text-decoration: none; color: var(--color-text); }
.family-link:hover { color: var(--color-text); background: rgba(148, 188, 227, 0.06); }
.family-link img { width: 60px; height: 60px; object-fit: contain; flex: none; }
.family-link .plate { background: #eaf0f6; padding: 4px; }
.family-link strong { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 21px; }
.family-link span span { font-size: 15px; color: var(--color-muted); }

/* ── footer ─────────────────────────────────────────── */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-divider); padding-block: 52px 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-grid > * { min-width: 0; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.footer-brand strong { font-family: var(--font-heading); font-weight: 600; font-size: 22px; display: block; letter-spacing: 0.03em; }
.footer-col h4 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--color-text); text-decoration: none; }
.footer-col a:hover { color: var(--color-accent); text-decoration: underline; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--color-divider); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: var(--color-muted); font-size: 14px; }

/* ── pop-up ─────────────────────────────────────────── */
.popup-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(6, 9, 12, 0.72); }
.popup { position: relative; width: min(460px, 100%); background: var(--color-bg); padding: 34px 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.popup h2 { font-size: 34px; margin: 0; }
.popup-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--color-text); font-size: 28px; cursor: pointer; }

/* ── responsive ─────────────────────────────────────── */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .split, .product { grid-template-columns: minmax(0, 1fr) !important; gap: 36px; }
  .split > figure, .split > img { justify-self: start !important; }
  .product-art { max-width: 300px; justify-self: start; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 56px; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 1px solid var(--color-divider-strong); background: transparent; color: var(--color-text); cursor: pointer;
  }
  .js .nav { flex-wrap: wrap; }
  .js .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 6px; }
  .js .nav-links.open { display: flex; }
  .js .nav-links li { border-top: 1px solid var(--color-divider); }
  .js .nav-links a { display: block; padding: 12px 0; font-size: 20px; }
  .js .nav-links .btn { margin-top: 12px; width: 100%; }
  .nav-links { gap: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-4.keep-2, .grid-3.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 18px; }
  .panel { padding: 22px; }
  .lede { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
