/*
Theme Name: Editorial Paper
Theme URI: https://www.12bet.com/
Author: Editorial Paper Desk
Description: Cream-paper editorial newspaper theme for Vietnamese betting news. Centered serif masthead, red hot-news ticker, asymmetric front page, numbered sections, colophon footer. Fully local assets, no CDN.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: editorial-paper
Tags: news, magazine, one-column, two-columns, custom-menu, custom-colors
*/

/* ============ Tokens ============ */
:root {
  --ep-paper: #F7F3EA;
  --ep-paper-deep: #EFE9DB;
  --ep-ink: #1C1917;
  --ep-red: #C8371F;
  --ep-red-deep: #A32B16;
  --ep-rule: #D8D0C0;
  --ep-muted: #6B6257;
  --ep-gold: #B98A2F;
  --ep-green: #3F6B42;
  --ep-blue: #2F5D8A;
  --ep-serif-display: 'Playfair Display', 'Times New Roman', serif;
  --ep-serif-body: 'Literata', Georgia, serif;
  --ep-wrap: 1160px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--ep-ink) var(--ep-paper); scrollbar-width: thin; }
body {
  margin: 0;
  background: var(--ep-paper);
  color: var(--ep-ink);
  font-family: var(--ep-serif-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
/* paper grain, original inline SVG */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.38 0 0 0 0 0.31 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ep-paper); border-left: 1px solid var(--ep-rule); }
::-webkit-scrollbar-thumb { background: var(--ep-ink); border: 3px solid var(--ep-paper); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--ep-red); }
::selection { background: var(--ep-red); color: var(--ep-paper); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--ep-serif-display); line-height: 1.16; margin: 0 0 .5em; font-weight: 700; }
ul, ol { padding-left: 1.3em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: var(--ep-serif-body); font-size: 1rem; color: var(--ep-ink); }
:focus-visible { outline: 2px solid var(--ep-blue); outline-offset: 2px; }

.ep-wrap { max-width: var(--ep-wrap); margin: 0 auto; padding: 0 24px; }
.ep-smallcaps {
  font-family: var(--ep-serif-body);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.ep-screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); word-wrap: normal !important;
}
.ep-skip-link { position: absolute; left: -9999px; top: 0; background: var(--ep-ink); color: var(--ep-paper); padding: 10px 18px; z-index: 999; }
.ep-skip-link:focus { left: 8px; }

/* hairline helpers */
.ep-double-rule { border-top: 3px solid var(--ep-ink); position: relative; }
.ep-double-rule::after { content: ""; display: block; border-top: 1px solid var(--ep-ink); margin-top: 3px; }

/* reveal */
.ep-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.ep-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ep-reveal { opacity: 1; transform: none; transition: none; }
  .ep-ticker-track { animation: none !important; }
}

/* ============ Masthead ============ */
.ep-masthead { padding: 26px 0 0; text-align: center; }
.ep-masthead-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  color: var(--ep-muted); border-bottom: 1px solid var(--ep-rule); padding-bottom: 10px;
}
.ep-masthead-meta .ep-issue { color: var(--ep-gold); }
.ep-wordmark {
  font-family: var(--ep-serif-display); font-weight: 900;
  font-size: clamp(3rem, 8vw, 5.4rem); letter-spacing: .04em;
  margin: 18px 0 2px; line-height: 1;
}
.ep-wordmark a { color: var(--ep-ink); }
.ep-wordmark a:hover { color: var(--ep-red); }
.ep-wordmark .ep-wordmark-dot { color: var(--ep-red); }
.ep-tagline { color: var(--ep-muted); font-style: italic; font-size: .95rem; margin: 0 0 16px; }
.ep-tagline .ep-ornament { color: var(--ep-gold); font-style: normal; padding: 0 .6em; }
.ep-masthead .ep-double-rule { margin-bottom: 0; }

