/* =========================================
   Jeremy John Hayes — Author Site
   Static rebuild from Avada/Fusion
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #f4e7d9;
  --cream-50: rgba(244, 231, 217, 0.5);
  --cream-18: rgba(244, 231, 217, 0.18);
  --burgundy: #893938;
  --burgundy-56: rgba(137, 57, 56, 0.56);
  --near-black: #141617;
  --btn-top: #f4e7d9;
  --btn-bottom: #f4d2ab;
  --font-display: 'Special Gothic', sans-serif;
  --font-heading: 'Times New Roman', Times, serif;
  --font-body: 'Cormorant', Georgia, serif;
  --max-width: 936px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--cream);
  background-color: var(--near-black);
  background-image: url('../images/background-mockup2.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 5px;
  left: 5px;
  width: auto;
  height: auto;
  padding: 15px 23px;
  background: var(--cream);
  color: #333;
  z-index: 100000;
  font-size: 1em;
}

/* --- Layout --- */
.row {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  padding: 0 2%;
}
.row-center {
  justify-content: center;
}
.row-between {
  justify-content: space-between;
}

.col-full {
  width: 100%;
  padding: 0 1.92%;
}
.col-half {
  width: 50%;
  padding: 0 3.84%;
}
.col-third {
  width: 33.333%;
  padding: 0 5.76%;
}
.col-quarter {
  width: 25%;
  padding: 0 7.68%;
  display: flex;
  align-items: center;
}
.col-4-5 {
  width: 100%;
  padding: 0 1.92%;
}
.col-1-5 {
  display: none;
}

.section {
  padding: 0;
}

/* --- Section 1: Title --- */
.section-title {
  padding-top: 55px;
  text-align: center;
}
.author-name {
  font-family: var(--font-display);
  font-size: calc(1.7 * 1em);
  font-weight: 400;
  font-style: normal;
  color: var(--burgundy);
  margin: 0;
  line-height: 1.3;
}
.book-title {
  font-family: var(--font-heading);
  font-size: calc(3 * 1em);
  font-weight: var(--h2-weight, 400);
  text-transform: uppercase;
  margin: 0 0 5px;
  line-height: 1.3;
  letter-spacing: 0.3px;
}
.book-subtitle {
  font-family: var(--font-heading);
  font-size: calc(1.5 * 1em);
  font-weight: 400;
  color: var(--cream-50);
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

/* --- Section 2: Book + Buy --- */
.section-book-cta {
  margin-top: 0;
  margin-bottom: 20px;
}
.book-image {
  text-align: center;
  max-width: 375px;
  margin: 15px auto;
}
.buy-btn-wrap {
  text-align: center;
}
.buy-btn {
  display: inline-block;
  padding: 11px 23px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 18px;
  color: var(--burgundy);
  background: linear-gradient(to bottom, var(--btn-top), var(--btn-bottom));
  border: none;
  border-radius: 0;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.buy-btn:hover {
  opacity: 0.85;
}

/* --- Section 3: Tagline --- */
.section-tagline {
  padding: 20px 0;
}
.tagline {
  font-family: var(--font-heading);
  font-size: 2em;
  font-weight: 400;
  text-align: center;
  margin: 0;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

/* --- Section 4: Story Teasers --- */
.section-stories {
  padding: 20px 0;
  max-width: calc(var(--max-width) * 0.7);
  margin: 0 auto;
}
.section-stories .row {
  margin-bottom: 30px;
  padding: 0;
}
.story-text {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 2.4s ease, transform 2.4s ease;
}
.story-text.visible {
  opacity: 1;
  transform: translateY(0);
}
.story-text p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--cream);
}
.story-text strong {
  font-weight: 700;
}
.spine-chilling-wrap {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 2.4s ease, transform 2.4s ease;
}
.spine-chilling-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}
.text-right {
  text-align: right;
}
.spine-chilling {
  text-align: center;
  font-size: 1.5em;
  margin: 10px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* --- Separators --- */
.separator {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2%;
}
.sep-inner {
  margin: 45px auto;
  width: 100%;
  height: 20px;
  border-top: 1px solid var(--burgundy-56);
  border-bottom: 1px solid var(--burgundy-56);
}

/* --- Section 5: Experience + Ebook --- */
.experience-text {
  margin-bottom: 30px;
}
.experience-text p {
  font-family: var(--font-heading);
  font-size: 1.6em;
  line-height: 1.3;
  letter-spacing: 0.3px;
}
.experience-text em {
  font-style: italic;
}
.section-experience .buy-btn-wrap {
  text-align: center;
  margin: 25px 0;
}
.ebook-image {
  text-align: center;
  max-width: 250px;
  margin: 0 auto;
}

/* --- Section 6: About --- */
.section-about .col-half:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream-18);
  padding-top: 25px;
  padding-bottom: 25px;
}
.about-label {
  font-family: var(--font-heading);
  font-size: 1.5em;
  font-weight: 400;
  color: var(--cream-50);
  text-align: center;
  margin: 0 0 0;
  letter-spacing: 0.3px;
}
.about-name {
  font-family: var(--font-heading);
  font-size: 2.4em;
  font-weight: 400;
  text-align: center;
  margin: 0 0 20px;
  letter-spacing: 0.3px;
}
.about-bio p {
  margin-bottom: 12px;
  letter-spacing: 0.27px;
}
.about-photo {
  margin: 0 auto;
}
.about-photo img {
  width: 100%;
}

