/* ============================
GLOBAL THEME
   ============================ */

html,
body {
    background-color: #020617;   /* pure black background */
    color: #f4f4f5;              /* near-white text */
    min-height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Global link style (applies everywhere by default) */

/* #87d7f7ff */
a {
    color: #e5e7eb;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
    color: #f9fafb;
    /* text-decoration: underline; */
    text-decoration-color: rgba(249, 250, 251, 0.85);
}

/* ============================
HOME PAGE (LIST OF DAYS)
   ============================ */

.home-wrapper {
    max-width: 900px;
    margin: 0 auto;
    /* padding: 2rem 1rem 3rem; */
}

/* Each day block */
.date-block {
    border-top: 1px solid #333333;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* No top border for first day */
.date-block:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Date heading */
.date-heading {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Date as a clickable link */
.date-heading a {
    color: #cfefff;               /* green date */
    text-decoration: none;
}

.date-heading a:hover {
    /* text-decoration: underline; */
    color: #f0f9ff;               /* lighter green on hover */
}

/* Links list for each day */
.links-list {
    padding-left: 0.75rem;
    border-left: 1px solid #222222;
}

/* Individual link items on home */
.link-item {
    margin-bottom: 1rem;
}

.link-item a {
    color: #e5e7eb;
}

.link-item a:hover {
    color: #87d7f7ff;
    /* text-decoration: underline; */
}

/* Empty-state text */
.no-entries {
    color: #9ca3af;
}

/* Archive link at bottom of home */
.archive-separator {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid #333333;
}

.archive-link-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.archive-link {
    font-size: 1rem;
    color: #9ca3af;
}

.archive-link:hover {
    color: #22c55e;
}

/* ============================
ARTICLE & CARD LAYOUT
(article detail, resources, etc.)
   ============================ */

.article-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

/* Main card container used for articles and resources */
.article-card {
    background-color: #0e131f;   /* your chosen card color */
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #374151;   /* soft gray border */

    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.02),
        0 10px 20px rgba(0, 0, 0, 0.4);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Card hover (no jump) */
.article-card:hover {
    border-color: rgba(75, 85, 99, 0.8);
    box-shadow:
        0 0 0 1px rgba(75, 85, 99, 0.35),
        0 14px 28px rgba(0, 0, 0, 0.65);
}

/* Article body text */
.article-body {
    white-space: pre-wrap;   /* keeps paragraphs/newlines in articles */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Links inside article content */
.article-body a {
    color: #87d7f7ff;
    text-decoration-color: #d1d5db;
}

.article-body a:hover {
    color: #f9fafb;
    text-decoration-color: rgba(249, 250, 251, 0.85);
}

.link-item.is-read {
    opacity: 0.78;
    filter: saturate(.85)
}

.link-item.is-read a {
    color: #7fcaff;
}

.link-item.is-read:hover {
    opacity: 0.9;
}

.link-item.is-read:hover a {
    color: rgba(249,250,251,0.9);
}

/* ============================
RESOURCES PAGE (PERMANENT LINKS)
   ============================ */

/* Wrapper: in resources.html you should have
   <div class="article-wrapper resources-page"> */
.resources-page .article-body {
    white-space: normal;   /* tighter list layout, no pre-wrap here */
    margin: 0;
    padding: 0;
}

/* Each resource entry */
.resource-item {
    margin-bottom: 0.75rem;   /* tight spacing between entries */
}

/* Title link in resource list */
.resource-title {
    display: inline;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

/* Description under title */
.resource-description {
    margin: 0.1rem 0 0 0;
    padding: 0;
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.35;
}


/* ============================
   NAV + BRANDING
   ============================ */

header {
    border-bottom: 1px solid #1f2937;
    background-color: #000000;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #e5e7eb;
    font-size: 1rem;
}

.site-subtitle {
    font-size: 0.65rem;
    color: #6b7280;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* X badge */
.x-badge {
    border: 1px solid #374151;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 999px;
    color: #9ca3af;
}

.x-badge:hover {
    color: #f9fafb;
    border-color: #9ca3af;
}

/* Footer */
footer {
    border-top: 1px solid #1f2937;
    background-color: #000000;
    color: #6b7280;
}