/* ============ Ticker ============ */
.ep-ticker { display: flex; align-items: stretch; border-bottom: 1px solid var(--ep-rule); background: var(--ep-paper-deep); overflow: hidden; }
.ep-ticker-label {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  background: var(--ep-red); color: var(--ep-paper);
  padding: 9px 16px; font-weight: 600; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
}
.ep-ticker-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ep-paper); animation: ep-blink 1.4s infinite; }
@keyframes ep-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ep-ticker-viewport { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ep-ticker-track { display: flex; white-space: nowrap; animation: ep-ticker 46s linear infinite; will-change: transform; }
.ep-ticker:hover .ep-ticker-track { animation-play-state: paused; }
.ep-ticker-track span { padding: 9px 0; font-size: .9rem; }
.ep-ticker-track a:hover { color: var(--ep-red); text-decoration: underline; text-underline-offset: 3px; }
.ep-ticker-track .ep-tick-sep { color: var(--ep-gold); padding: 9px 18px; }
@keyframes ep-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Nav ============ */
.ep-navbar { border-bottom: 1px solid var(--ep-ink); background: var(--ep-paper); }
.ep-navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ep-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin: 0; padding: 0; list-style: none; flex: 1; }
.ep-nav li { position: relative; }
.ep-nav a {
  display: block; padding: 13px 2px; font-weight: 600; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; position: relative;
}
.ep-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: var(--ep-red); transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.ep-nav a:hover { color: var(--ep-red); }
.ep-nav a:hover::after, .ep-nav .current-menu-item > a::after, .ep-nav .current_page_item > a::after { transform: scaleX(1); }
.ep-nav-cta { display: flex; gap: 10px; flex: 0 0 auto; padding: 8px 0; }
.ep-btn {
  display: inline-block; padding: 8px 18px; font-weight: 600; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--ep-ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ep-btn-solid { background: var(--ep-red); border-color: var(--ep-red); color: var(--ep-paper); }
.ep-btn-solid:hover { background: var(--ep-red-deep); border-color: var(--ep-red-deep); }
.ep-btn-ghost { background: transparent; color: var(--ep-ink); }
.ep-btn-ghost:hover { border-color: var(--ep-red); color: var(--ep-red); }
.ep-burger {
  display: none; background: none; border: 1px solid var(--ep-ink); width: 42px; height: 38px;
  padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.ep-burger span { display: block; width: 18px; height: 2px; background: var(--ep-ink); }

/* mobile overlay menu */
.ep-overlay {
  position: fixed; inset: 0; background: var(--ep-paper); z-index: 200;
  display: none; flex-direction: column; padding: 24px;
}
.ep-overlay.is-open { display: flex; }
.ep-overlay-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--ep-ink); padding-bottom: 14px; }
.ep-overlay-brand { font-family: var(--ep-serif-display); font-weight: 900; font-size: 1.6rem; }
.ep-overlay-close { background: none; border: 1px solid var(--ep-ink); width: 42px; height: 42px; font-size: 1.2rem; line-height: 1; color: var(--ep-ink); }
.ep-overlay-close:hover { border-color: var(--ep-red); color: var(--ep-red); }
.ep-overlay-nav { list-style: none; margin: 8px 0 0; padding: 0; overflow-y: auto; flex: 1; }
.ep-overlay-nav li { border-bottom: 1px solid var(--ep-rule); }
.ep-overlay-nav a { display: flex; align-items: baseline; gap: 16px; padding: 16px 4px; font-family: var(--ep-serif-display); font-weight: 700; font-size: 1.7rem; }
.ep-overlay-nav a:hover { color: var(--ep-red); }
.ep-overlay-nav .ep-idx { font-family: var(--ep-serif-body); font-weight: 600; font-size: .72rem; letter-spacing: .2em; color: var(--ep-gold); }
.ep-overlay-cta { display: flex; gap: 12px; padding-top: 18px; }
.ep-overlay-cta .ep-btn { flex: 1; text-align: center; padding: 13px 10px; }
body.ep-menu-open { overflow: hidden; }

