/* The Daily Mine — Ghost Theme */
/* Brand: amber #d97706, dark #1a1a1a, white #fff, gray #f5f5f5 */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: Georgia, 'Times New Roman', Times, serif; color: #e8e8e8; background: #111; -webkit-font-smoothing: antialiased; }
a { color: #d97706; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ NAV BAR ============ */
.site-header { background: #1a1a1a; padding: 0; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #2c2c2c; }
.site-header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; }
.site-logo { font-family: Georgia, serif; font-size: 18px; font-weight: 900; letter-spacing: 2px; text-decoration: none; }
.logo-daily { color: #d97706; }
.logo-mark { color: #d97706; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: #aaa; font-size: 12px; text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px; transition: color 0.2s; font-family: 'IBM Plex Mono', monospace; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; }
.nav-subscribe { background: #d97706; color: #fff !important; padding: 6px 16px; border-radius: 3px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; transition: background 0.2s; }
.nav-subscribe:hover { background: #b45309; text-decoration: none; }

/* ============ MASTHEAD ============ */
.home-hero { background: #1a1a1a; padding: 48px 20px 36px; text-align: center; border-bottom: 1px solid #2c2c2c; }
.masthead-title { margin: 0; font-size: 46px; font-weight: 900; letter-spacing: 6px; font-family: Georgia, serif; }
.masthead-daily { color: #d97706; }
.masthead-mine { color: #fff; }
.masthead-mark { color: #d97706; }
.masthead-tagline { margin-top: 8px; font-size: 14px; color: #888; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.5px; }
.masthead-date { margin-top: 4px; font-size: 13px; color: #666; letter-spacing: 1px; font-family: 'IBM Plex Mono', monospace; }

/* ============ NEWSLETTER CONTENT ON HOMEPAGE ============ */
.home-newsletter-content { max-width: 700px; margin: 0 auto; padding: 0 20px 20px; background: #fff; }
.newsletter-body { font-family: Georgia, serif; font-size: 15px; line-height: 1.7; color: #222; }

/* Section headers — dark bars with amber text */
.newsletter-body h2 {
    font-size: 13px;
    font-weight: 700;
    color: #d97706 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #1a1a1a;
    padding: 10px 16px;
    margin: 28px -20px 16px;
    font-family: Georgia, serif;
}
.newsletter-body strong a { color: #d97706; text-decoration: none; font-weight: 700; }
.newsletter-body strong a:hover { text-decoration: underline; }
.newsletter-body em { color: #555; font-size: 14px; display: block; margin-top: 2px; line-height: 1.5; }
.newsletter-body span[style*="font-size:12px"], .newsletter-body span[style*="font-size:11px"] { color: #999 !important; }
.newsletter-body p { margin: 0 0 12px; }
.newsletter-body table { width: 100%; border-collapse: collapse; }
.newsletter-body td { vertical-align: top; padding: 0; }

/* Stat of the Day */
.newsletter-body p[style*="font-size:48px"], .newsletter-body p[style*="font-size:52px"] { color: #d97706 !important; }

/* ============ ARCHIVE LINK ============ */
.home-archive-link { text-align: center; padding: 24px 0 48px; background: #fff; max-width: 700px; margin: 0 auto; }
.archive-all-link { color: #d97706; font-size: 14px; font-weight: 600; }

/* ============ POST PAGES ============ */
.post-content { max-width: 700px; margin: 0 auto; padding: 20px 20px 40px; }
.post-header { text-align: left; padding: 32px 20px 0; max-width: 700px; margin: 0 auto; }
.post-kicker { font-size: 11px; color: #d97706; text-transform: uppercase; letter-spacing: 2.4px; margin: 0 0 8px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; }
.post-title { font-size: 26px; font-weight: 900; color: #e8e8e8; margin: 0 0 8px; }
.post-meta-wrap { font-size: 11px; color: #555; margin-bottom: 24px; font-family: 'IBM Plex Mono', monospace; border-bottom: 1px solid #262626; padding-bottom: 20px; }
.post-meta-wrap a { color: #555; }
.post-meta-wrap a:hover { color: #d97706; }
.content-body { font-family: Georgia, serif; font-size: 16px; line-height: 1.8; color: #ccc; }
.content-body a { color: #d97706; }
.content-body strong a { color: #d97706; }
.content-body em { color: #999; }
.content-body span[style*="font-size:12px"], .content-body span[style*="font-size:11px"] { color: #7a7a7a !important; }
.content-body h2 { font-size: 13px; font-weight: 700; color: #d97706; text-transform: uppercase; letter-spacing: 2px; background: #1a1a1a; padding: 10px 16px; margin: 28px -20px 16px; font-family: 'IBM Plex Mono', monospace; }

/* ============ TAG / ARCHIVE PAGES ============ */
.archive-wrap { max-width: 820px; margin: 0 auto; padding: 40px 24px 56px; }
.archive-header { margin-bottom: 32px; }
.content-kicker { font-size: 11px; color: #d97706; text-transform: uppercase; letter-spacing: 2.4px; margin: 0 0 6px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; }
.content-title { font-size: 32px; font-weight: 900; color: #e8e8e8; margin: 0 0 10px; }
.content-standfirst { font-size: 15px; color: #7a7a7a; margin: 0; }
.archive-item { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; padding: 16px 0; border-bottom: 1px solid #262626; gap: 18px; border-left: 3px solid transparent; transition: border-color 0.2s, padding-left 0.2s; }
.archive-item:hover { border-left-color: #d97706; padding-left: 12px; }
.archive-item-title { font-family: Georgia, serif; font-size: 18px; font-weight: 700; color: #e8e8e8; text-decoration: none; flex: 1; margin: 0; }
.archive-item-title a { color: #e8e8e8; text-decoration: none; }
.archive-item-title a:hover { color: #d97706; text-decoration: none; }
.archive-item-date { font-size: 11px; color: #7a7a7a; white-space: nowrap; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.7px; }
.archive-item-excerpt { display: none; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 32px 0 16px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.pagination .page-number { color: #555; }
.pagination a { color: #d97706; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.pagination a:hover { color: #fff; }

/* ============ STATIC PAGES ============ */
.page-content, .content-wrap.page-template { max-width: 760px; margin: 0 auto; padding: 40px 24px 56px; }
.page-title { font-size: 28px; font-weight: 900; color: #d97706; margin: 0 0 24px; }
.page-body-only h1:first-child { font-size: 34px; margin: 0 0 18px; color: #d97706; }
.page-body-only h2 { margin-top: 36px; font-size: 13px; font-weight: 700; color: #d97706; text-transform: uppercase; letter-spacing: 2px; border-bottom: 2px solid #d97706; padding-bottom: 8px; font-family: 'IBM Plex Mono', monospace; }
.page-body-only p { color: #ccc; }
.page-body-only a { color: #d97706; }
.page-body-only strong { color: #e8e8e8; }
.page-body-only ul li, .page-body-only ol li { color: #ccc; }

/* ============ FOOTER ============ */
.site-footer { background: #0a0a0a; padding: 40px 20px; text-align: center; color: #7a7a7a; font-size: 13px; line-height: 1.8; border-top: 1px solid #d97706; font-family: 'IBM Plex Mono', monospace; }
.footer-home a { color: #fff; font-weight: 700; text-decoration: none; font-size: 14px; }
.footer-tagline { margin: 4px 0 12px; }
.footer-links a { color: #d97706; text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .sep { color: #555; margin: 0 8px; }
.footer-copy { font-size: 11px; color: #555; margin-top: 12px; }

/* ============ POST FOOTER CTA ============ */
.post-footer-cta {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 32px 20px;
    text-align: center;
    border-top: 1px solid #262626;
}
.cta-text {
    font-size: 16px;
    color: #999;
    margin: 0 0 16px;
    font-family: Georgia, serif;
}
.cta-button {
    display: inline-block;
    background: #d97706;
    color: #fff !important;
    padding: 10px 28px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none !important;
    font-family: 'IBM Plex Mono', monospace;
    transition: background 0.2s;
}
.cta-button:hover { background: #b45309; }
.cta-archive {
    display: block;
    margin-top: 16px;
    color: #555;
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
    text-decoration: none;
}
.cta-archive:hover { color: #d97706; }

/* ============ ERROR PAGES ============ */
.error-content { max-width: 700px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.error-code { font-size: 72px; font-weight: 900; color: #d97706; margin-bottom: 8px; }
.error-description { font-size: 18px; color: #666; }

/* ============ RESPONSIVE ============ */
@media only screen and (max-width: 768px) {
    .masthead-title { font-size: 30px; letter-spacing: 3px; }
    .site-nav { gap: 10px; }
    .site-nav a { font-size: 10px; letter-spacing: 1px; }
    .nav-subscribe { padding: 5px 12px; font-size: 10px; }
    .newsletter-body h2 { margin-left: -16px; margin-right: -16px; }
    .content-body h2 { margin-left: -16px; margin-right: -16px; }
    .home-newsletter-content { padding: 0 16px 20px; }
    .archive-item { grid-template-columns: 1fr; gap: 4px; }
    .archive-item:hover { border-left: none; padding-left: 0; }
    .site-footer { padding: 28px 16px; }
}
@media only screen and (max-width: 480px) {
    .site-header-inner { flex-wrap: wrap; gap: 8px; }
    .nav-subscribe { order: 3; }
}

/* ============ HOMEPAGE DRUDGE LAYOUT ============ */
body.home-template,
body.home-template .site-main {
    background: #111;
}

.daily-mine-hero {
    padding: 48px 20px 28px;
    border-bottom: 1px solid #2c2c2c;
}

.daily-mine-homepage {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 40px 56px;
    overflow: hidden;
}

.daily-mine-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.daily-mine-column {
    min-width: 0;
}

.daily-mine-section-title {
    margin: 0 0 14px;
    padding-top: 10px;
    border-top: 2px solid #d97706;
    color: #d97706;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-family: 'IBM Plex Mono', 'SF Mono', 'Consolas', monospace;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.daily-mine-section-body {
    display: flex;
    flex-direction: column;
}

.daily-mine-section-title .story-count {
    color: #7a7a7a;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    text-transform: none;
}

.daily-mine-story {
    padding: 0 0 14px;
    margin: 0 0 14px;
    border-bottom: 1px solid #262626;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.daily-mine-story p {
    margin: 0;
}

.daily-mine-story strong,
.daily-mine-story a {
    color: #e5e5e5 !important;
}

.daily-mine-story strong a,
.daily-mine-story a,
.daily-mine-story .story-link {
    display: inline;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #e8e8e8 !important;
    text-decoration: none !important;
    transition: color 0.15s ease, background-size 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: linear-gradient(#d97706, #d97706) no-repeat;
    background-size: 0% 2px;
    background-position: 0 100%;
    padding-bottom: 1px;
}

.daily-mine-story strong a:hover,
.daily-mine-story a:hover,
.daily-mine-story .story-link:hover {
    color: #d97706 !important;
    text-decoration: none !important;
    background-size: 100% 2px !important;
}

.daily-mine-story .story-source {
    margin-top: 5px;
    color: #7a7a7a;
    font-size: 0.7rem;
    font-family: 'IBM Plex Mono', 'SF Mono', 'Consolas', monospace;
    letter-spacing: 0.3px;
}

.daily-mine-story span {
    display: inline-block;
    margin-top: 5px;
    color: #7a7a7a !important;
    font-size: 0.7rem !important;
    line-height: 1.4;
    text-transform: none;
    font-family: 'IBM Plex Mono', 'SF Mono', 'Consolas', monospace;
    letter-spacing: 0.3px;
}

.daily-mine-story em {
    display: none !important;
}

.daily-mine-source-html {
    display: none;
}

.daily-mine-section-body .daily-mine-story:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media only screen and (max-width: 768px) {
    .daily-mine-homepage {
        padding: 24px 16px 40px;
    }

    .daily-mine-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
