*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:            #f2ead6;
    --bg-card:       #f8f3e4;
    --bg-inset:      #e6ddc4;
    --text:          #1a1510;
    --text-muted:    #3e3828;
    --text-faint:    #8a7d68;
    --border:        #b0a488;
    --border-light:  #cbbf9e;
    --border-heavy:  #5c5040;
    --accent:        #8b1a1a;
    --accent-light:  #f4e8e8;
    --accent-muted:  #a82222;
    --header-bg:     #1a1510;
    --header-text:   #f2ead6;
    --header-muted:  #7a6e58;
    --serif-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
    --serif-body:    'Lora', Georgia, 'Times New Roman', serif;
    --mono:          'DM Mono', 'Courier New', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--serif-body);
    min-height: 100vh;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(0,0,0,0.018) 27px, rgba(0,0,0,0.018) 28px);
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-muted); }

/* ─── Nav header ─── */
#site-header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 0 1.75rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 46px;
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid #2e2618;
}
.site-logo { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--header-text); text-decoration: none; }
.site-logo span { color: var(--header-muted); }
nav { display: flex; gap: 0; align-items: center; }
nav a { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--header-muted); text-decoration: none; transition: color 0.15s; padding: 0 0.9rem; border-left: 1px solid #2e2618; height: 46px; display: flex; align-items: center; }
nav a:hover, nav a.active { color: var(--header-text); }
#main-nav a { position: relative; }
#main-nav a::after { content:''; position:absolute; bottom:0; left:0; right:0; height:2px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .2s ease; }
#main-nav a:hover::after, #main-nav a.active::after { transform:scaleX(1); }
#cookie-settings-btn { background:none; border:none; cursor:pointer; padding:0 .5rem; opacity:.45; font-size:14px; line-height:1; color:inherit; -webkit-tap-highlight-color:transparent; transition:opacity .15s, transform .25s ease; }
#cookie-settings-btn:hover { opacity:1; transform:rotate(15deg); }
#burger-btn { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:4px; z-index:1100; -webkit-tap-highlight-color:transparent; }
#burger-btn span { display:block; width:22px; height:2px; background:var(--header-text); transition:transform .3s ease, opacity .2s ease; }
#burger-btn.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
#burger-btn.open span:nth-child(2) { opacity:0; }
#burger-btn.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ─── Masthead ─── */
.masthead {
    text-align: center;
    padding: 1.5rem 2rem 0;
    max-width: 1180px;
    margin: 0 auto;
}
.masthead-top-rule { border: none; border-top: 6px solid var(--text); margin-bottom: 0.15rem; }
.masthead-top-rule-thin { border: none; border-top: 1px solid var(--text); margin-bottom: 0.9rem; }
.masthead-title { font-family: var(--serif-display); font-size: clamp(52px, 8vw, 104px); font-weight: 700; line-height: 0.88; letter-spacing: -0.03em; color: var(--text); margin-bottom: 0.3rem; font-style: italic; }
.masthead-tagline { font-family: var(--mono); font-size: 9px; letter-spacing: 3.5px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.65rem; }
.masthead-rule-double { border: none; border-top: 3px double var(--border-heavy); margin: 0.5rem 0 0; }
.masthead-meta { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0 0.6rem; font-family: var(--mono); font-size: 9.5px; color: var(--text-faint); letter-spacing: 0.5px; border-bottom: 2px solid var(--text); }
.masthead-meta span { flex: 1; }
.masthead-meta span:nth-child(2) { text-align: center; font-weight: 500; color: var(--text-muted); }
.masthead-meta span:last-child { text-align: right; }

/* ─── Page wrap ─── */
.page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* ════════════════════════════════════════════
   NEWSPAPER SECTIONS
   Each .np-section is a full-width block with
   a ruled top. Inside, columns flow side by side.
════════════════════════════════════════════ */
.np-section {
    border-top: 2px solid var(--text);
    padding-top: 0.85rem;
    margin-top: 1.1rem;
}
.np-section + .np-section { margin-top: 0; }
.np-section-label {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.7rem;
    display: flex; align-items: center; gap: 8px;
}
.np-section-label::after { content:''; flex:1; height:1px; background:var(--border); }

