/*
Theme Name: Prajukti Cafe
Theme URI: https://prajukticafe.com
Author: Prajukti Cafe
Description: An editorial black-and-white tech magazine theme for Prajukti Cafe — "Where Tech Meets Taste". Home page tracks for six topics, automatic Popular Brews, visitor counter, table of contents on posts and ad-ready widget areas.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prajukti-cafe
Tags: blog, news, two-columns, right-sidebar, custom-colors, featured-images, translation-ready
*/

/* ---------- 1. Design tokens (colours, fonts, spacing) ---------- */
:root {
  --ink: #000000;            /* jet black: masthead, rules, headlines */
  --ink-soft: #1c1b1b;       /* dark panels inside black areas */
  --surface: #f9f9fb;        /* page background */
  --paper: #ffffff;          /* content background */
  --tint: #f3f3f5;           /* light panels */
  --tint-2: #eeeef0;
  --tint-3: #e2e2e4;
  --text: #1a1c1d;           /* main text */
  --text-2: #444748;         /* deck / excerpt text */
  --muted: #5e5e67;          /* meta text */
  --muted-2: #747878;
  --rule: #c4c7c7;           /* hairline rules */
  --rule-soft: #e4e4e7;
  --on-dark-muted: #c4c7c7;
  --on-dark-strong: #e5e2e1;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --xs: .25rem; --sm: .5rem; --md: 1rem; --lg: 1.75rem; --xl: 3rem;
  --margin: 1.25rem;
  --max: 1320px;
}
@media (min-width: 768px) { :root { --margin: 3.5rem; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; border-radius: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- 3. Type helpers ---------- */
.mono   { font: 400 .6875rem/1rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.label  { font: 500 .8125rem/1.25rem var(--mono); letter-spacing: .04em; }
.bold   { font-weight: 700; }
.muted  { color: var(--muted); }
.strong { color: var(--text); font-weight: 600; }
.h-lg { font-size: 2rem; line-height: 2.5rem; font-weight: 500; letter-spacing: -.01em; }
.h-md { font-size: 1.6rem; line-height: 2.1rem; font-weight: 500; letter-spacing: -.015em; }
.h-sm { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -.01em; }
@media (min-width: 768px) {
  .h-lg { font-size: 3rem; line-height: 3.5rem; letter-spacing: -.02em; }
  .h-md { font-size: 2rem; line-height: 2.5rem; }
}
.deck { font-size: 1.25rem; line-height: 1.875rem; letter-spacing: -.01em; color: var(--text-2); }
.excerpt { font-size: .875rem; line-height: 1.45rem; color: var(--text-2); }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hover-dim { transition: color .15s; }
a:hover .hover-dim, .hover-dim:hover { color: var(--muted); }
.link { text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.link:hover { color: var(--muted); }

/* tags / chips */
.chip { display: inline-block; padding: 2px 6px; border: 1px solid var(--rule); background: var(--tint-2); font-weight: 600; }
.chip-ink { display: inline-block; padding: 2px 6px; background: var(--ink); color: #fff; font-weight: 700; }
.chip-line { display: inline-block; padding: 2px 6px; border: 1px solid var(--ink); font-weight: 700; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  padding: .5rem 1rem; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font: 500 .875rem/1.45rem var(--sans);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--surface); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- 4. Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--ink); color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); }
.topbar { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(196,199,199,.2); }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font: 600 1.5rem/1 var(--serif); letter-spacing: -.01em; color: #fff; }
.brand-tag { display: block; margin-top: 4px; color: var(--on-dark-muted); letter-spacing: .12em; }
.top-actions { display: flex; align-items: center; gap: 1rem; }
.search {
  display: none; align-items: center; gap: .5rem;
  background: var(--ink-soft); border: 1px solid rgba(196,199,199,.3); padding: .25rem .75rem;
}
.search svg { width: 16px; height: 16px; color: var(--on-dark-muted); flex: none; }
.search input { background: transparent; border: 0; color: #fff; width: 14rem; font-size: .875rem; padding: .25rem 0; }
.search input::placeholder { color: var(--on-dark-muted); }
.search input:focus { outline: none; }
.top-links { display: none; align-items: center; gap: .5rem; color: var(--on-dark-muted); }
.top-links a:hover { color: #fff; }
.top-links .dot { opacity: .4; }
.top-cta { padding: .3rem .9rem; }
@media (min-width: 768px)  { .top-links { display: flex; } }
@media (min-width: 1024px) { .search { display: flex; } }
@media (max-width: 480px)  { .top-cta { display: none; } .brand-name { font-size: 1.3rem; } }

.catbar { height: 48px; display: flex; align-items: center; gap: 1rem; overflow-x: auto; scrollbar-width: none; }
.catbar::-webkit-scrollbar { display: none; }
.catbar a { white-space: nowrap; padding: 3px 8px; border: 1px solid transparent; color: var(--on-dark-muted); transition: color .15s, border-color .15s; }
.catbar a:hover { color: #fff; border-color: rgba(196,199,199,.4); }
.catbar a.active { background: #fff; color: var(--ink); font-weight: 700; }

/* ---------- 5. Page frame ---------- */
.page { padding-top: 128px; min-height: 100vh; }
.frame { background: var(--paper); border: 2px solid var(--ink); border-top: 0; }
.grid-12 { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .span-8 { grid-column: span 8; }
  .span-4 { grid-column: span 4; }
}
.rule-b { border-bottom: 2px solid var(--ink); }
.pad { padding: var(--margin); }
.pad-lg { padding: var(--margin); }
@media (min-width: 768px) { .pad { padding: var(--xl); } .pad-lg { padding: var(--lg); } }
@media (min-width: 1024px) {
  .rule-r { border-right: 2px solid var(--ink); }
}
@media (max-width: 1023px) { .rule-r { border-bottom: 2px solid var(--ink); } }

/* ---------- 6. Hero (lead story) ---------- */
.lead-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--tint-3); }
.lead-meta > div { display: flex; align-items: center; gap: .5rem; }
.lead-title { margin-bottom: 1rem; }
.lead-title a:hover { color: var(--muted); }
.lead .deck { margin-bottom: var(--lg); }
.figure { position: relative; border: 1px solid var(--ink); background: var(--tint-2); overflow: hidden; margin: 0 0 var(--lg); }
.figure img { width: 100%; height: 20rem; object-fit: cover; filter: grayscale(1) contrast(1.15); }
@media (min-width: 768px) { .figure img { height: 24rem; } }
.figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: rgba(255,255,255,.95); border-top: 1px solid var(--ink); }
.byline-row { margin-top: var(--xl); padding-top: 1rem; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.byline { display: flex; align-items: center; gap: 1rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); background: var(--tint-2); display: grid; place-items: center; font: 700 .75rem var(--mono); flex: none; }
.byline .name { font-weight: 600; line-height: 1.3; }

/* Side column: espresso shots */
.side { background: var(--surface); }
.side-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: .25rem; margin-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.shot { display: block; padding: 1rem 0; border-bottom: 1px solid rgba(196,199,199,.5); }
.shot:last-of-type { border-bottom: 0; }
.shot-top { display: flex; justify-content: space-between; margin-bottom: .25rem; }
.shot h3 { line-height: 1.35; }
.shot .excerpt { margin-top: .25rem; }
.shot-by { display: flex; gap: .5rem; margin-top: .5rem; color: var(--muted-2); }

.terminal-box { margin-top: 1rem; padding: 1rem; background: var(--paper); border: 2px solid var(--ink); }
.terminal-head { display: flex; justify-content: space-between; margin-bottom: .5rem; }
.terminal-head .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text); margin-right: 6px; }
.terminal { background: var(--surface); border: 1px solid rgba(196,199,199,.6); padding: .5rem; }
.terminal div + div { margin-top: 2px; }

/* ---------- 7. Section heads ("Track 01" etc.) ---------- */
.track-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: var(--lg); padding-bottom: .25rem; border-bottom: 2px solid var(--ink); }
.track-head > div { display: flex; align-items: center; gap: .5rem; }

