/* ==========================================================================
   SANC Blog stylesheet
   Tokens, nav, footer and the .post-list block are lifted verbatim from
   index.html so the blog matches the site exactly. Do not re-derive these
   values; edit index.html and re-copy if the brand ever changes.
   ========================================================================== */

/* --- Tokens (verbatim from index.html :root) --- */
:root {
  --charcoal: #1a1a18;
  --ink: #0d0d0b;
  --parchment: #e8e0cc;
  --amber: #c8872a;
  --gold: #e8b84b;
  --lantern: #f5d060;
  --muted: #8a8070;
  --sepia: #2a1e15;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--ink);
  color: var(--parchment);
  font-family: 'IM Fell English', serif;
  overflow-x: hidden;
}

/* --- NAV (verbatim from index.html) --- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 500;
  padding: 1.2rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(to bottom, rgba(13,13,11,0.97), transparent);
}
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1;
}
.nav-brand-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 30px rgba(232,184,75,0.25);
}
.nav-brand-full {
  font-family: 'Special Elite', cursive;
  font-size: 0.48rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--parchment);
  opacity: 0.6;
  margin-top: 0.25rem;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: 'Special Elite', cursive; font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--parchment); text-decoration: none; opacity: 0.8;
  transition: color 0.3s, opacity 0.3s;
}
.nav-links a:hover { color: var(--gold); opacity: 1; }
.nav-links a.active { color: var(--gold); opacity: 1; }

/* --- SECTION SHARED (verbatim from index.html) --- */
.section-label {
  font-family: 'Special Elite', cursive; font-size: 0.62rem;
  letter-spacing: 0.5em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 0.8rem; display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700;
  color: var(--parchment); line-height: 1.1;
}
.divider { width: 55px; height: 2px; background: var(--amber); margin: 1.4rem 0; }

/* --- WRITINGS / post list (verbatim from index.html, unchanged) --- */
#writings { background: var(--charcoal); padding: 6rem 2rem; }
.writings-inner { max-width: 860px; margin: 0 auto; }
.post-list { display: flex; flex-direction: column; }
.post-item {
  display: grid; grid-template-columns: 72px 1fr; gap: 2rem;
  padding: 2.3rem 0; border-bottom: 1px solid rgba(200,135,42,0.1);
  text-decoration: none; color: inherit;
}
.post-item:hover .post-title { color: var(--gold); }
.post-number {
  font-family: 'Playfair Display', serif; font-size: 2.8rem;
  color: rgba(200,135,42,0.18); line-height: 1; font-weight: 700; padding-top: 0.2rem;
}
.post-title {
  font-family: 'Playfair Display', serif; font-size: 1.25rem;
  font-weight: 700; color: var(--parchment); margin-bottom: 0.45rem;
  transition: color 0.3s;
}
.post-excerpt { font-style: italic; font-size: 0.88rem; color: var(--muted); line-height: 1.75; }
.post-tag {
  display: inline-block; margin-top: 0.65rem;
  font-family: 'Special Elite', cursive; font-size: 0.52rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(200,135,42,0.28); padding: 0.18rem 0.55rem;
}

