/* custom style.css for Rachel Cunliffe site */

/* Font Loading */
@font-face {
  font-family: 'Satoshi Variable';
  src: url("../images/satoshi-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fa Brands 400";
  src: url("../images/fa-brands-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fa 400";
  src: url("../images/fa-regular-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* CSS Resets & General Styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #faf9f7;
  color: #000;
  font-family: 'Satoshi Variable', Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

p {
  font-size: 20px;
  line-height: 32px;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 18px;
}

h2 {
  font-size: 32px;
  line-height: 36px;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 20px;
}

a {
  color: #000;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #555;
}

/* Layout Header Logo */
.logo-header {
  background-color: #f9f6f1;
  width: 100%;
  height: auto;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-image {
  width: 836px;
  max-width: 836px;
  height: auto;
}

/* Main Container */
.main-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: block;
}

/* Card Row Styles */
.card-row {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-column-gap: 60px;
  grid-row-gap: 60px;
  width: 100%;
  max-width: 1300px;
  margin-top: 80px;
  margin-bottom: 80px;
}

/* Standard column widths */
.card-text {
  width: 740px;
  align-self: center;
}

.card-text.italicized h2 {
  font-style: italic;
}

.card-image-square {
  width: 460px;
  height: 460px;
  object-fit: cover;
}

.card-image-tall {
  width: 460px;
  height: 560px;
  object-fit: cover;
}

/* Podcast Icons Row */
.podcast-links-wrapper {
  display: flex;
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  margin-top: 20px;
}

.podcast-links-wrapper img {
  height: auto;
  max-width: 100%;
  transition: transform 0.2s ease;
}

.podcast-links-wrapper img:hover {
  transform: translateY(-2px);
}

/* ConvertKit Embed spacing */
.newsletter-embed-wrapper {
  margin-top: 25px;
  width: 100%;
}

/* Form Section (Bottom Weekly Letter) */
.newsletter-signup-sec {
  background-color: #f9f6f1;
  width: 100%;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.newsletter-box {
  text-align: center;
  width: 100%;
  max-width: 1300px;
}

.newsletter-box h2 {
  font-size: 32px;
  font-weight: 500;
}

.newsletter-box p {
  font-size: 20px;
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-form-row {
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  width: 100%;
}

.form-input-email {
  color: #000;
  border-radius: 6px;
  border: 1px solid #aaa;
  background-color: #fff;
  height: 60px;
  padding: 15px;
  font-family: 'Satoshi Variable', Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  width: 100%;
  max-width: 480px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input-email:focus {
  border-color: #000;
}

.form-submit-btn {
  background-color: #000;
  color: #fff;
  border-radius: 6px;
  border: none;
  height: 60px;
  padding: 0 30px;
  font-family: 'Satoshi Variable', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.form-submit-btn:hover {
  background-color: #333;
}

.form-submit-btn:active {
  transform: scale(0.98);
}

/* Footer Section */
.footer-sec {
  width: 100%;
  margin-top: 80px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-social-box {
  width: 100%;
  max-width: 1300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

.social-link-item {
  text-decoration: none;
  color: #000;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-link-item:hover {
  transform: translateY(-3px);
  color: #666;
}

.fa-icon-font {
  font-family: "Fa 400", Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
  padding-left: 15px;
  padding-right: 15px;
}

.fa-brand-font {
  font-family: "Fa Brands 400", Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
  padding-left: 15px;
  padding-right: 15px;
}

.footer-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-column-gap: 40px;
  grid-row-gap: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
  width: 100%;
  text-align: center;
}

.footer-text {
  color: #000;
  font-family: 'Satoshi Variable', Arial, sans-serif;
  font-size: 14px;
  line-height: 28px;
}

.footer-text a {
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-text a:hover {
  border-bottom-color: #000;
}

/* Turnstile Widget spacing */
.turnstile-wrapper {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

/* Media Queries */

/* Tablet & Smaller (Max-width: 991px) */
@media screen and (max-width: 991px) {
  .logo-image {
    max-width: 80%;
  }

  .logo-header {
    max-width: 100%;
  }

  .main-container {
    max-width: 820px;
  }

  .card-row {
    flex-direction: column;
    grid-column-gap: 40px;
    grid-row-gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 820px;
  }

  .card-row.reverse-wrap {
    flex-direction: column-reverse; /* Put image on top, text below for Row 2 */
  }

  .card-text {
    width: 100%;
    text-align: center;
  }

  .card-text.italicized h2 {
    text-align: center;
  }

  .podcast-links-wrapper {
    justify-content: center;
    align-items: center;
  }

  .footer-sec {
    max-width: 820px;
  }

  .form-submit-btn {
    width: 100%;
  }
}

/* Mobile Landscape (Max-width: 767px) */
@media screen and (max-width: 767px) {
  .logo-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .card-row {
    max-width: 667px;
  }

  .card-text {
    max-width: 627px;
  }

  .newsletter-box {
    max-width: 100%;
  }

  .footer-social-box {
    max-width: 667px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .podcast-links-wrapper {
    flex-wrap: wrap;
  }
}

/* Mobile Portrait (Max-width: 479px) */
@media screen and (max-width: 479px) {
  .logo-image {
    max-width: 90%;
  }

  .main-container {
    max-width: 393px;
  }

  .card-row {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    max-width: 393px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .card-text {
    max-width: 393px;
  }

  .card-image-square,
  .card-image-tall {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .card-image-square {
    aspect-ratio: 1 / 1;
  }

  .newsletter-form-row {
    flex-direction: column;
  }

  .form-input-email {
    width: 100%;
    max-width: 100%;
  }

  .form-submit-btn {
    width: 100%;
    margin-top: 10px;
  }

  .footer-meta-row {
    padding-bottom: 20px;
  }
}
