/* ============================================================
   Article — styles WordPress the_content() output + the single /
   archive news layouts, to match the THE 404 editorial design.
   ============================================================ */

/* Wrapper around a single article body */
.article {
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(64px, 10vw, 120px);
}
.article__inner {
  max-width: 760px;
  margin: 0 auto;
}
.article__thumb {
  margin: 0 0 clamp(24px, 4vw, 44px);
}
.article__thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ── Compact, blog-style article header (NOT a full-screen hero) ── */
.article-header {
  background: var(--sec-stone);        /* beige band */
  color: var(--ink);
  padding: calc(var(--header-h) + clamp(24px, 5vh, 52px)) var(--gutter) clamp(28px, 5vh, 48px);
}
.article-header__inner {
  max-width: 760px;
  margin: 0 auto;
}
.article-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.9em;
}
.article-header__eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sec-mustard);
}
.article-header__title {
  font-family: var(--font-display-jp);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.article-header__meta {
  margin-top: 1em;
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

/* ── The post body ─────────────────────────────────────────── */
.article-body {
  font-family: var(--font-jp);
  font-size: var(--fs-base);
  line-height: 2;
  color: var(--ink);
}
.article-body > * + * { margin-top: 1.4em; }

.article-body h2 {
  font-family: var(--font-display-jp);
  font-weight: 500;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.55;
  margin-top: 2.2em;
  padding: 0.08em 0 0.08em 0.7em;
  border-left: 4px solid var(--sec-mustard);   /* mustard bar accent */
}
.article-body h3 {
  font-family: var(--font-display-jp);
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.6;
  margin-top: 1.8em;
}
.article-body h3::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 2px;
  vertical-align: middle;
  margin: 0 0.55em 0.18em 0;
  background: var(--sec-mustard);              /* mustard lead dash */
}
/* Mustard list markers */
.article-body li::marker { color: var(--sec-mustard); }
.article-body h4 {
  font-weight: 600;
  font-size: 1.06em;
  margin-top: 1.6em;
}
.article-body a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--sec-mustard);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  transition: color 0.2s ease;
}
.article-body a:hover { color: #b98a20; }
.article-body strong { font-weight: 600; }
.article-body em { font-style: italic; }

.article-body ul,
.article-body ol { padding-left: 1.5em; }
.article-body li { margin-top: 0.5em; }
.article-body ul > li { list-style: disc; }
.article-body ol > li { list-style: decimal; }

.article-body blockquote {
  margin: 1.6em 0 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--sec-mustard);
  color: var(--ink-muted);
  font-style: italic;
}
.article-body img { max-width: 100%; height: auto; }
.article-body figure { margin: 1.8em 0; }
.article-body figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
.article-body figcaption {
  margin-top: 0.6em;
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  text-align: center;
}
.article-body hr { border: 0; border-top: 1px solid var(--ink-line); margin: 2.4em 0; }

.article-body table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.article-body th,
.article-body td { border: 1px solid var(--ink-line); padding: 8px 12px; text-align: left; }
.article-body th { background: rgba(21, 22, 26, 0.04); font-weight: 600; }

.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(21, 22, 26, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.article-body pre {
  background: rgba(21, 22, 26, 0.06);
  padding: 16px 18px;
  border-radius: 8px;
  overflow-x: auto;
}
.article-body pre code { background: none; padding: 0; }

/* WordPress alignment helpers */
.article-body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.article-body .alignright { float: right; margin: 0 0 1em 1.5em; }
.article-body .alignleft { float: left; margin: 0 1.5em 1em 0; }
.article-body .wp-caption { max-width: 100%; }

/* ── Article footer nav (prev / list / next) ───────────────── */
.article-nav {
  margin-top: clamp(40px, 7vw, 80px);
  padding-top: var(--space-4);
  border-top: 1px solid var(--ink-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-en);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
}
.article-nav span { flex: 1 1 0; }
.article-nav span:last-child { text-align: right; }
.article-nav > a { flex: 0 0 auto; letter-spacing: 0.16em; text-transform: uppercase; font-size: var(--fs-xs); }
.article-nav a { color: inherit; text-decoration: none; opacity: 0.85; transition: opacity 0.2s ease; }
.article-nav a:hover { opacity: 1; }

/* Archive pagination (WordPress the_posts_pagination output) */
.pagination { margin-top: var(--space-5); }
.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-en);
}
.pagination .page-numbers {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  transition: background 0.2s ease, color 0.2s ease;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