/* --- Section 7: Contact --- */
.section-contact {
  margin-bottom: 0;
}
.contact-heading {
  font-family: var(--font-heading);
  font-size: 2em;
  font-weight: 400;
  text-align: center;
  margin: 0 0 20px;
  letter-spacing: 0.3px;
}
.contact-form {
  width: 100%;
}
.form-field {
  margin-top: 10px;
  margin-bottom: 0;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: 18px;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(244, 231, 217, 0.3);
  color: var(--cream);
  transition: border-color 0.3s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--cream-50);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--burgundy);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.form-submit {
  text-align: right;
}
.contact-form button {
  padding: 11px 23px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 18px;
  color: var(--burgundy);
  background: linear-gradient(to bottom, var(--btn-top), var(--btn-bottom));
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: opacity 0.3s;
}
.contact-form button:hover {
  opacity: 0.85;
}
.contact-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-status {
  padding: 12px 16px;
  font-size: 16px;
  text-align: center;
  margin-top: 10px;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(101, 189, 125, 0.15);
  color: #65bd7d;
  border: 1px solid rgba(101, 189, 125, 0.3);
}
.form-status.error {
  display: block;
  background: rgba(210, 54, 57, 0.15);
  color: #d23639;
  border: 1px solid rgba(210, 54, 57, 0.3);
}

/* --- Section 8: Footer Icons --- */
.section-footer-icons {
  padding-top: 10px;
  text-align: center;
}
.footer-clock-icon {
  margin: 0 auto 10px;
  width: 80px;
}
.copyright {
  font-size: 1.3em;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.social-links a {
  color: var(--cream);
  transition: opacity 0.3s;
  display: grid;
  place-items: center;
}
.social-links a:hover {
  opacity: 0.7;
}
.social-links a svg {
  display: block;
}

/* --- Footer: Clock Face --- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 20px;
  z-index: 10;
  pointer-events: none;
}
.footer-clock-face {
  width: 32vw;
  max-width: 360px;
}
.footer-clock-face img {
  width: 100%;
  display: block;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .section-book-cta .row {
    flex-direction: column;
    align-items: center;
  }
  .col-half,
  .col-third,
  .col-quarter {
    width: 100%;
    padding: 0 1.92%;
  }
  .section-experience .row {
    flex-direction: column;
    align-items: center;
  }
  .ebook-image {
    margin-top: 30px;
  }
  .section-about .row {
    flex-direction: column;
    align-items: center;
  }
  .about-photo {
    max-width: 350px;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .book-title {
    font-size: 2.2em;
  }
  .tagline {
    font-size: 1.5em;
  }
  .text-right {
    text-align: left;
  }
  .experience-text p {
    font-size: 1.3em;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
    background-attachment: scroll;
  }
  .section-title {
    padding-top: 30px;
  }
  .author-name {
    font-size: 1.3em;
  }
  .book-title {
    font-size: 1.8em;
  }
  .sep-inner {
    margin: 30px auto;
  }
  .footer-clock-face {
    width: 60%;
  }
}
