:root,
:root[data-theme],
html {
  color-scheme: light;
  --brand-navy: #1B3A5C;
  --brand-navy-dark: #142b45;
  --brand-gold: #C8962E;
  --brand-gold-dark: #a87a1d;
  --text-color: #1d2129;
  --text-muted: #555;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --link-color: #1B3A5C;
  --width: 920px;

  /* Override theme variables that hijack dark mode */
  --background-color: #ffffff;
  --heading-color: #1B3A5C;
  --link-color: #1B3A5C;
  --visited-color: #1B3A5C;
  --blockquote-color: #555;
  --font-main: Georgia, serif;
  --font-secondary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Force light theme regardless of user OS dark mode preference.
   The hugo-bearblog inline <style> hijacks colors via @media (prefers-color-scheme: dark).
   We override at the RULE level with !important so cascade ordering doesn't matter. */
html, body { background-color: #ffffff !important; color: #1d2129 !important; }
body, main, article, section, header, footer, nav { background-color: transparent !important; color: #1d2129 !important; }
h1, h2, h3, h4, h5, h6 { color: #1B3A5C !important; }
strong, b { color: #1d2129 !important; font-weight: 700; }
a, a:visited { color: #1B3A5C !important; }
a:hover { color: #C8962E !important; }
/* All button-style links: white text on navy bg, always */
a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:active { color: #ffffff !important; }
blockquote { color: #555 !important; }

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background: var(--bg);
  max-width: var(--width);
  margin: 0 auto;
  padding: 1.5rem;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link-color); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand-gold); }

header { padding-bottom: 1rem; border-bottom: 1px solid #e6e8eb; margin-bottom: 2rem; }
header h2 { font-family: Georgia, serif; font-size: 1.1rem; color: var(--brand-navy); margin: 0; }
header nav { margin-top: 0.5rem; }
header nav a { margin-right: 1rem; font-size: 0.95rem; }

h1, h2, h3, h4 { font-family: Georgia, serif; color: var(--brand-navy); line-height: 1.2; }
h1 { font-size: 2.6rem; margin: 1rem 0 0.5rem; letter-spacing: -0.5px; }
h2 { font-size: 1.7rem; margin-top: 3rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-top: 1.25rem; }

main p { margin: 0.9rem 0; }

/* === HERO 2-column === */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
}
.hero-text h1 { margin-top: 0; }
.hero-text p { font-size: 1.1rem; color: var(--text-muted); max-width: 540px; }
.hero-text p strong { color: var(--text-color); }
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mockup img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(27,58,92,0.18), 0 4px 12px rgba(0,0,0,0.08);
  transform: rotate(-2deg);
}

/* fallback when no .hero wrapper used (for posts) */
h1 + p { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; }

/* === Fact strip === */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--bg-soft);
  border-left: 4px solid var(--brand-gold);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}
.fact-strip > div { display: flex; flex-direction: column; }
.fact-strip strong {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  color: var(--brand-navy);
  line-height: 1.1;
}
.fact-strip span { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }

/* === Kit grid (categories) === */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.kit-card {
  background: var(--bg);
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kit-card.live:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,58,92,0.12);
}
.kit-card .cover {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.kit-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.kit-card .cover-placeholder {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: var(--brand-gold);
  text-align: center;
  padding: 1rem;
}
.kit-card .body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.kit-card h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.kit-card p { margin: 0 0 0.8rem; color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.kit-card .price {
  display: inline-block;
  font-weight: 600;
  color: var(--brand-gold-dark);
  font-size: 0.95rem;
}
.kit-card.soon { opacity: 0.78; cursor: default; }
.kit-card.soon .cover { background: #d8dde2; }
.kit-card.soon .cover-placeholder { color: var(--brand-navy); opacity: 0.7; }
.kit-card.soon .price { color: var(--text-muted); font-weight: 500; }

/* === Lead magnet box === */
.lead-magnet {
  background: var(--bg-soft);
  border: 1px solid var(--brand-gold);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  text-align: center;
}
.lead-magnet h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.lead-magnet p { margin: 0 0 1rem; color: var(--text-muted); font-size: 1rem; }
a.btn,
.lead-magnet .btn {
  display: inline-block;
  background: var(--brand-navy);
  color: #ffffff;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
a.btn:hover,
.lead-magnet .btn:hover { background: var(--brand-navy-dark); color: #ffffff; }

/* === Tables === */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { padding: 0.5rem; border: 1px solid #ddd; text-align: left; }
th { background: var(--bg-soft); font-weight: 600; }

blockquote {
  border-left: 4px solid var(--brand-gold);
  padding-left: 1rem;
  font-style: italic;
  color: #555;
  margin: 1rem 0;
}

code { background: var(--bg-soft); padding: 0.1rem 0.3rem; border-radius: 3px; font-size: 0.9em; }

/* === Trust footer (3-column) === */
.trust-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin: 4rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid #e6e8eb;
}
.trust-footer h4 {
  font-family: Georgia, serif;
  font-size: 1rem;
  color: var(--brand-navy);
  margin: 0 0 0.6rem;
}
.trust-footer p { font-size: 0.9rem; color: var(--text-muted); margin: 0.3rem 0; line-height: 1.5; }
.trust-footer ul { list-style: none; padding: 0; margin: 0; }
.trust-footer li { font-size: 0.9rem; color: var(--text-muted); margin: 0.3rem 0; }
.trust-footer li a { color: var(--text-muted); }
.trust-footer li a:hover { color: var(--brand-gold); }

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin: 1rem 0 0;
  padding-bottom: 1rem;
}

/* === Theme footer (Hugo template footer) === */
footer {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === Mobile === */
@media (max-width: 720px) {
  body { padding: 1rem; font-size: 17px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; margin-top: 2rem; }
  .hero { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-mockup { order: -1; }
  .hero-mockup img { max-width: 60%; }
  .fact-strip { grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 1rem; }
  .fact-strip strong { font-size: 1.3rem; }
  .kit-grid { grid-template-columns: 1fr; }
  .kit-card .cover { aspect-ratio: 16/10; }
  .trust-footer { grid-template-columns: 1fr; gap: 1.5rem; }
  header nav a { display: inline-block; margin-right: 0.7rem; margin-bottom: 0.3rem; }
}