/* Three-up cards */
.cards-3 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); border: 1px solid var(--ink); padding: 1rem; transition: background .15s; }
.card:hover { background: var(--tint-2); }
.card .thumb { height: 9rem; border-bottom: 1px solid var(--ink); margin-bottom: .5rem; overflow: hidden; background: var(--tint-3); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.4); transition: transform .3s; }
.card:hover .thumb img { transform: scale(1.05); }
.card-meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); margin-bottom: .25rem; }
.card h3 { line-height: 1.3; margin-bottom: .25rem; }
.card:hover h3 { color: var(--muted); }
.card-foot { margin-top: 1rem; padding-top: .25rem; border-top: 1px solid rgba(196,199,199,.5); display: flex; justify-content: space-between; color: var(--muted-2); }

/* Two-up boxed features */
.cards-2 { display: grid; gap: var(--lg); grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
.box { border: 2px solid var(--ink); padding: var(--lg); display: flex; flex-direction: column; justify-content: space-between; }
.box.tinted { background: var(--surface); }
.box-top { display: flex; justify-content: space-between; margin-bottom: .5rem; }
.box h3 { line-height: 1.2; margin-bottom: .5rem; }
.box p { color: var(--text-2); margin-bottom: 1rem; }
.box-foot { padding-top: .5rem; border-top: 1px solid rgba(196,199,199,.5); display: flex; justify-content: space-between; gap: .5rem; }
.code-pill { background: var(--surface); border: 1px solid var(--rule); padding: .5rem; overflow-x: auto; margin-bottom: 1rem; white-space: pre; }
.bars { border: 1px solid var(--ink); padding: .5rem; background: var(--paper); margin-bottom: 1rem; }
.bars .row { display: flex; justify-content: space-between; margin: .5rem 0 2px; }
.bar { height: 12px; background: var(--tint-2); border: 1px solid var(--ink); }
.bar span { display: block; height: 100%; background: var(--ink); }
.bar span.grey { background: var(--muted); }

/* Dark "roast" section */
.dark { background: var(--ink); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .25rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(196,199,199,.3); }
.dark-head > div { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.chip-white { display: inline-block; padding: 2px 6px; background: #fff; color: var(--ink); font-weight: 700; }
.dark-grid { display: grid; gap: var(--lg); align-items: center; }
@media (min-width: 768px) { .dark-grid { grid-template-columns: 2fr 1fr; } }
.dark-grid p { color: var(--on-dark-muted); }
.dark-grid .stack > * + * { margin-top: 1rem; }
.dark-tags { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.dark-tags .outline { border: 1px solid rgba(196,199,199,.3); padding: 4px 6px; color: var(--on-dark-strong); }
.takeaway { background: var(--ink-soft); border: 1px solid rgba(196,199,199,.4); padding: 1rem; }
.takeaway .quote { font-style: italic; font-size: .875rem; line-height: 1.45rem; margin: .25rem 0 1rem; }
.dark-head .mono, .takeaway .mono { color: var(--on-dark-strong); }

/* Essay rows */
.essay { display: grid; gap: 1rem; padding-bottom: var(--lg); border-bottom: 1px solid rgba(196,199,199,.5); }
.essay + .essay { padding-top: var(--lg); }
.essay:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 768px) { .essay { grid-template-columns: 1fr 3fr; } }
.essay .when { color: var(--muted); }
.essay .when b { display: block; color: var(--text); font-size: .875rem; }
.essay h3 { line-height: 1.35; margin-bottom: .25rem; }
.essay:hover h3 { color: var(--muted); }
.essay p { color: var(--text-2); margin-bottom: .25rem; }
.essay .foot { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); }

/* Tips cards */
.cards-tips { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards-tips { grid-template-columns: 1fr 1fr; } }
.tip { border: 1px solid var(--ink); padding: 1rem; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; }
.tip h3 { margin: .5rem 0 .25rem; }
.tip:hover h3 { color: var(--muted); }
.tip .card-foot { color: var(--muted); }

/* ---------- 8. Right rail ---------- */
.rail { display: flex; flex-direction: column; gap: var(--xl); }
.panel { border: 2px solid var(--ink); padding: 1rem; background: var(--surface); }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.panel h4 { line-height: 1.35; }
.panel .excerpt { margin: .5rem 0; }
.rank li { display: flex; gap: .5rem; align-items: flex-start; padding-bottom: .5rem; border-bottom: 1px solid rgba(196,199,199,.5); }
.rank li + li { margin-top: 1rem; }
.rank li:last-child { border-bottom: 0; }
.rank .n { font: 700 2rem/1 var(--serif); color: var(--rule); min-width: 2.2rem; transition: color .15s; }
.rank li:hover .n { color: var(--ink); }
.rank a { display: block; font-weight: 600; line-height: 1.35; }
.rank a:hover { color: var(--muted); }
.rank .mono { margin-top: 4px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags a { padding: 4px 8px; border: 1px solid var(--ink); background: var(--surface); transition: background .15s, color .15s; }
.tags a:hover { background: var(--ink); color: #fff; }
.news { border: 2px solid var(--ink); padding: var(--lg); background: var(--surface); }
.news form > * + * { margin-top: .5rem; }
.news input { width: 100%; padding: .5rem; border: 2px solid var(--ink); background: #fff; font-size: .875rem; }
.news input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.news .btn { border-width: 2px; font: 700 .6875rem/1rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .6rem; }
.news .fine { display: flex; justify-content: space-between; margin-top: .5rem; color: var(--muted); }
.community { border: 1px solid var(--rule); background: var(--tint-2); padding: 1rem; }

/* Advertisement slots (fill in once AdSense is approved) */
.ad-slot {
  border: 1px dashed var(--rule); background: var(--tint); color: var(--muted-2);
  min-height: 250px; display: grid; place-items: center; text-align: center; padding: 1rem;
}
.ad-slot.wide { min-height: 120px; margin: var(--xl) 0; }

/* Bottom strip */
.strip { border-top: 2px solid var(--ink); background: var(--tint); padding: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; text-align: center; }
@media (min-width: 768px) { .strip { flex-direction: row; text-align: left; } }
.strip > div { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1rem; }
.strip .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.strip a:hover { text-decoration: underline; }

/* ---------- 9. Footer ---------- */
.site-footer { background: var(--ink); color: #fff; margin-top: var(--xl); }
.site-footer .wrap { padding-top: var(--xl); padding-bottom: var(--xl); }
.foot-grid { display: grid; gap: 2.5rem; padding-bottom: var(--xl); border-bottom: 1px solid rgba(196,199,199,.2); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 5fr 4fr 3fr; } }
.foot-grid p { color: var(--on-dark-muted); max-width: 24rem; margin-top: 1rem; }
.foot-grid h4 { font: 400 .6875rem/1rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); padding-bottom: .25rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(196,199,199,.2); }
.foot-grid li { padding-bottom: .35rem; margin-bottom: .35rem; border-bottom: 1px solid rgba(196,199,199,.1); font-size: .875rem; }
.foot-grid li:last-child { border-bottom: 0; }
.foot-grid li a { display: flex; justify-content: space-between; }
.foot-grid li a:hover { color: var(--on-dark-muted); }
.foot-grid li .mono { color: var(--on-dark-muted); }
.foot-join { margin-top: var(--lg); }
.foot-join .mono { display: block; color: var(--on-dark-muted); margin-bottom: .25rem; }
.foot-join form { display: flex; max-width: 28rem; }
.foot-join input { flex: 1; min-width: 0; background: var(--ink-soft); border: 1px solid rgba(196,199,199,.4); color: #fff; padding: .4rem 1rem; font-size: .875rem; }
.foot-join input::placeholder { color: var(--on-dark-muted); }
.foot-join button { border: 1px solid #fff; background: #fff; color: var(--ink); padding: .4rem 1rem; cursor: pointer; }
.foot-join button:hover { background: var(--ink); color: #fff; }
.foot-bottom { padding-top: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .5rem; color: var(--on-dark-muted); text-align: center; }
@media (min-width: 768px) { .foot-bottom { flex-direction: row; text-align: left; } }
.foot-bottom > div { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.foot-bottom a { text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom a:hover { color: #fff; }

/* ---------- 10. Article (single post) page ---------- */
.article-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .article-grid { grid-template-columns: 260px minmax(0, 1fr); } }
.toc-rail { background: var(--surface); }
@media (min-width: 1024px) { .toc-rail { border-right: 2px solid var(--ink); } .toc-sticky { position: sticky; top: 150px; } }
@media (max-width: 1023px) { .toc-rail { border-bottom: 2px solid var(--ink); } }
.toc-rail .block + .block { margin-top: var(--lg); }
.toc-rail h4 { font: 700 .6875rem/1rem var(--mono); letter-spacing: .12em; text-transform: uppercase; padding-bottom: .25rem; margin-bottom: .75rem; border-bottom: 2px solid var(--ink); }
.toc li { font-size: .875rem; line-height: 1.4; padding: .4rem 0; border-bottom: 1px solid var(--rule-soft); }
.toc a:hover { color: var(--muted); text-decoration: underline; }
.facts div { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid var(--rule-soft); }

.article { padding: var(--margin); }
@media (min-width: 768px) { .article { padding: var(--xl); } }
.article-head, .prose { max-width: 680px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.article-head h1 { margin: 1rem 0; }
.article-head .deck { margin-bottom: var(--lg); }
.article-head .byline { padding: 1rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule-soft); margin-bottom: var(--lg); justify-content: space-between; flex-wrap: wrap; }
.article-hero { max-width: 900px; margin: 0 auto var(--xl); }
.article-hero img { height: auto; max-height: 30rem; }
.article-hero figcaption { position: static; }

.prose { font-size: 1.125rem; line-height: 1.85; color: var(--text); }
.prose > * + * { margin-top: 1.4rem; }
.prose h2 { font-size: 1.9rem; line-height: 1.25; font-weight: 500; letter-spacing: -.015em; margin-top: var(--xl); padding-top: 1rem; border-top: 1px solid var(--ink); }
.prose h3 { font-size: 1.4rem; line-height: 1.3; font-weight: 600; margin-top: 2rem; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4rem; }
.prose blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--ink); font: italic 500 1.6rem/1.35 var(--serif); }
.prose code { font: 500 .85em var(--mono); background: var(--tint); border: 1px solid var(--rule-soft); padding: 1px 5px; }
.prose pre { background: var(--tint); border: 1px solid var(--rule-soft); padding: 1rem; overflow-x: auto; font: 500 .8125rem/1.6 var(--mono); }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th { text-align: left; border-bottom: 1px solid var(--ink); padding: .5rem; font: 700 .6875rem/1rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.prose td { border-bottom: 1px solid var(--rule-soft); padding: .5rem; vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--tint); }
.prose figure { margin: 2rem 0; }
.prose figure img { border: 1px solid var(--ink); filter: grayscale(1); }
.prose figcaption { margin-top: .5rem; color: var(--muted); }
.callout { background: var(--tint); border: 1px solid var(--rule-soft); border-left: 3px solid var(--ink); padding: 1rem 1.25rem; font-size: 1rem; line-height: 1.65; }
.callout .mono { display: block; margin-bottom: .25rem; font-weight: 700; }
.post-end { max-width: 680px; margin: var(--xl) auto 0; padding-top: 1rem; border-top: 2px solid var(--ink); }
.post-end .tags { margin: .75rem 0 var(--lg); }
.post-nav { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { border: 1px solid var(--ink); padding: 1rem; background: var(--surface); }
.post-nav a:hover { background: var(--tint-2); }
.post-nav .h-sm { font-size: 1.15rem; line-height: 1.4; margin-top: .25rem; display: block; }

/* ---------- 11. Archive & simple pages ---------- */
.page-head { padding: var(--margin); border-bottom: 2px solid var(--ink); }
@media (min-width: 768px) { .page-head { padding: var(--xl); } }
.page-head h1 { margin: .75rem 0 .5rem; }
.feed-section + .feed-section { margin-top: var(--xl); }
.feed li a { display: grid; gap: .25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 768px) { .feed li a { grid-template-columns: 9rem 1fr auto; align-items: baseline; } }
.feed li a:hover h3 { color: var(--muted); }
.feed h3 { font-size: 1.3rem; line-height: 1.35; font-weight: 600; }
.feed .empty { padding: 1rem 0; color: var(--muted); border-bottom: 1px solid var(--rule-soft); }
.simple { max-width: 680px; }
.simple .prose { margin: 0; }
.contact-list div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--rule-soft); }

/* ---------- 12. Small fixes ---------- */
.dark-head .chip-white { color: var(--ink); }
.takeaway .btn-light { color: var(--ink); }
.takeaway .btn-light:hover { color: #fff; }
.foot-join form button { color: var(--ink); }
.foot-join form button:hover { color: #fff; }
.prose a, .prose p { overflow-wrap: anywhere; }
.article-head .byline .byline { padding: 0; border: 0; margin: 0; }
@media (max-width: 1023px) {
  .article-grid .toc-rail { order: 2; border-bottom: 0; border-top: 2px solid var(--ink); }
}
.article-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .article-grid { grid-template-columns: 260px minmax(0, 1fr); } }
.prose table { display: block; overflow-x: auto; }
.prose td code { overflow-wrap: anywhere; }
@media (min-width: 768px) { .prose table { display: table; } }
.cards-2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .cards-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.box { min-width: 0; }
.card-foot > :only-child, .box-foot > :only-child { margin-left: auto; }
.foot-join form button.mono { color: var(--ink); }
.foot-join form button.mono:hover { color: #fff; }

/* ---------- 13. WordPress additions ---------- */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.admin-bar .site-header { top: 32px; }
.admin-bar .page { padding-top: 160px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .page { padding-top: 174px; } }
.box h3 a:hover { color: var(--muted); }
.dark h3 a:hover { color: var(--on-dark-muted); }
.dark-head a.mono { color: var(--on-dark-strong); }
.dark-head a.mono:hover { color: #fff; text-decoration: underline; }
.empty-track { padding: .5rem 0; color: var(--muted); }
.figure a { display: block; }
.feed-main { display: block; }
.feed-excerpt { display: block; color: var(--text-2); font-size: .9rem; line-height: 1.5; margin-top: .25rem; }
.topic-list li { padding: .45rem 0; border-bottom: 1px solid var(--rule-soft); font-size: .9rem; }
.topic-list li:last-child { border-bottom: 0; }
.topic-list a:hover { color: var(--muted); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--lg); }
.pagination .page-numbers { font: 500 .75rem/1 var(--mono); padding: .55rem .8rem; border: 1px solid var(--ink); }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ink); color: #fff; }
.search-inline { display: flex; gap: .5rem; max-width: 32rem; }
.search-inline input { flex: 1; min-width: 0; padding: .5rem .75rem; border: 2px solid var(--ink); background: #fff; }
.ad-area { text-align: center; overflow: hidden; }
.ad-slot small { display: block; margin-top: .5rem; text-transform: none; letter-spacing: 0; font-size: .7rem; }
.ad-tall { min-height: 200px; }
.post-comments { margin-top: var(--xl); }

/* Content written in the WordPress editor */
.prose img { height: auto; }
.prose .wp-block-image img { border: 1px solid var(--ink); filter: grayscale(1); }
.prose .wp-block-table { overflow-x: auto; margin: 0; }
.prose .wp-block-table table { display: table; }
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: .5rem; font: 400 .75rem/1.4 var(--mono); font-style: normal; color: var(--muted); }
.prose .wp-block-separator { border: 0; border-top: 1px solid var(--ink); }
.prose .has-text-align-center { text-align: center; }
.prose .wp-block-embed { margin: 2rem 0; }
.wp-element-caption, .wp-caption-text { font: 400 .6875rem/1rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.sticky, .bypostauthor, .gallery-caption { /* required by WordPress */ }
.card .thumb { height: auto; aspect-ratio: 16 / 9; }
.lead .figure img { height: auto; aspect-ratio: 16 / 9; }
@media (max-width: 767px) { .figure figcaption { position: static; } }
