/* baseball.fyi overrides for Casper */
:root {
  --navy: #1B2A4A;
  --red: #C41E3A;
  --cream: #F5F0E8;
  --dim: rgba(245,240,232,0.58);
  --dimmer: rgba(245,240,232,0.32);
  --font-headline: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* Hide Casper's default cover/header content on homepage */
body.home-template .site-header-content { display: none !important; }
body.home-template .site-header { background: transparent !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; }
body.home-template .outer.site-header { display: none !important; }

/* Override Casper header nav */
#gh-head { background: var(--navy) !important; border-top: 6px solid var(--red); }
#gh-head .gh-head-inner { border-bottom: none !important; }
.gh-head-logo, .gh-head-logo.no-image { font-family: var(--font-headline) !important; font-size: 32px !important; font-weight: 700 !important; color: var(--cream) !important; }
.gh-head-menu { border-top: 3px solid var(--red); border-bottom: 3px solid var(--red); padding-top: 8px; padding-bottom: 8px; margin-left: -40px; margin-right: -40px; padding-left: 40px; padding-right: 40px; }
.gh-head-menu a { color: var(--cream) !important; font-family: var(--font-body) !important; opacity: 0.85; }
.gh-head-menu a:hover { color: var(--cream) !important; opacity: 1; }
.gh-head-button { background: var(--red) !important; color: #fff !important; }

/* All nav text white */
.gh-head-actions a, .gh-head-actions .gh-head-link { color: var(--cream) !important; }
.gh-head-members a { color: var(--cream) !important; }

/* Nav icons white */
.gh-head .gh-search svg, .gh-head .gh-burger span, .gh-head .gh-icon-btn svg { color: var(--cream) !important; stroke: var(--cream) !important; }
.gh-burger span { background: var(--cream) !important; }
.gh-head-actions .gh-search { color: var(--cream) !important; }
.gh-head-brand .gh-search { color: var(--cream) !important; }

/* Body background */
body { background: var(--cream) !important; font-family: var(--font-body) !important; }

/* Hero section */
.bfyi-hero { background: var(--navy); color: var(--cream); padding: 60px 32px 80px; }
.bfyi-hero-inner { max-width: 900px; margin: 0 auto; }

.bfyi-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(245,240,232,0.12); border-radius: 6px; display: grid; grid-template-columns: 1fr 1px 360px; overflow: hidden; }
.bfyi-card-left { padding: 40px; }
.bfyi-card-left h1 { font-family: var(--font-headline); font-size: clamp(20px, 2.5vw, 26px); font-weight: 700; color: var(--cream); line-height: 1.25; margin-bottom: 14px; }
.bfyi-card-left h1 em { font-style: italic; color: var(--red); }
.bfyi-card-left p { font-size: 15px; line-height: 1.7; color: var(--dim); margin-bottom: 24px; }
.bfyi-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bfyi-bullets li { font-size: 14px; color: var(--dim); padding-left: 18px; position: relative; line-height: 1.5; }
.bfyi-bullets li::before { content: '\2014'; color: var(--red); position: absolute; left: 0; }
.bfyi-card-divider { background: rgba(245,240,232,0.1); }
.bfyi-card-right { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.bfyi-form-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; }
.bfyi-form { display: flex; flex-direction: column; gap: 10px; }
.bfyi-input { width: 100%; padding: 13px 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(245,240,232,0.18); border-radius: 3px; color: var(--cream); font-family: var(--font-body); font-size: 15px; outline: none; }
.bfyi-input::placeholder { color: var(--dimmer); }
.bfyi-input:focus { border-color: var(--red); }
.bfyi-btn { width: 100%; padding: 13px; background: var(--red); color: #fff; border: none; border-radius: 3px; font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; }
.bfyi-btn:hover { background: #a51830; }
.bfyi-form-note { margin-top: 12px; font-size: 12px; color: var(--dimmer); line-height: 1.5; }
.bfyi-form-note a { color: inherit; text-decoration: underline; }

@media (max-width: 760px) {
  .bfyi-hero { padding: 40px 20px 60px; }
  .bfyi-card { grid-template-columns: 1fr; }
  .bfyi-card-divider { display: none; }
}

/* Posts section -- red divider at top */
.bfyi-posts { background: var(--cream); padding: 0 32px 80px; border-top: 3px solid var(--red); }
.bfyi-posts-inner { max-width: 1200px; margin: 0 auto; padding-top: 64px; }
.bfyi-section-heading { font-family: var(--font-headline); font-size: 32px; font-weight: 700; color: var(--navy); margin-bottom: 40px; padding-bottom: 12px; border-bottom: 2px solid var(--red); display: inline-block; }
.bfyi-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; }
.bfyi-post-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: box-shadow 0.2s, transform 0.2s; border-top: 3px solid var(--navy); }
.bfyi-post-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.bfyi-post-link { display: block; text-decoration: none; color: inherit; }
.bfyi-post-content { padding: 24px; }
.bfyi-post-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.bfyi-post-title { font-family: var(--font-headline); font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 10px; }
.bfyi-post-excerpt { font-size: 14px; color: #8A8070; line-height: 1.6; margin-bottom: 16px; }
.bfyi-post-meta { display: flex; gap: 12px; font-size: 13px; color: #8A8070; }

/* Post single page */
.article-header { background: var(--cream) !important; }
.article-title { font-family: var(--font-headline) !important; color: var(--navy) !important; }
.article-excerpt { color: var(--navy) !important; opacity: 0.75; }
.article-tag a { color: var(--red) !important; }
.gh-content { font-family: var(--font-body) !important; }
.gh-content h2, .gh-content h3 { font-family: var(--font-headline) !important; color: var(--navy) !important; }
.gh-content a { color: var(--red) !important; }
.gh-content blockquote { border-left-color: var(--red) !important; }
.gh-content hr { background: var(--red) !important; opacity: 0.4; }

/* Page headers */
.article-full .article-header { background: var(--cream) !important; padding: 60px 0 48px !important; }

/* Hide Casper's default footer */
.site-footer.outer { display: none !important; }

/* Custom footer */
.bfyi-footer { background: var(--navy); color: var(--cream); border-top: 3px solid var(--red); padding: 64px 32px 48px; }
.bfyi-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 48px; }
.bfyi-footer-brand .bfyi-footer-logo { font-family: var(--font-headline); font-size: 20px; font-weight: 700; color: var(--cream); margin-bottom: 12px; }
.bfyi-footer-brand .bfyi-footer-logo .bfyi-footer-dot { color: var(--red); }
.bfyi-footer-brand .bfyi-footer-tagline { font-family: var(--font-headline); font-style: italic; font-size: 15px; color: var(--dim); line-height: 1.5; margin-bottom: 16px; }
.bfyi-footer-brand .bfyi-footer-copy { font-size: 13px; color: var(--dimmer); }
.bfyi-footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; }
.bfyi-footer-nav { list-style: none; padding: 0; margin: 0; }
.bfyi-footer-nav li { margin-bottom: 10px; }
.bfyi-footer-nav a { font-size: 14px; color: var(--dim); text-decoration: none; transition: color 0.2s; }
.bfyi-footer-nav a:hover { color: var(--cream); }
.bfyi-footer-signup p { font-size: 14px; color: var(--dim); margin-bottom: 16px; line-height: 1.5; }
.bfyi-footer-form { display: flex; gap: 8px; }
.bfyi-footer-form input { padding: 8px 12px; border: 1px solid rgba(245,240,232,0.2); border-radius: 4px; background: rgba(255,255,255,0.08); color: var(--cream); font-family: var(--font-body); font-size: 13px; flex: 1; outline: none; }
.bfyi-footer-form input::placeholder { color: var(--dimmer); }
.bfyi-footer-form input:focus { border-color: var(--red); }
.bfyi-footer-form button { padding: 8px 16px; background: var(--red); color: #fff; border: none; border-radius: 4px; font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer; }
.bfyi-footer-form button:hover { background: #a51830; }
.bfyi-footer-bottom { max-width: 1200px; margin: 32px auto 0; border-top: 1px solid rgba(245,240,232,0.1); padding-top: 20px; text-align: center; }
.bfyi-footer-bottom p { font-size: 12px; color: var(--dimmer); margin: 0; }

@media (max-width: 768px) {
  .bfyi-footer { padding: 40px 20px 32px; }
  .bfyi-footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* Hide Ghost branding */
.gh-powered-by { display: none !important; }
.gh-portal-triggerbtn-iframe { display: none !important; }

/* Author pages */
.author-header { background: var(--navy) !important; }
.author-profile-image { border: 3px solid rgba(245,240,232,0.2) !important; }

/* Tag pages */
.tag-header { background: var(--navy) !important; }

/* Footer signup: red line above + padding */
.bfyi-footer-col.bfyi-footer-signup,
.bfyi-footer-signup {
  border-top: none;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Page content font size standardization */
.page-template .gh-content h2,
.page-template .article-body h2 {
  font-size: 28px !important;
  line-height: 1.3;
}
.page-template .gh-content h3,
.page-template .article-body h3 {
  font-size: 22px !important;
  line-height: 1.35;
}
.page-template .gh-content p,
.page-template .article-body p {
  font-size: 17px !important;
  line-height: 1.7;
}

/* Page and post header text colors (cream bg, dark text) */
.page-template .article-header,
.post-template .article-header {
  background: var(--cream) !important;
}
.page-template .article-title,
.post-template .article-title {
  color: var(--navy) !important;
}
.page-template .article-excerpt,
.post-template .article-excerpt {
  color: var(--navy) !important;
  opacity: 0.75;
}
.page-template .article-tag a,
.post-template .article-tag a {
  color: var(--red) !important;
}
.page-template .article-header .author-name a,
.post-template .article-header .author-name a,
.page-template .article-header .article-meta,
.post-template .article-header .article-meta {
  color: var(--navy) !important;
  opacity: 0.7;
}
.page-template .article-header .article-meta a,
.post-template .article-header .article-meta a {
  color: var(--navy) !important;
}
.page-template .article-header .byline-meta-date,
.post-template .article-header .byline-meta-date {
  color: var(--navy) !important;
  opacity: 0.6;
}