.live-dot { width:5px; height:5px; border-radius:50%; background:var(--accent); display:inline-block; animation:pulse 2s infinite; flex-shrink:0; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* ─── Column grid ─── */
.np-cols {
    display: grid;
    gap: 0;
}
.np-cols--2 { grid-template-columns: 1fr 1fr; }
.np-cols--3 { grid-template-columns: 1fr 1fr 1fr; }
.np-cols--2-1 { grid-template-columns: 2fr 1fr; }
.np-cols--1-2 { grid-template-columns: 1fr 2fr; }
.np-cols--3-2 { grid-template-columns: 3fr 2fr; }

.np-col {
    padding: 0 1.1rem;
    border-right: 1px solid var(--border);
}
.np-col:first-child { padding-left: 0; }
.np-col:last-child { border-right: none; padding-right: 0; }

/* ─── Story headline & body ─── */
.story-head { font-family: var(--serif-display); font-weight: 700; font-style: italic; color: var(--text); line-height: 1.08; margin-bottom: 0.35rem; }
.story-head--xl { font-size: 42px; }
.story-head--lg { font-size: 28px; }
.story-head--md { font-size: 20px; }
.story-head--sm { font-size: 16px; }

.story-deck { font-family: var(--serif-body); font-size: 13px; font-style: italic; color: var(--text-muted); margin-bottom: 0.6rem; line-height: 1.5; border-bottom: 1px solid var(--border-light); padding-bottom: 0.5rem; }

.story-byline { font-family: var(--mono); font-size: 8.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.55rem; }

.story-body { font-size: 13px; color: var(--text-muted); line-height: 1.85; text-align: justify; hyphens: auto; }
.story-body p + p { margin-top: 0.65rem; }
.story-body--dropcap p:first-child::first-letter { font-family: var(--serif-display); font-size: 3.2em; font-weight: 700; float: left; line-height: 0.75; padding-right: 0.06em; padding-top: 0.06em; color: var(--text); }

.story-rule { border: none; border-top: 1px solid var(--border-light); margin: 0.75rem 0; }

/* ─── Eyebrow / section chip ─── */
.eyebrow { font-family: var(--mono); font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; display: flex; align-items: center; gap: 5px; }

/* ─── Tags ─── */
.tag-group { display:flex; gap:4px; flex-wrap:wrap; margin: 0.4rem 0; }
.tag { background: transparent; border: 1px solid var(--border); padding: 1px 6px; font-size: 9px; font-family: var(--mono); color: var(--text-faint); letter-spacing: 0.5px; cursor: default; transition: background .15s, color .15s; }
.tag:hover { background:var(--text); color:var(--bg); border-color:var(--text); }

/* ─── Visit link ─── */
.visit-link { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); text-decoration: none; transition: letter-spacing .15s; display: inline-block; margin-top: 0.5rem; }
.visit-link:hover { letter-spacing: 1.5px; }

/* ─── Pull quote ─── */
.pull-quote { border-top: 2px solid var(--accent); border-bottom: 1px solid var(--border); padding: 0.65rem 0; margin: 0.75rem 0; font-family: var(--serif-display); font-size: 15px; font-style: italic; color: var(--text); line-height: 1.4; }

/* ─── Ad strip — full-width, between sections ─── */
.ad-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 1.1rem 0 0;
    overflow: hidden;
}
.ad-strip a { display: block; text-decoration: none; }
.ad-strip img { width: 100%; display: block; filter: sepia(0.2) contrast(1.05); transition: filter .3s; max-height: 160px; object-fit: cover; }
.ad-strip a:hover img { filter: sepia(0.04) contrast(1.08); }
.ad-strip-caption { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.5px; color: var(--text-faint); padding: 0.35rem 0.6rem; border-top: 1px solid var(--border-light); font-style: italic; text-align: center; background: var(--bg-inset); }

/* ─── Stats bar ─── */
.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); margin-top: 0.6rem; }
.stat-cell { text-align: center; padding: 0.55rem 0.4rem; border-right: 1px solid var(--border-light); }
.stat-cell:last-child { border-right: none; }
.stat-number { font-family: var(--serif-display); font-size: 22px; font-weight: 700; color: var(--text); display: block; line-height: 1.1; transition: transform .3s; }
.stat-number.pop { transform: scale(1.2); }
.stat-label { font-family: var(--mono); font-size: 7.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); display: block; margin-top: 2px; }