/* ============ Breadcrumbs ============ */
.ep-breadcrumbs { padding: 14px 0 0; color: var(--ep-muted); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.ep-breadcrumbs a:hover { color: var(--ep-red); }
.ep-breadcrumbs .ep-crumb-sep { color: var(--ep-gold); padding: 0 .55em; }

/* ============ Front page: hero ============ */
.ep-front { padding: 30px 0 10px; }
.ep-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid var(--ep-ink); }
.ep-hero-lead { padding-right: 34px; border-right: 1px solid var(--ep-rule); }
.ep-kicker { color: var(--ep-red); display: inline-block; margin-bottom: 10px; }
.ep-kicker::before { content: "■ "; font-size: .6em; vertical-align: 2px; }
.ep-hero-title { font-size: clamp(1.9rem, 3.6vw, 3.1rem); font-weight: 900; letter-spacing: -.01em; margin-bottom: 16px; }
.ep-hero-title a:hover { color: var(--ep-red); }
.ep-hero-figure { margin: 0 0 16px; border: 1px solid var(--ep-rule); padding: 6px; background: var(--ep-paper); }
.ep-hero-figure img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; filter: sepia(.14) contrast(1.02); }
.ep-hero-figure figcaption { font-size: .78rem; color: var(--ep-muted); font-style: italic; padding-top: 6px; }
.ep-hero-excerpt { font-size: 1.06rem; color: var(--ep-ink); max-width: 62ch; }
.ep-dropcap::first-letter {
  font-family: var(--ep-serif-display); font-weight: 900; color: var(--ep-red);
  float: left; font-size: 3.4em; line-height: .82; padding: .06em .12em 0 0;
}
.ep-hero-more { color: var(--ep-red); font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--ep-red); padding-bottom: 2px; }
.ep-hero-more:hover { color: var(--ep-red-deep); border-color: var(--ep-red-deep); }
.ep-hero-side { display: flex; flex-direction: column; }
.ep-hero-side-head { color: var(--ep-gold); border-bottom: 1px solid var(--ep-ink); padding-bottom: 8px; margin-bottom: 4px; }
.ep-side-item { display: grid; grid-template-columns: 86px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--ep-rule); align-items: start; }
.ep-side-item:last-child { border-bottom: 0; }
.ep-side-item img { width: 86px; height: 64px; object-fit: cover; border: 1px solid var(--ep-rule); filter: sepia(.14); }
.ep-side-item h3 { font-size: 1.02rem; margin: 4px 0 0; line-height: 1.32; }
.ep-side-item h3 a:hover { color: var(--ep-red); }
.ep-side-item .ep-side-cat { color: var(--ep-muted); font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }

/* ============ Numbered sections ============ */
.ep-sections { padding: 8px 0 20px; }
.ep-section { padding: 26px 0 8px; }
.ep-section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.ep-section-num { font-family: var(--ep-serif-display); font-style: italic; font-weight: 700; font-size: 2rem; color: var(--ep-red); line-height: 1; }
.ep-section-title { font-family: var(--ep-serif-body); font-weight: 600; font-size: .85rem; letter-spacing: .26em; text-transform: uppercase; margin: 0; }
.ep-section-head::after { content: ""; flex: 1; border-top: 1px solid var(--ep-ink); transform: translateY(-4px); }
.ep-section-list { list-style: none; margin: 0; padding: 0; }
.ep-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: baseline; padding: 14px 2px; border-bottom: 1px solid var(--ep-rule); }
.ep-row-date { color: var(--ep-muted); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ep-row-title { font-family: var(--ep-serif-display); font-weight: 700; font-size: 1.14rem; line-height: 1.35; margin: 0; }
.ep-row-title a { background-image: linear-gradient(var(--ep-red), var(--ep-red)); background-repeat: no-repeat; background-size: 0 1px; background-position: 0 100%; transition: background-size .3s ease, color .2s ease; }
.ep-row-title a:hover { color: var(--ep-red); background-size: 100% 1px; }
.ep-row-arrow { color: var(--ep-gold); font-size: 1rem; transition: transform .25s ease; }
.ep-row:hover .ep-row-arrow { transform: translateX(5px); color: var(--ep-red); }

/* ============ Card grid + load more ============ */
.ep-latest { padding: 30px 0 46px; }
.ep-latest-head { text-align: center; margin-bottom: 24px; }
.ep-latest-head h2 { font-size: 1.7rem; font-weight: 900; margin-bottom: 4px; }
.ep-latest-head .ep-orn-line { color: var(--ep-gold); letter-spacing: .5em; font-size: .8rem; }
.ep-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ep-card {
  border: 1px solid var(--ep-rule); background: var(--ep-paper); padding: 10px 10px 14px;
  display: flex; flex-direction: column; transition: border-color .25s ease;
}
.ep-card:hover { border-color: var(--ep-ink); }
.ep-card.is-hidden { display: none; }
.ep-card-thumb { overflow: hidden; margin-bottom: 12px; }
.ep-card-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.14); transition: filter .3s ease, transform .5s ease; }
.ep-card:hover .ep-card-thumb img { filter: sepia(0); transform: scale(1.03); }
.ep-card-cat { color: var(--ep-red); font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 6px; }
.ep-card-title { font-size: 1.06rem; line-height: 1.34; margin-bottom: 8px; }
.ep-card-title a:hover { color: var(--ep-red); }
.ep-card-excerpt { font-size: .86rem; color: var(--ep-muted); line-height: 1.6; margin-bottom: 12px; flex: 1; }
.ep-card-date { color: var(--ep-muted); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-top: 1px solid var(--ep-rule); padding-top: 9px; }
.ep-loadmore-wrap { text-align: center; padding-top: 30px; }
.ep-loadmore {
  background: none; border: 0; color: var(--ep-red); font-weight: 600; font-size: .82rem;
  letter-spacing: .24em; text-transform: uppercase; text-decoration: underline;
  text-underline-offset: 6px; text-decoration-thickness: 1px; padding: 8px 14px;
}
.ep-loadmore:hover { color: var(--ep-red-deep); }
.ep-loadmore:disabled { color: var(--ep-muted); cursor: default; text-decoration-color: var(--ep-rule); }
.ep-loadmore[hidden] { display: none; }

