/* ---------------------------------------------------------------
   The Haven Creek Sagas — site styles
   Palette: muted high-plains Montana. Sage, weathered wood, dusty
   gold, slate. Literary book-jacket typography, not theme-park West.
   --------------------------------------------------------------- */

:root {
  --paper: #f4efe6;        /* warm cream ground */
  --paper-deep: #ece5d5;   /* slightly deeper panel */
  --ink: #2a2520;          /* near-black warm ink */
  --ink-soft: #5d554a;     /* secondary text */
  --sage: #7c8a6e;         /* prairie sage */
  --sage-deep: #5d6b52;
  --slate: #3f4c57;        /* Crazy Mountain slate / storm sky */
  --gold: #ad8748;         /* dusty wheat gold, used sparingly */
  --wood: #56463a;         /* weathered fence-post brown */
  --line: #d7cdba;         /* hairline rules */
  --serif-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --serif-text: "EB Garamond", "Iowan Old Style", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 1.125rem;
  line-height: 1.65;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- header / nav ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0 1.2rem;
  box-shadow: 0 1px 6px rgba(42, 37, 32, 0.06);
}

/* keep anchored sections from hiding under the sticky header */
[id] { scroll-margin-top: 5.5rem; }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.wordmark {
  font-family: var(--serif-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark span { color: var(--sage-deep); }

.site-nav a {
  font-family: var(--serif-text);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  margin-left: 1.6rem;
  padding-bottom: 0.2rem;
}

.site-nav a:first-child { margin-left: 0; }

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}

/* ----- shared type ----- */

h1, h2, h3 {
  font-family: var(--serif-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.9rem;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

a { color: var(--slate); }

/* ----- buttons ----- */

.btn {
  display: inline-block;
  font-family: var(--serif-text);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--wood);
  color: var(--wood);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--wood); color: var(--paper); }

.btn-solid {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--paper);
}

.btn-solid:hover { background: var(--ink); border-color: var(--ink); }

/* ----- hero ----- */

.hero {
  padding: 5.5rem 0 5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg,
      rgba(244, 239, 230, 0.96) 0%,
      rgba(244, 239, 230, 0.88) 50%,
      rgba(244, 239, 230, 0.62) 100%),
    url("valley-header.jpg") center / cover no-repeat;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin-bottom: 1.2rem;
}

.hero .hook {
  max-width: 34em;
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ----- sections ----- */

.section { padding: 4rem 0; }

.section + .section { border-top: 1px solid var(--line); }

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* ----- book feature (Book 1) ----- */

.book-feature {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 720px) {
  .book-feature { grid-template-columns: 1fr; }
  .cover-placeholder, .cover-img { margin: 0 auto; }
}

.cover-img {
  display: block;
  width: 260px;
  height: auto;
  border: 1px solid var(--wood);
  box-shadow: 0 10px 28px rgba(42, 37, 32, 0.22);
}

/* Typographic stand-in until the real cover art is added.
   Replace this whole block with: <img src="images/book1-cover.jpg" ...> */
.cover-placeholder {
  width: 260px;
  aspect-ratio: 2 / 3;
  background: var(--slate);
  color: var(--paper);
  border: 1px solid var(--wood);
  outline: 1px solid var(--gold);
  outline-offset: -10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 2.2rem 1.4rem;
}

.cover-placeholder .cover-series {
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #c8cdd2;
}

.cover-placeholder .cover-title {
  font-family: var(--serif-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
}

.cover-placeholder .cover-author {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c8cdd2;
}

.book-meta {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.book-feature h3, .book-block h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.book-copy p { margin-bottom: 1rem; max-width: 38em; }

.placeholder-note {
  border-left: 3px solid var(--gold);
  background: var(--paper-deep);
  padding: 0.9rem 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 1.2rem 0;
  max-width: 38em;
}

.content-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 1.2rem;
}

.buy-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

/* ----- series list ----- */

.series-list { list-style: none; }

.series-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.series-list .num {
  font-family: var(--serif-display);
  font-size: 1.9rem;
  color: var(--sage-deep);
}

.series-list .title {
  font-family: var(--serif-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.series-list .title a { color: var(--ink); text-decoration: none; }
.series-list .title a:hover { border-bottom: 1px solid var(--gold); }

.series-list .years { color: var(--ink-soft); font-size: 1rem; }

.status {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}

.status.available {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}

@media (max-width: 620px) {
  .series-list li { grid-template-columns: 2.4rem 1fr; }
  .series-list .status { grid-column: 2; justify-self: start; }
}

/* ----- news ----- */

.news-item { padding: 2rem 0; border-bottom: 1px solid var(--line); }

.news-item time {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.news-item h3 { font-size: 1.5rem; margin: 0.5rem 0 0.8rem; }

.news-item p { max-width: 40em; color: var(--ink-soft); }

/* ----- about ----- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.author-photo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--wood);
  box-shadow: 0 10px 28px rgba(42, 37, 32, 0.22);
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .author-photo { max-width: 320px; margin: 0 auto; }
}

.about-body p { max-width: 38em; margin-bottom: 1.1rem; }

.dedication {
  font-family: var(--serif-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--slate);
  border-left: 3px solid var(--sage);
  padding-left: 1.4rem;
  margin: 2.2rem 0;
  max-width: 32em;
}

.dedication cite {
  display: block;
  font-family: var(--serif-text);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.7rem;
}

/* ----- newsletter ----- */

.newsletter {
  background: var(--slate);
  color: var(--paper);
  padding: 3.5rem 0;
}

.newsletter h2 { color: var(--paper); font-size: 1.9rem; margin-bottom: 0.7rem; }

.newsletter p { color: #cdd3d8; max-width: 36em; margin-bottom: 1.6rem; }

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  max-width: 34em;
}

.newsletter input[type="email"],
.newsletter input[type="text"] {
  flex: 1 1 14em;
  font-family: var(--serif-text);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #6b7883;
  background: #f4efe6;
  color: var(--ink);
}

.newsletter .btn {
  border-color: var(--gold);
  color: var(--paper);
  background: transparent;
}

.newsletter .btn:hover { background: var(--gold); color: var(--ink); }

.newsletter .fine-print {
  font-size: 0.9rem;
  color: #aab3ba;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ----- footer ----- */

.site-footer {
  padding: 2.5rem 0 3rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.social-row a {
  color: var(--ink-soft);
  display: inline-flex;
  transition: color 0.15s ease;
}

.social-row a:hover { color: var(--ink); }

.social-row svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
