/* =============================================
   Grandpa's Baseball Card Advice — Stylesheet
   ============================================= */

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  background: #faf8f4;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #1a5e9c;
  text-decoration: underline;
}

a:hover {
  color: #c0392b;
}

/* --- Layout --- */
.site-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* --- Header --- */
.site-header {
  background: #0d2d5e;
  color: #fff;
  padding: 1rem 0;
  border-bottom: 4px solid #c0392b;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px,
    transparent 1px, transparent 9px
  );
  pointer-events: none;
}

.site-header .site-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-logo {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-logo-badge {
  height: 80px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo-badge img {
  height: 80px;
  width: auto;
  display: block;
  border-radius: 3px;
}

.site-logo h1 {
  font-size: 1.45rem;
  font-weight: bold;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.site-logo .tagline {
  font-size: 0.65rem;
  color: #a8c4e0;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* --- Navigation --- */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #d6e8f7;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  border-bottom-color: #c0392b;
}

/* --- Ad Placeholder --- */
.ad-placeholder {
  background: #eef2f7;
  border: 2px dashed #b0bec5;
  border-radius: 4px;
  text-align: center;
  padding: 1.2rem;
  color: #607d8b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ad-placeholder.ad-banner {
  margin: 1rem 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-placeholder.ad-inline {
  margin: 2rem 0;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Main Content --- */
main {
  padding: 0 0 3rem;
}

/* --- Hero Banner --- */
.page-hero {
  background: #f5f0e8;
  border-bottom: 1px solid #d4c9b0;
  padding: 2.2rem 0 2rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #c0392b 0px, #c0392b 20px,
    #0d2d5e 20px, #0d2d5e 40px
  );
}

.page-hero .site-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.page-hero-text {
  flex: 1;
}

.hero-stamp {
  display: inline-block;
  border: 2px solid #c0392b;
  color: #c0392b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.62rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  transform: rotate(-1.5deg);
  margin-bottom: 0.7rem;
  display: inline-block;
}

.page-hero h2 {
  font-size: 1.9rem;
  line-height: 1.25;
  color: #0d2d5e;
  margin-bottom: 0.7rem;
}

.page-hero .intro-text {
  font-size: 0.95rem;
  color: #555;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

/* --- Hero Card Image --- */
.hero-card-image {
  flex-shrink: 0;
  transform: rotate(4deg);
  box-shadow: 4px 6px 18px rgba(0,0,0,0.35);
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
}

.hero-card-image img {
  height: 180px;
  width: auto;
  display: block;
}

/* --- Card Stack Illustration --- */
.card-stack {
  flex-shrink: 0;
  position: relative;
  width: 100px;
  height: 130px;
  margin-top: 0.5rem;
}

.stacked-card {
  position: absolute;
  width: 76px;
  height: 106px;
  border-radius: 4px;
  border: 1px solid #c9b98a;
  background: #fff9ed;
}

.stacked-card:nth-child(1) {
  transform: rotate(-7deg);
  top: 20px;
  left: 20px;
  background: #f0ebe0;
}

.stacked-card:nth-child(2) {
  transform: rotate(-3deg);
  top: 10px;
  left: 12px;
  background: #f5f0e3;
}

.stacked-card:nth-child(3) {
  transform: rotate(1deg);
  top: 2px;
  left: 4px;
  background: #fff9ed;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stacked-card-top {
  background: #0d2d5e;
  height: 34px;
  width: 100%;
}

.stacked-card-bottom {
  flex: 1;
  padding: 5px;
  display: flex;
  align-items: flex-end;
}

.stacked-card-name {
  font-size: 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: #0d2d5e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* --- Section Headings --- */
.section-heading {
  font-size: 0.72rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c0392b;
  border-bottom: 2px solid #c0392b;
  padding-bottom: 5px;
  margin-bottom: 1.2rem;
  display: inline-block;
}

/* --- Featured Guides Grid --- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.guide-card {
  background: #fff;
  border: 1px solid #dce3ec;
  border-top: 3px solid #0d2d5e;
  border-radius: 0 0 4px 4px;
  padding: 1.2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.15s;
}

.guide-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.guide-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  font-size: 15px;
}

.guide-card h3 {
  font-size: 0.95rem;
  color: #0d2d5e;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.guide-card p {
  font-size: 0.78rem;
  color: #555;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.guide-card .read-more {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: bold;
  color: #c0392b;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guide-card .read-more:hover {
  color: #0d2d5e;
}

/* --- Vintage Divider --- */
.vintage-divider {
  border: none;
  border-top: 1px dashed #c9b98a;
  margin: 1.8rem 0;
}

/* --- Latest News --- */
.news-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.news-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid #e4ddd0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list .news-date {
  color: #888;
  font-size: 0.72rem;
  display: inline-block;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-badge {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.6rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.news-list a {
  font-size: 0.95rem;
  font-weight: bold;
  color: #1a1a1a;
  text-decoration: none;
}

.news-list a:hover {
  color: #c0392b;
}

.news-list .news-blurb {
  color: #555;
  margin-top: 0.2rem;
  font-size: 0.82rem;
}

/* --- Article / Guide Page --- */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #d4c9b0;
}

.article-header .article-category {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: bold;
  color: #c0392b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.article-header h2 {
  font-size: 1.9rem;
  line-height: 1.25;
  color: #0d2d5e;
  margin-bottom: 0.8rem;
}

.article-header .article-meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  color: #888;
}

.article-body h3 {
  font-size: 1.15rem;
  color: #0d2d5e;
  margin: 2rem 0 0.7rem;
  padding-left: 0.8rem;
  border-left: 3px solid #c0392b;
}

.article-body p {
  margin-bottom: 1.1rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.6rem;
  margin-bottom: 1.2rem;
}

.article-body li {
  margin-bottom: 0.45rem;
}

.article-body .callout {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  padding: 1rem 1.2rem;
  margin: 1.8rem 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
}

.article-body .callout strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #5a3e00;
}

/* --- Email Signup --- */
.email-signup {
  background: #0d2d5e;
  border-radius: 4px;
  padding: 1.8rem 2rem;
  margin: 2rem 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.email-signup-text { flex: 1; min-width: 220px; }

.email-signup h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.email-signup p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #a8c4e0;
  margin-bottom: 0;
  line-height: 1.5;
}

.email-signup-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.email-signup-form input[type="email"] {
  padding: 0.6rem 0.9rem;
  border: 2px solid #4a7aad;
  border-radius: 3px;
  background: #122d52;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  width: 220px;
}

.email-signup-form input[type="email"]::placeholder {
  color: #6a9cc0;
}

.email-signup-form input[type="email"]:focus {
  outline: none;
  border-color: #a8c4e0;
}

.email-signup-form button {
  padding: 0.6rem 1.2rem;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.email-signup-form button:hover {
  background: #a93226;
}

.email-fine-print {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  color: #6a9cc0;
  margin-top: 0.5rem;
  width: 100%;
}

/* --- Footer --- */
.site-footer {
  background: #0d2d5e;
  color: #a8c4e0;
  padding: 2rem 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  border-top: 4px solid #c0392b;
}

.site-footer .footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.site-footer a {
  color: #d6e8f7;
}

.affiliate-disclosure {
  background: #122d52;
  border-left: 3px solid #4a7aad;
  padding: 0.7rem 1rem;
  color: #8fb3d4;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* --- Footer Signup --- */
.footer-signup {
  border-top: 1px solid #1e4a80;
  padding-top: 1rem;
}

.footer-signup p {
  font-size: 0.78rem;
  color: #a8c4e0;
  margin-bottom: 0.6rem;
}

.footer-signup-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-signup-form input[type="email"] {
  flex: 1 1 180px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #4a7aad;
  border-radius: 3px;
  background: #122d52;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
}

.footer-signup-form input[type="email"]::placeholder {
  color: #6a9cc0;
}

.footer-signup-form input[type="email"]:focus {
  outline: none;
  border-color: #a8c4e0;
}

.footer-signup-form button {
  padding: 0.45rem 1rem;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.footer-signup-form button:hover {
  background: #a93226;
}

/* --- Article page padding --- */
.article-page main {
  padding-top: 2.5rem;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  html { font-size: 16px; }

  .site-header .site-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero .site-wrapper {
    flex-direction: column;
  }

  .card-stack { display: none; }

  .page-hero h2 { font-size: 1.5rem; }
  .article-header h2 { font-size: 1.45rem; }

  .email-signup {
    flex-direction: column;
    gap: 1rem;
  }

  .email-signup-form input[type="email"] {
    width: 100%;
  }
}
