:root {
    --bg-color: #FAF8F0;
    --ink-color: #111111;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'Roboto Mono', monospace;
}
* { box-sizing: border-box; }
body {
    background-color: var(--bg-color); color: var(--ink-color);
    font-family: var(--font-serif); margin: 0; padding: 0;
    line-height: 1.6; font-size: 20px; -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.04em; color: var(--ink-color); line-height: 1; }
h3 { font-family: var(--font-mono); font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3rem; margin-bottom: 1rem; border-bottom: 2px solid var(--ink-color); display: inline-block; padding-bottom: 5px; }

a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: opacity 0.2s; }
a:hover { opacity: 0.6; }

.container { max-width: 96vw; margin: 0 auto; padding: 0 1rem; }

.date-stamp {
    font-family: var(--font-mono); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.25em;
    color: #999; text-transform: uppercase; display: block; margin-bottom: 0.8rem;
}

header { display: flex; flex-direction: column; align-items: center; padding: 3rem 0; border-bottom: 4px solid var(--ink-color); margin-bottom: 4rem; }
.site-title { font-size: clamp(4rem, 12vw, 9rem); margin: 0; font-weight: 900; line-height: 0.8; text-transform: uppercase; letter-spacing: -0.06em; }
nav { margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.2em; display: flex; gap: 3rem; text-transform: uppercase; }

.spacer { margin-top: 6rem; margin-bottom: 6rem; border-bottom: 1px solid #ddd; }
.section-head { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.3em; margin-bottom: 2rem; text-transform: uppercase; color: #888; }

.hero-section { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; margin-bottom: 6rem; }
.hero-img { width: 100%; height: 60vh; object-fit: cover; display: block; }
.hero-content { padding-right: 2rem; }
.hero-title { font-size: clamp(3rem, 5vw, 5.5rem); margin: 0 0 1.5rem 0; }
.hero-excerpt { font-family: var(--font-mono); font-size: 1rem; line-height: 1.6; color: #444; max-width: 90%; }

.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; border-top: 1px solid var(--ink-color); padding-top: 3rem; }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 1.5rem; display: block; filter: contrast(1.1); }
.card-title { font-size: 2.2rem; margin: 0.5rem 0 1rem 0; }
.card-excerpt { font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.5; color: #555; }

.keyword-cloud { text-align: center; padding: 4rem 0; background: #F0EEE6; border: 1px solid var(--ink-color); margin: 4rem 0; }
.keyword-link { font-family: var(--font-mono); font-size: 1rem; margin: 0 1.5rem; text-transform: uppercase; letter-spacing: 0.05em; line-height: 3; }
.keyword-link:hover { background: var(--ink-color); color: var(--bg-color); padding: 2px 5px; }

/* ARTICLE PAGE */
.article-layout { max-width: 1100px; margin: 0 auto; padding-bottom: 8rem; }
.article-header { text-align: center; margin-bottom: 4rem; padding-bottom: 4rem; border-bottom: 1px solid #ccc; }
.article-title { font-size: clamp(3.5rem, 7vw, 6rem); margin: 1rem 0 2rem 0; line-height: 1.05; }
.article-hero { width: 100%; max-height: 75vh; object-fit: cover; margin-bottom: 5rem; }

.tag-link { color: var(--ink-color); text-decoration: none; border-bottom: 1px solid #ccc; transition: all 0.2s; }
.tag-link:hover { background: var(--ink-color); color: var(--bg-color); border-bottom-color: transparent; }

.pretty-quote-container {
    max-width: 900px; margin: 5rem auto; padding: 3rem 4rem;
    border-top: 6px solid var(--ink-color); border-bottom: 6px solid var(--ink-color);
    text-align: center;
}
.pretty-quote {
    font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.25; font-style: italic; font-weight: 700; color: var(--ink-color); margin: 0;
}

.essay-body {
    max-width: 900px; margin: 0 auto;
    font-family: var(--font-mono); font-size: 1.25rem; line-height: 1.8; color: #222; text-align: justify;
}
/* Ensure lists are visible and styled */
.essay-body ul { list-style-type: disc; margin: 2rem 0; padding-left: 2rem; }
.essay-body ol { list-style-type: decimal; margin: 2rem 0; padding-left: 2rem; }
.essay-body li { margin-bottom: 0.5rem; }

.essay-body > p:first-of-type::first-letter {
    float: left; font-family: var(--font-serif); font-weight: 900;
    font-size: 6rem; line-height: 0.8; padding: 0.6rem 0.6rem 0 0; margin-right: 0.5rem;
}

/* READ NEXT (The Cross-Reference Module) */
.read-next-module {
    max-width: 900px; margin: 8rem auto;
    border: 2px dashed var(--ink-color); padding: 3rem;
    position: relative;
}
.read-next-module::before {
    content: "/// CROSS-REFERENCE DETECTED ///";
    position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
    background: var(--bg-color); padding: 0 1rem;
    font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.2em;
}
.read-next-title { font-size: 2.5rem; margin: 1rem 0; text-align: center; }
.read-next-meta { text-align: center; font-family: var(--font-mono); font-size: 0.8rem; color: #666; }

.contact-section { margin-top: 6rem; border-top: 8px solid var(--ink-color); padding: 6rem 0; }
.contact-header { font-size: 15vw; line-height: 0.8; font-weight: 900; text-transform: uppercase; margin: 0 0 4rem 0; letter-spacing: -0.05em; text-align: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1400px; margin: 0 auto; }
.contact-text { font-family: var(--font-mono); font-style: italic; font-size: 1.3rem; max-width: 500px; margin-bottom: 3rem; }
.social-row { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.social-icon { width: 60px; height: 60px; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; }
.social-icon svg { width: 30px; height: 30px; fill: #fff; }
.social-info h4 { margin: 0; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: #666; text-transform: uppercase; }
.social-info span { font-size: 1.8rem; font-weight: 700; text-transform: uppercase; line-height: 1; }
.social-info a { text-decoration: none; border: none; }
.social-info a:hover { opacity: 0.7; }
.black-card { background: #000; color: #fff; padding: 4rem 2rem; text-align: center; aspect-ratio: 1/1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.freq-val { font-family: var(--font-serif); font-size: 5rem; font-style: italic; margin-bottom: 1rem; }

#search-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); z-index: 9999; display: none; padding: 10vh 5vw; }
#search-input { width: 100%; font-size: 4rem; border: none; background: transparent; border-bottom: 4px solid var(--ink-color); font-family: var(--font-serif); color: var(--ink-color); outline: none; }
.result-item { border-bottom: 1px solid rgba(0,0,0,0.1); padding: 2rem 0; }

@media (max-width: 1024px) {
    .hero-section, .contact-grid { grid-template-columns: 1fr; }
    .feed-grid { grid-template-columns: 1fr 1fr; }
    .hero-img { height: 40vh; }
}
@media (max-width: 768px) {
    .feed-grid { grid-template-columns: 1fr; }
    .hero-title, .article-title { font-size: 3rem; }
    .contact-header { font-size: 18vw; }
}
