/*
Theme Name:   Lu Social Child
Theme URI:    https://lu-social.com
Description:  Child theme for Lu Social on astra. Generated by spidey-wp-theme v0.1.0 from domain/lu_social/DESIGN.md. Do not hand-edit — regenerate via `python3 skills/spidey-wp-theme/scripts/generate.py --brand lu_social`.
Author:       Voodoo (via Spidey)
Template:     astra
Version:      20260518-4
License:      MIT
Text Domain:  lu_social-child
*/

:root {
  --cinnabar: #A04020;
  --parchment: #FAF7F0;
  --cream: #E4D5B7;
  --tan: #C9A878;
  --toast: #8B6F47;
  --slate: #2A3439;
  --tide: #1E5A6B;
  --ivory: #FAF7F0;
  --mist: #E8E5DD;
  --pine: #3A6B5C;
  --coral: #C95B5B;
}

/* ---------------------------------------------------------------------------
   Brand-neutral baseline. Each rule's color resolves per-brand via the
   :root token chain — lu_social → --cinnabar / --slate / --tan;
   rootworth → --oxblood / --charcoal / --brass. NO typographic opinions
   here (line-height, text-decoration, letter-spacing, max-width) —
   those are brand-specific and live in the `body.brand-<slug>` block.
   --------------------------------------------------------------------------- */

