/* ============================================================
   LUSTRE JOURNAL — Components
   Masthead, footer, sticky CTA, sidebar, comments
   ============================================================ */

/* ============== MASTHEAD ============== */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0 1.1rem;
  background: var(--cream);
}

.masthead-inner {
  max-width: var(--measure-full);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.masthead-meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.masthead-meta:nth-child(3) { text-align: right; }

.masthead-logo {
  font-family: var(--serif-display);
  font-size: clamp(1.85rem, 3.5vw, 2.7rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-weight: 400;
  line-height: 1;
}

.masthead-logo:hover {
  color: var(--ink);
  text-decoration: none;
}

.masthead-logo .ampersand {
  font-style: italic;
  color: var(--copper);
  font-family: var(--serif-body);
  letter-spacing: 0;
  font-size: 0.85em;
}

.masthead-tagline {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.45rem;
  text-align: center;
}

/* ============== NAVIGATION ============== */

.nav {
  display: none;
}

.nav-inner {
  max-width: var(--measure-full);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-inner a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-inner a:hover {
  border-bottom-color: var(--copper);
  color: var(--ink);
}

.nav-inner a.active {
  border-bottom-color: var(--ink);
}

@media (max-width: 720px) {
  /* Prevent horizontal page-scroll on mobile */
  html, body { overflow-x: hidden; max-width: 100vw; }

  .masthead { padding: 0.5rem 0 0.35rem; }
  .masthead-meta { display: none; }
  .masthead-inner { grid-template-columns: 1fr; gap: 0.2rem; }
  .masthead-logo { font-size: 1.1rem; letter-spacing: 0.08em; }
  .masthead-tagline { font-size: 0.55rem; letter-spacing: 0.18em; margin-top: 0.15rem; }

  /* Nav: wrap to one-or-two lines instead of horizontal scroll */
  .nav { font-size: 0.6rem; }
  .nav-inner { gap: 0.8rem; font-size: 0.6rem; padding: 0.45rem var(--gutter); flex-wrap: wrap; justify-content: center; }
  .nav-inner a { white-space: nowrap; padding: 0.15rem 0; }

  .article-head { padding: 1.25rem 0 0.8rem !important; }
  .article-head h1 { font-size: 2.1rem !important; line-height: 1.12 !important; letter-spacing: -0.01em; }
  .article-head .deck { font-size: 1.05rem !important; line-height: 1.45 !important; margin-top: 0.8rem !important; }
  .article-head .eyebrow { font-size: 0.65rem !important; margin-bottom: 0.5rem !important; }

  /* Byline: stack on mobile, no awkward 3-line wrap */
  .article-head .byline-block {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
    font-size: 0.65rem !important;
    margin-top: 1rem !important;
    letter-spacing: 0.1em !important;
  }
  .article-head .byline-block .sep { display: none !important; }
  .article-head .byline-block > span { white-space: nowrap; }

  /* Tighten body content on mobile */
  .article-body p, .measure p { font-size: 1.06rem !important; line-height: 1.6 !important; }
  .article-body h2, .measure h2 { font-size: 1.55rem !important; line-height: 1.2 !important; margin-top: 2rem !important; margin-bottom: 0.8rem !important; }
  .article-body h3, .measure h3 { font-size: 1.2rem !important; }
  .section-num { font-size: 0.75rem !important; margin-bottom: 0.5rem !important; }
  hr.rule-thick { margin: 1.5rem auto !important; }
  figure, figure.figure-wide { margin: 1.5rem 0 !important; }
  figcaption { font-size: 0.82rem !important; line-height: 1.45 !important; padding: 0.6rem 0 !important; }
  .pullquote { font-size: 1.25rem !important; line-height: 1.4 !important; padding: 1.2rem 1rem !important; margin: 1.8rem 0 !important; }
  .stat-callout { font-size: 1.15rem !important; padding: 1.2rem !important; }
  .stat-callout .stat-num { font-size: 2.2rem !important; }

  /* Hero figure breathing room on mobile */
  .measure-wide > figure { margin-bottom: 1rem !important; }

  /* Comments + sticky CTA spacing on mobile */
  .comments { padding: 1.5rem 0 !important; margin-top: 2rem !important; }
  .comments h3 { font-size: 1.1rem !important; }
  .comment { padding: 1rem 0 !important; }

  /* Section breathing */
  section.measure { padding-top: 0.5rem; padding-bottom: 0.5rem; }
}

/* ============== ARTICLE HEAD ============== */

.article-head {
  text-align: center;
  padding: 4rem 0 2.5rem;
  max-width: var(--measure-wide);
  margin: 0 auto;
}

.article-head .eyebrow {
  margin-bottom: 1.2rem;
}

.article-head h1 {
  margin: 0 0 1.4rem;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.article-head .deck {
  font-family: var(--serif-body);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.article-head .byline-block {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.article-head .byline-block .sep {
  width: 6px;
  height: 1px;
  background: var(--ink-faint);
}

.article-head .byline-block .author {
  color: var(--ink);
  font-weight: 600;
}

/* ============== ARTICLE BODY ============== */

.article-body {
  padding: 0 0 4rem;
}

.article-body section {
  padding: 1.5rem 0;
}

.article-body h2 {
  text-align: center;
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.article-body h2.left {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.section-num {
  font-family: var(--serif-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--copper);
  text-align: center;
  margin: 4rem 0 0.8rem;
  letter-spacing: 0.1em;
}

/* ============== STICKY SIDEBAR (DESKTOP) ============== */

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  max-width: var(--measure-full);
  margin: 0 auto;
  padding: 0 var(--gutter);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 2rem;
  font-family: var(--sans);
  background: var(--cream-deep);
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.sidebar.visible {
  opacity: 1;
  transform: translateY(0);
}

.sidebar-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.sidebar-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  margin-bottom: 1rem;
  overflow: hidden;
}

.sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar h4 {
  font-family: var(--serif-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.sidebar-rating {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}

.sidebar-rating .stars { color: var(--copper); letter-spacing: 0.1em; }

.sidebar-cta {
  display: block;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.85rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  margin-top: 0.8rem;
  transition: background 0.2s ease;
}

.sidebar-cta:hover {
  background: var(--copper-deep);
  color: var(--cream);
}

@media (max-width: 1024px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
}

/* ============== STICKY BOTTOM CTA (MOBILE + DESKTOP) ============== */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cream);
  border-top: 1px solid var(--rule);
  padding: 0.8rem 1rem;
  display: none;
  z-index: 1000;
  box-shadow: 0 -8px 24px rgba(15, 15, 15, 0.06);
}

.sticky-cta.visible {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sticky-cta-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--cream-deep);
  overflow: hidden;
}

.sticky-cta-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky-cta-info {
  flex: 1;
  min-width: 0;
}

.sticky-cta-name {
  font-family: var(--serif-display);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.sticky-cta-meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.sticky-cta-meta strong {
  color: var(--copper);
  font-weight: 600;
}

.sticky-cta-button {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.75rem 1.2rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.sticky-cta-button:hover {
  background: var(--copper-deep);
  color: var(--cream);
}

.sticky-cta-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

.sticky-cta-close:hover { color: var(--ink); }

/* ============== REVIEW CARDS ============== */

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.review-card {
  background: var(--cream-deep);
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--rule);
}

.review-stars {
  font-family: var(--sans);
  color: var(--copper);
  letter-spacing: 0.15em;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.review-title {
  font-family: var(--serif-display);
  font-size: 1.18rem;
  margin: 0 0 0.7rem;
  line-height: 1.25;
}

.review-body {
  font-family: var(--serif-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
}

.review-author {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.review-author .verified {
  color: var(--copper);
  font-weight: 600;
}

/* ============== COMMENTS ============== */

.comments {
  background: var(--cream-deep);
  padding: 3rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
}

.comments h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.comment {
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0;
}

.comment:last-child { border-bottom: none; }

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  background: var(--copper);
  color: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif-display);
  font-size: 0.95rem;
  font-weight: 400;
}

.comment-name {
  font-weight: 600;
  color: var(--ink);
}

.comment-time {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.comment-body {
  font-family: var(--serif-body);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.comment-reply {
  margin-left: 3rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* ============== FAQ ============== */

.faq {
  margin: 3rem 0;
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item details {
  padding: 1.2rem 0;
}

.faq-item summary {
  font-family: var(--serif-display);
  font-size: 1.18rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '＋';
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--copper);
  margin-left: 1rem;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  transition: transform 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.faq-item summary:hover {
  color: var(--copper-deep);
}

.faq-item summary:hover::after {
  border-color: var(--copper);
  background: var(--cream-deep);
}

.faq-item details[open] summary::after {
  content: '−';
  transform: rotate(0deg);
  background: var(--cream-deep);
  border-color: var(--copper);
}

.faq-item .faq-body {
  font-family: var(--serif-body);
  margin-top: 0.8rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============== AUTHOR BIO ============== */

.author-bio {
  display: flex;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 3rem 0;
}

.author-bio-img {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-deep);
}

.author-bio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-bio-img .monogram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-display);
  font-size: 2.6rem;
  color: var(--ink);
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
}

.author-bio-img .monogram .ampersand {
  color: var(--copper);
  font-size: 1.4rem;
  margin: 0 0.05em;
  vertical-align: 0.15em;
}

.author-bio-text h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.4rem;
}

.author-bio-text .name {
  font-family: var(--serif-display);
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
}

.author-bio-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* ============== FOOTER ============== */

footer.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

footer.site-footer .footer-inner {
  max-width: var(--measure-full);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

footer.site-footer .footer-logo {
  font-family: var(--serif-display);
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.6rem;
}

footer.site-footer .footer-tagline {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-faint);
  margin-bottom: 3rem;
}

footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

footer.site-footer .footer-grid h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.9rem;
  font-weight: 600;
}

footer.site-footer .footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.site-footer .footer-grid li {
  margin-bottom: 0.5rem;
}

footer.site-footer .footer-grid a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif-body);
  font-size: 0.95rem;
}

footer.site-footer .footer-grid a:hover {
  color: var(--copper);
  text-decoration: underline;
}

footer.site-footer .footer-bottom {
  border-top: 1px solid #2A2A2A;
  padding-top: 2rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

footer.site-footer .footer-bottom p { margin: 0 0 0.4rem; color: var(--ink-faint); font-size: 0.74rem; }
footer.site-footer .footer-bottom a { color: var(--cream); text-decoration: underline; }