/* ============ Archive / list pages ============ */
.ep-page-head { padding: 30px 0 18px; border-bottom: 3px solid var(--ep-ink); margin-bottom: 6px; }
.ep-page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; margin: 6px 0 4px; }
.ep-page-head .ep-page-desc { color: var(--ep-muted); font-style: italic; margin: 0; max-width: 70ch; }
.ep-list-layout { display: grid; grid-template-columns: 1fr 300px; gap: 44px; padding: 20px 0 50px; }
.ep-article-list { list-style: none; margin: 0; padding: 0; }
.ep-list-item { display: grid; grid-template-columns: 168px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--ep-rule); }
.ep-list-item img { width: 168px; height: 126px; object-fit: cover; border: 1px solid var(--ep-rule); filter: sepia(.14); }
.ep-list-item h2 { font-size: 1.35rem; margin: 4px 0 8px; }
.ep-list-item h2 a:hover { color: var(--ep-red); }
.ep-list-item .ep-list-excerpt { color: var(--ep-muted); font-size: .92rem; margin-bottom: 8px; }
.ep-list-meta { color: var(--ep-muted); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.ep-list-meta .ep-meta-cat { color: var(--ep-red); }
.ep-no-results { padding: 40px 0; }
.ep-no-results h2 { font-size: 1.6rem; }

/* pagination */
.ep-pagination { padding: 28px 0 0; text-align: center; }
.ep-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ep-pagination .page-numbers {
  min-width: 40px; padding: 8px 12px; border: 1px solid var(--ep-rule);
  font-weight: 600; font-size: .82rem; letter-spacing: .08em;
}
.ep-pagination a.page-numbers:hover { border-color: var(--ep-red); color: var(--ep-red); }
.ep-pagination .page-numbers.current { background: var(--ep-ink); border-color: var(--ep-ink); color: var(--ep-paper); }
.ep-pagination .page-numbers.dots { border: 0; }

/* ============ Sidebar ============ */
.ep-sidebar .widget { border: 1px solid var(--ep-rule); padding: 20px; margin-bottom: 26px; background: var(--ep-paper); }
.ep-sidebar .widget-title, .ep-sidebar .ep-widget-title {
  font-family: var(--ep-serif-body); font-weight: 600; font-size: .76rem; letter-spacing: .24em;
  text-transform: uppercase; border-bottom: 1px solid var(--ep-ink); padding-bottom: 9px; margin-bottom: 14px;
}
.ep-sidebar .ep-widget-title::before { content: "§ "; color: var(--ep-gold); }
.ep-sidebar ul { list-style: none; margin: 0; padding: 0; }
.ep-sidebar ul li { border-bottom: 1px solid var(--ep-rule); padding: 9px 0; font-size: .92rem; }
.ep-sidebar ul li:last-child { border-bottom: 0; }
.ep-sidebar ul li a:hover { color: var(--ep-red); }
.ep-sidebar .ep-widget-about { font-size: .9rem; color: var(--ep-muted); font-style: italic; }
.ep-sidebar .ep-widget-num { color: var(--ep-gold); font-weight: 600; font-size: .72rem; letter-spacing: .1em; padding-right: 8px; }

/* ============ Single / page ============ */
.ep-article-wrap { max-width: 68ch; margin: 0 auto; padding: 26px 24px 56px; }
.ep-article-head { text-align: left; margin-bottom: 22px; }
.ep-article-title { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 900; letter-spacing: -.01em; margin: 8px 0 14px; }
.ep-article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ep-muted);
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border-top: 1px solid var(--ep-rule); border-bottom: 1px solid var(--ep-rule); padding: 10px 0;
}
.ep-article-meta .ep-meta-author { color: var(--ep-ink); }
.ep-article-figure { margin: 24px 0; border: 1px solid var(--ep-rule); padding: 6px; }
.ep-article-figure img { width: 100%; filter: sepia(.12); }
.ep-article-figure figcaption { font-size: .78rem; color: var(--ep-muted); font-style: italic; padding-top: 6px; }
.ep-article-content { font-size: 1.06rem; }
.ep-article-content > p:first-of-type::first-letter {
  font-family: var(--ep-serif-display); font-weight: 900; color: var(--ep-red);
  float: left; font-size: 3.6em; line-height: .8; padding: .06em .14em 0 0;
}
.ep-article-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.ep-article-content h3 { font-size: 1.25rem; margin-top: 1.4em; }
.ep-article-content a { color: var(--ep-blue); text-decoration: underline; text-underline-offset: 3px; }
.ep-article-content a:hover { color: var(--ep-red); }
.ep-article-content blockquote {
  margin: 1.6em 0; padding: .4em 0 .4em 1.3em; border-left: 3px solid var(--ep-gold);
  font-style: italic; color: var(--ep-muted); font-size: 1.12rem;
}
.ep-article-content blockquote p:last-child { margin-bottom: 0; }
.ep-article-content img { border: 1px solid var(--ep-rule); padding: 5px; }
.ep-article-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ep-article-content th, .ep-article-content td { border: 1px solid var(--ep-rule); padding: 8px 12px; text-align: left; }
.ep-article-content th { background: var(--ep-paper-deep); font-weight: 600; }
.ep-article-tags { padding: 18px 0 0; font-size: .8rem; color: var(--ep-muted); }
.ep-article-tags a { border: 1px solid var(--ep-rule); padding: 3px 10px; margin-right: 6px; display: inline-block; margin-bottom: 6px; }
.ep-article-tags a:hover { border-color: var(--ep-red); color: var(--ep-red); }

