/*
Theme Name: TribuneTimes
Theme URI: https://tribunetimes.de/
Author: Tribune Times Redaktion
Author URI: https://tribunetimes.de/
Description: Minimal, modern black & white newspaper theme for the Tribune Times magazine. Serif display headlines, thin rule separators, no clutter — built for speed and readability.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tribunetimes
Tags: news, minimal, black-white, serif, responsive, accessibility-ready
*/

/* ============================================================
   1. TOKENS & RESET
   ============================================================ */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --wash: #f5f5f5;
  --rule: #e5e5e5;
  --muted: #6b7280;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --readw: 720px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--muted); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
p { margin: 0 0 1.25em; }

::selection { background: var(--ink); color: var(--paper); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.6em 1em; font-size: 0.85rem;
}
.skip-link:focus { left: 0.5em; top: 0.5em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.read-wrap { max-width: var(--readw); margin: 0 auto; padding: 0 1.25rem; }

.rule-top { border-top: 1px solid var(--rule); }
.rule-double { border-top: 3px double var(--ink); }

/* Kicker: uppercase category eyebrow */
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.kicker a { text-decoration: none; color: inherit; }
.kicker a:hover { color: var(--ink); }

.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;
}

/* ============================================================
   2. HEADER
   ============================================================ */
.topbar {
  border-bottom: 1px solid var(--rule);
  font-size: 0.78rem; color: var(--muted);
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.45rem; padding-bottom: 0.45rem; gap: 1rem;
}
.topbar .tagline { display: none; }

.masthead { text-align: center; padding: 1.15rem 1.25rem 0.9rem; }
.masthead .wordmark {
  font-family: var(--serif); font-weight: 700;
  font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em;
  margin: 0;
}
.masthead .wordmark a { text-decoration: none; color: var(--ink); }
.masthead .wordmark a:hover { color: var(--ink); }
.masthead .custom-logo-link { display: inline-block; line-height: 0; }
.masthead .custom-logo { height: 40px; width: auto; }
@media (max-width: 700px) {
  .masthead .custom-logo { height: 32px; }
}

/* Primary nav between two thin rules */
.mainnav { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.mainnav .wrap { display: flex; align-items: center; justify-content: space-between; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 0; padding: 0.8rem 0;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; color: var(--ink);
}
.menu-toggle .bars { display: inline-block; width: 18px; height: 12px; position: relative; }
.menu-toggle .bars span,
.menu-toggle .bars span::before,
.menu-toggle .bars span::after {
  content: ""; display: block; background: var(--ink); height: 2px; width: 100%;
  position: absolute; left: 0; transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle .bars span { top: 5px; }
.menu-toggle .bars span::before { top: -5px; }
.menu-toggle .bars span::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .bars span { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars span::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span::after { transform: translateY(-5px) rotate(-45deg); }

.primary-menu { list-style: none; margin: 0; padding: 0; display: none; width: 100%; }
.primary-menu.toggled { display: block; }
.mainnav .wrap.nav-open { flex-wrap: wrap; }
.mainnav .wrap.nav-open .primary-menu { order: 3; }

.primary-menu li { border-top: 1px solid var(--rule); }
.primary-menu a {
  display: block; padding: 0.7rem 0; text-decoration: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.primary-menu a:hover { color: var(--muted); }
.primary-menu .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--ink); }

.search-toggle {
  background: none; border: 0; padding: 0.8rem 0 0.8rem 0.8rem;
  cursor: pointer; color: var(--ink); display: inline-flex; align-items: center;
}
.search-toggle svg { width: 18px; height: 18px; display: block; }
.search-toggle:hover { color: var(--muted); }

.search-drawer {
  display: none; border-bottom: 1px solid var(--rule); background: var(--wash);
}
.search-drawer.open { display: block; }
.search-drawer form { display: flex; gap: 0.5rem; padding: 1rem 0; }
.search-drawer input[type="search"] {
  flex: 1; padding: 0.65rem 0.8rem; font-size: 1rem; font-family: var(--sans);
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
}
.search-drawer button {
  padding: 0.65rem 1.1rem; background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.search-drawer button:hover { background: var(--muted); border-color: var(--muted); }

/* ============================================================
   3. FRONT PAGE / LIST LAYOUT
   ============================================================ */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 3px double var(--ink); margin: 2.5rem 0 0; padding: 0.7rem 0;
}
.section-head h2 {
  font-size: 0.82rem; font-family: var(--sans); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0;
}
.section-head a { font-size: 0.82rem; text-decoration: none; color: var(--muted); }
.section-head a:hover { color: var(--ink); }

/* Hero: first story, large */
.hero { margin: 2rem 0 0; padding-bottom: 0.4rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: center; }
.hero figure { margin: 0; }
.hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.hero .kicker { margin-bottom: 0.6rem; }
.hero h2 {
  font-size: 2rem; line-height: 1.12; margin: 0 0 0.6rem; letter-spacing: -0.015em;
}
.hero a.hero-link { text-decoration: none; }
.hero a.hero-link:hover h2 { color: var(--muted); }
.hero .hero-excerpt { color: var(--muted); font-size: 1.02rem; margin: 0 0 0.7rem; max-width: 60ch; }
.hero .meta, .card .meta, .archive-list .meta { font-size: 0.78rem; color: var(--muted); }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 2.2rem; }
  .hero h2 { font-size: 2.6rem; }
}