/* ─── List rows (categories, months, links) ─── */
.np-list-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--text-muted); padding: 3px 0; border-top: 1px solid var(--border-light); }
.np-list-row:first-of-type { border-top: none; }
.np-list-count { font-family: var(--mono); font-size: 9px; color: var(--text-faint); }
.np-link { display: block; font-size: 11.5px; color: var(--text-muted); text-decoration: none; padding: 3.5px 0; border-top: 1px solid var(--border-light); line-height: 1.45; transition: color .12s, padding-left .12s; }
.np-link:first-of-type { border-top: none; padding-top: 0; }
.np-link:hover { color: var(--accent); padding-left: 3px; }
.np-link small { display: block; font-family: var(--mono); font-size: 8.5px; color: var(--text-faint); margin-top: 1px; }

/* ─── Clock block ─── */
#sidebar-clock { font-family: var(--mono); font-size: 22px; color: var(--text); text-align: center; padding: 4px 0; letter-spacing: 1px; }
#sidebar-date { font-family: var(--mono); font-size: 8px; color: var(--text-faint); text-align: center; letter-spacing: .5px; margin-top: 2px; }

/* ─── About text ─── */
.about-text { font-size: 11.5px; color: var(--text-muted); line-height: 1.75; font-style: italic; text-align: justify; hyphens: auto; }

/* ─── Recent comments ─── */
.sidebar-comment { padding: 5px 0; border-top: 1px solid var(--border-light); }
.sidebar-comment:first-of-type { border-top: none; padding-top: 0; }
.sidebar-comment-body { font-size: 10.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 1px; font-style: italic; }
.sidebar-comment-meta { font-family: var(--mono); font-size: 8.5px; color: var(--text-faint); }

/* ─── Random button ─── */
.random-btn { width:100%; background:transparent; border:1px solid var(--border); padding:7px 0; font-family:var(--mono); font-size:10px; letter-spacing:1px; text-transform:uppercase; color:var(--text-muted); cursor:pointer; transition:all .15s; text-align:center; }
.random-btn:hover { background:var(--header-bg); border-color:var(--header-bg); color:var(--header-text); }

/* ─── Column subheader (thin rule + label) ─── */
.col-head { font-family: var(--mono); font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--border-light); padding-bottom: 0.35rem; margin-bottom: 0.55rem; }

