@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --ink: #1a1a1a;
    --paper: #ffffff;
    --mid: #6b6b6b;
    --faint: #999;
    --rule: #d4d4d4;
    --hairline: #e8e8e8;
    --mark: #c43c2c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.8;
    font-size: 17px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--mark); }

/* === SITE HEADER === */
.site-header {
    padding: 40px 30px 20px;
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--ink);
}

.site-logo {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.5px;
}

.site-logo span {
    color: var(--mark);
}

.site-nav {
    font-size: 0.8em;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.site-nav a {
    margin-left: 30px;
    color: var(--faint);
}

.site-nav a:hover {
    color: var(--ink);
}

/* === HOMEPAGE === */
.home-hero {
    max-width: 740px;
    margin: 0 auto;
    padding: 60px 30px 40px;
}

.home-hero .tagline {
    font-size: 0.9em;
    font-weight: 300;
    color: var(--faint);
    letter-spacing: 0.5px;
}

/* === ARTICLE CARDS === */
.articles-list {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 30px 100px;
}

.articles-list h2 {
    font-size: 0.7em;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 0;
    padding-bottom: 15px;
}

.article-card {
    display: block;
    padding: 28px 0;
    border-bottom: 1px solid var(--hairline);
    transition: padding-left 0.15s ease;
}

.article-card:hover {
    padding-left: 10px;
}

.article-card .card-category {
    font-size: 0.65em;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 6px;
    display: block;
}

.article-card h3 {
    font-size: 1.25em;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 6px;
}

.article-card .card-subtitle {
    font-size: 0.9em;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.6;
    margin-bottom: 8px;
}

.article-card .card-meta {
    font-size: 0.72em;
    font-weight: 400;
    color: var(--faint);
    letter-spacing: 0.5px;
}

/* === ARTICLE PAGE === */
.article-header {
    max-width: 740px;
    margin: 0 auto;
    padding: 80px 30px 40px;
    border-bottom: 1px solid var(--ink);
}

.article-header .category {
    font-size: 0.65em;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 20px;
    display: block;
}

.article-header h1 {
    font-size: 2.2em;
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.article-header .subtitle {
    font-size: 1.05em;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 28px;
}

.article-header .byline {
    font-size: 0.75em;
    font-weight: 400;
    color: var(--faint);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.article-header .byline .author {
    color: var(--ink);
    font-weight: 500;
}

/* === ARTICLE BODY === */
.article-body {
    max-width: 640px;
    margin: 0 auto;
    padding: 50px 30px 80px;
}

.article-body p {
    margin-bottom: 1.5em;
    text-align: left;
}

.article-body strong {
    font-weight: 600;
}

.article-body h2 {
    font-size: 1.15em;
    font-weight: 500;
    margin: 55px 0 20px;
    padding-top: 35px;
    border-top: 1px solid var(--hairline);
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: 0.2px;
}

/* === BLOCKQUOTES === */
.article-body blockquote {
    margin: 30px 0;
    padding: 0 0 0 20px;
    border-left: 2px solid var(--rule);
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--mid);
}

.article-body blockquote .attribution {
    display: block;
    margin-top: 10px;
    font-size: 0.78em;
    color: var(--faint);
    letter-spacing: 0.5px;
}

/* === PULL QUOTES === */
.pull-quote {
    margin: 45px 0;
    padding: 30px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.pull-quote p {
    font-size: 1.15em;
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink);
    text-align: left !important;
    margin-bottom: 0;
}

/* === STAT CALLOUTS === */
.stat-row {
    display: flex;
    gap: 1px;
    margin: 40px 0;
    flex-wrap: wrap;
    background: var(--hairline);
}

.stat-box {
    flex: 1;
    min-width: 180px;
    background: var(--paper);
    padding: 25px 20px;
    text-align: center;
}

.stat-box .number {
    font-size: 1.8em;
    font-weight: 300;
    display: block;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -1px;
}

.stat-box .label {
    font-size: 0.68em;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 8px;
    display: block;
    color: var(--faint);
}

/* === REFORM LIST === */
.reform-list {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.reform-list li {
    padding: 12px 0 12px 20px;
    border-bottom: 1px solid var(--hairline);
    position: relative;
    font-size: 0.95em;
}

.reform-list li:last-child { border-bottom: none; }

.reform-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    width: 8px;
    height: 1px;
    background: var(--rule);
}

.reform-list li .note {
    color: var(--faint);
    font-size: 0.9em;
}

/* === CRISIS BLOCKS === */
.crisis-block {
    margin: 30px 0;
    padding: 20px 24px;
    border: 1px solid var(--hairline);
    border-left: 2px solid var(--rule);
}

.crisis-block h3 {
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--ink);
}

.crisis-block p {
    margin-bottom: 0.8em;
    font-size: 0.92em;
    color: var(--mid);
}

.crisis-block p:last-child { margin-bottom: 0; }

/* === THREE COLUMN COMPARE === */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    margin: 45px 0;
    border: 1px solid var(--hairline);
}

.compare-col {
    padding: 25px 20px;
    border-right: 1px solid var(--hairline);
    text-align: center;
}

.compare-col:last-child { border-right: none; }

.compare-col .flag { font-size: 1.8em; display: block; margin-bottom: 8px; }

.compare-col h4 {
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 10px;
}

.compare-col p {
    font-size: 0.78em;
    line-height: 1.55;
    color: var(--mid);
    text-align: center;
    margin-bottom: 0;
}

