/* =========================================================
   Robert Bart — Coming Attack
   Dark cinematic thriller-author theme
   ========================================================= */

:root {
  --ink: #0a0a0a;
  --ink-2: #111;
  --ink-3: #1a1a1a;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #6b7280;
  --line: #e2e8f0;
  --line-dark: rgba(255,255,255,0.10);
  --paper: #ffffff;
  --paper-alt: #f5f7fa;

  --brand: #046bd2;
  --brand-light: #3b9bff;
  --danger: #dc2626;
  --gold: #d4af37;

  --max: 1200px;
  --narrow: 720px;

  --font-display: "Rajdhani", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font: 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-light); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: inherit;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1vw + .8rem, 1.6rem); }

p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: var(--narrow); }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: .85rem;
  color: var(--brand);
  margin: 0 0 1.25rem;
}
.eyebrow.on-dark { color: var(--brand-light); }
section { padding: 5rem 0; }
@media (max-width: 720px) { section { padding: 3.5rem 0; } }

/* =========================================================
   Header (transparent over hero, dark when scrolled)
   ========================================================= */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid var(--line-dark);
}
.site-header.solid {
  background: rgba(10,10,10,0.95);
  border-bottom-color: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem;
  color: #fff !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand:hover { color: var(--brand-light) !important; }
.primary-nav { display: flex; gap: 1.6rem; }
.primary-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255,255,255,0.85) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: #fff !important;
  border-bottom-color: var(--brand-light);
}
@media (max-width: 720px) {
  .primary-nav { gap: 1rem; font-size: .9rem; }
  .brand { font-size: 1.1rem; }
}