/* ─── Comments block ─── */
.comments-block { border-top: 1px solid var(--border-light); padding-top: 0.9rem; margin-top: 0.9rem; }
.comments-block h3 { font-family: var(--serif-display); font-size: 16px; font-weight: 700; margin-bottom: .75rem; font-style: italic; }
.comment-form { margin-top: .9rem; border-top: 1px solid var(--border-light); padding-top: .9rem; }
.form-label { font-family: var(--mono); font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 5px; }
.comment-form textarea { width: 100%; height: 65px; resize: none; border: 1px solid var(--border); border-radius: 0; background: var(--bg-inset); color: var(--text); font-family: var(--serif-body); font-size: 13px; padding: 7px 9px; outline: none; transition: border-color .15s; line-height: 1.5; }
.comment-form textarea:focus { border-color: var(--accent); }
.textarea-footer { display: flex; justify-content: flex-end; margin: 3px 0 8px; }
.char-count { font-family: var(--mono); font-size: 10px; color: var(--text-faint); }
.char-count.warn { color: #b85c00; }
.char-count.over { color: var(--accent); }
.h-captcha { margin-bottom: 8px; }
.submit-btn { background: var(--header-bg); color: var(--header-text); border: none; padding: 8px 18px; font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.submit-btn:hover:not(:disabled) { background: var(--accent); }
.submit-btn:disabled { opacity: .4; cursor: not-allowed; }
.comment-form-actions { display: flex; align-items: center; gap: 1rem; margin-top: .7rem; flex-wrap: wrap; }
.comment-thread { margin-top: .9rem; }
.comment-node { display: flex; gap: 0; position: relative; animation: fadein .3s ease both; }
@keyframes fadein { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.comment-node[data-depth="0"] { margin-top: .75rem; }
.comment-node[data-depth]:not([data-depth="0"]) { margin-top: .4rem; margin-left: 1rem; padding-left: .8rem; border-left: 2px solid var(--border-light); }
.comment-content { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: 9px; color: var(--text-faint); margin-bottom: .2rem; }
.comment-meta .comment-author { color: var(--text-muted); font-weight: 500; }
.comment-body { font-size: 12.5px; line-height: 1.6; color: var(--text); word-break: break-word; }
.comment-actions { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; }
.comment-upvote-btn { display: flex; align-items: center; gap: .25rem; background: none; border: 1px solid var(--border-light); color: var(--text-faint); font-family: var(--mono); font-size: 9px; padding: .15rem .45rem; cursor: pointer; transition: border-color .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.comment-upvote-btn:hover { border-color: var(--accent); color: var(--accent); }
.comment-upvote-btn.voted { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.comment-upvote-btn .upvote-arrow { display: inline-block; transition: transform .2s ease; }
.comment-upvote-btn:hover .upvote-arrow, .comment-upvote-btn.voted .upvote-arrow { transform: translateY(-2px); }
.comment-reply-btn { background: none; border: none; color: var(--text-faint); font-family: var(--mono); font-size: 9px; padding: .15rem .3rem; cursor: pointer; transition: color .15s; -webkit-tap-highlight-color: transparent; }
.comment-reply-btn:hover { color: var(--accent); }
.inline-reply-form { margin-top: .5rem; padding: .65rem; background: var(--bg-inset); border: 1px solid var(--border-light); animation: fadein .2s ease both; }
.inline-reply-form textarea { width: 100%; box-sizing: border-box; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); font-family: var(--serif-body); font-size: 12.5px; padding: .5rem .6rem; min-height: 60px; line-height: 1.5; transition: border-color .2s; resize: vertical; outline: none; }
.inline-reply-form textarea:focus { border-color: var(--accent); }
.inline-reply-form-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; flex-wrap: wrap; gap: .4rem; }
.inline-reply-form-footer .char-hint { font-family: var(--mono); font-size: 9px; color: var(--text-faint); }
.inline-reply-form-actions { display: flex; gap: .4rem; }
.reply-submit-btn { background: var(--header-bg); color: var(--header-text); border: none; padding: .25rem .7rem; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: background .15s; -webkit-tap-highlight-color: transparent; }
.reply-submit-btn:hover { background: var(--accent); }
.reply-cancel-btn { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: .25rem .6rem; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: border-color .15s, color .15s; }
.reply-cancel-btn:hover { border-color: var(--text-muted); color: var(--text); }
.collapse-btn { position: absolute; left: -.9rem; top: 0; width: 14px; height: 14px; display: none; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--border-light); cursor: pointer; font-family: var(--mono); font-size: 8px; color: var(--text-faint); transition: border-color .15s, color .15s; z-index: 1; -webkit-tap-highlight-color: transparent; }
.comment-node[data-depth]:not([data-depth="0"]) .collapse-btn { display: flex; }
.collapse-btn:hover { border-color: var(--accent); color: var(--accent); }
.comment-node.collapsed > .comment-content > .comment-children,
.comment-node.collapsed > .comment-content > .inline-reply-form { display: none; }
.comment-children { margin-top: .15rem; }
#comments-blocked { display: none; margin-top: .8rem; padding: .8rem 1rem; background: var(--bg-inset); border-left: 3px solid var(--border); font-family: var(--mono); font-size: 10px; color: var(--text-muted); line-height: 1.6; }
#comments-blocked a { color: var(--accent); cursor: pointer; }

/* ─── Archive ─── */
.archive-search-wrap { margin-bottom: .9rem; }
.archive-search-wrap input { width: 100%; border: 1px solid var(--border); border-radius: 0; background: var(--bg-inset); color: var(--text); font-family: var(--serif-body); font-size: 13px; padding: 8px 11px; outline: none; transition: border-color .15s; }
.archive-search-wrap input:focus { border-color: var(--accent); }
.archive-entry { padding: .8rem 0; display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; border-bottom: 1px solid var(--border-light); transition: padding-left .15s; }
.archive-entry:first-of-type { border-top: 1px solid var(--border-light); }
.archive-entry:hover { padding-left: 5px; }
.archive-entry:hover .archive-info h3 { color: var(--accent); }
.archive-date { font-family: var(--mono); font-size: 9px; color: var(--text-faint); flex-shrink: 0; padding-top: 3px; min-width: 42px; }
.archive-info h3 { font-family: var(--serif-display); font-size: 14px; font-weight: 600; font-style: italic; color: var(--text); margin-bottom: 3px; line-height: 1.3; transition: color .15s; }
.archive-info p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.archive-entry[hidden] { display: none; }
#no-results { display: none; font-size: 13px; color: var(--text-faint); font-style: italic; padding: 1rem 0; }

/* ─── Blog ─── */
.blog-post { padding: 1.25rem 0; border-top: 2px solid var(--text); margin-bottom: .1rem; }
.post-date { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); margin-bottom: .4rem; }
.blog-post h2 { font-family: var(--serif-display); font-size: 21px; font-weight: 700; font-style: italic; color: var(--text); margin-bottom: .75rem; line-height: 1.2; }
.post-body { font-size: 14px; color: var(--text-muted); line-height: 1.9; text-align: justify; hyphens: auto; }
.post-body p + p { margin-top: 1rem; }

/* ─── Empty state ─── */
.empty-state { padding: 2rem; text-align: center; font-size: 14px; color: var(--text-faint); font-style: italic; border-top: 2px solid var(--text); border-bottom: 1px solid var(--border); }

/* ─── Footer ─── */
footer { text-align: center; padding: 1rem; font-family: var(--mono); font-size: 9.5px; color: var(--text-faint); letter-spacing: .5px; border-top: 3px double var(--border-heavy); margin-top: 1.5rem; max-width: 1180px; margin-left: auto; margin-right: auto; }

/* ─── Toast ─── */
#toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--header-bg); border: 1px solid var(--border-heavy); padding: .65rem 1rem; font-family: var(--mono); font-size: 10.5px; letter-spacing: .5px; color: var(--header-text); z-index: 9999; pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; max-width: 280px; }
#toast.show { opacity: 1; transform: translateY(0); }

/* ─── Outage banner ─── */
#outage-banner { display: flex; align-items: center; gap: 1rem; background: #3d1a00; border-bottom: 1px solid #b85c00; padding: .55rem 1.5rem; font-family: var(--mono); font-size: 10.5px; color: #f5c07a; position: sticky; top: 0; z-index: 999; }
#outage-banner .outage-dot { width: 7px; height: 7px; border-radius: 50%; background: #b85c00; flex-shrink: 0; animation: pulse-warn 1.2s infinite; }
#outage-banner .outage-text { flex: 1; }
#outage-banner a.outage-btn { background: #b85c00; color: #fff; padding: .25rem .6rem; text-decoration: none; font-size: 9.5px; letter-spacing: .5px; }
#outage-banner a.outage-btn:hover { background: #d46d00; }
#outage-banner .outage-dismiss { cursor: pointer; opacity: .5; padding: 0 .25rem; font-size: 13px; background: none; border: none; color: #f5c07a; transition: opacity .15s; }
#outage-banner .outage-dismiss:hover { opacity: 1; }
@keyframes pulse-warn { 0%,100%{opacity:1} 50%{opacity:.45} }

/* ─── Cookie banner ─── */
#cookie-banner { display: none; position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); width: min(520px,calc(100vw - 2rem)); background: var(--bg-card); border-top: 2px solid var(--border-heavy); border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 1.1rem 1.4rem; z-index: 9000; box-shadow: 4px 4px 0 rgba(0,0,0,.12); font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); animation: slideUp .3s ease; }
#cookie-banner.visible { display: block; }
@keyframes slideUp { from{opacity:0;transform:translateX(-50%) translateY(14px);} to{opacity:1;transform:translateX(-50%) translateY(0);} }
#cookie-banner h5 { margin: 0 0 .45rem; font-family: var(--serif-display); font-size: 14px; color: var(--text); font-weight: 600; font-style: italic; }
#cookie-banner p { margin: 0 0 .9rem; line-height: 1.6; }
#cookie-banner a { color: var(--accent); }
.cookie-banner-actions { display: flex; gap: .65rem; flex-wrap: wrap; }

/* ─── Cookie modal ─── */
#cookie-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9100; align-items: center; justify-content: center; backdrop-filter: blur(2px); animation: fadeIn .2s ease; }
#cookie-modal.visible { display: flex; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
#cookie-modal-box { background: var(--bg-card); border-top: 3px double var(--border-heavy); border-bottom: 3px double var(--border-heavy); border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 1.6rem 1.9rem; width: min(460px,calc(100vw - 2rem)); font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); box-shadow: 5px 5px 0 rgba(0,0,0,.12); animation: slideup .3s ease; }
@keyframes slideup { from{transform:translateY(12px);opacity:0} to{transform:none;opacity:1} }
#cookie-modal-box h4 { margin: 0 0 .45rem; font-family: var(--serif-display); font-size: 16px; color: var(--text); font-weight: 700; font-style: italic; }
#cookie-modal-box p { margin: 0 0 1.1rem; line-height: 1.6; }
.cookie-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: .65rem 0; border-top: 1px solid var(--border-light); }
.cookie-toggle-label { color: var(--text); font-size: 10.5px; letter-spacing: .5px; }
.cookie-toggle-desc { font-size: 9.5px; color: var(--text-faint); margin-top: 2px; }
.cookie-toggle { position: relative; width: 36px; height: 18px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider { position: absolute; inset: 0; background: var(--border); cursor: pointer; transition: background .2s; }
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--accent); }
.cookie-toggle-slider::before { content: ''; position: absolute; width: 12px; height: 12px; left: 3px; top: 3px; background: #fff; transition: transform .2s; }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: .4; cursor: not-allowed; }
.cookie-modal-actions { display: flex; gap: .65rem; margin-top: 1.1rem; flex-wrap: wrap; }

/* ─── Shared buttons ─── */
.cookie-btn-accept, .cookie-btn-decline, .cookie-modal-save,
.cookie-modal-close, .submit-btn, .random-btn, #accept-btn,
.comment-reply-btn, .comment-upvote-btn {
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, opacity .15s ease;
    -webkit-tap-highlight-color: transparent; user-select: none;
}
.cookie-btn-accept, .cookie-modal-save { background: var(--header-bg); color: var(--header-text); border: none; padding: .4rem 1rem; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.cookie-btn-accept:hover, .cookie-modal-save:hover { background: var(--accent); }
.cookie-btn-decline, .cookie-modal-close { background: transparent; color: var(--text-muted); border: 1px solid var(--border); padding: .4rem 1rem; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.cookie-btn-decline:hover, .cookie-modal-close:hover { border-color: var(--text-muted); color: var(--text); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.22); transform: scale(0); animation: rippleAnim .5s linear; pointer-events: none; z-index: 0; }
@keyframes rippleAnim { to{transform:scale(4);opacity:0;} }

/* ─── Popup ─── */
#popup-overlay { position: fixed; inset: 0; z-index: 1001; background: rgba(10,8,4,.82); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); animation: fadeIn .25s ease; }
#popup-box { background: var(--bg-card); border-top: 5px double var(--border-heavy); border-bottom: 5px double var(--border-heavy); border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 2.1rem 1.9rem 1.9rem; max-width: 430px; width: calc(100% - 2rem); animation: slideup .3s ease; }
.popup-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); margin-bottom: .7rem; }
.popup-title { font-family: var(--serif-display); font-size: 25px; font-weight: 700; font-style: italic; color: var(--text); margin-bottom: .45rem; line-height: 1.2; }
.popup-intro { font-size: 13.5px; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.1rem; }
.rule-list { list-style: none; margin-bottom: 1.5rem; border-top: 1px solid var(--border); }
.rule-list li { font-size: 12.5px; color: var(--text-muted); padding: .5rem 0; border-bottom: 1px solid var(--border-light); display: flex; gap: 10px; line-height: 1.55; }
.rule-list li::before { content: "§"; color: var(--accent); flex-shrink: 0; font-family: var(--serif-display); }
#accept-btn { width: 100%; background: var(--header-bg); color: var(--header-text); border: none; padding: 11px 0; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: background .15s; }
#accept-btn:hover { background: var(--accent); }

