
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #05070b;
  --bg-elevated: #0c0f16;
  --bg-soft: #10141d;
  --accent: #c29a67;
  --accent-soft: rgba(194, 154, 103, 0.16);
  --text: #f5f5f5;
  --muted: #a6a9b4;
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.7);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --transition-fast: 180ms ease-out;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: linear-gradient(to bottom, rgba(5, 7, 11, 0.95), rgba(5, 7, 11, 0.75), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: radial-gradient(circle at 20% 0%, #22283a, #05070b 75%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px 11px;
  border-radius: 3px;
  border-left: 2px solid rgba(255, 255, 255, 0.6);
  opacity: 0.9;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-imprint {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.brand-name {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: 0.04em;
}

/* Nav */
.site-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-fast);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text);
  margin: 4px 0;
  transition: transform 160ms ease-out, opacity 160ms ease-out;
}

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  padding: 32px 0 64px;
  background:
    radial-gradient(circle at 18% -10%, rgba(99, 123, 178, 0.4), transparent 60%),
    radial-gradient(circle at 88% 120%, rgba(194, 154, 103, 0.4), transparent 60%),
    radial-gradient(circle at 50% 30%, rgba(5, 7, 11, 0.9), rgba(5, 7, 11, 0.98));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(5, 7, 11, 0.6), rgba(5, 7, 11, 0.95)),
    repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform 120ms ease-out, box-shadow 120ms ease-out;
}

.btn.primary {
  background: var(--accent);
  color: #090806;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.btn.primary:hover {
  background: #d1aa74;
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.hero-comp {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.hero-comp span {
  color: var(--text);
  font-style: italic;
}

/* Hero Card */
.hero-card {
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.08), transparent 55%), #05070b;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
  padding: 24px 24px 26px;
  max-width: 400px;
  margin-left: auto;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 120% -10%, rgba(194, 154, 103, 0.22), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-card-header,
.hero-card-body,
.hero-card-footer {
  position: relative;
  z-index: 1;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.hero-tag {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-series {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero-logline {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  margin-top: 4px;
  margin-bottom: 14px;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-bullets li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.hero-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.hero-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-date-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}

.hero-date {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

/* Sections */
.section {
  padding: 72px 0;
  background-color: var(--bg);
}

.section-book {
  background: radial-gradient(circle at 10% -20%, rgba(99, 123, 178, 0.18), transparent 55%), var(--bg);
}

.section-series {
  background: radial-gradient(circle at 90% 120%, rgba(194, 154, 103, 0.16), transparent 60%), var(--bg-soft);
}

.section-author {
  background: var(--bg);
}

.section-newsletter {
  background: radial-gradient(circle at 10% -5%, rgba(99, 123, 178, 0.22), transparent 60%), #05070b;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.section h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 30px);
  margin: 0 0 16px;
}

.section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

/* Layout helpers */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: flex-start;
}

.split-main {
  min-width: 0;
}

.split-aside {
  min-width: 0;
}

.callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-soft);
  background-color: rgba(4, 5, 8, 0.8);
}

.callout p {
  margin: 0;
  color: var(--muted);
}

.info-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background-color: rgba(10, 12, 18, 0.96);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.info-card.subtle {
  background-color: rgba(10, 12, 18, 0.85);
}

.info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 8px;
}

.info-text {
  font-size: 14px;
  color: var(--muted);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.info-list li {
  margin-bottom: 6px;
}

.info-list.bullets li {
  padding-left: 16px;
  position: relative;
}

.info-list.bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* Series grid */
.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.series-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent 65%), #06080e;
  padding: 18px 18px 20px;
}

.series-card.forthcoming {
  opacity: 0.9;
  background: #06070c;
}

.series-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 6px;
}

.series-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.series-copy {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 10px;
}

.series-meta {
  font-size: 12px;
  color: var(--muted);
}

/* Newsletter */
.newsletter-card {
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background-color: rgba(6, 8, 14, 0.96);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
}

.newsletter-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 10px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-form label {
  font-size: 13px;
  color: var(--muted);
}

.newsletter-form input {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(4, 6, 10, 0.9);
  color: var(--text);
  padding: 9px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.newsletter-form input::placeholder {
  color: #6c7080;
}

.newsletter-form input:focus {
  border-color: var(--accent);
  background-color: rgba(6, 9, 14, 1);
}

.newsletter-note {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background-color: #05070b;
  padding: 18px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-brand {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 6px;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-card {
    margin: 0 auto;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.02), transparent 65%), #05070b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px 14px;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 150ms ease-out, opacity 150ms ease-out;
  }

  .site-nav a {
    padding: 6px 0;
  }

  .nav-open .site-nav {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-open .nav-toggle span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .nav-open .nav-toggle span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 24px;
  }

  .hero-card {
    border-radius: 18px;
  }

  .section {
    padding: 56px 0;
  }
}



/* MailerLite embed overrides to match site styling */
.newsletter-card .ml-form-embedContainer {
  width: 100% !important;
}

.newsletter-card .ml-form-embedWrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.newsletter-card .ml-form-embedBody {
  padding: 0 !important;
}

.newsletter-card .newsletter-form {
  /* reuse the existing .newsletter-form layout */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-card .newsletter-form .horizontal-fields,
.newsletter-card .newsletter-form .ml-input-horizontal,
.newsletter-card .newsletter-form .ml-form-horizontalRow {
  width: 100%;
}

.newsletter-card .newsletter-form input[type="email"],
.newsletter-card .newsletter-form input.form-control {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(4, 6, 10, 0.9);
  color: var(--text);
  padding: 9px 14px;
  font-size: 14px;
  outline: none;
  width: 100%;
}

.newsletter-card .newsletter-form input::placeholder {
  color: var(--muted);
}

/* Buttons: match .btn.primary.full */
.newsletter-card .newsletter-form button.primary {
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #05070b;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  width: 100%;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-card .newsletter-form button.primary:hover {
  background: #d1aa73;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Success state text */
.newsletter-card .ml-form-successBody h4,
.newsletter-card .ml-form-successBody p {
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Hide mobile duplicate button container from ML if layout looks doubled */
.newsletter-card .ml-mobileButton-horizontal {
  display: none !important;
}
