/* ============================================================
   Tilda Bogue Publishing — shared styles
   Warm Southern / sporting aesthetic
   ============================================================ */

:root {
  --green: #1f3d2b;       /* deep pine */
  --green-soft: #2f5740;
  --gold: #b6862c;        /* brass / saddle gold */
  --gold-light: #d9b46a;
  --cream: #f6f1e7;       /* paper / parchment */
  --cream-dark: #ece3d2;
  --ink: #2a2620;         /* warm near-black text */
  --muted: #6b6354;
  --white: #fffdf8;
  --maxw: 1120px;
  --shadow: 0 6px 24px rgba(31, 61, 43, 0.12);
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Cambria", "Times New Roman", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
}

h1, h2, h3, h4 {
  font-family: "Georgia", "Cambria", serif;
  color: var(--green);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--green-soft); }
a:hover { color: var(--gold); }

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

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

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--green);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--cream);
  line-height: 1.1;
}
.brand .brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand .brand-tag {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}
.nav-cta {
  background: var(--gold);
  color: var(--green) !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  font-weight: 700;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--gold-light); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(31,61,43,0.78), rgba(31,61,43,0.86)),
    url("images/hero.jpg") center/cover no-repeat;
  background-color: var(--green);
  color: var(--cream);
  text-align: center;
  padding: 96px 24px;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 12px;
}
.hero p {
  font-size: 1.2rem;
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--cream-dark);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--gold-light);
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--green);
  text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--gold-light); color: var(--green); }
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--gold-light);
}
.btn-outline:hover { background: var(--gold); color: var(--green); }
.btn-green {
  background: var(--green);
  color: var(--cream);
}
.btn-green:hover { background: var(--green-soft); color: var(--cream); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin: 0 0 8px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 44px;
  font-style: italic;
}
.bg-cream-dark { background: var(--cream-dark); }
.bg-green { background: var(--green); color: var(--cream); }
.bg-green .section-title,
.bg-green h2, .bg-green h3 { color: var(--cream); }

/* ---------- Book / card grid ---------- */
.grid {
  display: grid;
  gap: 32px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 4px; font-size: 1.35rem; }
.card .byline {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.card p { margin: 0 0 16px; color: var(--ink); }
.card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.card .spacer { flex: 1; }

/* Book cover block (placeholder-friendly) */
.cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  padding: 24px;
  position: relative;
}
.cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cover .cover-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.cover .cover-author {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.badge {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.badge-available { background: #e3efe6; color: var(--green); }
.badge-soldout { background: #f0e2e2; color: #9a3b3b; }
.badge-autograph { background: var(--gold-light); color: var(--green); }

/* ---------- Personalization / buy box ---------- */
.buy-box { margin-top: auto; }
.buy-box label {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.buy-box input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cdc6b6;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 12px;
  background: var(--cream);
}
.buy-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 10px;
}

/* ---------- Author feature row ---------- */
.author-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}
.author-row.reverse { grid-template-columns: 1fr 280px; }
.author-row.reverse .author-photo { order: 2; }
.author-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--green-soft);
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-dark);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 22px 26px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-style: italic;
  font-size: 1.1rem;
}
.quote .cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 1px;
}

/* ---------- Newsletter ---------- */
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

/* ---------- Forms (contact) ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cdc6b6;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* ---------- Where to buy chips ---------- */
.retailers {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.retailers a {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 30px;
  padding: 8px 18px;
  text-decoration: none;
  color: var(--green);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.retailers a:hover { background: var(--gold); color: var(--green); }

/* ---------- Prose pages ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin: 0 0 20px; }
.prose h2 { margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green);
  color: var(--cream-dark);
  padding: 48px 24px 28px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.site-footer h4 { color: var(--gold-light); margin: 0 0 12px; font-size: 1rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(246,241,231,0.7);
}

/* ---------- Signed set feature ---------- */
.set-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 920px;
  margin: 0 auto;
}
.set-covers {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
}
.set-covers img {
  width: 31%;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(31, 61, 43, 0.28);
}
.set-covers img:nth-child(2) {
  width: 34%;
  margin-bottom: 0;
  z-index: 2;
}
.set-info h3 { margin: 0 0 4px; font-size: 1.5rem; }
.set-info .price { margin: 10px 0 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .set-feature { grid-template-columns: 1fr; gap: 24px; }
  .set-covers { max-width: 360px; margin: 0 auto; }
  .author-row,
  .author-row.reverse { grid-template-columns: 1fr; }
  .author-row.reverse .author-photo { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav { justify-content: center; }
  .nav-links { justify-content: center; gap: 16px; }
  section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
