/* ============================================================
   New Music Matters — Archive Theme
   Strategy: hide everything, show only post content
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Lora:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
  --background: #FFFDF0;
  --foreground: #0a0a0a;
  --primary: #1A1AFF;
  --secondary: #8c1aff;
  --accent: #ffff1a;
  --muted: #eeeeff;
  --muted-foreground: #5a5a00;
  --border: #d4d4c0;
  --font-sans: "Lora", Georgia, serif;
  --font-heading: "Playfair Display", Georgia, serif;
}

/* ============================================================
   BASE RESET
   ============================================================ */

html, body {
  background: #FFFDF0 !important;
  color: #0a0a0a !important;
  font-family: "Lora", Georgia, serif !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* ============================================================
   HIDE EVERYTHING BLOGGER — then selectively show
   ============================================================ */

/* Step 1: hide the entire content wrapper */
.content {
  display: none !important;
}

/* Step 2: show only the content wrapper itself and its structural chain */
.content,
.content-outer,
.content-inner,
.main-outer,
.fauxborder-left,
.fauxborder-right,
.columns,
.columns-inner,
.column-center-outer,
.column-center-inner,
.main.section,
.blog-posts,
.date-outer,
.date-posts,
.post-outer,
.post,
.post-body-container,
.post-footer,
.comments,
.comment-thread,
.comment {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  position: static !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
}

/* .post-body is kept separate so we can use overflow:auto to contain floats */
.post {
  display: block !important;
}
.post-body {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: auto !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  position: static !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
}

/* region-inner / main-inner: show but DO NOT reset margin/padding here —
   archive-theme layout rules below control the spacing */
.region-inner {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  position: static !important;
  float: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
}

/* Hide the Blogger header widget even though its .region-inner parent is shown.
   These rules must come AFTER the .region-inner show block to win the cascade. */
.region-inner.header-inner,
.region-inner.header-inner *,
.header.section,
.widget.Header,
#header,
#header-inner,
.titlewrapper,
.descriptionwrapper,
h1.title {
  display: none !important;
  visibility: hidden !important;
}

/* ============================================================
   HIDE: All Blogger chrome we don't want
   ============================================================ */

/* Blogger navbar */
#navbar,
#navbar-iframe-container,
.navbar.section,
/* Blogger blog header — all variants */
header,
.header-outer,
.header-inner,
.header-cap-top,
.header-cap-bottom,
.header-fauxborder-left,
.header-fauxborder-right,
/* Tabs / cross-column */
.tabs-outer,
.tabs-inner,
.tabs-cap-top,
.tabs-cap-bottom,
#crosscol,
#crosscol-overflow,
/* Decorative faux elements */
.body-fauxcolumns,
.fauxcolumn-outer,
.fauxcolumn-inner,
.cap-top,
.cap-bottom,
.cap-left,
.cap-right,
.content-fauxcolumns,
.content-fauxcolumn-outer,
.fauxcolumn-center-outer,
.fauxcolumn-left-outer,
.fauxcolumn-right-outer,
/* Right sidebar */
.column-right-outer,
.column-right-inner,
.sidebar-right-1,
/* Post footer clutter */
.blog-pager,
#blog-pager,
.comment-form,
.post-footer .reaction-buttons,
.post-labels,
.post-footer-line-2,
.post-footer-line-3,
/* Share: hide ALL Blogger share buttons — we use our own NMM bar */
.post-footer .post-share-buttons,
.post-footer .post-share-buttons .sb-email,
.post-footer .post-share-buttons .sb-blog,
.post-footer .post-share-buttons .sb-twitter,
.post-footer .post-share-buttons .sb-facebook,
.post-footer .post-share-buttons .sb-pinterest,
.goog-inline-block.share-button,
/* Cap divs */
.main-cap-top,
.main-cap-bottom,
.content-cap-top,
.content-cap-bottom {
  display: none !important;
}

/* Broken images */
img[src=""], img:not([src]) {
  display: none !important;
}

/* ============================================================
   LAYOUT: Our injected header
   ============================================================ */

#nmm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFDF0;
  border-bottom: 1px solid #d4d4c0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-family: "Lora", Georgia, serif;
}
#nmm-header .nmm-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}
#nmm-header .nmm-header-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #0a0a0a;
}
#nmm-header .nmm-portrait {
  width: 3.5rem !important;
  height: 3.5rem !important;
  min-width: 3.5rem !important;
  min-height: 3.5rem !important;
  max-width: 3.5rem !important;
  max-height: 3.5rem !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: top !important;
  flex-shrink: 0 !important;
  display: block !important;
}
#nmm-header .nmm-site-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(1.1rem, 5vw, 2.5rem) !important;
  font-weight: 700 !important;
  color: #0a0a0a !important;
  line-height: 1.1 !important;
  display: block !important;
}
#nmm-header .nmm-header-link:hover .nmm-site-title {
  color: #1A1AFF;
}
#nmm-header .nmm-tagline {
  font-size: 0.75rem;
  color: #5a5a00;
  font-family: "Lora", Georgia, serif;
}

/* ============================================================
   LAYOUT: Our injected footer
   ============================================================ */