/* --- FOOTER (verbatim from index.html) --- */
footer {
  background: var(--ink); border-top: 1px solid rgba(200,135,42,0.12);
  padding: 2.2rem 3rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
footer p {
  font-family: 'Special Elite', cursive; font-size: 0.58rem;
  letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase;
}

/* ==========================================================================
   Blog-only additions below. Nothing above this line is new.
   ========================================================================== */

/* Site nav is position:fixed, so blog pages need clearance at the top.
   index.html gets away without this because its hero is 100vh. */
.blog-main { padding-top: 5.5rem; }

/* --- Footer social row ---
   The footer rule above (lifted from index.html) is a space-between flex row
   holding the two copyright paragraphs. flex-basis:100% makes this a full
   width first row so the paragraphs keep their existing left/right split
   underneath, with no change to the inherited footer rule.
   Typography follows `footer p` (Special Elite, 0.58rem, 0.2em) rather than
   index.html's larger .social-link, so it sits at the footer's own scale. */
.footer-social {
  flex-basis: 100%;
  display: flex; justify-content: center;
  gap: 1.2rem; flex-wrap: wrap;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(200,135,42,0.1);
}
.footer-social a {
  font-family: 'Special Elite', cursive; font-size: 0.58rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
.footer-social a:hover { color: var(--gold); }

/* --- Category filter row --- */
.category-nav {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.category-nav a {
  font-family: 'Special Elite', cursive; font-size: 0.58rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); text-decoration: none;
  border: 1px solid rgba(200,135,42,0.28);
  padding: 0.4rem 1rem; border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.category-nav a:hover {
  background: rgba(200,135,42,0.15);
  border-color: var(--amber);
  color: var(--gold);
}
.category-nav a.active {
  background: var(--amber); border-color: var(--amber); color: var(--ink);
}

/* --- Empty state --- */
.blog-empty {
  font-family: 'IM Fell English', serif; font-style: italic;
  font-size: 1rem; color: var(--muted); line-height: 1.9;
  padding: 2.5rem 0;
}

/* --- Single post page --- */
.post-page { background: var(--charcoal); padding: 6rem 2rem; }
.post-page-inner { max-width: 760px; margin: 0 auto; }
.post-page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700;
  color: var(--parchment); line-height: 1.15;
}
.post-page-meta {
  font-family: 'Special Elite', cursive; font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-top: 1rem;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.post-page-cover {
  width: 100%; height: auto; display: block;
  margin: 2.5rem 0;
  border: 1px solid rgba(200,135,42,0.18);
}
.post-body {
  font-family: 'IM Fell English', serif;
  font-size: 1rem; line-height: 1.8; color: var(--parchment);
  margin-top: 2.5rem;
}
.post-body p { margin-bottom: 1.5rem; }
.post-body p:last-child { margin-bottom: 0; }
.post-body h2 {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700;
  color: var(--parchment); margin: 2.5rem 0 1rem;
}
.post-body h3 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
  color: var(--parchment); margin: 2rem 0 0.8rem;
}
.post-body a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(232,184,75,0.35); }
.post-body a:hover { border-color: var(--gold); }
.post-body em { font-style: italic; }
.post-body strong { font-weight: 700; color: var(--parchment); }
.post-body ul, .post-body ol { margin: 0 0 1.5rem 1.5rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body blockquote {
  border-left: 2px solid var(--amber);
  padding-left: 1.4rem; margin: 0 0 1.5rem;
  font-style: italic; color: var(--muted);
}
.post-body img { max-width: 100%; height: auto; display: block; margin: 2rem 0; }
.post-body hr { border: 0; border-top: 1px solid rgba(200,135,42,0.18); margin: 2.5rem 0; }

/* --- Post share row ---
   Same small-pill language as .category-nav above: Special Elite, amber on a
   hairline amber border, filling to amber-tint on hover. Styles <a> and
   <button> identically, so the button elements need their chrome reset. */
.post-share {
  display: flex; align-items: center;
  gap: 0.6rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(200,135,42,0.18);
}
.post-share-label {
  font-family: 'Special Elite', cursive; font-size: 0.58rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); margin-right: 0.3rem;
}
.post-share-btn {
  font-family: 'Special Elite', cursive; font-size: 0.58rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); text-decoration: none;
  background: transparent;
  border: 1px solid rgba(200,135,42,0.28);
  padding: 0.4rem 1rem; border-radius: 999px;
  line-height: 1; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.post-share-btn:hover {
  background: rgba(200,135,42,0.15);
  border-color: var(--amber);
  color: var(--gold);
}

.post-back {
  display: inline-block; margin-top: 3rem;
  font-family: 'Special Elite', cursive; font-size: 0.62rem;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(232,184,75,0.35); padding-bottom: 2px;
}
.post-back:hover { border-color: var(--gold); }

/* --- Mobile breakpoint (768px, matching index.html's convention) --- */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.62rem; }
  footer { flex-direction: column; text-align: center; }
  .blog-main { padding-top: 6.5rem; }
  #writings { padding: 3rem 1.5rem; }
  .post-page { padding: 3rem 1.5rem; }
  .post-item { grid-template-columns: 44px 1fr; gap: 1rem; }
  .post-number { font-size: 1.9rem; }
  .footer-social { gap: 0.7rem 1rem; }
  .post-share { gap: 0.5rem; }
  .post-share-label { margin-right: 0; flex-basis: 100%; }
}
