/*
Theme Name: RetailTrader 90s
Theme URI: https://www.theretailoptionstrader.com/
Author: RetailTrader Dev
Description: Block theme starter for retro-style trading blogs with scalable ad/sidebar layout.
Version: 0.1.0
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: retailtrader-90s
*/

:root {
  --rt-content-max: 720px;
  --rt-page-max: 1360px;
  --rt-border: #bcbcbc;
  --rt-bg: #f6f6f6;
  --rt-panel: #ffffff;
  --rt-text: #111111;
  --rt-link: #0b50d0;
  --rt-muted: #525252;
  --rt-header-bg: #fefefe;
}

body {
  background: var(--rt-bg);
  color: var(--rt-text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: var(--rt-link);
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration: underline;
}

.wp-site-blocks {
  max-width: none;
  margin: 0 auto;
  background: #f5f5f5;
  min-height: 100vh;
}

.wp-site-blocks > header {
  background: var(--rt-header-bg);
}

.rt-accent {
  color: #6bb6de;
}

.rt-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.rt-brand {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.62rem;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.rt-main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rt-main-nav a {
  text-decoration: none;
  color: #111;
  font-size: 0.68rem;
}

.rt-main-nav .rt-nav-cta {
  background: #6bb6de;
  color: #fff;
  border-radius: 4px;
  padding: 7px 14px;
  font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0.2px;
  margin-top: 0.35em;
}

.wp-block-post-title a {
  text-decoration: none;
}

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

.rt-post-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, var(--rt-content-max)) 320px;
  gap: 24px;
  align-items: start;
}

.rt-rail {
  border: 1px solid var(--rt-border);
  padding: 12px;
  background: #fafafa;
  position: sticky;
  top: 24px;
}

.rt-rail h4 {
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rt-border);
  font-size: 1rem;
}

.rt-rail .wp-block-post-title {
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.rt-rail .wp-block-categories-list,
.rt-rail .wp-block-latest-posts {
  margin: 0;
  padding-left: 18px;
}

.rt-post-main {
  padding: 0 4px;
}

.rt-post-main .wp-block-post-featured-image {
  margin: 12px 0 20px;
}

.rt-post-main .wp-block-post-content > * + * {
  margin-top: 1.1em;
}

.rt-divider {
  color: var(--rt-muted);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rt-ad-placeholder {
  min-height: 280px;
  border: 1px dashed #888;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.9rem;
  padding: 10px;
  background: #fff;
}

.rt-ad-slot {
  width: 300px;
  max-width: 100%;
  margin: 0 auto 12px;
  border: 1px dashed #888;
  min-height: 250px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
}

.rt-ad-slot.tall {
  min-height: 600px;
}

.rt-home-title {
  border-bottom: 2px solid var(--rt-border);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.rt-hero {
  border: 1px solid var(--rt-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

.rt-page-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 26px 60px;
}

.rt-homepage {
  background: #f5f5f5;
}

.rt-hero-grid,
.rt-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 56px;
}

.rt-hero-copy h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
  max-width: 12ch;
}

.rt-hero-copy p {
  color: #2d2d2d;
  margin: 0 0 18px;
  max-width: 48ch;
}

.rt-hero-actions {
  display: flex;
  gap: 10px;
}

.rt-btn {
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 10px 18px;
}

.rt-btn:hover {
  text-decoration: none;
}

.rt-btn-dark {
  background: #121f35;
  color: #fff;
}

.rt-btn-blue {
  background: #63afd8;
  color: #fff;
}

.rt-hero-media img,
.rt-feature-media img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.rt-feature-copy {
  border: 1px solid #d5d5d5;
  background: #fff;
  border-radius: 10px;
  padding: 24px;
}

.rt-feature-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  line-height: 1.25;
  max-width: 16ch;
}

.rt-feature-copy p {
  margin: 0 0 10px;
  color: #2b2b2b;
}

.rt-feature-copy ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.rt-latest-head {
  margin-top: 8px;
}

.rt-latest-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  margin: 0;
}

.rt-latest-head .wp-block-button__link {
  font-size: 0.74rem;
  padding: 8px 14px;
}

.rt-home-card {
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.rt-home-card .wp-block-post-featured-image img {
  border-radius: 6px;
}

.rt-home-card .wp-block-post-title {
  margin: 6px 0 8px;
  font-size: 1rem;
}

.rt-latest-subtitle {
  margin-top: 6px;
  margin-bottom: 18px;
  color: #4d4d4d;
  font-size: 0.9rem;
}

.rt-subscribe-box {
  border: 0;
  background:
    linear-gradient(180deg, rgba(7, 20, 38, 0.88), rgba(7, 20, 38, 0.88)),
    url("https://static.wixstatic.com/media/fe25ea_8b374ee8e27945da8c172a72197e1dad~mv2.jpg/v1/fill/w_1800,h_700,al_c,q_85,enc_avif,quality_auto/fe25ea_8b374ee8e27945da8c172a72197e1dad~mv2.jpg")
      center / cover no-repeat;
  color: #f7fbff;
  text-align: center;
}

.rt-subscribe-box h3,
.rt-subscribe-box p {
  color: #f7fbff;
}

.rt-subscribe-box h2 {
  color: #f7fbff;
  margin: 0 0 10px;
}

.rt-footer {
  background: #0b1323;
}

.rt-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rt-footer-brand {
  color: #eaf3ff;
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.rt-footer-nav {
  display: flex;
  gap: 10px;
}

.rt-footer-nav a {
  color: #eaf3ff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  font-size: 0.66rem;
  padding: 4px 12px;
}

.rt-footer-subscribe {
  display: inline-block;
  background: #6bb6de;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 0.68rem;
}

.rt-footer p {
  color: #eaf3ff;
  font-size: 0.64rem;
  margin: 0;
}

.wp-block-button__link {
  background: #0f172a;
  border-radius: 8px;
  font-size: 0.72rem;
  padding: 0.55rem 1rem;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  color: #0f172a;
  border-color: #0f172a;
}

.rt-post-card {
  background: #fff;
}

.rt-post-meta {
  color: var(--rt-muted);
  font-size: 0.9rem;
}

@media (max-width: 1220px) {
  .rt-post-grid {
    grid-template-columns: 1fr;
  }

  .rt-rail {
    position: static;
  }

  .rt-home-columns {
    grid-template-columns: 1fr;
  }

  .rt-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .rt-main-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .rt-hero-grid,
  .rt-feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }

  .rt-page-wrap {
    padding: 0 16px 36px;
  }
}
