/*
Theme Name: Bronnies
Theme URI: https://bronniesonline.com
Author: Bronnies
Description: Blog theme for Bronnies — antique paper goods, Victorian trade card, apothecary label. Inherits the main site's palette and type so /blog is indistinguishable from the homepage.
Version: 1.0
License: GPL-2.0-or-later
Text Domain: bronnies
*/

/* =========================================================
   The shared foundation (tokens, reset, header, footer, buttons)
   is loaded from the main site's stylesheet:
       /assets/css/style.css
   enqueued ahead of this file in functions.php. Changing the
   palette there changes it here too — one source of truth.

   Everything below is blog-specific and exists only here.
   ========================================================= */

/* ---------- Blog shell ---------- */
.blog-main { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7rem); }

.page-head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-head .lede { margin: 1.2rem auto 0; max-width: 56ch; }
.page-head h1 { font-size: clamp(2.6rem, 5.6vw, 4.2rem); }

/* ---------- Index: an editorial list, not a card grid ---------- */
.post-list { display: grid; gap: 0; }

.post-row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule-soft);
  align-items: start;
}
.post-row:last-child { border-bottom: 1px solid var(--rule-soft); }
@media (max-width: 760px) {
  .post-row { grid-template-columns: 1fr; gap: 0.9rem; }
}

.post-aside {
  font-family: var(--body);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: 0.55rem;
  line-height: 2.1;
}
.post-aside .cat { display: block; color: var(--faded); }

.post-row h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.7rem;
}
.post-row h2 a { text-decoration: none; transition: color 0.4s var(--ease); }
.post-row h2 a:hover { color: var(--rose-deep); }
.post-row .excerpt { font-size: 1rem; color: var(--walnut); max-width: 62ch; }
.post-row .more { display: inline-block; margin-top: 1rem; }

.post-thumb {
  margin: 0 0 1.2rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 0.5rem;
  max-width: 320px;
}
.post-thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Single article ---------- */
.article-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.article-head h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-block: 1.2rem 0; }
.article-meta {
  font-family: var(--body);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faded);
  margin-top: 1.4rem;
}
.article-meta span + span::before { content: '·'; margin-inline: 0.7rem; opacity: 0.6; }

.article-figure {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  background: var(--cream);
  border: 1px solid var(--walnut);
  padding: clamp(0.6rem, 1.2vw, 1rem);
}
.article-figure img { width: 100%; height: auto; }

/* ---------- Prose ---------- */
.prose { font-size: clamp(1.04rem, 1.3vw, 1.14rem); line-height: 1.85; color: var(--walnut); }
.prose > * + * { margin-top: 1.5rem; }

.prose h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  margin-top: clamp(2.8rem, 6vw, 4rem);
  margin-bottom: -0.4rem;
}
.prose h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 2.4rem; margin-bottom: -0.5rem; }

.prose a {
  color: var(--rose-deep);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  transition: color 0.35s;
}
.prose a:hover { color: var(--sepia); }

.prose strong { font-weight: 500; color: var(--sepia); }
.prose em { font-style: italic; }

.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.55rem; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li::before {
  content: '❦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75em;
  top: 0.35em;
}

.prose blockquote {
  margin-block: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.6rem, 3.5vw, 2.6rem);
  background: var(--cream);
  border: 1px solid var(--rule);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.55;
  color: var(--sepia);
  position: relative;
}
.prose blockquote::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}
.prose blockquote p + p { margin-top: 1rem; }
.prose blockquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faded);
}

.prose img, .prose figure img { width: 100%; height: auto; }
.prose figure { margin-block: clamp(2rem, 4vw, 3rem); }
.prose figcaption {
  margin-top: 0.8rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--faded);
  text-align: center;
}

.prose hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin-block: clamp(2.5rem, 5vw, 4rem);
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--ecru);
  padding: 0.15em 0.4em;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rule-soft); text-align: left; }
.prose th { font-family: var(--body); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }

/* wide/scrollable content must not push the page sideways */
.prose .wp-block-table,
.prose pre { overflow-x: auto; }

/* ---------- Article footer ---------- */
.article-end { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--rule); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; }
.tag-list a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--rule);
  font-family: var(--body);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faded);
  text-decoration: none;
  transition: color 0.35s, border-color 0.35s;
}
.tag-list a:hover { color: var(--sepia); border-color: var(--walnut); }

.byline {
  margin-top: 2rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--faded);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-family: var(--body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.pagination .page-numbers {
  padding: 0.6rem 1rem;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--walnut);
  transition: color 0.35s, border-color 0.35s, background 0.35s;
}
.pagination .page-numbers:hover { color: var(--sepia); border-color: var(--walnut); }
.pagination .page-numbers.current { background: var(--sepia); color: var(--cream); border-color: var(--sepia); }

/* ---------- Empty / 404 ---------- */
.empty-state { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.empty-state .seal-mark { width: clamp(90px, 12vw, 130px); margin: 0 auto 2rem; opacity: 0.75; }
.empty-state h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.empty-state .lede { margin: 1.3rem auto 2.4rem; max-width: 48ch; }

/* ---------- Search ---------- */
.searchform { display: flex; gap: 0.6rem; max-width: 420px; margin: 2rem auto 0; }
.searchform input[type="search"] {
  flex: 1;
  padding: 0.85rem 1.2rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 0;
  font-family: var(--display);
  font-size: 1.02rem;
  color: var(--sepia);
}
.searchform input[type="search"]:focus {
  outline: none;
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(196, 160, 153, 0.18);
}

/* ---------- Comments (kept deliberately plain) ---------- */
.comments { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.comments h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1.8rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { padding-block: 1.4rem; border-bottom: 1px solid var(--rule-soft); }
.comment-meta { font-family: var(--body); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faded); margin-bottom: 0.5rem; }