/* author box */
.ep-author-box { display: flex; gap: 18px; border-top: 1px solid var(--ep-ink); border-bottom: 1px solid var(--ep-rule); padding: 22px 0; margin-top: 34px; align-items: flex-start; }
.ep-author-avatar {
  flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--ep-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ep-serif-display); font-weight: 900; font-size: 1.5rem; color: var(--ep-red); background: var(--ep-paper-deep);
}
.ep-author-box h3 { font-size: 1.1rem; margin-bottom: 4px; }
.ep-author-box .ep-author-role { color: var(--ep-gold); font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.ep-author-box p { font-size: .9rem; color: var(--ep-muted); margin: 0; }

/* article CTA strip */
.ep-article-cta { border: 1px solid var(--ep-ink); background: var(--ep-paper-deep); padding: 20px 24px; margin: 30px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ep-article-cta p { margin: 0; font-style: italic; }
.ep-article-cta strong { font-family: var(--ep-serif-display); }

/* ============ Comments ============ */
.ep-comments { padding-top: 34px; }
.ep-comments-title { font-size: 1.4rem; border-bottom: 1px solid var(--ep-ink); padding-bottom: 10px; }
.ep-comment-list { list-style: none; margin: 0 0 26px; padding: 0; }
.ep-comment-list .comment { border-bottom: 1px solid var(--ep-rule); padding: 16px 0; }
.ep-comment-list .children { list-style: none; padding-left: 26px; border-left: 1px solid var(--ep-rule); }
.ep-comment-head { display: flex; gap: 10px; align-items: baseline; font-size: .8rem; margin-bottom: 6px; }
.ep-comment-head .ep-comment-author { font-weight: 600; letter-spacing: .06em; }
.ep-comment-head time { color: var(--ep-muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.ep-comment-body { font-size: .95rem; }
.ep-comment-body p:last-child { margin-bottom: 0; }
.ep-comment-list .reply a { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ep-red); }
.ep-comment-form label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }
.ep-comment-form input[type="text"], .ep-comment-form input[type="email"], .ep-comment-form input[type="url"], .ep-comment-form textarea,
.ep-search-input {
  width: 100%; background: var(--ep-paper); border: 1px solid var(--ep-rule); padding: 11px 13px;
  transition: border-color .2s ease;
}
.ep-comment-form input:focus, .ep-comment-form textarea:focus, .ep-search-input:focus { border-color: var(--ep-ink); outline: none; }
.ep-comment-form .form-submit input, .ep-search-submit {
  background: var(--ep-ink); color: var(--ep-paper); border: 1px solid var(--ep-ink);
  padding: 11px 26px; font-weight: 600; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
}
.ep-comment-form .form-submit input:hover, .ep-search-submit:hover { background: var(--ep-red); border-color: var(--ep-red); }
.ep-comment-notes { font-size: .8rem; color: var(--ep-muted); font-style: italic; }
.ep-comments-closed { color: var(--ep-muted); font-style: italic; }

/* search form */
.ep-searchform { display: flex; gap: 0; max-width: 520px; }
.ep-searchform .ep-search-input { border-right: 0; }
.ep-searchform .ep-search-submit { flex: 0 0 auto; }

/* ============ 404 ============ */
.ep-404 { text-align: center; padding: 70px 24px 90px; max-width: 640px; margin: 0 auto; }
.ep-404-num { font-family: var(--ep-serif-display); font-weight: 900; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--ep-red); }
.ep-404 h1 { font-size: 1.8rem; }
.ep-404 p { color: var(--ep-muted); font-style: italic; }
.ep-404 .ep-searchform { margin: 26px auto 18px; }
.ep-404 .ep-btn { margin-top: 8px; }

/* ============ Footer colophon ============ */
.ep-footer { border-top: 3px solid var(--ep-ink); margin-top: 20px; background: var(--ep-paper-deep); }
.ep-footer-colophon { text-align: center; padding: 40px 24px 26px; }
.ep-footer-wordmark { font-family: var(--ep-serif-display); font-weight: 900; font-size: 2.4rem; letter-spacing: .04em; }
.ep-footer-wordmark .ep-wordmark-dot { color: var(--ep-red); }
.ep-footer-tagline { color: var(--ep-muted); font-style: italic; font-size: .9rem; margin: 4px 0 0; }
.ep-footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--ep-rule); border-bottom: 1px solid var(--ep-rule); }
.ep-footer-col { padding: 26px 30px; }
.ep-footer-col + .ep-footer-col { border-left: 1px solid var(--ep-rule); }
.ep-footer-col h3 { font-family: var(--ep-serif-body); font-weight: 600; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 12px; }
.ep-footer-col h3::before { content: "❧ "; color: var(--ep-gold); }
.ep-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ep-footer-col li { padding: 5px 0; font-size: .9rem; }
.ep-footer-col a:hover { color: var(--ep-red); text-decoration: underline; text-underline-offset: 3px; }
.ep-footer-col p { font-size: .88rem; color: var(--ep-muted); margin: 0; }
.ep-footer-legal { text-align: center; padding: 20px 24px 26px; color: var(--ep-muted); font-size: .78rem; }
.ep-footer-legal .ep-18 { display: inline-block; border: 1px solid var(--ep-red); color: var(--ep-red); font-weight: 600; padding: 1px 8px; margin-right: 10px; font-size: .72rem; letter-spacing: .1em; }