/* ─── Fade in ─── */
.fade-in-up { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .np-cols--3 { grid-template-columns: 1fr 1fr; }
    .np-cols--2-1 { grid-template-columns: 1fr; }
    .np-cols--1-2 { grid-template-columns: 1fr; }
    .np-cols--3-2 { grid-template-columns: 1fr; }
    .np-col:last-child { border-right: none; }
    .np-col { border-right: none; border-bottom: 1px solid var(--border-light); padding: 0.75rem 0; }
    .np-col:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
    .np-cols--2 { grid-template-columns: 1fr; }
    .np-cols--3 { grid-template-columns: 1fr; }
    .masthead-title { font-size: 3.2rem; }
    .page-wrap { padding: 0 1rem 2rem; }
    #burger-btn { display: flex; }
    header#site-header nav#main-nav { display: none; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--header-bg); z-index: 1000; align-items: center; justify-content: center; gap: 2rem; }
    header#site-header nav#main-nav.open { display: flex; animation: fadeIn .25s ease; }
    header#site-header nav#main-nav a { font-size: 1rem; opacity: .85; border: none; height: auto; }
    #toast { bottom: 1rem; right: 1rem; left: 1rem; max-width: none; }
    .comment-node[data-depth]:not([data-depth="0"]) { margin-left: .6rem; padding-left: .6rem; }
}