.compare-col.highlight-col { background: #fafafa; }

/* === DROP CAP === */
.drop-cap::first-letter {
    float: left;
    font-size: 3.5em;
    font-weight: 300;
    line-height: 0.8;
    margin: 6px 10px 0 0;
    color: var(--ink);
}

/* === SECTION SEPARATOR === */
.section-sep {
    text-align: center;
    margin: 45px 0;
    color: var(--rule);
    font-size: 0.9em;
    letter-spacing: 16px;
}

/* === CLOSING === */
.closing {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid var(--ink);
}

.closing p {
    font-size: 0.95em;
    line-height: 1.8;
}

.closing .final-line {
    margin-top: 25px;
    font-weight: 500;
    color: var(--ink);
}

/* === ARTICLE FOOTER === */
.article-footer {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 30px 60px;
    border-top: 1px solid var(--hairline);
    padding-top: 25px;
}

.article-footer .back-link {
    font-size: 0.75em;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--faint);
}

.article-footer .back-link:hover { color: var(--ink); }

/* === SITE FOOTER === */
.site-footer {
    border-top: 1px solid var(--hairline);
    text-align: center;
    padding: 35px 30px;
    font-size: 0.75em;
    color: var(--faint);
    letter-spacing: 0.5px;
}

.site-footer p { margin-bottom: 4px; }
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--ink); }

/* === ABOUT PAGE === */
.about-content {
    max-width: 640px;
    margin: 0 auto;
    padding: 50px 30px 80px;
}

.about-content p {
    margin-bottom: 1.5em;
}

/* === TABLOID BREAKOUT BOX === */
.tele-box {
    margin: 45px -10px;
    border: 3px solid #1a1a1a;
}

.tele-box-header {
    background: #d42b1e;
    color: #fff;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 10px 18px;
}

.tele-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tele-list li {
    padding: 10px 18px;
    border-bottom: 1px solid var(--hairline);
    font-size: 0.88em;
    line-height: 1.5;
    position: relative;
    padding-left: 30px;
}

.tele-list li:last-child { border-bottom: none; }

.tele-list li::before {
    content: '\25A0';
    position: absolute;
    left: 14px;
    top: 10px;
    color: #d42b1e;
    font-size: 0.55em;
}

/* === TABLOID POLL === */
.tele-poll {
    margin: 45px -10px;
    border: 3px solid #1a1a1a;
}

.tele-poll-header {
    background: #1a3a5c;
    color: #fff;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 10px 18px;
}

.tele-poll-question {
    padding: 14px 18px 8px;
    font-size: 0.95em;
    font-weight: 500;
    margin-bottom: 0 !important;
}

.tele-poll-option {
    position: relative;
    margin: 6px 18px;
    background: #f2f2f2;
    height: 38px;
    display: flex;
    align-items: center;
}

.tele-poll-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    min-width: 4px;
}

.tele-poll-label {
    position: relative;
    z-index: 1;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-left: 10px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.tele-poll-option:nth-child(4) .tele-poll-label {
    color: #1a1a1a;
    text-shadow: none;
}

.tele-poll-pct {
    position: relative;
    z-index: 1;
    margin-left: auto;
    padding-right: 10px;
    font-size: 0.85em;
    font-weight: 600;
    color: #1a1a1a;
}

.tele-poll-disclaimer {
    padding: 8px 18px 14px;
    font-size: 0.7em;
    color: var(--faint);
    font-style: italic;
    margin-bottom: 0 !important;
}

/* === TABLE OF CONTENTS SIDEBAR === */
.article-toc {
    position: fixed;
    top: 100px;
    left: max(16px, calc((100vw - 640px) / 2 - 260px));
    width: 200px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.toc-label {
    font-size: 0.65em;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--faint);
    display: block;
    margin-bottom: 12px;
}

.article-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-toc li {
    margin-bottom: 0;
}

.article-toc a {
    display: block;
    padding: 4px 0 4px 12px;
    font-size: 0.72em;
    line-height: 1.4;
    color: var(--faint);
    border-left: 1px solid var(--hairline);
    transition: color 0.15s, border-color 0.15s;
}

.article-toc a:hover {
    color: var(--ink);
}

.article-toc a.active {
    color: var(--ink);
    font-weight: 500;
    border-left-color: var(--ink);
}

/* Hide TOC on screens too narrow for sidebar */
@media (max-width: 1100px) {
    .article-toc { display: none; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .site-header { flex-direction: column; gap: 12px; }
    .site-nav a { margin: 0 15px 0 0; }
    .article-header h1 { font-size: 1.7em; }
    .article-header .subtitle { font-size: 0.95em; }
    .article-body { padding: 35px 20px 60px; }
    .pull-quote { margin: 30px 0; padding: 20px 0; }
    .pull-quote p { font-size: 1.05em; }
    .stat-row { flex-direction: column; }
    .compare-grid { grid-template-columns: 1fr; }
    .compare-col { border-right: none; border-bottom: 1px solid var(--hairline); }
    .compare-col:last-child { border-bottom: none; }
    .article-body h2 { font-size: 1.1em; }
    .article-card h3 { font-size: 1.15em; }
    .home-hero { padding: 40px 30px 25px; }
}

@media print {
    .site-header, .site-footer, .site-nav { display: none; }
    body { font-size: 11pt; }
    .article-header { padding: 30px 0; }
    .article-body { padding: 20px 0; }
    .pull-quote { margin: 20px 0; }
}
