/*
Theme Name:   Instantly Humbled
Theme URI:    https://instantlyhumbled.com
Description:  Dark cinematic child theme for GeneratePress. Spotlight homepage, story pages with reel button, disclaimer and next-story links.
Author:       Instantly Humbled
Template:     generatepress
Version:      1.0.0
Text Domain:  instantly-humbled
*/

:root {
  --ih-bg: #0a0a0c;
  --ih-bg-2: #140708;
  --ih-card: #151518;
  --ih-article: #17171a;
  --ih-border: #26262b;
  --ih-red: #e3262d;
  --ih-red-dark: #b81d23;
  --ih-text: #ececee;
  --ih-muted: #a3a3aa;
  --ih-faint: #7d7d83;
  --contrast: #ececee;
  --contrast-2: #a3a3aa;
  --contrast-3: #7d7d83;
  --base: #26262b;
  --base-2: #0a0a0c;
  --base-3: #17171a;
  --accent: #e3262d;
}

html body { background: var(--ih-bg); color: var(--ih-text); font-family: 'Inter', system-ui, sans-serif; }
body a { color: var(--ih-red); }
body a:hover { color: #ff4a50; }
h1, h2, h3, h4, .ih-title { font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500; color: #fff; letter-spacing: .2px; }

/* Header */
.site-header, .main-navigation, .main-navigation ul ul { background: var(--ih-bg) !important; }
.site-header { border-bottom: 1px solid #241012; }
.inside-header { padding-top: 12px; padding-bottom: 12px; }
.site-logo img, .site-logo .header-image { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid #3a1416; background: #000; }
.site-branding-container { align-items: center; gap: 10px; }
.main-title, .main-title a { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; color: #fff !important; }
.main-title .ih-red { color: var(--ih-red); }
.site-description { color: var(--ih-faint); font-size: 12px; }
.main-navigation .main-nav ul li a { color: var(--ih-muted); font-size: 14px; }
.main-navigation .main-nav ul li a:hover, .main-navigation .main-nav ul li.current-menu-item > a { color: #fff; }
.ih-follow { display: inline-flex; align-items: center; background: var(--ih-red); color: #fff !important; font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 4px; margin-left: 12px; text-decoration: none; }
.ih-follow:hover { background: var(--ih-red-dark); }
.menu-toggle, .menu-toggle:hover { background: transparent; color: #fff; }

/* Layout */
.site-content .content-area { width: 100%; }
.separate-containers .inside-article, .one-container .site-content { background: transparent; }
.ih-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Spotlight */
.ih-spotlight { background: var(--ih-bg-2); border-bottom: 1px solid #241012; padding: 40px 0; margin-bottom: 32px; }
.ih-spotlight .ih-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.ih-kicker { font-size: 12px; color: var(--ih-red); letter-spacing: 2px; text-transform: uppercase; font-weight: 500; }
.ih-spotlight h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; margin: 8px 0 12px; }
.ih-spotlight h2 a { color: #fff; }
.ih-spotlight p { color: var(--ih-muted); margin-bottom: 18px; }
.ih-btn { display: inline-block; background: var(--ih-red); color: #fff !important; padding: 10px 18px; border-radius: 4px; font-weight: 500; text-decoration: none; }
.ih-btn:hover { background: var(--ih-red-dark); }
.ih-btn-ghost { background: transparent; border: 1px solid var(--ih-red); }
.ih-btn-ghost:hover { background: rgba(227,38,45,.12); }
.ih-thumb { display: block; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: #2b1113; }
.ih-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ih-thumb:hover img { transform: scale(1.03); }

/* Grid */
.ih-section-title { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--ih-muted); margin: 0 0 16px; font-family: 'Inter', sans-serif; }
.ih-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.ih-card h3 { font-size: 19px; line-height: 1.25; margin: 10px 0 4px; }
.ih-card h3 a { color: #eee; }
.ih-card h3 a:hover { color: var(--ih-red); }
.ih-meta { font-size: 12px; color: var(--ih-faint); }

/* Pagination */
.ih-wrap .nav-links { display: flex; gap: 8px; justify-content: center; margin: 8px 0 40px; }
.ih-wrap .page-numbers { padding: 6px 12px; border: 1px solid var(--ih-border); border-radius: 4px; color: var(--ih-muted); }
.ih-wrap .page-numbers.current { background: var(--ih-red); border-color: var(--ih-red); color: #fff; }

/* Single story */
.single .inside-article { background: var(--ih-article) !important; border: 1px solid var(--ih-border); border-radius: 10px; padding: 32px; }
.single .entry-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.single .entry-meta, .single .entry-meta a { color: var(--ih-faint); }
.single .entry-content { font-size: 18px; line-height: 1.75; color: #e2e2e5; }
.single .entry-content p { margin-bottom: 1.3em; }
.ih-reel-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 20px; }
.ih-disclaimer { font-size: 13px; color: var(--ih-faint); border-left: 3px solid var(--ih-red); padding: 6px 12px; margin: 0 0 24px; background: rgba(227,38,45,.06); }
.ih-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0 8px; }
.ih-next a { display: block; background: var(--ih-card); border: 1px solid var(--ih-border); border-radius: 8px; padding: 14px 16px; color: #fff; }
.ih-next a:hover { border-color: var(--ih-red); }
.ih-next span { display: block; font-size: 12px; color: var(--ih-red); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.ih-next strong { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 17px; }
.ih-more { margin-top: 32px; }
.ih-more .ih-grid { margin-bottom: 0; }
.ih-ad { margin: 24px 0; text-align: center; }
.ih-ad:empty { display: none; }

/* Pages, widgets, comments, forms */
.page .inside-article { background: var(--ih-article) !important; border: 1px solid var(--ih-border); border-radius: 10px; }
.sidebar .widget, .comments-area { background: var(--ih-card) !important; }
input, textarea, select { background: #0f0f12 !important; color: var(--ih-text) !important; border-color: var(--ih-border) !important; }
button, input[type="submit"] { background: var(--ih-red) !important; color: #fff !important; }

/* Footer */
.site-footer, .site-info, .footer-widgets { background: #000 !important; color: var(--ih-faint) !important; }
.site-info { border-top: 1px solid #241012; font-size: 13px; }
.site-info a { color: var(--ih-muted); }

/* Mobile */
@media (max-width: 768px) {
  .ih-spotlight { padding: 24px 0; }
  .ih-spotlight .ih-wrap { grid-template-columns: 1fr; gap: 18px; }
  .ih-spotlight .ih-thumb { order: -1; }
  .ih-grid { grid-template-columns: 1fr; gap: 20px; }
  .ih-next { grid-template-columns: 1fr; }
  .single .inside-article { padding: 20px; }
  .single .entry-content { font-size: 17px; }
  .main-title, .main-title a { font-size: 18px; letter-spacing: 1.5px; }
  .ih-follow { margin: 8px 0 0; }
}
