/* =============================================
   AngelLedger Grok1 — Warm Parchment Ledger Theme
   Overall Author Site Styling for angelcriado.com
   
   Important Note for Editing:
   - All front-end article styling is scoped to .article-content and similar classes.
   - We do NOT force dark text on the entire site or inside the Joomla editor.
   - You can safely edit articles in the dark editor view.
   ============================================= */

:root {
  /* Main theme colors - easy to adjust globally */
  --body-bg-color: #F8F4ED;        /* Warm parchment / ledger paper */
  --body-text-color: #1C1C1C;      /* Deep, readable dark text for front-end */
  --color-primary: #A67C5D;        /* Warm brown - links, accents */
  --color-accent: #8C5F3D;         /* Deeper brown for hover states */
}

/* ========================
   Global Body & Background Only
   (Safe - does not break editor)
   ======================== */
body {
  background-color: var(--body-bg-color);
}

/* Main content areas on the FRONT-END only */
main, .content, .article-content, .item-page, .blog, .category-blog, 
.com-content-article, .page-header {
  background-color: var(--body-bg-color);
}

/* ========================
   Name / Header Block
   ======================== */
.name-block {
  padding: 5rem 1rem 4rem;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.name-block h1 {
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem 0;
  color: #1C1C1C;
}

.structural-rule {
  height: 3px;
  width: 140px;
  background-color: var(--color-primary);
  margin: 0 0 2rem 0;
}

/* ========================
   Exhibit Grid & Images
   ======================== */
.exhibit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 1rem 0;
}

.work__img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ========================
   Tombstone / Meta Information
   ======================== */
.tombstone {
  margin-top: 1rem;
  text-align: center;
}

.tombstone__title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.tombstone__meta {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
}

/* ========================
   Links & Buttons
   ======================== */
a, .btn-primary, .text-primary {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-accent);
}

/* ========================
   Social Footer
   ======================== */
.social-footer-icons .social-icons-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.social-footer-icons .social-icons-footer img {
  width: 48px;
  height: 48px;
  transition: transform 0.25s ease;
}

.social-footer-icons .social-icons-footer img:hover {
  transform: scale(1.18);
}

/* ========================
   ARTICLE-SPECIFIC STYLING (Front-end only)
   Author's Desk, book excerpts, long-form content
   ======================== */

/* Main article container - readable width + warm parchment feel */
.article-content,
.com-content-article,
.item-page .entry-content,
.blog .item,
.category-blog .item,
.joomla-article,
.entry-content {
    max-width: 68ch;                    /* Ideal reading width */
    margin: 0 auto;
    padding: 2rem 1.5rem;
    line-height: 1.92;
    font-size: 1.1rem;
    color: var(--body-text-color);      /* Dark text ONLY on front-end */
    font-feature-settings: 'liga' 0;    /* Clean typography */
}

/* Article headings */
.article-content h1,
.com-content-article h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 2.5rem 0 1.25rem 0;
    color: #1C1C1C;
}

/* Drop Cap - Consistent across articles (dance-teacher + Provider Illusion) */
.dropcap,
.article-content p.dropcap-start span,
.article-content p:first-of-type span {
    float: left;
    font-size: 4.5rem;                  /* Large, dramatic opening letter */
    line-height: 0.75;
    margin: 0.08rem 0.65rem 0 0;        /* Fine-tuned spacing */
    font-weight: bold;
    color: #c8102e;                     /* Deep red accent */
}

/* Extra spacing after the paragraph that contains the drop cap */
.article-content p[style*="margin-bottom: 2.8rem"] {
    margin-bottom: 2.8rem;
}

/* Horizontal rules inside articles */
.article-content hr,
.com-content-article hr {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 2.5rem 0;
}

/* ========================
   Mobile Adjustments
   ======================== */
@media (max-width: 768px) {
  .name-block h1 {
    font-size: 3.2rem;
  }
  
  .name-block {
    padding: 3rem 1rem 3rem;
  }
}

/* ========================
   Ligature Control (Clean typography for long reads)
   ======================== */
/* Disable ligatures in article text only */
.article-content,
.com-content-article,
.item-page .entry-content,
.t4-content,
.joomla-article,
.entry-content p,
.article-body {
  font-variant-ligatures: none !important;
  font-feature-settings: "liga" 0 !important;
  -webkit-font-feature-settings: "liga" 0 !important;
}