/* Card grid: image on top, text below */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.card { border-bottom: 1px solid var(--rule); }
.card a.card-link { display: block; text-decoration: none; padding: 1.4rem 0; }
.card .card-inner { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.card .thumb { overflow: hidden; background: var(--wash); }
.card .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card h3 { font-size: 1.35rem; margin: 0 0 0.45rem; line-height: 1.25; }
.card a.card-link:hover h3 { color: var(--muted); }
.card .excerpt { color: var(--muted); font-size: 0.94rem; margin: 0 0 0.55rem; }

/* Archive list shares card styles */
.archive-head { padding: 2.5rem 0 1.5rem; border-bottom: 3px double var(--ink); margin-bottom: 0.5rem; }
.archive-head h1 { font-size: 2rem; margin: 0 0 0.4rem; }
.archive-head .archive-desc { color: var(--muted); max-width: 62ch; margin: 0 0 0.4rem; }
.archive-head .count { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* Topics strip on the front page */
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0 0 3rem; }
.topic { background: var(--paper); padding: 1.3rem 1.2rem; text-decoration: none; display: block; }
.topic:hover { background: var(--wash); }
.topic-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; display: block; margin-bottom: 0.25rem; color: var(--ink); }
.topic-count { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
@media (min-width: 860px) {
  .topics { grid-template-columns: repeat(4, 1fr); }
}

/* Pagination */
.pagination { display: flex; gap: 0.4rem; justify-content: center; padding: 2.5rem 0; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-block; min-width: 2.4rem; text-align: center;
  padding: 0.5rem 0.6rem; border: 1px solid var(--rule);
  text-decoration: none; font-size: 0.88rem;
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }

/* ============================================================
   4. SINGLE ARTICLE
   ============================================================ */
.article-head { padding: 2.5rem 0 0; }
.article-head h1 { font-size: 2.1rem; line-height: 1.12; margin: 0 0 0.9rem; max-width: 22ch; }
.article-lead { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; color: #333; margin: 0 0 1.2rem; max-width: 60ch; }

.byline {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center;
  font-size: 0.82rem; color: var(--muted);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0; margin: 0 0 1.8rem;
}
.byline .author-name { font-weight: 700; color: var(--ink); }
.byline .author-name a { color: inherit; }
.byline .author-name a:hover { text-decoration: underline; }
.byline a { text-decoration: none; }
.byline .dot::before { content: "·"; margin-right: 1rem; color: var(--rule); }

.featured { margin: 0 0 2rem; }
.featured img { width: 100%; }
.wp-caption-text, figcaption, .featured figcaption {
  font-size: 0.8rem; color: var(--muted); font-style: italic;
  margin-top: 0.5rem; line-height: 1.5;
}

.entry-content { font-size: 1.05rem; line-height: 1.75; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 1.6rem; margin: 2.2rem 0 0.8rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.entry-content h3 { font-size: 1.3rem; margin: 1.8rem 0 0.6rem; }
.entry-content h4 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote {
  margin: 1.8rem 0; padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 3px solid var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.15rem;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 0.95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--rule); padding: 0.6rem 0.8rem; text-align: left; }
.entry-content th { background: var(--wash); font-weight: 700; }
.entry-content figure { margin: 1.8rem 0; }
.entry-content img { border: 1px solid var(--rule); }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }

/* --- Steckbrief: two-column profile card (scoped to .entry-content) --- */
.entry-content dl.steckbrief,
.entry-content dl {
  display: grid; grid-template-columns: 1fr;
  background: var(--wash);
  border: 1px solid var(--rule); border-radius: 6px;
  margin: 1.8rem 0; padding: 0; overflow: hidden; font-size: 0.97rem;
}
.entry-content dl > div, .entry-content dl > .steckbrief-row {
  display: contents;
}
.entry-content dl dt, .entry-content dl dd { margin: 0; padding: 0.65rem 1rem; }
.entry-content dl dt {
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em;
  background: #ececec; border-bottom: 1px solid var(--rule);
}
.entry-content dl dd { border-bottom: 1px solid var(--rule); }
.entry-content dl dt:last-of-type, .entry-content dl dd:last-of-type { border-bottom: 0; }

/* --- Plain-text FAQ (h3/h4 + p, never accordion) --- */
.entry-content .faq h3, .entry-content .faq h4,
.entry-content h3.faq-q, .entry-content h4.faq-q {
  font-size: 1.12rem; margin: 1.4rem 0 0.35rem; padding-top: 1.1rem;
  border-top: 1px dotted var(--rule);
}
.entry-content .faq p, .entry-content p.faq-a { color: #333; }

/* --- Quellen list with outbound links --- */
.entry-content ul.quellen, .entry-content .quellen ul {
  list-style: none; padding: 0; margin: 1.5rem 0;
  border-top: 1px solid var(--rule); font-size: 0.92rem;
}
.entry-content ul.quellen li, .entry-content .quellen li {
  padding: 0.55rem 0; border-bottom: 1px solid var(--rule); margin: 0;
}
.entry-content ul.quellen a, .entry-content .quellen a {
  text-decoration: none; border-bottom: 1px dotted var(--muted);
}
.entry-content ul.quellen a:hover, .entry-content .quellen a:hover { color: var(--muted); }

/* Article footer: tags, share-free */
.article-foot { margin: 2.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.tag-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list a {
  display: inline-block; border: 1px solid var(--rule); padding: 0.3rem 0.75rem;
  font-size: 0.78rem; text-decoration: none; color: var(--muted);
}
.tag-list a:hover { border-color: var(--ink); color: var(--ink); }

.author-box {
  display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start;
  background: var(--wash); border: 1px solid var(--rule); border-radius: 6px;
  padding: 1.2rem; margin: 0 0 2rem;
}
.author-box img { border-radius: 50%; }
.author-box .ab-name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; margin: 0 0 0.3rem; }
.author-box .ab-bio { font-size: 0.9rem; color: var(--muted); margin: 0; }

.post-nav { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0 0 2.5rem; }
.post-nav a { background: var(--paper); padding: 1.1rem 1.2rem; text-decoration: none; display: block; }
.post-nav a:hover .pn-title { color: var(--muted); }
.post-nav .pn-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.post-nav .pn-title { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.post-nav .pn-next { text-align: right; }

.related { margin: 0 0 3rem; }
.related h2 { font-size: 1.3rem; margin: 0 0 1rem; padding-top: 1.4rem; border-top: 3px double var(--ink); }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { border-bottom: 1px solid var(--rule); }
.related li:first-child { border-top: 1px solid var(--rule); }
.related a { display: block; padding: 0.8rem 0; text-decoration: none; }
.related a:hover .rel-title { color: var(--muted); }
.related .rel-title { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; line-height: 1.35; display: block; }
.related .rel-meta { font-size: 0.78rem; color: var(--muted); }

/* ============================================================
   5. PAGE, SEARCH, 404
   ============================================================ */
.page-head { padding: 2.5rem 0 0; }
.page-head h1 { font-size: 2.2rem; margin: 0 0 1.5rem; }
.page-body { padding-bottom: 3rem; }

.search-head { padding: 2.5rem 0 1rem; border-bottom: 3px double var(--ink); margin-bottom: 0.5rem; }
.search-head h1 { font-size: 1.8rem; margin: 0 0 0.5rem; }
.search-head .search-query { font-style: italic; }
.search-head p { color: var(--muted); margin: 0; }
.no-results { padding: 2rem 0 3rem; }
.no-results form { display: flex; gap: 0.5rem; margin-top: 1rem; max-width: 480px; }
.no-results input[type="search"] { flex: 1; padding: 0.65rem 0.8rem; border: 1px solid var(--rule); font-size: 1rem; }
.no-results button { padding: 0.65rem 1.1rem; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); cursor: pointer; }

.error-404 { text-align: center; padding: 4rem 0 5rem; }
.error-404 .code { font-family: var(--serif); font-size: 5rem; font-weight: 700; line-height: 1; margin: 0 0 0.5rem; }
.error-404 h1 { font-size: 1.6rem; margin: 0 0 0.8rem; }
.error-404 p { color: var(--muted); max-width: 44ch; margin: 0 auto 1.5rem; }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.4rem; text-decoration: none; font-size: 0.88rem; font-weight: 600;
}
.btn:hover { background: var(--muted); color: var(--paper); }

/* ============================================================
   6. FOOTER
   ============================================================ */
.site-footer { border-top: 3px double var(--ink); margin-top: 3rem; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
.footer-col h3 {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.9rem;
}
.footer-col p { font-size: 0.9rem; color: var(--muted); margin: 0; max-width: 38ch; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { text-decoration: none; font-size: 0.9rem; color: var(--ink); }
.footer-col a:hover { color: var(--muted); }
.footer-col .widget { margin-bottom: 1.5rem; }
.footer-col .widget:last-child { margin-bottom: 0; }

.footer-bottom { border-top: 1px solid var(--rule); }
.footer-bottom .wrap {
  display: flex; flex-direction: column; gap: 0.3rem; align-items: center; text-align: center;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
  font-size: 0.78rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }

/* ============================================================
   7. COMMENTS
   ============================================================ */
.comments-area { margin: 0 0 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.comments-area h2, .comment-reply-title { font-size: 1.3rem; margin: 0 0 1.2rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .comment { border: 1px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.comment-list .children { list-style: none; margin: 1rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid var(--rule); }
.comment-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
.comment-meta .fn { font-weight: 700; color: var(--ink); font-style: normal; }
.comment-content p { margin: 0 0 0.8em; font-size: 0.95rem; }
.reply { font-size: 0.82rem; }
.comment-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--rule);
  font-family: var(--sans); font-size: 1rem; margin-bottom: 1rem; background: var(--paper); color: var(--ink);
}
.comment-form .submit {
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  padding: 0.7rem 1.5rem; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.comment-form .submit:hover { background: var(--muted); border-color: var(--muted); }
.comments-closed { color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   8. WIDGETS (footer area)
   ============================================================ */
.widget { margin: 0 0 1.5rem; }
.widget-title {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.9rem;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.widget a { text-decoration: none; }
.widget_search form { display: flex; gap: 0.5rem; }
.widget_search input[type="search"] { flex: 1; padding: 0.55rem 0.7rem; border: 1px solid var(--rule); font-size: 0.9rem; }
.widget_search button { padding: 0.55rem 0.9rem; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); cursor: pointer; }

/* ============================================================
   9. TABLET & DESKTOP (min-width: 720px)
   ============================================================ */
@media (min-width: 720px) {
  .topbar .tagline { display: inline; }

  .masthead .wordmark { font-size: 3.4rem; }

  .menu-toggle { display: none; }
  .primary-menu { display: flex !important; flex-wrap: wrap; gap: 1.8rem; width: auto; }
  .primary-menu li { border-top: 0; }
  .primary-menu a { padding: 0.85rem 0; }
  .mainnav .wrap { justify-content: center; position: relative; }
  .search-toggle { position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); padding: 0.4rem; }

  .cards { grid-template-columns: 1fr 1fr; gap: 0 2.2rem; }

  .article-head h1 { font-size: 2.9rem; }
  .entry-content { font-size: 1.1rem; }

  /* Steckbrief: two columns on desktop */
  .entry-content dl { grid-template-columns: 220px 1fr; }
  .entry-content dl dt { border-bottom: 1px solid var(--rule); }
  .entry-content dl dt, .entry-content dl dd { padding: 0.7rem 1.1rem; }
  .entry-content dl dt:nth-last-of-type(1), .entry-content dl dd:last-of-type { border-bottom: 0; }

  .post-nav { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-bottom .wrap { flex-direction: row; justify-content: space-between; text-align: left; }

  .archive-head h1 { font-size: 2.6rem; }
}

/* ============================================================
   10. WIDE (min-width: 1020px)
   ============================================================ */
@media (min-width: 1020px) {
  .hero h2 { font-size: 3.3rem; }
  .article-head h1 { font-size: 3.2rem; }
  .card .card-inner { grid-template-columns: 320px 1fr; }
}

/* ============================================================
   11. ACCESSIBILITY & PRINT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}

@media print {
  .topbar, .mainnav, .search-drawer, .site-footer, .comments-area,
  .post-nav, .related, .menu-toggle, .search-toggle { display: none !important; }
  body { font-size: 11pt; }
  .article-head h1 { font-size: 22pt; }
  a { text-decoration: none; }
}