body {
  background-color: var(--parchment, var(--bone, #FAF7F0));
  color: var(--slate, var(--charcoal, #2A3439));
}

a {
  color: var(--cinnabar, var(--oxblood, #5C2A2A));
}

a:hover,
a:focus {
  color: var(--toast, var(--forest, #2E4732));
}

::selection {
  background-color: var(--tan, var(--brass, #8A7E54));
  color: var(--slate, var(--bone, #2A3439));
}

/* ---------------------------------------------------------------------------
   Brand: lu_social — v1.1 palette pivot globals (2026-05-18)
   Wrapped under `body.brand-lu_social` so they only apply when the
   functions.php body_class filter has tagged this brand. Rootworth +
   any future brand stay untouched. (Scoped 2026-05-18 evening after
   observing that unscoped globals were silently changing rootworth's
   typography on every regenerate.)
   --------------------------------------------------------------------------- */

/* Color rules above are brand-neutral. Below are lu_social TYPOGRAPHIC
   opinions — line-heights, text-decoration, letter-spacing, max-width,
   heading-color contrast — scoped per body class so they don't bleed. */
body.brand-lu_social {
  line-height: 1.6;
}

body.brand-lu_social a {
  text-decoration: none;
}

body.brand-lu_social a:hover,
body.brand-lu_social a:focus {
  text-decoration: underline;
}

body.brand-lu_social h1,
body.brand-lu_social h2,
body.brand-lu_social h3,
body.brand-lu_social h4 {
  color: var(--cinnabar, #A04020);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

body.brand-lu_social h1 { margin-bottom: 0.5em; }
body.brand-lu_social h2 { margin-top: 1.6em; margin-bottom: 0.5em; }
body.brand-lu_social h3 { margin-top: 1.4em; color: var(--slate, #2A3439); }

body.brand-lu_social .entry-content p,
body.brand-lu_social .entry-content li {
  max-width: 68ch;
}

/* Custom logo sizing — constrain Astra's default native-size render so
   wordmark images don't dominate the header. Pair with Astra's
   display-site-title = 0 setting (set via Customizer or wp option
   patch update astra-settings display-site-title 0) so the brand
   wordmark image is the only header brand mark. */
.custom-logo-link img,
.site-logo-img img {
  max-width: 180px;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .custom-logo-link img,
  .site-logo-img img {
    max-width: 140px;
  }
}

/* C1: Astra-child fallback — hide the site-title text when custom_logo is set.
   Astra's `display-site-title` theme_mod isn't always honored by child themes
   (observed 2026-05-17 with lu_social child v20260517-1: theme_mod=0 but
   .ast-site-title-wrap still rendered, causing a duplicate "lu·social" next to
   the wordmark image). CSS hide is the durable cross-brand fix. */
.ast-site-title-wrap {
  display: none !important;
}

/* C2: Astra-child fallback — hide WP post_title above .entry-content on pages.
   Astra renders an `.entry-header` with the post_title above content even when
   the per-page `site-post-title` meta is set to `disabled`. For brand sites where
   the page H1 lives inside the content body (lu_social home.md pattern), this
   produces a duplicate H1. CSS hide is the durable fix. (Single posts /
   archives keep their entry-header — only `.page` is affected.) */
.page .entry-header,
.page .ast-archive-description {
  display: none !important;
}

/* C3: Brand-CTA button class — content-level (`<a class="button-primary">`).
   Authored in markdown via the `attr_list` extension: `[text](url){.button-primary}`
   then rendered by spidey-wp-page-scaffold. NOT a Gutenberg block button; this
   styles author-written anchor CTAs.
   v1.1 (2026-05-18): primary token resolves to --cinnabar for lu_social,
   --oxblood for rootworth; hover deepens to --toast / --forest. */
a.button-primary,
.entry-content a.button-primary {
  display: inline-block;
  background-color: var(--cinnabar, var(--oxblood, #A04020));
  color: var(--parchment, var(--bone, #FAF7F0)) !important;
  padding: 16px 32px;
  border-radius: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
  margin: 8px 0;
}

a.button-primary:hover,
.entry-content a.button-primary:hover {
  background-color: var(--toast, var(--forest, #8B6F47));
  color: var(--parchment, var(--bone, #FAF7F0)) !important;
  text-decoration: none;
}

a.button-secondary,
.entry-content a.button-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--cinnabar, var(--oxblood, #A04020)) !important;
  border: 1.5px solid var(--cinnabar, var(--oxblood, #A04020));
  padding: 14px 30px;
  border-radius: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin: 8px 0;
}

a.button-secondary:hover,
.entry-content a.button-secondary:hover {
  background-color: var(--cinnabar, var(--oxblood, #A04020));
  color: var(--parchment, var(--bone, #FAF7F0)) !important;
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
   v1.1 palette pivot additions (2026-05-18)
   New class system for sectional depth without rewriting Markdown source
   as Gutenberg blocks. Authored as inline `<div class="panel-X">` wrappers
   in domain/<brand>/content/pages/*.md.
   --------------------------------------------------------------------------- */

/* Section rhythm — ravenhealth-inspired generous vertical breathing. */
.entry-content > .panel-cream,
.entry-content > .panel-tan,
.entry-content > .panel-toast,
.entry-content > .panel-parchment {
  padding: 64px 32px;
  margin: 48px 0;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .entry-content > .panel-cream,
  .entry-content > .panel-tan,
  .entry-content > .panel-toast,
  .entry-content > .panel-parchment {
    padding: 96px 64px;
  }
}

.panel-cream {
  background-color: var(--cream, #E4D5B7);
  color: var(--slate, var(--charcoal, #2A3439));
}

.panel-tan {
  background-color: var(--tan, var(--brass, #C9A878));
  color: var(--slate, var(--charcoal, #2A3439));
}

.panel-toast {
  background-color: var(--toast, var(--forest, #8B6F47));
  color: var(--parchment, var(--bone, #FAF7F0));
}

.panel-toast h1,
.panel-toast h2,
.panel-toast h3,
.panel-toast a {
  color: var(--parchment, var(--bone, #FAF7F0));
}

.panel-parchment {
  background-color: var(--parchment, var(--bone, #FAF7F0));
}

/* Trust-signal underline — sole remaining use of tide in v1.1 palette. */
.trust-tide {
  border-bottom: 2px solid var(--tide, var(--brass, #1E5A6B));
  padding-bottom: 1px;
}

/* Chop seal — hero + signoff treatments. */
.chop-hero {
  text-align: center;
  margin: 24px 0 32px 0;
}

.chop-hero-img {
  display: inline-block;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(160, 64, 32, 0.18));
}

.chop-signoff {
  text-align: center;
  margin: 64px 0 32px 0;
  opacity: 0.85;
}

.chop-signoff-img {
  display: inline-block;
  max-width: 120px;
  height: auto;
}

/* Hero block — chop-anchored landing hero. */
.hero-chop {
  text-align: center;
  padding: 80px 32px 64px 32px;
  background-color: var(--parchment, var(--bone, #FAF7F0));
  border-bottom: 1px solid rgba(139, 111, 71, 0.15);
}

.hero-chop h1 {
  font-size: 2.5rem;
  max-width: 720px;
  margin: 0 auto 0.5em auto;
}

@media (min-width: 768px) {
  .hero-chop h1 {
    font-size: 3.25rem;
  }
}

.hero-chop p {
  max-width: 600px;
  margin: 0 auto 24px auto;
}

/* Luani photo (about page) — warm framing, soft round corners. */
.luani-photo {
  display: block;
  max-width: 480px;
  width: 100%;
  margin: 32px auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(139, 111, 71, 0.22);
}

.luani-photo + em,
.luani-caption {
  display: block;
  text-align: center;
  font-style: italic;
  color: var(--slate, var(--charcoal, #2A3439));
  opacity: 0.75;
  margin-top: -16px;
  margin-bottom: 32px;
}

/* ---------------------------------------------------------------------------
   v1.2 additions (2026-05-18 evening) — Founder card price anchor + nav polish
   --------------------------------------------------------------------------- */

/* Founder Tier panel — heading centered + sized for visual presence. */
.panel-tan h2,
.panel-cream h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5em;
}

@media (min-width: 768px) {
  .panel-tan h2,
  .panel-cream h2 {
    font-size: 2.5rem;
  }
}

/* Price anchor — large Fraunces price as the visual centerpiece of the
   Founder card. Authored as `<p class="price-anchor">$200<small>/month</small></p>`. */
.price-anchor {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 700;
  font-size: 4rem;
  color: var(--cinnabar, var(--oxblood, #A04020));
  text-align: center;
  margin: 8px 0 4px 0;
  letter-spacing: -0.02em;
  line-height: 1;
}

@media (min-width: 768px) {
  .price-anchor {
    font-size: 5.5rem;
  }
}

.price-anchor small {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--slate, var(--charcoal, #2A3439));
  margin-left: 6px;
  letter-spacing: 0;
}

.price-anchor-subtitle {
  text-align: center;
  font-style: italic;
  color: var(--slate, var(--charcoal, #2A3439));
  opacity: 0.85;
  margin: 0 0 40px 0;
}

/* Tighter mobile panel spacing — desktop keeps generous breathing room. */
@media (max-width: 767px) {
  .entry-content > .panel-cream,
  .entry-content > .panel-tan,
  .entry-content > .panel-toast,
  .entry-content > .panel-parchment {
    padding: 48px 24px;
    margin: 32px 0;
  }
}

/* Astra header nav polish — lu_social only.
   Targets shared Astra selectors so MUST be scoped under body.brand-lu_social
   to avoid bleeding into other brands' nav styling. */
body.brand-lu_social .main-header-menu .menu-item > a,
body.brand-lu_social .main-navigation .menu-item > a,
body.brand-lu_social .ast-primary-menu .menu-item > a,
body.brand-lu_social .ast-header-navigation .menu-item > a {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--slate, #2A3439) !important;
  padding: 8px 16px;
  transition: color 0.18s ease, border-color 0.18s ease;
  border-bottom: 2px solid transparent;
}

body.brand-lu_social .main-header-menu .menu-item > a:hover,
body.brand-lu_social .main-navigation .menu-item > a:hover,
body.brand-lu_social .ast-primary-menu .menu-item > a:hover,
body.brand-lu_social .ast-header-navigation .menu-item > a:hover {
  color: var(--cinnabar, #A04020) !important;
  border-bottom-color: var(--cinnabar, #A04020);
}

body.brand-lu_social .main-header-menu .current-menu-item > a,
body.brand-lu_social .main-navigation .current-menu-item > a,
body.brand-lu_social .ast-primary-menu .current-menu-item > a,
body.brand-lu_social .ast-header-navigation .current-menu-item > a {
  color: var(--cinnabar, #A04020) !important;
  font-weight: 600;
  border-bottom-color: var(--cinnabar, #A04020);
}

body.brand-lu_social .main-header-menu .menu-item a.button-primary,
body.brand-lu_social .ast-primary-menu .menu-item a.button-primary,
body.brand-lu_social .ast-header-navigation .menu-item a.button-primary {
  padding: 8px 20px !important;
  font-size: 0.95rem;
  border-radius: 8px;
  border-bottom: none;
  margin: 0 0 0 8px;
}

body.brand-lu_social .main-header-menu .menu-item a.button-primary:hover,
body.brand-lu_social .ast-primary-menu .menu-item a.button-primary:hover,
body.brand-lu_social .ast-header-navigation .menu-item a.button-primary:hover {
  border-bottom: none;
}
