/*
Theme Name: TedRanks
Theme URI: https://tedranks.com/
Author: TedRanks
Description: Custom WordPress wrapper for the TedRanks marketing site, blog, and free SEO tools.
Version: 0.1.1
Text Domain: tedranks
*/

.wp-site-main {
  background: #f6f4ef;
  min-height: 100vh;
  padding-top: 96px;
}

.wp-section {
  margin: 0 auto;
  max-width: 1120px;
  padding: 48px 24px 72px;
}

.wp-hero-copy {
  max-width: 780px;
}

.wp-hero-copy h1 {
  color: #16231f;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 0.96;
  margin: 10px 0 18px;
}

.wp-hero-copy p:not(.eyebrow),
.wp-content-shell p,
.wp-content-shell li {
  color: #4d565f;
}

.wp-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.wp-topic-nav a,
.wp-card-link {
  align-items: center;
  background: #e8f3ec;
  border: 1px solid rgba(22, 35, 31, 0.12);
  border-radius: 999px;
  color: #16231f;
  display: inline-flex;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 14px;
  text-decoration: none;
}

.wp-topic-nav a:hover,
.wp-card-link:hover {
  background: #d9ece2;
  text-decoration: none;
}

.wp-article-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 28px;
}

.wp-post-card,
.wp-content-shell {
  background: #fff;
  border: 1px solid rgba(28, 31, 35, 0.1);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(28, 31, 35, 0.08);
  padding: 24px;
}

.wp-post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wp-post-card h2,
.wp-content-shell h1 {
  margin-top: 0;
}

.wp-post-card h2 {
  font-size: 1.45rem;
  line-height: 1.14;
  margin-bottom: 0;
}

.wp-post-card a {
  color: inherit;
  text-decoration: none;
}

.wp-post-card a:hover {
  text-decoration: underline;
}

.wp-meta {
  color: #69707a;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.wp-meta a {
  color: #28624a;
  font-weight: 800;
}

.wp-content-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin-top: 30px;
}

.wp-side-panel {
  background: #16231f;
  border-radius: 8px;
  color: #fff;
  padding: 24px;
  position: sticky;
  top: 108px;
}

.wp-side-panel h2 {
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 8px 0 12px;
}

.wp-side-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.wp-side-panel .button {
  justify-content: center;
  margin-top: 12px;
  width: 100%;
}

.wp-side-panel .button.ghost {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.wp-content-shell h2 {
  color: #16231f;
  font-size: 1.8rem;
  line-height: 1.12;
  margin: 34px 0 12px;
}

.wp-content-shell h3 {
  color: #16231f;
  margin: 28px 0 10px;
}

.wp-content-shell ul,
.wp-content-shell ol {
  padding-left: 22px;
}

.wp-content-shell blockquote,
.wp-content-shell .ted-note {
  background: #f1f6f3;
  border-left: 4px solid #28624a;
  margin: 28px 0;
  padding: 18px 20px;
}

.wp-content-shell .ted-content-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 24px 0;
}

.wp-content-shell .ted-content-grid > div {
  background: #f8faf8;
  border: 1px solid rgba(22, 35, 31, 0.1);
  border-radius: 8px;
  padding: 18px;
}

.wp-content-shell .ted-content-grid h3 {
  margin-top: 0;
}

.wp-content-shell .ted-cta-band {
  background: #16231f;
  border-radius: 8px;
  color: #fff;
  margin-top: 32px;
  padding: 24px;
}

.wp-content-shell .ted-cta-band h2,
.wp-content-shell .ted-cta-band p {
  color: #fff;
}

.wp-content-shell .ted-cta-band a {
  color: #b9f0d4;
  font-weight: 800;
}

.wp-pagination {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

.wp-pagination a,
.wp-back-link {
  color: #16231f;
  font-weight: 700;
}

.wp-content-shell {
  line-height: 1.7;
}

.wp-content-shell img {
  height: auto;
  max-width: 100%;
}

.wp-post-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 28px;
}

@media (max-width: 760px) {
  .wp-site-main {
    padding-top: 80px;
  }

  .wp-section {
    padding: 34px 18px 56px;
  }

  .wp-hero-copy h1 {
    font-size: 2.2rem;
  }

  .wp-content-layout {
    grid-template-columns: 1fr;
  }

  .wp-side-panel {
    position: static;
  }
}