/* back to top */
.ep-top-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 120; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--ep-ink); background: var(--ep-paper); color: var(--ep-ink);
  font-size: 1.1rem; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.ep-top-btn.is-visible { opacity: 1; visibility: visible; transform: none; }
.ep-top-btn:hover { background: var(--ep-ink); color: var(--ep-paper); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .ep-hero { grid-template-columns: 1fr; gap: 24px; }
  .ep-hero-lead { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--ep-rule); padding-bottom: 24px; }
  .ep-cards { grid-template-columns: repeat(2, 1fr); }
  .ep-list-layout { grid-template-columns: 1fr; gap: 30px; }
  .ep-nav { display: none; }
  .ep-navbar-inner { justify-content: space-between; }
  .ep-burger { display: flex; }
  .ep-nav-cta { padding: 6px 0; }
  .ep-footer-cols { grid-template-columns: 1fr; }
  .ep-footer-col + .ep-footer-col { border-left: 0; border-top: 1px solid var(--ep-rule); }
  .ep-row { grid-template-columns: 1fr auto; }
  .ep-row-date { grid-column: 1 / -1; padding-bottom: 0; margin-bottom: -8px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .ep-wrap { padding: 0 16px; }
  .ep-masthead-meta { flex-direction: column; align-items: center; gap: 2px; text-align: center; }
  .ep-cards { grid-template-columns: 1fr; }
  .ep-nav-cta .ep-btn { padding: 7px 12px; font-size: .68rem; }
  .ep-list-item { grid-template-columns: 1fr; gap: 12px; }
  .ep-list-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .ep-article-wrap { padding: 20px 16px 44px; }
  .ep-author-box { flex-direction: column; }
  .ep-ticker-label { padding: 9px 10px; letter-spacing: .12em; }
  .ep-article-cta { flex-direction: column; align-items: flex-start; }
}