/* J.T. Bryce — rugged, dark, outdoorsy. Gold band + green collar accent. Not fantasy/YA. */
:root {
  --bg: #0c0f0d;
  --bg-elev: #151a17;
  --bg-panel: #1c2320;
  --ink: #e6e2d6;
  --ink-muted: #a8a498;
  --gold: #c9a227;
  --gold-dim: #8a6f1a;
  --gold-band: linear-gradient(180deg, #e0c04a 0%, #c9a227 45%, #9a7a1c 100%);
  --green: #5f8f6a;
  --green-bright: #7aad84;
  --green-dim: #3d5c44;
  --line: #2a332e;
  --danger-soft: #8b5a3c;
  --radius: 4px;
  --max: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", "Palatino Linotype", Palatino, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, #1a2820 0%, transparent 55%),
    linear-gradient(180deg, #0c0f0d 0%, #0a0c0b 100%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--ink);
}
p { margin: 0 0 1rem; }
.muted { color: var(--ink-muted); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* —— Header —— */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(12, 15, 13, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}
.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav .cta-nav {
  background: var(--green-dim);
  color: var(--ink);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--green);
}
.nav .cta-nav:hover { background: var(--green); color: #0c0f0d; }

/* Gold title band */
.gold-band {
  background: var(--gold-band);
  color: #1a1405;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-top: 1px solid #f0d978;
  border-bottom: 1px solid #6e5510;
}

/* —— Hero —— */
.hero {
  padding: 3rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
}
.eyebrow {
  color: var(--green-bright);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.pitch { font-size: 1.05rem; color: var(--ink-muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--green);
  color: #0c0f0d;
  border-color: var(--green-bright);
}
.btn-primary:hover { background: var(--green-bright); color: #0c0f0d; }
.btn-gold {
  background: var(--gold);
  color: #1a1405;
  border-color: #e0c04a;
}
.btn-gold:hover { background: #e0c04a; color: #1a1405; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-amazon {
  background: #232f3e;
  color: #ff9900;
  border-color: #37475a;
}
.btn-amazon:hover { border-color: #ff9900; color: #ff9900; }

/* Cover frame */
.cover {
  aspect-ratio: 2 / 3;
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(201,162,39,0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cover-art {
  flex: 1;
  background:
    linear-gradient(160deg, transparent 40%, rgba(12,15,13,0.85) 100%),
    radial-gradient(ellipse at 30% 20%, #2a4032 0%, transparent 50%),
    linear-gradient(180deg, #1e2a22 0%, #0f1612 100%);
  position: relative;
}
.cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 12px,
      rgba(95,143,106,0.04) 12px,
      rgba(95,143,106,0.04) 13px
    );
}
.cover-band {
  background: var(--gold-band);
  color: #1a1405;
  padding: 0.65rem 0.75rem;
  text-align: center;
}
.cover-series {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.cover-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.cover-ph {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  background: rgba(12,15,13,0.85);
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--gold-dim);
}

/* Sections */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--bg-elev); border-block: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-size: 1.6rem;
  border-left: 3px solid var(--green);
  padding-left: 0.75rem;
}

/* Newsletter card */
.signup-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 1.75rem;
  max-width: 520px;
}
.signup-card h2, .signup-card h3 { margin-top: 0; }
.ph-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.2rem 0.45rem;
  margin-bottom: 0.75rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.85rem; }
.form-row label { font-size: 0.85rem; color: var(--ink-muted); }
.form-row input[type="email"],
.form-row input[type="text"] {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  font: inherit;
}
.form-row input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.form-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
}
.form-disabled-msg {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(201,162,39,0.12);
  border: 1px solid var(--gold-dim);
  color: var(--ink);
  font-size: 0.9rem;
}
.form-disabled-msg.show { display: block; }

/* Book grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.75rem;
}
.book-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.book-card h3 { margin: 0; font-size: 1.15rem; }
.book-meta { font-size: 0.8rem; color: var(--green-bright); letter-spacing: 0.06em; text-transform: uppercase; }
.book-blurb { font-size: 0.92rem; color: var(--ink-muted); flex: 1; }
.book-card .cover { max-width: 100%; }

/* Prose pages */
.prose { max-width: 42rem; }
.prose h1 { margin-top: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contact-block {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 1.5rem;
  max-width: 28rem;
}
.social-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.social-list li { margin-bottom: 0.5rem; }

/* Free novella landing (minimal) */
.landing-header {
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.landing-header .brand-name { font-size: 1.1rem; }
.landing-header .header-inner {
  padding: 0.5rem 0;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.footer-nav a { color: var(--ink-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--green-dim), var(--gold), var(--green-dim));
}

/* 404 */
.not-found { text-align: center; padding: 5rem 1rem; }
.not-found h1 { font-size: 3rem; color: var(--gold); }

/* Live covers */
.cover picture,
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover picture { height: 100%; }

/* Status badges (no dead links) */
.status-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold-dim);
  background: rgba(201,162,39,0.12);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  cursor: default;
}
.status-label.block { width: 100%; box-sizing: border-box; }

/* Featured Book 1 on /books */
.book-feature {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.75rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.book-feature .cover { max-width: 240px; margin: 0; }
.book-feature h1 { margin: 0 0 0.75rem; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.book-feature .tagline { margin-bottom: 1rem; }
@media (max-width: 800px) {
  .book-feature { grid-template-columns: 1fr; }
  .book-feature .cover { margin-inline: auto; }
}

.upcoming-head { margin-top: 0.5rem; }

/* Gated newsletter form */
.newsletter-form[data-mailerlite-state="gated"] input:disabled,
.newsletter-form[data-mailerlite-state="gated"] button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.copyright {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.hero-cover-note {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.newsletter-cover {
  display: flex;
  gap: 1.25rem;
  align-items: start;
}
.newsletter-cover .cover { max-width: 160px; margin: 0; flex-shrink: 0; }
@media (max-width: 800px) {
  .newsletter-grid { grid-template-columns: 1fr; }
}

/* Free-novella landing: form first, above the fold */
.landing-hero {
  padding: 0.9rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "signup"
    "cover"
    "details";
  gap: 1.15rem 2rem;
  align-items: start;
}
.landing-signup { grid-area: signup; }
.landing-cover { grid-area: cover; }
.landing-details { grid-area: details; }
.landing-title {
  font-size: clamp(1.65rem, 4.2vw, 2.4rem);
  margin: 0 0 0.35rem;
  line-height: 1.15;
}
.landing-title a {
  color: inherit;
  text-decoration: none;
}
.landing-title a:hover,
.landing-title a:focus-visible {
  color: var(--gold);
}
.landing-lede {
  font-size: 1rem;
  color: var(--ink-muted);
  margin: 0 0 0.85rem;
  max-width: 36rem;
}
.landing-hero .signup-card,
.landing-signup-card {
  background: transparent;
  border: none;
  padding: 0;
  max-width: none;
}
.cover-link {
  display: block;
  max-width: 160px;
  margin-inline: auto;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.cover-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.landing-hero .cover { max-width: 160px; }
#free-novella-signup { scroll-margin-top: 0.5rem; }

/* Hide the nested MailerLite chrome and optional first-name field on this page only. */
.landing-hero .ml-form-embedContent {
  display: none !important;
}
.landing-hero .ml-form-fieldRow:has(.ml-field-name),
.landing-hero .ml-field-name {
  display: none !important;
}
.landing-hero .ml-form-embedContainer,
.landing-hero .ml-form-embedWrapper,
.landing-hero .ml-form-embedBody,
.landing-hero .ml-form-successBody {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 100% !important;
  width: 100% !important;
}
.landing-hero .ml-form-embedBody,
.landing-hero .ml-form-successBody {
  padding: 0 !important;
}
/* Email, then button, then the existing privacy line. */
.landing-hero form.ml-block-form {
  display: flex;
  flex-direction: column;
}
.landing-hero .ml-form-formContent { order: 1; }
.landing-hero .ml-form-embedSubmit { order: 2; }
.landing-hero .ml-form-embedPermissions { order: 3; }
.landing-hero form.ml-block-form > input[type="hidden"] { order: 4; }
.landing-hero .ml-form-embedSubmit {
  margin: 0.15rem 0 0.35rem 0 !important;
  float: none !important;
}
.landing-hero .ml-form-embedSubmit button.primary {
  width: 100% !important;
  min-height: 48px;
  font-size: 1.05rem !important;
  padding: 0.85rem 1.1rem !important;
}
.landing-hero .ml-form-fieldRow input[type="email"] {
  min-height: 48px;
  font-size: 1rem !important;
  padding: 0.75rem 0.85rem !important;
}
.landing-hero .ml-form-embedPermissions {
  margin: 0 !important;
  padding: 0 !important;
}
.landing-hero .ml-form-embedPermissionsContent.privacy-policy p {
  margin: 0 !important;
}
.landing-hero .ml-form-successContent {
  margin: 0 !important;
}

@media (min-width: 801px) {
  .landing-hero {
    grid-template-columns: 0.7fr 1.3fr;
    grid-template-areas:
      "cover signup"
      "cover details";
    padding: 1.1rem 0 2.5rem;
    align-items: start;
  }
  .cover-link,
  .landing-hero .cover {
    max-width: 240px;
    margin-inline: 0;
  }
  .landing-details { padding-top: 0.25rem; }
}
