/*
 * Home page sections (hero, articles, about, contact) plus shared card/
 * button styles reused later by category and year archive listings.
 */

.jrt-section-divider {
  height: 1px;
  background: #000;
  width: 100%;
}

.jrt-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Hero */
.jrt-hero {
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--jrt-color-bg-alt);
}

.jrt-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 48px;
  margin: 0;
}

/* Articles */
.jrt-articles {
  padding-top: 96px;
  padding-bottom: 96px;
}

.jrt-articles h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 40px;
  margin: 0 0 64px;
  text-align: center;
}

.jrt-articles-columns {
  display: flex;
  gap: 64px;
}

.jrt-articles-column {
  flex: 1 1 0;
  min-width: 0;
}

.jrt-articles-view-all {
  text-align: center;
  margin-top: 56px;
}

.jrt-articles-column h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 24px;
}

.jrt-card {
  margin-bottom: 24px;
}

.jrt-card-category {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--jrt-color-brick-dark);
  margin-bottom: 6px;
}

.jrt-card-title {
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  margin: 0 0 4px;
}

.jrt-card-title a {
  text-decoration: none;
}

.jrt-card-excerpt {
  font-size: 14px;
  color: var(--jrt-color-muted);
  margin: 4px 0 0;
}

.jrt-empty-note {
  font-size: 14px;
  color: var(--jrt-color-muted);
  font-style: italic;
}

/* Search */
.jrt-search {
  padding-top: 14px;
  padding-bottom: 96px;
  text-align: center;
}

.jrt-search-heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 40px;
  margin: 0 0 32px;
  color: var(--jrt-color-brick);
}

.jrt-search .search-form {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.jrt-search .search-field {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 16px;
  padding: 12px 20px;
  border: 1px solid var(--jrt-color-rule);
  border-radius: 999px;
  width: 320px;
}

.jrt-search .search-submit {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--jrt-color-accent);
  background: transparent;
  border: 1px solid var(--jrt-color-accent);
  border-radius: 999px;
  padding: 14px 32px;
  cursor: pointer;
}

.jrt-search .search-submit:hover {
  background: var(--jrt-color-accent);
  color: var(--jrt-color-bg);
}

/* About */
.jrt-about {
  padding-top: 132px;
  padding-bottom: 96px;
  background-color: var(--jrt-color-bg-alt);
}

.jrt-about-heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 40px;
  margin: 0 0 56px;
  text-align: center;
}

.jrt-about-row {
  display: flex;
  align-items: center;
  gap: 64px;
}

.jrt-about-text {
  flex: 1 1 0;
}

.jrt-about-text p {
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 32px;
}

.jrt-about-photo {
  flex: 0 0 240px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
}

.jrt-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jrt-about-buttons {
  display: flex;
  gap: 16px;
}

/* Contact */
.jrt-contact {
  text-align: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.jrt-contact h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 32px;
  margin: 0 0 56px;
}

/* Shared button style */
.jrt-btn {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--jrt-color-accent);
  border: 1px solid var(--jrt-color-accent);
  border-radius: 999px;
  padding: 14px 32px;
}

.jrt-btn:hover {
  background: var(--jrt-color-accent);
  color: var(--jrt-color-bg);
}

/* Higher-emphasis variant — solid fill by default, for CTAs that should
   outrank a standard button (e.g. a paid-content upsell, ebook download). */
.jrt-btn-bold {
  background: var(--jrt-color-brick);
  border-color: var(--jrt-color-brick);
  color: var(--jrt-color-bg);
}

.jrt-btn-bold:hover {
  background: var(--jrt-color-brick-dark);
  border-color: var(--jrt-color-brick-dark);
  color: var(--jrt-color-bg);
}

/* Below this width, the articles columns and about section stack instead
   of sitting side by side. */
@media (max-width: 720px) {
  .jrt-hero {
    height: auto;
    padding: 96px 0;
  }

  .jrt-hero h1 {
    font-size: 32px;
  }

  .jrt-articles-columns {
    flex-direction: column;
    gap: 40px;
  }

  .jrt-about-row {
    flex-direction: column;
  }

  .jrt-about-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .jrt-search .search-form {
    flex-direction: column;
    align-items: center;
  }

  .jrt-search .search-field {
    width: 100%;
    max-width: 320px;
  }
}
