/* ===========================================================
   Jay Sissom — site styles
   Recreated from jaysissom.com (Hostinger / Zyrosite builder)
   Fonts: Lora (headings), Montserrat (body)
   =========================================================== */

:root {
  /* Brand palette (extracted from original design tokens) */
  --brand:        #571e55;   /* rgb(87,30,85)  — header, footer accents */
  --brand-dark:   #3c153b;   /* rgb(60,21,59)  — contact section bg    */
  --brand-hover:  #4a1a49;   /* button hover */
  --ink:          #000000;   /* body text in content sections         */
  --hero-bg:      #f7f7f7;   /* rgb(247,247,247)                      */
  --white:        #ffffff;
  --field-fill:   rgba(245, 248, 251, 0.6);
  --label:        #f1f1f1;
  --maxw:         1200px;

  /* Typography */
  --font-primary:   'Lora', Georgia, serif;
  --font-secondary: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Fluid heading sizes (match original desktop -> mobile tokens) */
  --h2: clamp(36px, 5vw, 56px);
  --h3: clamp(32px, 4.4vw, 48px);
  --h4: clamp(28px, 3.8vw, 40px);
  --h5: clamp(24px, 3vw, 32px);
  --h6: clamp(20px, 2.4vw, 24px);
  --body: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

p { margin: 0 0 1em; }

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

a { color: inherit; }

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

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  color: var(--white);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}
.site-header .logo {
  font-family: var(--font-primary);
  font-size: 26px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: .2px;
}
.site-nav { display: flex; gap: 32px; }
.site-nav a {
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
  opacity: .9;
  transition: opacity .2s ease;
}
.site-nav a:hover { opacity: 1; }

/* ---------------- Hero ---------------- */
.hero {
  background: var(--hero-bg);
  padding: 90px 0;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h2 { font-size: var(--h2); margin-bottom: 24px; }
.hero .lede {
  font-size: 20px;
  line-height: 1.7;
  max-width: 38em;
}
.hero .book-name { font-style: italic; }
.hero .photo {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .15);
}

/* ---------------- Book / Work section ---------------- */
.work {
  background: var(--white);
  padding: 90px 0;
  text-align: center;
}
.work h2 {
  font-size: var(--h2);
  margin-bottom: 48px;
}
.work .book-cover {
  width: 100%;
  max-width: 460px;
  margin: 0 auto 32px;
}
.work h5 { font-size: var(--h5); margin-bottom: 28px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.28;
  padding: 14px 32px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover { background: #1d1e20; }
.btn--submit {
  background: var(--white);
  color: var(--ink);
}
.btn--submit:hover { background: var(--brand-hover); color: var(--white); }

/* ---------------- Contact ---------------- */
.contact {
  background: var(--brand-dark);
  color: var(--white);
  padding: 90px 0;
}
.contact .grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact h2 { font-size: var(--h2); margin-bottom: 18px; }
.contact .intro { color: rgba(255, 255, 255, .85); max-width: 34em; }

.contact form {
  display: grid;
  gap: 18px;
  text-align: left;
}
.contact label {
  display: block;
  font-size: 14px;
  color: var(--label);
  margin-bottom: 6px;
}
.contact .field { display: block; }
.contact input,
.contact textarea {
  width: 100%;
  height: 48px;
  font-family: var(--font-secondary);
  font-size: 16px;
  color: #565656;
  background: var(--field-fill);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 14px;
}
.contact textarea { height: auto; min-height: 120px; resize: vertical; }
.contact .submit-row { justify-self: start; }

.form-note {
  margin-top: 14px;
  font-size: 14px;
  color: #cfe6c9;
  display: none;
}
.form-note.show { display: block; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--white);
  padding: 70px 0;
  text-align: center;
}
.site-footer h4 { font-size: var(--h4); color: var(--brand); margin-bottom: 10px; }
.site-footer h6 { font-size: var(--h6); color: var(--brand); font-weight: 400; }

/* ---------------- Privacy policy page ---------------- */
.legal {
  background: var(--white);
  padding: 70px 0 90px;
}
.legal .container { max-width: 820px; }
.legal h3.legal-title { font-size: var(--h3); margin-bottom: 8px; }
.legal .updated { color: #555; margin-bottom: 28px; }
.legal h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 40px 0 14px;
}
.legal h3:not(.legal-title) { font-size: 22px; margin: 28px 0 12px; }
.legal h4 { font-size: 19px; margin: 20px 0 10px; }
.legal p { font-size: 16px; line-height: 1.7; color: #333; }
.legal ul { margin: 0 0 1.2em; padding-left: 22px; }
.legal li { font-size: 16px; line-height: 1.7; color: #333; margin-bottom: 6px; }
.legal a { color: var(--brand); word-break: break-word; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .hero { padding: 60px 0; }
  .work { padding: 60px 0; }
  .contact { padding: 60px 0; }
  .hero .grid,
  .contact .grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero .photo { margin: 0 auto; }
  .site-header .logo { font-size: 22px; }
  .site-nav { gap: 20px; }
}