#nmm-footer {
  background: #FFFDF0;
  border-top: 1px solid #d4d4c0;
  font-family: "Lora", Georgia, serif;
  font-size: 0.875rem;
  color: #0a0a0a;
  padding: 2rem 1.5rem;
  text-align: center;
}
#nmm-footer a {
  color: #1A1AFF;
  text-decoration: none;
}
#nmm-footer .nmm-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
#nmm-footer .nmm-footer-copy {
  color: #5a5a00;
  font-size: 0.8rem;
}

/* ============================================================
   LAYOUT: Content area
   ============================================================ */

.region-inner.main-inner {
  max-width: 52rem !important;
  margin: 0 auto !important;
  padding: 2rem 5rem !important;
}

@media (max-width: 768px) {
  .region-inner.main-inner {
    padding: 1.5rem 2.5rem !important;
  }
}

@media (max-width: 480px) {
  .region-inner.main-inner {
    padding: 1.5rem 1.5rem !important;
  }
}

/* ============================================================
   POST CONTENT STYLES
   ============================================================ */

.post-outer {
  margin-bottom: 3rem !important;
}

.post-title,
.post-title a,
h3.post-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: #0a0a0a !important;
  line-height: 1.3 !important;
  margin: 0 0 0.75rem 0 !important;
  text-decoration: none !important;
  display: block !important;
}

.post-title a:hover {
  color: #1A1AFF !important;
}

.date-header {
  margin: 0 0 0.5rem 0 !important;
  right: auto !important;
  width: auto !important;
}

/* Override Blogger's negative margin and padding on date-header span */
.date-header span,
.main-inner .widget h2.date-header span {
  font-size: 0.8rem !important;
  color: #5a5a00 !important;
  font-family: "Lora", Georgia, serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: block !important;
  padding: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  width: auto !important;
}

/* Override Blogger's negative margin on h2.date-header */
.main-inner .widget h2.date-header,
h2.date-header {
  margin: 0 0 0.5rem 0 !important;
  right: auto !important;
  padding: 0 !important;
  width: auto !important;
}

.post-body {
  margin-top: 1rem !important;
}

/* Clearfix: belt-and-suspenders alongside overflow:auto above */
.post-body::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

/* Blogger injects font-family/font-size/color/background as inline styles on
   every span, b, i, a inside post bodies. @layer lets our rules beat inline
   styles in all modern browsers; the non-layer block is a fallback. */
@layer nmm-override {
  .post-body,
  .post-body * {
    font-family: "Lora", Georgia, serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #0a0a0a;
    background-color: transparent;
  }
  .post-body b,
  .post-body strong {
    font-weight: 700;
  }
  .post-body h2, .post-body h3, .post-body h4 {
    font-family: "Playfair Display", Georgia, serif;
  }
  .post-body a {
    color: #1A1AFF;
    background-color: transparent;
  }
}

.post-body,
.post-body p,
.post-body li,
.post-body span,
.post-body b,
.post-body strong,
.post-body i,
.post-body em,
.post-body a,
.post-body div {
  font-family: "Lora", Georgia, serif !important;
  font-size: 1rem !important;
  line-height: 1.75 !important;
  color: #0a0a0a !important;
  background-color: transparent !important;
}

.post-body p {
  margin: 0 0 1rem 0 !important;
}

.post-body a {
  color: #1A1AFF !important;
  text-decoration: underline !important;
}

.post-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 1.5rem auto !important;
}

.post-body h2, .post-body h3, .post-body h4 {
  font-family: "Playfair Display", Georgia, serif !important;
  color: #0a0a0a !important;
  margin: 1.5rem 0 0.5rem !important;
}

.post-body iframe {
  max-width: 100% !important;
}

/* Post footer / share buttons */
.post-footer {
  margin-top: 1.5rem !important;
  padding-top: 0.75rem !important;
  border-top: 1px solid #d4d4c0 !important;
}

/* NMM share bar */
#nmm-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.nmm-share-label,
.post-body .nmm-share-label {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  color: #5a5a00 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-right: 0.25rem !important;
}
.nmm-share-btn,
.post-body .nmm-share-btn,
.post-body * .nmm-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  padding: 0.25rem 0.625rem !important;
  border-radius: 4px !important;
  font-family: 'Lora', Georgia, serif !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border: none !important;
  transition: background 0.15s, color 0.15s;
  background: #f0f0e0 !important;
  color: #1a1a1a !important;
}
.nmm-share-btn svg,
.post-body .nmm-share-btn svg {
  width: 0.875rem !important;
  height: 0.875rem !important;
  flex-shrink: 0;
  fill: currentColor;
}
.nmm-share-btn:hover {
  background: #1A1AFF;
  color: #ffffff;
}
.nmm-share-fb  { }
.nmm-share-x   { }
.nmm-share-pin { }
.nmm-share-copy {
  background: #f0f0e0;
  color: #1a1a1a;
}
.nmm-share-copy svg {
  fill: none;
}

/* ============================================================
   MISC
   ============================================================ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #eeeeff; }
::-webkit-scrollbar-thumb { background: #d4d4c0; border-radius: 3px; }
