/* =========================================================
   JL Mel — Author Website
   Warm literary theme: deep plum-charcoal + dusty rose + brass + cream.
   A softer, more brand-flexible reworking of the original ember/oxblood
   gothic template — same content and features, different mood: elegant
   and atmospheric rather than horror-coded, since JL Mel plans to publish
   across genres (including children's books) down the road.
   ========================================================= */

:root {
  --bg: #201823;
  --bg-alt: #2a1f2d;
  --bg-card: #332536;
  --rose: #8c5468;
  --rose-dark: #3a2434;
  --plum: #4a3350;
  --plum-dark: #241a28;
  --border: #40323f;
  --brass: #c9a463;
  --brass-dim: #a3814c;
  --cream: #f6efe4;
  --text: #d9cdd0;
  --text-muted: #a8949a;

  --font-display: 'Fraunces', Georgia, 'Liberation Serif', serif;
  --font-serif: 'EB Garamond', Georgia, 'Liberation Serif', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--cream);
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.1; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; font-family: var(--font-serif); font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--cream); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  margin: 0 0 0.75em;
}

.center { text-align: center; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid var(--cream);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--cream);
  color: #241a28;
}
.btn-primary:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: #241a28;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
}
.btn-ghost:hover {
  background: rgba(246, 239, 228, 0.1);
  color: var(--cream);
  border-color: var(--brass);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(32, 24, 35, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.logo:hover { color: var(--brass); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav a:not(.nav-cta) {
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.primary-nav a:not(.nav-cta):hover {
  color: var(--cream);
  border-color: var(--brass-dim);
}

.nav-cta {
  border: 1px solid var(--brass);
  padding: 9px 22px;
  border-radius: 999px;
  color: var(--brass) !important;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover {
  background: var(--brass);
  color: #241a28 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
}

/* ---------- Hero (asymmetric split) ---------- */
.hero {
  padding: 90px 0;
  background: linear-gradient(160deg, var(--plum-dark) 0%, var(--bg) 75%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-kicker {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--brass);
  letter-spacing: 2px;
  font-size: 1.05rem;
  margin: 0 0 0.5em;
}

.hero h1 {
  margin-bottom: 0.35em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.hero-tagline {
  color: var(--text);
  max-width: 46ch;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.6em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-tag {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.92rem;
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-panel-mark {
  width: clamp(180px, 26vw, 300px);
  height: auto;
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.4));
}

/* ---------- About (editorial side-by-side) ---------- */
.about {
  padding: 110px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
  align-items: center;
}

.about-photo img {
  border-radius: var(--radius);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.about-copy {
  color: var(--text);
}

.about-copy .eyebrow { color: var(--brass); }

/* ---------- Book teaser ---------- */
.book-teaser {
  background: linear-gradient(160deg, var(--plum) 0%, var(--plum-dark) 100%);
  padding: 90px 0;
}

.book-teaser-copy {
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
}

.book-teaser-copy h2 { margin-bottom: 0.3em; color: var(--cream); }

.book-teaser-copy p {
  color: var(--cream);
  opacity: 0.88;
  margin-bottom: 0;
}

/* ---------- Book (full blurb) ---------- */
.book {
  padding: 100px 0;
  background: var(--bg);
}

.blurb {
  max-width: 68ch;
  margin: 0 auto 4em;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--text);
}
.blurb p { margin-bottom: 1em; }

/* ---------- Pull-quote (simple card, not an arch/tombstone shape) ---------- */
.pull-quote-section {
  padding: 20px 24px 100px;
  background: var(--bg);
  display: flex;
  justify-content: center;
}

.pull-quote-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brass-dim);
  border-radius: var(--radius);
  padding: 56px 56px 48px;
  text-align: center;
}

.pull-quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 0.1em;
}

.pull-quote-card blockquote {
  margin: 0 0 1.2em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.5;
  color: var(--cream);
}

.pull-quote-card cite {
  font-style: normal;
  color: var(--brass);
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* ---------- Thank You page ---------- */
.thank-you-card {
  max-width: 620px;
  margin: 40px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brass-dim);
  border-radius: var(--radius);
  padding: 64px 56px;
  text-align: center;
}

.thank-you-card .hero-kicker { margin-bottom: 0.3em; }

.thank-you-card h1 { margin-bottom: 0.6em; }

.thank-you-message {
  color: var(--text);
  max-width: 48ch;
  margin: 0 auto 1.2em;
}

.thank-you-card .hero-actions {
  justify-content: center;
  margin-top: 1.8em;
}

/* ---------- Order (Spotlight + Coming Soon list) ---------- */
.order {
  padding: 40px 0 100px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.order-note {
  max-width: 56ch;
  margin: 0 auto 3.2em;
  color: var(--text-muted);
}

.order-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.spotlight-cover {
  aspect-ratio: 2 / 3;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
}
.spotlight-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-tag {
  display: inline-block;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0 0 0.6em;
}

.spotlight-info h3 { margin-bottom: 0.3em; }

.spotlight-info p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.preorder-btn {
  display: inline-block;
  margin-top: 0.4em;
  padding: 12px 26px;
  font-size: 0.9rem;
  text-decoration: none;
}

.coming-soon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.coming-soon-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.coming-soon-thumb {
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  filter: grayscale(35%) brightness(0.8);
}
.coming-soon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coming-soon-copy h4 { margin-bottom: 0.2em; }

.coming-soon-copy p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.6em;
}

.coming-soon-note {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ---------- Newsletter (split layout) ---------- */
.newsletter {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--plum) 0%, var(--rose-dark) 100%);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.newsletter-copy h2 { text-align: left; margin-bottom: 0.4em; }
.newsletter-copy .eyebrow { text-align: left; color: var(--cream); opacity: 0.85; }
.newsletter-copy p { color: var(--cream); opacity: 0.85; max-width: 40ch; }

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

.newsletter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.newsletter-field label {
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.75;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  padding: 10px 2px;
  border: none;
  border-bottom: 1px solid rgba(246, 239, 228, 0.4);
  background: transparent;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1rem;
}
.newsletter-form input::placeholder { color: rgba(246, 239, 228, 0.45); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--brass);
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.8;
}
.newsletter-consent input { margin-top: 3px; }

.newsletter-form .btn-primary {
  align-self: stretch;
  text-align: center;
}

.form-message {
  margin-top: 0.8em;
  color: var(--brass);
  font-size: 0.9rem;
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 60px 0 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--bg);
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 0.6em;
}

.footer-tagline { margin-bottom: 1.5em; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.5em;
  flex-wrap: wrap;
}
.footer-social a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.85rem;
  color: var(--text);
}
.footer-social a:hover {
  border-color: var(--brass-dim);
  color: var(--cream);
}

.footer-contact { margin-bottom: 0.5em; }

.footer-copyright { font-size: 0.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-panel { max-width: 320px; margin: 0 auto; }

  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo { max-width: 300px; margin: 0 auto; }

  .order-layout { grid-template-columns: 1fr; }
  .spotlight-card { grid-template-columns: 1fr; text-align: center; }
  .spotlight-cover { max-width: 220px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .newsletter-inner { grid-template-columns: 1fr; text-align: center; }
  .newsletter-copy h2,
  .newsletter-copy .eyebrow { text-align: center; }
  .newsletter-copy p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 560px) {
  .pull-quote-card { padding: 40px 26px 34px; }
  .coming-soon-item { grid-template-columns: 56px 1fr; padding: 12px 14px; gap: 14px; }
}

@media (max-width: 720px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 24px 24px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a:not(.nav-cta) {
    text-align: center;
  }
  .nav-toggle { display: flex; }
}
