/* ============================================================
   RAY PETROV — Blog Pages
   Extends css/styles.css — import AFTER styles.css
   Matches Commission Nº 098 token system exactly.
   ============================================================ */

/* ---- Back bar (replaces tipjar + booking on blog pages) ---- */
.back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1.6vw, 16px) clamp(18px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.back-bar::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 3px;
  border-bottom: 1px solid rgba(156,138,107,.45);
}
.back-link {
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(.6rem, .88vw, .76rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .18s ease, border-color .18s ease;
}
.back-link:hover { color: var(--rust); border-color: var(--rust); }
.back-link .arrow { font-family: Georgia, serif; letter-spacing: 0; }

/* ---- Blog hero / header image area ---- */
.blog-hero {
  position: relative;
  z-index: 4;
  overflow: hidden;
  border-bottom: 2px solid #241d14;
}
.blog-hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Placeholder tint — visible when real image is absent */
.blog-hero-img-wrap::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(.6rem, 1vw, .8rem);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(110,60,34,.55);
  border: 2px dashed rgba(110,60,34,.28);
  margin: clamp(16px, 2.4vw, 32px);
  pointer-events: none;
  z-index: 2;
}
.blog-hero-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: sepia(.12) contrast(1.02);
  mix-blend-mode: multiply;
  z-index: 3;
}
/* Halftone overlay on hero */
.blog-hero-img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(110,60,34,.09) 1px, transparent 1.4px);
  background-size: 9px 9px;
  pointer-events: none;
  z-index: 4;
}

/* ---- Blog header block (title, date, byline) ---- */
.blog-header {
  padding: clamp(28px, 3.6vw, 50px) clamp(18px, 3vw, 44px) 0;
  position: relative;
  z-index: 6;
}
.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1.4em;
  margin-bottom: clamp(14px, 1.8vw, 22px);
}
.blog-eyebrow .tab--rust {
  margin-left: 0;
}
.blog-date {
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(.6rem, .85vw, .74rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rust);
}
.blog-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: .96;
  color: var(--ink);
  letter-spacing: -.01em;
  max-width: 22ch;
}
.blog-title em {
  font-style: normal;
  color: var(--rust);
}
.blog-deck {
  margin-top: clamp(14px, 1.8vw, 22px);
  font-family: var(--quote);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.5;
  color: var(--brown);
  max-width: 56ch;
}
.blog-rule {
  margin-top: clamp(22px, 2.8vw, 36px);
  border: none;
  border-top: 1px solid var(--line);
  position: relative;
}
.blog-rule::after {
  content: "";
  position: absolute; left: 0; top: 3px; right: 0;
  border-top: 1px solid rgba(156,138,107,.38);
}

/* ---- Blog body ---- */
.blog-body {
  padding: clamp(28px, 3.6vw, 52px) clamp(18px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  position: relative;
  z-index: 6;
}

/* ---- Prose column ---- */
.blog-prose {
  font-family: var(--quote);
  font-size: clamp(.98rem, 1.22vw, 1.1rem);
  line-height: 1.82;
  color: #2c251d;
}
.blog-prose p { margin-bottom: 1.35em; }
.blog-prose p:last-child { margin-bottom: 0; }

/* Drop cap on first paragraph */
.blog-prose > p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 4em;
  float: left;
  line-height: .78;
  padding: .06em .14em 0 0;
  color: var(--rust);
}

/* Pull quote inside prose */
.blog-prose .pullquote {
  display: block;
  margin: clamp(22px, 3vw, 38px) 0;
  padding: clamp(14px, 1.8vw, 22px) clamp(18px, 2.4vw, 30px);
  border-left: 3px solid var(--rust);
  background: var(--paper-2);
  font-family: var(--quote);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--brown);
}
.blog-prose .pullquote cite {
  display: block;
  margin-top: .8em;
  font-family: var(--label);
  font-style: normal;
  font-size: clamp(.58rem, .82vw, .7rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Section break ornament */
.blog-prose .ornament {
  display: block;
  text-align: center;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--gold);
  margin: clamp(20px, 2.6vw, 34px) 0;
  letter-spacing: .5em;
  opacity: .8;
}

/* ---- Sidebar ---- */
.blog-sidebar {
  position: sticky;
  top: clamp(20px, 3vw, 40px);
}
.sidebar-card {
  border: 1px solid var(--line);
  box-shadow: 4px 4px 0 rgba(110,60,34,.14), inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--line);
  background: var(--paper-2);
  padding: clamp(16px, 2vw, 26px);
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.sidebar-card:last-child { margin-bottom: 0; }
.sidebar-label {
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(.58rem, .82vw, .7rem);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--brown);
  border-bottom: 1px solid var(--line);
  padding-bottom: .8em;
  margin-bottom: 1em;
}
/* "About the author" sidebar card */
.sidebar-bio {
  font-family: var(--quote);
  font-style: italic;
  font-size: clamp(.88rem, 1.08vw, .98rem);
  line-height: 1.7;
  color: #4a4032;
}
/* "More from the journal" links */
.sidebar-entries { list-style: none; }
.sidebar-entries li + li {
  margin-top: .9em;
  padding-top: .9em;
  border-top: 1px dashed rgba(156,138,107,.55);
}
.sidebar-entries a {
  display: block;
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(.6rem, .86vw, .74rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.45;
  transition: color .15s ease;
}
.sidebar-entries a:hover { color: var(--rust); }
.sidebar-entries .s-date {
  display: block;
  margin-top: .3em;
  font-size: clamp(.54rem, .76vw, .65rem);
  letter-spacing: .22em;
  color: var(--muted);
}

/* ---- Blog footer nav (prev / next / back) ---- */
.blog-foot {
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 6;
}
.blog-foot::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 3px;
  border-top: 1px solid rgba(156,138,107,.4);
}
.blog-foot-inner {
  padding: clamp(18px, 2.4vw, 30px) clamp(18px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}
.blog-nav-link {
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(.58rem, .84vw, .72rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  border-bottom: 1px solid rgba(110,60,34,.38);
  padding-bottom: 2px;
  transition: color .18s ease, border-color .18s ease;
}
.blog-nav-link:hover { color: var(--rust); border-color: var(--rust); }
.blog-nav-link .arrow { font-family: Georgia, serif; letter-spacing: 0; }
.blog-nav-link.center {
  border-bottom-color: transparent;
  color: var(--muted);
  flex: 1;
  justify-content: center;
  text-align: center;
}
.blog-nav-link.center:hover { color: var(--rust); }

/* ---- Copyright line ---- */
.catalog-copy{
  width:100%;
  font-family:var(--label);
  font-size:clamp(.48rem, .68vw, .58rem) !important;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--muted);
  opacity:.75;
  margin-top:.25em;
}
.catalog-copy a{color:inherit;border-bottom:1px solid transparent}
.catalog-copy a:hover{border-color:var(--muted)}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 780px) {
  .blog-body {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
  }
  .blog-hero-img-wrap {
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 700px) {
  .blog-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }
  .blog-foot-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .9em;
  }
  .blog-nav-link.center {
    justify-content: flex-start;
  }
}
