/* Blog page styles. Shared tokens, base, layout, controls, emblem, cards, and
 * prose components are loaded before this file. */
/* DARK MODE (blog only) — native dark color-scheme for scrollbars/controls */
html.dark-mode,
body.dark-mode {
  color-scheme: dark;
}

a:hover {
  color: var(--burgundy-hover);
}

body {
  line-height: 1.7;
}

.site-frame {
  --wrapper-padding: 20px 20px;
}

.site-header,
.site-main,
.site-footer {
  padding: 0;
}

.seal-key {
  color: var(--burgundy);
  font-family: var(--font-key);
  font-style: normal;
  font-weight: normal;
}

.seal-key:hover {
  color: var(--burgundy-hover);
}

/* THEME / CONTROL TOGGLES — positioning lives in floating-controls.css and
 * the music panel in player.css; only blog-specific tweaks stay here. */
.ctrl-button:hover {
  color: var(--badge-text);
}

/* SITE HEADER / NAV */
.site-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0;
  margin-bottom: 10px;
}

.site-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-title {
  font-family: var(--font-serif);
  font-weight: 1000;
  font-size: 2.25rem;
  line-height: 2.25;
  letter-spacing: 2px;
  color: var(--text-color);
  text-decoration: none;
}

.site-title:hover {
  color: var(--burgundy);
}

.nav-sep {
  font-family: var(--font-symbol);
  color: var(--burgundy);
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin: 0 1rem;
  color: var(--text-subtle);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 2px;
  font-weight: 400;
  line-height: 2.25;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--burgundy);
  text-decoration: underline;
}

/* BLOG HOME */
.article-header {
  margin-bottom: 1.5rem;
}

.article-header h1,
.site-main>h1 {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--burgundy);
  line-height: 1.2;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--light-border);
  margin-bottom: 12px;
}

.site-main h2,
.site-main h3 {
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.25;
}

.site-main h2 {
  font-size: 1.7rem;
  border-bottom: 1px dashed var(--light-border);
  padding-bottom: 8px;
}

.site-main h3 {
  font-size: 1.35rem;
}

/* POST LIST — blog index items / language label / card meta */
.post-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.post-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--light-border);
}

.post-item:first-child {
  padding-top: 0;
}

.post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.post-date {
  display: inline-block;
  color: var(--burgundy);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

/* Language label next to the post date / card category */
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-meta .post-date {
  margin-bottom: 0;
}

.post-lang {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--burgundy);
  padding: 1px 0px;
}

/* Global per-post view counter (KV-backed), beside the language label. */
.post-views {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--burgundy);
  padding: 1px 0px;
}

.post-link {
  font-family: var(--font-headers);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.post-link:hover {
  color: var(--burgundy);
  text-decoration: underline;
}

.post-desc {
  margin: 0.25rem 0 0;
  color: var(--text-subtle);
  font-size: 0.92rem;
}

/* TAXONOMIES */
.article-taxonomies,
.taxonomy-list,
.taxonomy-item {
  margin: 0;
}

.article-taxonomies {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--light-border);
}

.taxonomy-name {
  color: var(--text-subtle);
  margin-right: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.taxonomy-term,
.taxonomy-list a {
  color: var(--burgundy);
  text-decoration: none;
  margin-right: 0.75rem;
}

.taxonomy-term:hover,
.taxonomy-list a:hover {
  text-decoration: underline;
  color: var(--burgundy-hover);
}

.taxonomy-list li {
  margin-bottom: 0.5rem;
  list-style: none;
}

.taxonomy-count,
.taxonomy-list a+.taxonomy-count {
  color: var(--text-subtle);
  font-size: 0.85rem;
}

/* PAGE NAV */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--light-border);
}

.nav-prev,
.nav-next {
  text-decoration: none;
  color: var(--text-subtle);
  transition: color 0.2s ease;
}

.nav-prev:hover,
.nav-next:hover {
  color: var(--burgundy);
}

/* FOOTER */
.site-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
  text-decoration: none;
  border-top: 1px dashed var(--light-border);
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.site-footer p a {
  text-decoration: none;
  color: var(--text-subtle);
}

.site-footer a:hover {
  color: var(--burgundy);
}

/* MOBILE */
@media (max-width: 805px) {
  .nav-links {
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.1rem 0rem;
  }

  .nav-links a {
    margin: 0 0.75rem;
  }

  .site-title {
    text-align: center;
    width: 100%;
  }
}

/* SEAL BOX — blog variant (was seal-box.css). The portfolio home styles its
 * own header seal separately in portfolio.css and keeps its seal-box panel
 * bare. */

.seal-box {
  text-align: center;
  border: 3px double var(--border-color);
  background-color: var(--paper-texture-subtle);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.seal-box .seal-link {
  width: 100%;
  height: 100%;
}

.seal-box .seal-frame {
  border: 1px double var(--border-color);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.seal-box .seal-glyph {
  font-size: 2.25rem;
  margin-bottom: 6px;
}

.seal-box .seal-label {
  font-size: 0.95rem;
}

.seal-box .seal-motto {
  font-size: 0.8rem;
  margin-top: 4px;
}
