@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,500&family=Courier+Prime:wght@400;700&display=swap');

:root { --ink: #1a1712; --paper: #f5f1e6; --paper-raised: #efe9d9; --muted: #6f6a5c; --line: #d8d0b8; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: 'Fraunces', Georgia, serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'Courier Prime', 'Courier New', monospace; }
.rule { height: 1px; background: var(--ink); }
.rule-thick { height: 3px; background: var(--ink); }
.rule-thin { height: 1px; background: var(--line); margin: 28px 0; }

/* ---------- masthead ---------- */
.masthead { background: var(--paper); padding: 18px 0 0; }
.masthead-inner { padding-bottom: 0; }
.folio-line { display: flex; justify-content: space-between; align-items: baseline; font-family: 'Courier Prime', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.nameplate-mark { text-align: center; padding: 22px 20px; }
.nameplate-wordmark { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.logo-box { width: 54px; height: 54px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; font-family: 'Fraunces', serif; flex-shrink: 0; }
.logo-img { height: 84px; width: auto; max-width: 440px; object-fit: contain; }
.site-name { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.site-tagline { font-family: 'Courier Prime', monospace; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.index-line { padding: 12px 0; }
.index-line .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 4px; font-family: 'Courier Prime', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.index-line a { padding: 4px 2px; color: var(--ink); }
.index-line a.current { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.index-line a:hover { color: var(--muted); }
.index-line .dot { color: var(--line); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 36px 24px 24px; max-width: 1180px; margin: 0 auto; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; padding: 28px 20px 20px; gap: 32px; } }

/* ---------- lede (hero) ---------- */
.lede .cat-tag { display: inline-block; margin-bottom: 10px; }
.lede h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; line-height: 1.08; margin-bottom: 12px; }
.lede a:hover h1 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.byline { font-family: 'Courier Prime', monospace; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 22px; }
.breaking-tag { color: var(--accent); font-weight: 700; }
.lede-body { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
@media (max-width: 640px) { .lede-body { grid-template-columns: 1fr; } }
.lede-figure { display: block; }
.drop-cap { font-size: 18px; line-height: 1.75; margin: 0; }
.drop-cap::first-letter { font-family: 'Fraunces', serif; font-weight: 800; font-size: 68px; float: left; line-height: .78; padding: 4px 8px 0 0; }

.inset-photo { margin: 0; border: 1px solid var(--ink); padding: 6px; background: var(--paper); }
.inset-photo img, .inset-photo .placeholder-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.inset-photo figcaption { font-family: 'Courier Prime', monospace; font-size: 10.5px; color: var(--muted); padding: 8px 2px 2px; text-transform: uppercase; letter-spacing: .04em; }
.single-post-photo.inset-photo img, .single-post-photo.inset-photo .placeholder-img { height: 360px; }

.also-today { margin: 22px 0 0; }

/* ---------- index lists (numbered / plain) ---------- */
.index-list { list-style: none; margin: 0; padding: 0; }
.index-list li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.index-list li a { flex: 1; font-weight: 600; font-size: 15.5px; }
.index-list li a:hover { text-decoration: underline; }
.index-list li .meta { flex-shrink: 0; font-family: 'Courier Prime', monospace; font-size: 10.5px; color: var(--muted); text-transform: uppercase; }
.index-num { font-family: 'Courier Prime', monospace; font-size: 12px; color: var(--muted); flex-shrink: 0; width: 22px; }

/* ---------- print-flavored section layouts ---------- */
.print-section { margin: 32px 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.section-heading h2 { font-size: 21px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.see-all { font-family: 'Courier Prime', monospace; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; }
.see-all:hover { color: var(--ink); }

.briefs-columns { column-count: 2; column-gap: 32px; column-rule: 1px solid var(--line); }
@media (max-width: 640px) { .briefs-columns { column-count: 1; } }
.brief { break-inside: avoid; margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; }
.brief a { font-weight: 700; }
.brief a:hover { text-decoration: underline; }
.brief-dek { color: var(--muted); }

.photo-lead { display: grid; grid-template-columns: 240px 1fr; gap: 22px; margin-bottom: 18px; align-items: start; }
@media (max-width: 640px) { .photo-lead { grid-template-columns: 1fr; } }
.photo-lead-figure .placeholder-img { width: 100%; height: 170px; object-fit: cover; border: 1px solid var(--ink); }
.photo-lead-copy h3 { font-size: 21px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.photo-lead-copy a:hover h3 { text-decoration: underline; }
.photo-lead-copy p { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- post grid (category / tag / search / related) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: block; border-top: 2px solid var(--ink); padding-top: 14px; }
.post-card .placeholder-img { width: 100%; height: 160px; object-fit: cover; margin-bottom: 12px; border: 1px solid var(--ink); background: #e6e0cf; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.post-card .cat-tag { display: inline-block; margin-bottom: 8px; }
.post-card h3 { font-size: 17px; font-weight: 700; line-height: 1.28; margin-bottom: 8px; }
.post-card:hover h3 { text-decoration: underline; }
.post-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 8px; }
.post-card .meta { font-family: 'Courier Prime', monospace; font-size: 10.5px; color: var(--muted); text-transform: uppercase; }

.cat-tag { font-family: 'Courier Prime', monospace; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); border: 1px solid var(--accent); padding: 3px 8px; }
.featured-ribbon { display: inline-block; font-family: 'Courier Prime', monospace; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); border: 1px dashed var(--ink); padding: 2px 7px; margin-left: 8px; }
.meta { font-family: 'Courier Prime', monospace; }

/* ---------- sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 26px; }
.widget h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.widget p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.widget.stop-press { background: var(--paper-raised); border: 1px solid var(--line); padding: 18px; }
.widget.clip-coupon { border: 1px dashed var(--ink); padding: 18px; position: relative; }
.section-index-list a { font-weight: 600; }
.section-index-list a:hover { text-decoration: underline; }
.ad-widget { border: 1px dashed var(--line); padding: 40px 12px; text-align: center; font-family: 'Courier Prime', monospace; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.cta-form { display: flex; gap: 8px; margin-top: 12px; }
.cta-form input { padding: 10px 12px; border: 1px solid var(--ink); background: #fff; font-size: 13.5px; font-family: 'Courier Prime', monospace; color: var(--ink); }
.cta-form button { padding: 10px 16px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; font-family: 'Courier Prime', monospace; }
.cta-form button:disabled, .cta-form input:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- single post ---------- */
.breadcrumb { font-family: 'Courier Prime', monospace; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 6px; }
.category-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 8px; }
.category-desc { color: var(--muted); font-size: 15px; margin: 0; }

.single-post { max-width: 720px; }
.single-post-header { margin-bottom: 22px; }
.single-post-header .cat-tag { margin-bottom: 12px; }
.single-post-header h1 { font-size: clamp(28px, 4.6vw, 46px); font-weight: 800; line-height: 1.1; margin: 10px 0 14px; }
.single-post-photo { margin-bottom: 24px; }
.single-post-content { font-size: 17px; line-height: 1.8; }
.single-post-content p { margin: 0 0 20px; }
.single-post-content p:first-of-type::first-letter { font-family: 'Fraunces', serif; font-weight: 800; font-size: 62px; float: left; line-height: .78; padding: 4px 8px 0 0; }
.single-post-content h2, .single-post-content h3 { font-weight: 800; margin: 30px 0 14px; }
.single-post-content blockquote { margin: 26px 0; padding-left: 22px; border-left: 3px solid var(--ink); font-style: italic; font-size: 20px; color: var(--muted); }
.single-post-content a { text-decoration: underline; text-underline-offset: 3px; }
.single-post-content ul, .single-post-content ol { padding-left: 24px; margin: 0 0 20px; }

.post-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill-link { font-family: 'Courier Prime', monospace; font-size: 11.5px; border: 1px solid var(--line); padding: 5px 11px; color: var(--muted); }
.tag-pill-link:hover { border-color: var(--ink); color: var(--ink); }

.related-posts { margin-top: 48px; }

/* ---------- search / empty ---------- */
.search-form { display: flex; gap: 10px; margin: 18px 0; }
.search-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--ink); background: #fff; font-size: 15px; font-family: inherit; }
.search-form button { padding: 12px 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.muted { color: var(--muted); font-size: 14px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h1 { margin-bottom: 10px; }
.empty-state .btn { display: inline-block; margin-top: 16px; border: 1px solid var(--ink); padding: 10px 20px; font-family: 'Courier Prime', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }

.pagination { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--ink); font-family: 'Courier Prime', monospace; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.pagination a:hover { text-decoration: underline; }

/* ---------- footer / colophon ---------- */
.colophon { background: var(--paper-raised); margin-top: 48px; padding: 36px 0 24px; }
.colophon-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 24px 0; }
@media (max-width: 700px) { .colophon-grid { grid-template-columns: 1fr; gap: 22px; } }
.colophon-mark { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.colophon-head { font-family: 'Courier Prime', monospace; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.colophon p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.colophon a { color: var(--ink); }
.colophon a:hover { text-decoration: underline; }
.colophon-bottom { font-family: 'Courier Prime', monospace; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 16px; text-align: center; }

/* ---------- news ticker override (paper-appropriate) ---------- */
.news-ticker { background: var(--ink) !important; }