/* Pages without a dark hero get a solid dark header */
body.solid-header .site-header {
  position: relative;
  background: var(--ink);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--brand);
  color: #fff !important;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: 0 4px 14px rgba(4, 107, 210, 0.4);
}
.btn:hover {
  background: var(--brand-light);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 155, 255, 0.5);
}
.btn-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.6);
  padding: calc(1rem - 2px) calc(2.2rem - 2px);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; box-shadow: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* =========================================================
   HERO (home page) — dark cinematic
   ========================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(4,107,210,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(220,38,38,0.10) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  color: #fff;
  overflow: hidden;
  padding: 8rem 0 6rem;
  min-height: 90vh;
  display: flex; align-items: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text h1 {
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-text .tagline {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  max-width: 540px;
}
.hero-quote {
  position: relative;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-left: 3px solid var(--danger);
  background: rgba(220,38,38,0.06);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  line-height: 1.45;
  max-width: 540px;
}
.hero-cover {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}
.hero-cover img {
  max-width: 380px;
  width: 100%;
  border-radius: 2px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    0 15px 35px rgba(4,107,210,0.25),
    0 0 0 1px rgba(255,255,255,0.06);
  transform: rotate(-2deg);
  transition: transform .4s ease;
}
.hero-cover img:hover { transform: rotate(0) scale(1.02); }
@media (max-width: 880px) {
  .hero { padding: 6rem 0 4rem; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-text .tagline, .hero-quote { max-width: none; }
  .hero-quote { text-align: left; }
  .btn-group { justify-content: center; }
  .hero-cover img { max-width: 260px; transform: rotate(-2deg); }
}

/* =========================================================
   Synopsis (light section)
   ========================================================= */
.synopsis { background: var(--paper); }
.synopsis .eyebrow { text-align: center; }
.synopsis h2 { text-align: center; margin-bottom: 2.5rem; }
.synopsis-body { max-width: 680px; margin: 0 auto; font-size: 1.08rem; line-height: 1.75; color: var(--text-soft); }
.synopsis-body p { margin-bottom: 1.25em; }
.synopsis-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  padding-right: .5rem;
  padding-top: .25rem;
  color: var(--brand);
}
.synopsis-body em { color: var(--ink); font-style: italic; font-weight: 600; }

/* =========================================================
   Reviews (dark section, cinematic pull-quotes)
   ========================================================= */
.reviews {
  background: linear-gradient(180deg, var(--ink) 0%, #0a0a0a 100%);
  color: #fff;
  position: relative;
}
.reviews .eyebrow { text-align: center; }
.reviews .eyebrow.on-dark { color: var(--brand-light); }
.reviews h2 { color: #fff; text-align: center; margin-bottom: 3rem; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.review-card {
  position: relative;
  padding: 2.5rem 1.75rem 1.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 4px;
  transition: transform .25s ease, border-color .25s ease;
}
.review-card:hover { transform: translateY(-4px); border-color: rgba(59,155,255,0.4); }
.review-card::before {
  content: "“";
  position: absolute;
  top: -0.5rem; left: 1rem;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--brand-light);
  opacity: 0.6;
  line-height: 1;
}
.review-card .stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.15em; margin-bottom: 1rem; }
.review-card blockquote {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
}
.review-card cite { color: rgba(255,255,255,0.6); font-size: .88rem; font-style: normal; }
.reviews-meta {
  text-align: center;
  margin-top: 2.5rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}
.reviews-meta a { color: var(--brand-light); }

/* =========================================================
   About preview (home page)
   ========================================================= */
.about-preview { background: var(--paper-alt); }
.about-preview-grid {
  display: grid; grid-template-columns: 240px 1fr; gap: 3rem;
  align-items: center; max-width: 920px; margin: 0 auto;
}
.about-preview img {
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  filter: grayscale(15%);
}
.about-preview h2 { margin-bottom: 1rem; }
.about-preview p { color: var(--text-soft); font-size: 1.05rem; }
.about-preview .more-link {
  display: inline-block;
  margin-top: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: .95rem;
}
@media (max-width: 720px) {
  .about-preview-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .about-preview img { max-width: 200px; margin: 0 auto; }
}

/* =========================================================
   Final CTA band
   ========================================================= */
.cta-band {
  background: #050505;
  color: #fff;
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(4,107,210,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band > .container { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 2rem; }

/* =========================================================
   About page
   ========================================================= */
.about-page { background: var(--paper); padding-top: 4rem; }
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.about-photo img {
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  width: 100%;
}
.about-body h1 { color: var(--ink); margin-bottom: 1.5rem; }
.about-body p { font-size: 1.08rem; line-height: 1.75; color: var(--text-soft); margin-bottom: 1.25em; }
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 280px; margin: 0 auto; }
}

/* =========================================================
   Blog index
   ========================================================= */
.blog-page { background: var(--paper); }
.blog-page .container.narrow { padding-top: 4rem; padding-bottom: 4rem; }
.blog-page-header { text-align: center; margin-bottom: 3.5rem; }
.blog-page-header h1 { color: var(--ink); margin-bottom: 1rem; }
.blog-page-header p { color: var(--text-soft); font-size: 1.15rem; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.5rem; }
.post-list-item {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.post-list-item:last-child { border-bottom: 0; }
.post-list-item .post-meta {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: .85rem;
  color: var(--brand);
  margin-bottom: .5rem;
}
.post-list-item h2 { margin-bottom: .75rem; font-size: 1.7rem; }
.post-list-item h2 a { color: var(--ink); }
.post-list-item h2 a:hover { color: var(--brand); }
.post-list-item .post-excerpt { color: var(--text-soft); margin-bottom: 1rem; font-size: 1.05rem; }
.post-list-item .read-more {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: .95rem;
}

/* =========================================================
   Single post page
   ========================================================= */
.post { background: var(--paper); padding: 4rem 0; }
.post-header { text-align: center; margin-bottom: 3rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.post-header .post-meta {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: .85rem;
  color: var(--brand);
  margin-bottom: .75rem;
}
.post-header h1 { color: var(--ink); }
.post-body.prose { max-width: 720px; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; color: var(--text-soft); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h2 { font-size: 1.85rem; }
.prose h3 { font-size: 1.45rem; }
.prose p { margin-bottom: 1.25em; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.5em; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: 4px; margin: 2rem auto; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.post-footer {
  max-width: 720px; margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.post-footer a {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: .95rem;
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-page { background: var(--paper); padding: 4rem 0; }
.contact-page h1 { color: var(--ink); margin-bottom: .75rem; }
.contact-page .lede { color: var(--text-soft); font-size: 1.15rem; margin-bottom: 2.5rem; }
.form-grid { display: grid; gap: 1.25rem; max-width: 580px; }
.form-grid label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: .9rem;
  display: block;
  margin-bottom: .4rem;
}
.form-grid input, .form-grid textarea {
  width: 100%;
  padding: .9rem 1rem;
  font: inherit;
  font-family: var(--font-body);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s ease;
}
.form-grid input:focus, .form-grid textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(4,107,210,0.15);
}
.form-grid textarea { min-height: 180px; resize: vertical; }
.honeypot { position: absolute; left: -5000px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 2rem;
  font-size: .92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a {
  color: rgba(255,255,255,0.65);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: .9rem;
}
.footer-nav a:hover { color: var(--brand-light); }
.footer-copyright {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  font-size: .85rem;
}
