/*
Theme Name: LAUNA
Theme URI: https://github.com/legacyprolific/launa-theme
Author: LAUNA
Description: Custom editorial WordPress theme for the LAUNA personal lifestyle brand — healthy locs, luxury living, fitness, and reading. Editorial black with accent pink.
Version: 1.10.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: launa
*/

/* ==========================================================================
   1. TOKENS — editorial black + accent pink
   Contrast is why there are three pinks. Verified against #FAFAFA/#FFF:
     --pink       #EC4899  3.5:1  large display text, decorative, rings ONLY
     --pink-cta   #DB2777  4.6:1  button backgrounds (white label on top)
     --pink-deep  #BE185D  6.0:1  small text, links, labels
   Never set small text in --pink. It fails WCAG AA.
   ========================================================================== */

:root {
  /* Ink */
  --fg:        #09090B;
  --ink:       #18181B;
  --ink-2:     #3F3F46;
  --ink-soft:  #52525B;
  --ink-faint: #A1A1AA;

  /* Accent */
  --pink:      #EC4899;
  --pink-cta:  #DB2777;
  --pink-deep: #BE185D;
  --pink-soft: #FBCFE8;
  --pink-wash: #FDF2F8;

  /* Surfaces */
  --bg:      #FAFAFA;
  --white:   #FFFFFF;
  --muted:   #E8ECF0;
  --border:  #E4E4E7;

  /* Type */
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body:    "Lora", Georgia, serif;
  --f-ui:      "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-script:  "Dancing Script", "Brush Script MT", cursive;

  /* Spacious scale (density 3/10) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;

  --wrap: 1200px;
  /* Aligns a split-section's text column with the centred .wrap gutter, so the
     copy lines up with the header above it while the image bleeds to the edge. */
  --gutter: max(1.25rem, calc((100vw - var(--wrap)) / 2));

  /* Motion tokens — mirrors assets/js/launa.js. One rhythm sitewide. */
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;
  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   2. RESET
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pink-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fg); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--s-2);
  color: var(--fg);
}

button { font-family: inherit; }

/* Focus — visible on every interactive element (a11y CRITICAL) */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--pink-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100px; left: var(--s-2);
  z-index: 1000;
  background: var(--ink); color: #fff;
  padding: var(--s-1) var(--s-2);
  font-family: var(--f-ui); font-size: 0.85rem;
}
.skip-link:focus { top: var(--s-2); color: #fff; }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--s-7); }

/* ==========================================================================
   4. TYPE UTILITIES
   ========================================================================== */

.eyebrow {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 var(--s-2);
}

.script {
  font-family: var(--f-script);
  font-weight: 600;
  color: var(--pink-deep);
  line-height: 1.2;
}

.lede { font-size: 1.06rem; color: var(--ink-soft); max-width: 46ch; }

/* Decorative rule + sparkle above the hero eyebrow */
.flourish {
  display: flex; align-items: center; gap: var(--s-1);
  margin-bottom: var(--s-3);
}
.flourish::before {
  content: ""; width: 56px; height: 1px; background: var(--ink);
}
.flourish svg { width: 16px; height: 16px; color: var(--pink); }

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px;                     /* touch target */
  padding: 0.85rem 1.9rem;
  background: var(--pink-cta); color: #fff;
  font-family: var(--f-ui);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  border: 0; border-radius: 2px;
  cursor: pointer;
  transition: background var(--t-fast) ease-out;
}
.btn:hover { background: var(--pink-deep); color: #fff; }
.btn svg { width: 15px; height: 15px; }

.btn-dark { background: var(--ink); }
.btn-dark:hover { background: var(--fg); }

/* The trailing arrow that sits outside the button in the mockup */
.btn-row { display: flex; align-items: center; gap: var(--s-2); }
.btn-row .arrow { color: var(--ink); width: 22px; height: 22px; flex: none; }

.link-more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-ui);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink-deep); text-decoration: none;
}
.link-more svg { width: 14px; height: 14px; transition: transform var(--t-fast) var(--e-out); }
.link-more:hover { color: var(--fg); }
.link-more:hover svg { transform: translateX(4px); }

/* ==========================================================================
   6. HEADER
   ========================================================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  min-height: 88px;
}

/* Wordmark: LAUNA in display serif + script descender */
.brand { display: flex; align-items: baseline; gap: 0.3rem; text-decoration: none; }
.brand-mark {
  font-family: var(--f-display);
  font-size: 1.6rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg);
}
.brand-script {
  font-family: var(--f-script);
  font-size: 1.7rem; font-weight: 700;
  color: var(--pink-deep);
}
.brand-heart { color: var(--pink); width: 11px; height: 11px; align-self: flex-end; margin-bottom: 0.35rem; }

.nav-primary ul {
  display: flex; gap: var(--s-3);
  list-style: none; margin: 0; padding: 0;
}
.nav-primary a {
  font-family: var(--f-ui);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  transition: color var(--t-fast) ease-out;
}
.nav-primary a:hover { color: var(--pink-deep); }
.nav-primary .current-menu-item > a,
.nav-primary .current_page_item > a { color: var(--pink-deep); }

.social { display: flex; align-items: center; gap: var(--s-2); }
.social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;            /* touch target */
  color: var(--ink);
  transition: color var(--t-fast) ease-out;
}
.social a:hover { color: var(--pink-deep); }
.social svg { width: 19px; height: 19px; }

/* Burger — hidden on desktop */
.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  color: var(--ink);
}
.burger svg { width: 24px; height: 24px; }

/* ==========================================================================
   7. HERO
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--s-5);
  min-height: 560px;
  position: relative;
  background: linear-gradient(180deg, var(--white) 0%, var(--pink-wash) 100%);
}
.hero-copy { padding: var(--s-6) var(--s-4) var(--s-6) var(--gutter); }

.hero h1 { margin: 0 0 var(--s-3); line-height: 0.92; }
.hero h1 .l1,
.hero h1 .l2 { display: block; }
.hero h1 .l1 {
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pink);
}
.hero h1 .l2 {
  font-size: clamp(3rem, 7.4vw, 5.6rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--fg);
}

.hero-sub { font-size: 1.02rem; color: var(--ink); max-width: 34ch; margin: 0 0 var(--s-2); }
.hero-script { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 var(--s-4); }

/* Outline heart floating beside the headline */
.hero-heart {
  position: absolute; left: 46%; top: 26%;
  width: 62px; height: 62px; color: var(--pink-soft);
  pointer-events: none;
}

.hero-media { align-self: stretch; position: relative; min-height: 480px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ==========================================================================
   8. PILLARS
   ========================================================================== */

.pillars { background: var(--white); }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.pillar { position: relative; padding-top: var(--s-4); }

.pillar-icon {
  position: absolute; top: 0; left: 0;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  z-index: 2;
}
.pillar-icon svg { width: 24px; height: 24px; }

.pillar-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-left: var(--s-3);
  background: var(--pink-wash);
}
.pillar-img img { width: 100%; height: 100%; object-fit: cover; }

.pillar h3 {
  font-family: var(--f-ui);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg);
  margin: var(--s-3) 0 var(--s-1);
}
.pillar p { font-size: 0.94rem; color: var(--ink-soft); margin: 0 0 var(--s-2); }

/* ==========================================================================
   9. ABOUT
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--pink-wash);
}
.about-copy {
  padding: var(--s-7) var(--s-6) var(--s-7) var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
}
.about-head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.about-head .script { font-size: clamp(2.2rem, 4vw, 3rem); margin: 0; }
.about-head svg { width: 30px; height: 30px; color: var(--pink-soft); flex: none; }
.about-copy p { max-width: 48ch; margin: 0 0 var(--s-4); }
.about-media img { width: 100%; height: 100%; object-fit: cover; min-height: 440px; }

/* ==========================================================================
   10. NEWSLETTER
   ========================================================================== */

.newsletter { background: var(--bg); }
.newsletter-box {
  border: 1px solid var(--pink-soft);
  background: var(--pink-wash);
  padding: var(--s-4) var(--s-5);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-4);
}
.newsletter-icon { width: 46px; height: 46px; color: var(--pink); flex: none; }
.newsletter h2 {
  font-family: var(--f-ui);
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0 0 0.35rem;
}
.newsletter p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.newsletter form { display: flex; gap: 0; }
.newsletter label { /* label exists for SR; input also carries a visible placeholder */
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
}
.newsletter input[type="email"] {
  min-height: 48px;
  padding: 0 1rem;
  width: 220px;
  border: 1px solid var(--border);
  border-right: 0;
  background: var(--white);
  font-family: var(--f-body); font-size: 0.95rem;
  color: var(--ink);
}
.newsletter input::placeholder { color: var(--ink-faint); }
.newsletter button { min-height: 48px; }

/* ==========================================================================
   11. GALLERY
   ========================================================================== */

.gallery { background: var(--bg); padding-bottom: 0; }
.gallery-head {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.gallery-head h2 { font-family: var(--f-script); font-weight: 600; color: var(--pink-deep); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; }
.gallery-head svg { width: 28px; height: 28px; color: var(--pink-soft); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.gallery-grid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--pink-wash); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--e-out); }
.gallery-grid a:hover img { transform: scale(1.05); }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.site-footer { background: var(--ink); color: #fff; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  min-height: 74px;
  font-family: var(--f-ui); font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.site-footer .brand-mark { color: #fff; }
.site-footer .brand-script { color: var(--pink); }
.site-footer .brand-heart { color: var(--pink); }
.footer-tag { font-weight: 600; }
.site-footer a { color: #fff; }

.footer-legal { border-top: 1px solid rgba(255,255,255,0.18); }
.footer-legal ul {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  list-style: none; margin: 0; padding: var(--s-2) 0;
  font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.footer-legal a { text-decoration: none; opacity: 0.85; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }

/* ==========================================================================
   13. BLOG / ARCHIVE / SINGLE
   ========================================================================== */

.page-head { text-align: center; padding-block: var(--s-6) var(--s-4); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.post-card { display: flex; flex-direction: column; }
.post-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--pink-wash); margin-bottom: var(--s-2); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--e-out); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.post-card h2 a { color: var(--fg); text-decoration: none; }
.post-card h2 a:hover { color: var(--pink-deep); }
.post-meta {
  font-family: var(--f-ui); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 0.5rem;
}
.post-card p { font-size: 0.94rem; color: var(--ink-soft); margin: 0 0 var(--s-2); }

.entry { width: min(100% - 2.5rem, 720px); margin-inline: auto; padding-block: var(--s-5) var(--s-7); }
.entry-hero { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: var(--s-4); background: var(--pink-wash); }
.entry-hero img { width: 100%; height: 100%; object-fit: cover; }
.entry h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: var(--s-2); }
.entry-content > * + * { margin-top: var(--s-3); }
.entry-content h2 { font-size: 1.7rem; margin-top: var(--s-5); }
.entry-content h3 { font-size: 1.3rem; margin-top: var(--s-4); }
.entry-content img { margin-block: var(--s-3); }
.entry-content blockquote {
  border-left: 2px solid var(--pink);
  margin-inline: 0; padding-left: var(--s-3);
  font-style: italic; color: var(--ink-soft);
}
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li + li { margin-top: 0.4rem; }

.pagination { display: flex; justify-content: center; gap: var(--s-2); padding-block: var(--s-5); }
.pagination .page-numbers {
  font-family: var(--f-ui); font-size: 0.8rem;
  min-width: 44px; min-height: 44px;
  display: grid; place-items: center;
  text-decoration: none; color: var(--ink);
}
.pagination .current { background: var(--ink); color: #fff; }

/* Posts-page banner. The source photo is portrait, so the crop is biased
   upward (object-position) to keep the subject in frame rather than centring
   on the middle of a tall image. */
.blog-hero {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: var(--s-5);
  background: var(--pink-wash);
}
.blog-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
@media (max-width: 860px) {
  .blog-hero { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   14. MOTION

   Design rule: below-the-fold content is NEVER hidden by default.

   The previous approach hid every .reveal behind a JS-added class and let
   JavaScript un-hide it. That strands content permanently whenever the reveal
   path fails — and it did, twice: once when a Motion call threw mid-sequence,
   and again in a browser where IntersectionObserver never fires. A blank page
   is a far worse outcome than a missing animation.

   So now:
     - The hero (above the fold) is JS-animated and carries a 2.5s force
       backstop. It is on screen immediately, so a failure is self-correcting.
     - Everything below the fold animates with a scroll-driven CSS animation.
       No JS, no IntersectionObserver, no rAF. Where the browser doesn't
       support animation-timeline, the content is simply visible — which is
       the correct failure mode.
   ========================================================================== */

@keyframes launa-reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Hero only — JS drives this one. */
.js-motion .reveal[data-hero] { opacity: 0; transform: translateY(16px); }

/* Below the fold — CSS only. Visible by default; animates where supported. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal:not([data-hero]) {
      animation: launa-reveal linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal[data-hero] { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .newsletter-box { grid-template-columns: auto 1fr; }
  .newsletter form { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --s-7: 4rem; --s-6: 3rem; }

  .burger { display: grid; place-items: center; }

  .nav-primary {
    position: fixed; inset: 88px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: var(--s-2) 0 var(--s-3);
    display: none;
  }
  .nav-primary.is-open { display: block; }
  .nav-primary ul { flex-direction: column; gap: 0; }
  .nav-primary li { border-top: 1px solid var(--border); }
  .nav-primary a { padding: 1rem 1.25rem; }

  .social { gap: 0; }

  .hero { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: var(--s-5) 1.25rem var(--s-4); }
  .hero-media { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-heart { display: none; }

  .about { grid-template-columns: 1fr; }
  .about-copy { padding: var(--s-5) 1.25rem; }
  .about-media { order: -1; }
  .about-media img { min-height: 0; aspect-ratio: 4 / 3; }

  .newsletter-box { grid-template-columns: 1fr; text-align: left; gap: var(--s-3); }
  .newsletter-icon { display: none; }

  .footer-inner { flex-direction: column; gap: var(--s-2); text-align: center; padding-block: var(--s-3); }
}

@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter form { flex-direction: column; }
  .newsletter input[type="email"] { width: 100%; border-right: 1px solid var(--border); }
  .btn { width: 100%; justify-content: center; }
  .btn-row .arrow { display: none; }
}

/* ==========================================================================
   16. LANDING PAGE (template-landing.php)

   One offer, one action, repeated top and bottom. Everything is prefixed .lp-
   so it cannot leak into the homepage or the blog.

   Contrast note: the accent pink used here follows the same rule as the rest
   of the theme — --pink only above ~24px, --pink-deep for anything smaller.
   ========================================================================== */

/* ---- Top bar: wordmark + follow, no nav ---------------------------------- */

.lp-topbar { background: var(--white); }
.lp-topbar-inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  min-height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
}
.lp-follow { display: flex; align-items: center; gap: var(--s-2); }
.lp-follow-label {
  font-family: var(--f-ui);
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink-deep);
}

/* ---- Hero ---------------------------------------------------------------- */

.lp-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--pink-wash) 100%);
}
.lp-hero-copy { padding: var(--s-6) var(--s-5) var(--s-7) var(--gutter); }

.lp-hero-script { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 var(--s-1); }

.lp-hero-head {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 var(--s-3);
  max-width: 13ch;
}
.lp-dot { color: var(--pink); }

/* Short rule under the headline. Decorative only. */
.lp-rule {
  display: block; width: 86px; height: 2px;
  background: var(--pink-soft);
  margin-bottom: var(--s-3);
}

.lp-hero-sub {
  font-size: 1.02rem;
  color: var(--ink);
  max-width: 34ch;
  margin: 0 0 var(--s-4);
}
.lp-hero-sub em { font-style: normal; color: var(--pink-deep); }

.lp-hero-cta { margin-bottom: var(--s-2); }

.btn-lg { padding: 1.05rem 2.2rem; font-size: 0.8rem; }

.lp-hero-note {
  font-family: var(--f-ui);
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0;
}

.lp-hero-media { align-self: stretch; min-height: 520px; }
.lp-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ---- Proof bar ----------------------------------------------------------- */

.lp-proof { background: var(--white); border-block: 1px solid var(--border); }
.lp-proof-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-4);
}
.lp-proof-label { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin: 0; flex: none; max-width: 9ch; }

.lp-proof-item { flex: 1; text-align: center; position: relative; }
/* Hairline separators between items, not after the last one. */
.lp-proof-item + .lp-proof-item::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 46px; background: var(--border);
}
.lp-proof-icon { width: 26px; height: 26px; color: var(--pink); margin-bottom: 0.4rem; display: inline-block; }
.lp-proof-value {
  font-family: var(--f-ui);
  font-size: 1.12rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0;
}
.lp-proof-text {
  font-family: var(--f-ui);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  margin: 0.2rem 0 0;
}

/* ---- About --------------------------------------------------------------- */

.lp-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--white);
}
.lp-about-media { position: relative; }
.lp-about-media img { width: 100%; height: 100%; object-fit: cover; min-height: 520px; }

/* Script sits over the photo's right edge, bleeding into the copy column. */
.lp-about-script {
  position: absolute; right: -0.5em; bottom: 16%;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  text-align: right;
  max-width: 7ch;
  margin: 0;
  text-shadow: 0 1px 12px rgba(250, 250, 250, 0.9);
}

.lp-about-copy {
  padding: var(--s-7) var(--gutter) var(--s-7) var(--s-6);
  display: flex; flex-direction: column; justify-content: center;
}
.lp-about-head {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 0 0 var(--s-3);
}
.lp-about-head .script { display: block; font-size: 1.05em; }
.lp-about-body { max-width: 52ch; }
.lp-about-body p { margin: 0 0 var(--s-2); color: var(--ink-soft); font-size: 0.98rem; }
.lp-about-body p:last-child { margin-bottom: 0; }
.lp-about-close { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: var(--s-3) 0 0; }

/* ---- Offer --------------------------------------------------------------- */

.lp-offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--s-5);
  background: var(--pink-wash);
  padding-block: var(--s-7);
  scroll-margin-top: var(--s-3);
}
.lp-offer-media { padding-left: var(--gutter); }
.lp-offer-media img { width: 100%; max-width: 520px; height: auto; }

.lp-offer-copy { padding-right: var(--gutter); max-width: 46ch; }
.lp-offer-eyebrow { color: var(--pink-deep); margin-bottom: var(--s-1); }
.lp-offer-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0 0 var(--s-2);
}
.lp-offer-title em { font-style: normal; color: var(--pink); }
.lp-offer-sub { color: var(--ink-soft); margin: 0 0 var(--s-3); }

.lp-checks { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.lp-checks li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.lp-checks svg { width: 20px; height: 20px; color: var(--pink-deep); flex: none; margin-top: 0.15rem; }

/* ---- Opt-in form --------------------------------------------------------- */

.lp-form { display: flex; gap: 0; max-width: 460px; }
.lp-form input[type="email"] {
  flex: 1; min-width: 0;
  min-height: 52px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-right: 0;
  background: var(--white);
  font-family: var(--f-body); font-size: 0.95rem;
  color: var(--ink);
}
.lp-form input::placeholder { color: var(--ink-faint); }
.lp-form input:disabled { background: var(--muted); cursor: not-allowed; }
.lp-form button { min-height: 52px; flex: none; }
.lp-form button:disabled { opacity: 0.55; cursor: not-allowed; }

/* Submit feedback — the provider opens in a new tab, so the button reports
   that it fired rather than pretending to know the signup succeeded. */
.lp-form.is-sending button { opacity: 0.7; pointer-events: none; }

.lp-form-note {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--f-ui); font-size: 0.72rem;
  color: var(--ink-2);
  margin: var(--s-2) 0 0;
}
.lp-form-note svg { width: 14px; height: 14px; color: var(--pink); flex: none; }

.lp-admin-note {
  margin: var(--s-2) 0 0;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--pink-cta);
  background: var(--white);
  font-family: var(--f-ui); font-size: 0.76rem;
  color: var(--ink-2);
  max-width: 460px;
}

/* ---- What's inside ------------------------------------------------------- */

.lp-inside { background: var(--bg); }
.lp-inside-head {
  font-family: var(--f-ui);
  font-size: 0.86rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  text-align: center;
  color: var(--fg);
  margin: 0 0 var(--s-5);
}
.lp-inside-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
/* Count-agnostic: cards share the row evenly however many survive. */
.lp-inside-card { flex: 1 1 170px; max-width: 260px; }
.lp-inside-card { text-align: center; }
.lp-inside-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pink-wash);
  margin-bottom: var(--s-2);
}
.lp-inside-img img { width: 100%; height: 100%; object-fit: cover; }
.lp-inside-card h3 {
  font-family: var(--f-ui);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0 0 0.4rem;
}
.lp-inside-card p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

/* A card with no photo yet reads as a deliberate text card — a rule instead of
   a grey placeholder block. */
.lp-inside-card--text { padding-top: var(--s-2); border-top: 2px solid var(--pink-soft); }
.lp-inside-card--text h3 { margin-top: 0; }

/* ---- Lifestyle strip ----------------------------------------------------- */

.lp-life { background: var(--white); padding-block: var(--s-6); }
.lp-life-head { width: min(100% - 2.5rem, var(--wrap)); margin: 0 auto var(--s-4); }
.lp-life-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-transform: uppercase;
  margin: 0;
  max-width: 14ch;
}
.lp-life-head .script { display: block; text-transform: none; font-size: 1.15em; }

.lp-life-strip {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2);
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
}
/* A slot with no photo is dropped upstream, so this must not assume five. */
.lp-life-strip li { flex: 1 1 170px; max-width: 300px; }
.lp-life-img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--pink-wash); }
.lp-life-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--e-out); }
.lp-life-strip li:hover .lp-life-img img { transform: scale(1.04); }
.lp-life-label {
  display: block;
  font-family: var(--f-ui);
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
  text-align: center;
  margin-top: 0.7rem;
}

/* ---- Testimonials -------------------------------------------------------- */

.lp-testimonials { background: var(--pink-wash); }
.lp-test-head {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.lp-test-head h2 {
  font-family: var(--f-ui);
  font-size: 0.86rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  margin: 0;
}
.lp-test-head svg { width: 24px; height: 24px; color: var(--pink-soft); }

.lp-test-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
/* Capped so a lone real testimonial doesn't stretch across the page. */
.lp-test-card { flex: 1 1 280px; max-width: 420px; }
.lp-test-card {
  background: var(--white);
  border: 1px solid var(--pink-soft);
  padding: var(--s-3);
  margin: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.lp-test-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--pink-wash); }
.lp-test-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lp-test-card blockquote { margin: 0; font-size: 0.94rem; color: var(--ink); }
.lp-test-card figcaption {
  font-family: var(--f-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--pink-deep);
}

/* ---- Closing band -------------------------------------------------------- */

.lp-end {
  background: linear-gradient(180deg, var(--pink-wash) 0%, var(--white) 100%);
  padding-block: var(--s-7);
}
.lp-end-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lp-end-eyebrow { color: var(--pink-deep); margin-bottom: var(--s-1); }
.lp-end-head {
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  max-width: 20ch;
  margin: 0 0 var(--s-4);
}
.lp-end .lp-form { margin-inline: auto; width: 100%; }
.lp-end .lp-admin-note { margin-inline: auto; text-align: left; }

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
  .lp-inside-grid { gap: var(--s-4) var(--s-3); }
  .lp-inside-card,
  .lp-life-strip li { flex-basis: 28%; max-width: 33.33%; }
  .lp-proof-inner { flex-wrap: wrap; justify-content: center; row-gap: var(--s-3); }
  .lp-proof-label { flex-basis: 100%; text-align: center; max-width: none; }
  .lp-proof-item { flex-basis: 45%; }
  /* The separator assumes a single row; drop it once items wrap. */
  .lp-proof-item + .lp-proof-item::before { display: none; }
}

@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-hero-copy { padding: var(--s-5) 1.25rem var(--s-5); order: 2; }
  .lp-hero-media { min-height: 0; aspect-ratio: 4 / 3; order: 1; }
  .lp-hero-head { max-width: none; }

  .lp-about { grid-template-columns: 1fr; }
  .lp-about-media img { min-height: 0; aspect-ratio: 4 / 3; }
  .lp-about-script { right: 1.25rem; bottom: 1rem; }
  .lp-about-copy { padding: var(--s-5) 1.25rem; }

  .lp-offer { grid-template-columns: 1fr; gap: var(--s-4); padding-block: var(--s-6); }
  .lp-offer-media { padding: 0 1.25rem; }
  .lp-offer-media img { margin-inline: auto; max-width: 380px; }
  .lp-offer-copy { padding: 0 1.25rem; max-width: none; }

  .lp-topbar-inner { min-height: 68px; }
  .lp-follow-label { display: none; }
}

@media (max-width: 560px) {
  .lp-proof-item { flex-basis: 100%; }
  .lp-inside-card,
  .lp-life-strip li { flex-basis: 40%; max-width: 48%; }

  /* Stack the form so the 52px targets stay full width and thumb-friendly. */
  .lp-form { flex-direction: column; gap: 0.5rem; }
  .lp-form input[type="email"] { border-right: 1px solid var(--border); width: 100%; }
  .lp-form button { width: 100%; justify-content: center; }
}


/* ==========================================================================
   16. ABOUT PAGE  (template-about.php)

   The one place the palette gains a warm metallic: --gold, used ONLY for two
   decorative hairlines (under the hero headline and under the pull quote).
   The README's "editorial black + pink, not the warm gold treatment" still
   holds for everything that carries meaning — no gold text, no gold buttons,
   nothing that has to pass a contrast check. It is a rule, literally.
   ========================================================================== */

:root { --gold: #BFA06A; }

.rule-gold {
  display: block;
  width: 132px; height: 2px;
  background: var(--gold);
  margin-block: var(--s-3);
}

/* ---- Hero ---------------------------------------------------------------- */

.ab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: var(--s-6);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.ab-hero-copy {
  padding: var(--s-7) var(--s-4) var(--s-7) var(--gutter);
  max-width: 46rem;
}

.ab-hero-script { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 0.25rem; }

.ab-hero-head {
  /* Small caps in the mockup are done with real uppercase, not font-variant —
     Playfair's small-caps synthesis is uneven at display sizes. */
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.03;
  margin: 0;
  /* Keeps the headline to two lines at the mockup's measure without a <br>.
     16ch fits "OF THE INTERNET." on one line; 11ch broke it into three. */
  max-width: 16ch;
}

.ab-hero-body { color: var(--ink-soft); max-width: 42ch; margin: 0 0 var(--s-4); }

.ab-hero-note {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0;
}
.ab-hero-note svg { width: 20px; height: 20px; color: var(--pink); flex: none; }

.ab-hero-media { align-self: stretch; }
.ab-hero-media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: center 22%; }

/* ---- Who I am ------------------------------------------------------------ */

.ab-who { background: var(--bg); }

.ab-who-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr 0.9fr;
  gap: var(--s-5);
  align-items: start;
}

.ab-who-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.ab-who-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: 0.98rem; }

.ab-who-head {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: var(--s-3);
}
.ab-who-head svg { width: 20px; height: 20px; color: var(--pink); flex: none; }

/* The pull quote sits on a soft wash panel — the mockup's brushstroke, done as
   a shape rather than an image so it scales and needs no asset. */
.ab-quote {
  margin: 0;
  padding: var(--s-4);
  background: var(--pink-wash);
  border-radius: 140px 12px 120px 16px / 60px 90px 40px 100px;
}
.ab-quote blockquote { margin: 0; }
.ab-quote-mark { width: 30px; height: 30px; color: var(--pink-soft); margin-bottom: var(--s-1); }
.ab-quote p {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
  color: var(--fg);
  margin: 0;
}
.ab-quote .rule-gold { width: 96px; margin-bottom: 0; }

/* ---- Section heads (shared by beliefs / list) ---------------------------- */

.ab-head { text-align: center; margin-bottom: var(--s-5); }
.ab-head .eyebrow { color: var(--pink-deep); margin-bottom: var(--s-1); }
.ab-head h2 {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin: 0;
}
.ab-head h2 svg { width: 19px; height: 19px; color: var(--pink); flex: none; }

/* ---- What I believe ------------------------------------------------------ */

.ab-believe { background: var(--white); }

.ab-belief-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}

.ab-belief {
  text-align: center;
  padding: var(--s-2) var(--s-3);
  border-left: 1px solid var(--border);
}
.ab-belief:first-child { border-left: 0; }

.ab-belief-icon svg { width: 28px; height: 28px; color: var(--pink-deep); margin-inline: auto; }

.ab-belief h3 {
  font-family: var(--f-ui);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin: var(--s-2) 0 0.4rem;
}
.ab-belief p { font-size: 0.84rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* ---- The LAUNA list ------------------------------------------------------ */

.ab-list { background: var(--pink-wash); }

.ab-list-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: var(--s-2);
}

.ab-list-card { background: var(--white); }
.ab-list-img { aspect-ratio: 1; background: var(--muted); overflow: hidden; }
.ab-list-img img { width: 100%; height: 100%; object-fit: cover; }
.ab-list-img:empty { display: none; }

.ab-list-label {
  font-family: var(--f-ui);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0.75rem 0.65rem 0.2rem;
}
.ab-list-value {
  font-size: 0.78rem; line-height: 1.4;
  margin: 0 0.65rem 0.9rem;
}

/* ---- Life in pictures ---------------------------------------------------- */

.ab-pics { padding-bottom: var(--s-6); background: var(--bg); }
.ab-pics-head { text-align: center; color: var(--pink-deep); margin-bottom: var(--s-3); }

.ab-pics-strip {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
}
.ab-pics-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---- Why I share --------------------------------------------------------- */

.ab-why { background: var(--white); }

.ab-why-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr 0.8fr;
  gap: var(--s-5);
  align-items: center;
}
/* With no published posts there is no favorites rail, so the remaining two
   columns share the width instead of leaving a hole where it would have sat. */
.ab-why--nofav .ab-why-grid { grid-template-columns: 1fr 1fr; }

.ab-why-copy h2 {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}
.ab-why-copy h2 svg { width: 19px; height: 19px; color: var(--pink); flex: none; }
.ab-why-copy p { color: var(--ink-soft); font-size: 0.95rem; }
.ab-why-kicker { color: var(--fg) !important; }

.ab-why-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.ab-fav { background: var(--pink-wash); padding: var(--s-3); align-self: stretch; }
.ab-fav .eyebrow { color: var(--pink-deep); }
.ab-fav ul { list-style: none; margin: 0 0 var(--s-2); padding: 0; }
.ab-fav li + li { margin-top: 0.55rem; }
.ab-fav a {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--ink); text-decoration: none;
  font-size: 0.8rem; line-height: 1.35;
}
.ab-fav a:hover .ab-fav-title { color: var(--pink-deep); text-decoration: underline; }
.ab-fav-thumb { flex: none; width: 42px; height: 42px; background: var(--muted); overflow: hidden; }
.ab-fav-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Stay awhile --------------------------------------------------------- */

.ab-stay {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 1fr;
  align-items: center;
  gap: var(--s-5);
  background: var(--pink-wash);
  border-top: 1px solid var(--border);
}

.ab-stay-media { align-self: stretch; }
.ab-stay-media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.ab-stay-media:empty { display: none; }

.ab-stay-copy { text-align: center; padding-block: var(--s-6); }
.ab-stay-copy h2 {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}
.ab-stay-copy h2 svg { width: 22px; height: 22px; color: var(--pink); flex: none; }
.ab-stay-copy > p { color: var(--ink-soft); max-width: 40ch; margin-inline: auto; }

.ab-stay-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-3); }

.btn-ghost {
  background: transparent;
  color: var(--pink-deep);
  box-shadow: inset 0 0 0 1px var(--pink-cta);
}
.btn-ghost:hover { background: var(--pink-cta); color: #fff; }

.ab-stay-optin {
  padding: var(--s-5) var(--gutter) var(--s-5) 0;
  border-left: 1px solid var(--pink-soft);
  padding-left: var(--s-5);
}
.ab-optin-icon {
  width: 54px; height: 54px; padding: 15px;
  color: var(--pink-deep);
  border: 1px solid var(--pink-cta); border-radius: 50%;
  margin-bottom: var(--s-2);
}
.ab-stay-optin .eyebrow { color: var(--pink-deep); margin-bottom: 0.35rem; }
.ab-optin-sub { font-size: 0.85rem; color: var(--ink-soft); max-width: 34ch; margin: 0 0 var(--s-2); }

.ab-stay-optin form { display: flex; max-width: 320px; }
.ab-stay-optin input[type="email"] {
  flex: 1; min-width: 0; min-height: 48px;
  padding: 0.7rem 0.9rem;
  font-family: var(--f-body); font-size: 0.88rem;
  background: var(--white);
  border: 1px solid var(--border); border-right: 0;
}
.ab-stay-optin button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 48px;
  background: var(--pink-cta); color: #fff;
  border: 0; cursor: pointer;
  transition: background var(--t-fast) ease-out;
}
.ab-stay-optin button:hover { background: var(--pink-deep); }
.ab-stay-optin button svg { width: 18px; height: 18px; }
.ab-optin-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

/* ---- About page — responsive --------------------------------------------- */

/* Eight across needs the full 1200px wrapper to give each card ~136px. Below
   that the captions ("The Mel Robbins Podcast") wrap to three lines and the row
   starts reading like a dashboard, so it halves to four before it gets there. */
@media (max-width: 1200px) {
  .ab-list-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .ab-belief-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-4); }
  /* Borders follow the new column count, so no row starts with a stray rule. */
  .ab-belief:nth-child(3n + 1) { border-left: 0; }

  .ab-pics-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .ab-who-grid { grid-template-columns: 1fr 1fr; }
  .ab-quote { grid-column: 1 / -1; }

  .ab-why-grid,
  .ab-why--nofav .ab-why-grid { grid-template-columns: 1fr 1fr; }
  .ab-fav { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .ab-hero { grid-template-columns: 1fr; gap: 0; }
  .ab-hero-copy { padding: var(--s-6) 1.25rem var(--s-5); max-width: none; }
  .ab-hero-head { max-width: none; }
  .ab-hero-media img { min-height: 0; aspect-ratio: 4 / 3; }

  .ab-stay { grid-template-columns: 1fr; gap: 0; }
  .ab-stay-media img { min-height: 0; aspect-ratio: 16 / 9; }
  .ab-stay-copy { padding: var(--s-5) 1.25rem var(--s-2); }
  .ab-stay-optin {
    padding: var(--s-2) 1.25rem var(--s-6);
    border-left: 0;
    border-top: 1px solid var(--pink-soft);
    margin-top: var(--s-3);
  }
  .ab-stay-optin form { max-width: none; }
}

@media (max-width: 640px) {
  .ab-who-grid { grid-template-columns: 1fr; }
  .ab-why-grid,
  .ab-why--nofav .ab-why-grid { grid-template-columns: 1fr; }

  .ab-belief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-belief { border-left: 0; }

  .ab-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-pics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
}

/* ==========================================================================
   17. CONTACT PAGE  (template-contact.php)

   Reuses the About page's --gold-free palette: black + the three pinks. The
   only new surface idea is the taped polaroid, which is a rotated figure with
   a paper border rather than an image asset, so it scales and needs no upload.
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------------- */

.ct-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--s-6);
  background: var(--white);
}

.ct-hero-copy { padding: var(--s-7) var(--s-4) var(--s-7) var(--gutter); max-width: 44rem; }
.ct-hero-copy .eyebrow { color: var(--pink-deep); }
.ct-hero-copy > p:not(.eyebrow) { color: var(--ink-soft); max-width: 40ch; }

.ct-hero-head {
  /* Sentence case here, unlike the About hero's uppercase — the line is a
     spoken sentence, and setting it in caps would make it read as a banner. */
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0;
  max-width: 12ch;
}

/* Hairline — heart — hairline. */
.ct-divider {
  display: flex; align-items: center; gap: var(--s-2);
  max-width: 320px;
  margin: var(--s-3) 0 var(--s-4);
}
.ct-divider::before,
.ct-divider::after { content: ""; flex: 1; height: 1px; background: var(--pink-soft); }
.ct-divider svg { width: 20px; height: 20px; color: var(--pink); flex: none; }

.ct-hero-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

/* White button with a hairline border — the mockup's secondary action. */
.btn-light {
  background: var(--white);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn-light:hover { background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px var(--ink-faint); }
.btn-light svg { color: var(--pink); }

.ct-hero-media { align-self: stretch; }
.ct-hero-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: center 20%; }

/* ---- Three routes -------------------------------------------------------- */

.ct-routes { position: relative; padding-block: var(--s-5); background: var(--pink-wash); }

/* Two photo panels bleeding off each edge, with the cards floating over them.
   Decorative only: if either slot is empty the wash shows through instead. */
.ct-routes-bg {
  position: absolute; inset: 0;
  display: flex; justify-content: space-between;
  overflow: hidden;
}
.ct-routes-bg span { display: block; width: clamp(140px, 16vw, 260px); height: 100%; }
.ct-routes-bg img { width: 100%; height: 100%; object-fit: cover; }

.ct-cards {
  position: relative;                 /* above .ct-routes-bg */
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  align-items: start;
}

.ct-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: var(--s-4) var(--s-3);
}
.ct-card h2 { font-size: 1.4rem; margin: var(--s-2) 0 var(--s-2); }
.ct-card p { font-size: 0.9rem; color: var(--ink-soft); }
.ct-card-icon svg { width: 34px; height: 34px; color: var(--pink); }
.ct-card-intro { color: var(--ink) !important; margin-bottom: 0.6rem; }
.ct-card-close { margin-top: var(--s-3); }

.ct-check { list-style: none; margin: 0; padding: 0; }
.ct-check li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.88rem; line-height: 1.5;
  margin-bottom: 0.5rem;
}
.ct-check svg { width: 15px; height: 15px; color: var(--pink-deep); flex: none; margin-top: 0.28em; }

.ct-card-btns { display: flex; flex-direction: column; gap: 0.6rem; margin-top: var(--s-2); }
.ct-card-btns .btn,
.ct-card-btn { width: 100%; justify-content: center; }
.ct-card-btns .btn svg { width: 17px; height: 17px; }

/* Visible to logged-in editors only — see template-contact.php. */
.ct-editor-note {
  margin-top: var(--s-2);
  padding: 0.6rem 0.7rem;
  font-size: 0.75rem !important;
  line-height: 1.45;
  background: var(--muted);
  border-left: 2px solid var(--pink-cta);
}

/* Shown only when no contact route is configured at all — see the template. */
.ct-no-route {
  grid-column: 1 / -1;
  margin: var(--s-2) 0 0;
  padding: var(--s-2);
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-2);
  background: var(--white);
  border: 1px dashed var(--ink-faint);
  border-radius: 3px;
}

/* Native <details> gives the summary a focus ring in most browsers, but the
   global focus rule does not name it, so make it explicit rather than rely on
   each browser's default surviving list-style removal. */
.ct-faq-item summary:focus-visible {
  outline: 2px solid var(--pink-deep);
  outline-offset: -2px;
  border-radius: 2px;
}

/* ---- Quote --------------------------------------------------------------- */

.ct-quote {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-6) var(--gutter);
  background: var(--bg);
  overflow: hidden;
}
.ct-quote-bg { position: absolute; inset: 0 auto 0 0; width: clamp(140px, 18vw, 300px); }
.ct-quote-bg img { width: 100%; height: 100%; object-fit: cover; }

.ct-quote-copy {
  position: relative;
  margin: 0;
  text-align: center;
  justify-self: center;
  /* 46ch keeps the quote to the mockup's two lines. At 30ch it broke into five
     and stopped reading as a single spoken sentence. */
  max-width: 46ch;
}
.ct-quote-a,
.ct-quote-b {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.3vw, 1.65rem);
  line-height: 1.35;
  color: var(--fg);
  margin: 0;
}
/* The one highlighted word, in script + --pink.
   --pink is 3.5:1, which WCAG allows only for "large" text: >=24px, or >=18.66px
   when bold. So the weight is declared, not inherited (Dancing Script is only
   loaded at 600/700 — inheriting 400 would leave the browser synthesising it and
   the bold premise untrue), and 1.25em against the 1.15rem floor puts the word at
   ~23px at its very smallest. Bold and above 18.66px, so the contrast holds at
   every viewport rather than only at the top of the clamp. */
.ct-quote-b em {
  font-family: var(--f-script);
  font-style: normal;
  font-weight: 600;
  font-size: 1.25em;
  color: var(--pink);
}
.ct-quote-heart { width: 20px; height: 20px; color: var(--pink); margin: var(--s-2) auto 0; }

/* Taped polaroid — a rotated figure, no image asset needed. */
.ct-polaroid {
  position: relative;
  margin: 0;
  width: clamp(180px, 20vw, 240px);
  padding: 10px 10px 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.10);
  transform: rotate(2deg);
}
.ct-polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ct-polaroid figcaption { padding: 0.5rem 0 0.6rem; text-align: center; font-size: 1.25rem; }
/* The strip of tape. */
.ct-polaroid::before {
  content: "";
  position: absolute; top: -12px; left: 50%;
  width: 74px; height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgb(255 255 255 / 0.55);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.05);
}

/* ---- Stats --------------------------------------------------------------- */

.ct-stats { background: var(--white); padding-block: var(--s-6); }
.ct-stats-head { text-align: center; color: var(--ink-2); margin-bottom: var(--s-4); }

.ct-stat-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  justify-items: center;
}
.ct-stat-grid li {
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
  padding-inline: var(--s-3);
  border-left: 1px solid var(--border);
}
.ct-stat-grid li:first-child { border-left: 0; }

.ct-stat-value {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  color: var(--fg);
}
.ct-stat-label {
  font-family: var(--f-ui);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink-deep);
  margin-top: 0.5rem;
  text-align: center;
}

/* ---- FAQ ----------------------------------------------------------------- */

.ct-faq { background: var(--white); padding-top: 0; }
/* With no stats band above it, the FAQ needs its own top rule and breathing
   room — otherwise it butts straight into the quote band. */
.ct-faq--top { padding-top: var(--s-6); }
.ct-faq .wrap { border-top: 1px solid var(--border); padding-top: var(--s-5); }

.ct-faq-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.ct-faq-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.ct-faq-head .script { font-size: 1.2rem; margin: 0; }
.ct-faq-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0.2rem 0 0; }

.ct-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2) var(--s-3);
  align-content: start;
}

.ct-faq-item {
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  align-self: start;
}
.ct-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  min-height: 52px;                    /* touch target */
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}
.ct-faq-item summary::-webkit-details-marker { display: none; }
.ct-faq-item summary:hover { color: var(--pink-deep); }
.ct-faq-item summary svg {
  width: 17px; height: 17px; flex: none;
  color: var(--ink-soft);
  transition: transform var(--t-base) var(--e-out);
}
.ct-faq-item[open] summary svg { transform: rotate(180deg); }
.ct-faq-item[open] summary { color: var(--pink-deep); }

.ct-faq-a { padding: 0 1rem 1rem; }
.ct-faq-a p { font-size: 0.88rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---- Thanks -------------------------------------------------------------- */

.ct-thanks {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.8fr;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-6) var(--gutter);
  background: var(--pink-wash);
}

.ct-thanks-media { align-self: stretch; }
.ct-thanks-media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.ct-thanks-media:empty { display: none; }

.ct-thanks-copy { text-align: center; }
.ct-thanks-copy h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0; }
.ct-thanks-heart { width: 20px; height: 20px; color: var(--pink); margin: var(--s-2) auto var(--s-3); }
.ct-thanks-copy p { font-size: 0.92rem; color: var(--ink-soft); max-width: 44ch; margin-inline: auto; }

.ct-sign { margin-top: var(--s-4) !important; }
.ct-sign-off { display: block; font-size: 1.3rem; }
.ct-sign-name { display: block; font-size: 2.2rem; color: var(--fg); }

.ct-thanks-polaroid {
  margin: 0;
  padding: 10px 10px 12px;
  background: var(--white);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.10);
  transform: rotate(-2deg);
}
.ct-thanks-polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---- Contact page — responsive ------------------------------------------- */

@media (max-width: 1080px) {
  .ct-cards { grid-template-columns: 1fr; max-width: 620px; }
  /* The side panels only read as framing when cards sit between them. Stacked,
     they become two slivers down the edges, so they come out entirely. */
  .ct-routes-bg { display: none; }
}

@media (max-width: 900px) {
  .ct-hero { grid-template-columns: 1fr; gap: 0; }
  .ct-hero-copy { padding: var(--s-6) 1.25rem var(--s-5); max-width: none; }
  .ct-hero-head { max-width: none; }
  .ct-hero-media img { min-height: 0; aspect-ratio: 4 / 3; }

  .ct-quote { grid-template-columns: 1fr; padding-inline: 1.25rem; }
  .ct-quote-bg { display: none; }
  .ct-polaroid { justify-self: center; }

  .ct-faq-grid { grid-template-columns: 1fr; }

  .ct-thanks { grid-template-columns: 1fr; padding-inline: 1.25rem; }
  .ct-thanks-media { display: none; }         /* decorative; the copy is the point */
  .ct-thanks-polaroid { max-width: 260px; justify-self: center; }
}

@media (max-width: 560px) {
  /* Three stats stacked keep their numbers readable; side by side they shrink
     past the point of being a headline figure. */
  .ct-stat-grid { grid-auto-flow: row; gap: var(--s-3); }
  .ct-stat-grid li { border-left: 0; border-top: 1px solid var(--border); padding-top: var(--s-3); }
  .ct-stat-grid li:first-child { border-top: 0; padding-top: 0; }

  .ct-hero-btns .btn { width: 100%; justify-content: center; }
}

/* ---- Landing: built-out blocks ------------------------------------------- */

/* Hero now converts in place rather than scrolling to a form further down. */
.lp-hero-cta { margin-bottom: var(--s-2); max-width: 430px; }
.lp-hero .lp-form { max-width: 430px; }

.lp-about-title { color: var(--pink-deep); margin-bottom: var(--s-2); }

/* Her three-line credo. Display serif, hairline rule — reads as a statement,
   not a bullet list. */
.lp-credo {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0 0 0 var(--s-3);
  border-left: 2px solid var(--pink-soft);
}
.lp-credo li {
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.4;
  color: var(--fg);
}
.lp-credo li + li { margin-top: 0.4rem; }

.lp-offer-kicker {
  font-family: var(--f-script);
  font-weight: 600;
  color: var(--pink-deep);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.2;
  margin: 0 0 var(--s-1);
}

.lp-end-note {
  font-family: var(--f-ui);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink-deep);
  margin: var(--s-2) 0 0;
}

@media (max-width: 860px) {
  .lp-hero-cta, .lp-hero .lp-form { max-width: none; }
}

/* ==========================================================================
   18. SOCIALS PAGE  (template-socials.php)

   Built from the "Launa's Socials" mockup in the site's black + pink system.

   The one place this page steps outside the palette is the platform tile:
   each carries its own platform's colour, because a row of six identical ink
   squares is a row nobody can scan. That is recognition doing work, not
   decoration — the tile is the only coloured surface, every label, count and
   button around it stays in the site palette, and the tile never carries text
   that has a contrast obligation. Snapchat's yellow takes an ink glyph rather
   than white for the same reason.
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------------- */

.sc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--s-5);
  min-height: 560px;
  background: linear-gradient(180deg, var(--white) 0%, var(--pink-wash) 100%);
}

.sc-hero-copy { padding: var(--s-7) var(--s-4) var(--s-7) var(--gutter); max-width: 44rem; }
.sc-hero-copy > p { color: var(--ink-soft); max-width: 38ch; }
.sc-hero-close { color: var(--fg) !important; }

.sc-head { margin: 0; line-height: 0.94; }
.sc-head-1,
.sc-head-2 { display: block; }
.sc-head-1 {
  font-size: clamp(3rem, 7.4vw, 5.6rem);
  font-weight: 500;
  color: var(--fg);
}
.sc-head-2 {
  /* Pink is only safe this large — see the token block at the top. */
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--pink);
}

.sc-rule {
  display: block;
  width: 46px; height: 2px;
  background: var(--pink);
  margin: var(--s-3) 0 var(--s-4);
}

.sc-hero-btn { margin-top: var(--s-2); border-radius: 999px; }
.sc-hero-btn svg:first-child { width: 13px; height: 13px; }

.sc-hero-media { align-self: stretch; position: relative; min-height: 520px; }
.sc-hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ---- Profile card -------------------------------------------------------- */

.sc-card {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(260px, 40%);
  padding: var(--s-3);
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(9, 9, 11, 0.14);
}

.sc-card-avatar {
  display: block;
  width: 74px; height: 74px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--s-2);
  box-shadow: 0 0 0 2px var(--pink-soft);
}
.sc-card-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sc-card-handle {
  font-family: var(--f-ui);
  font-size: 1.02rem; font-weight: 700;
  color: var(--fg);
  margin: 0 0 var(--s-2);
}
.sc-card-handle a { color: inherit; text-decoration: none; }
.sc-card-handle a:hover { color: var(--pink-deep); }

.sc-card-stats { list-style: none; margin: 0 0 var(--s-2); padding: 0; }
.sc-card-stats li + li { margin-top: 0.55rem; }
.sc-card-value {
  display: block;
  font-family: var(--f-ui);
  font-size: 1.28rem; font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
}
.sc-card-label {
  display: block;
  font-family: var(--f-ui);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.sc-card-quote { margin: 0; padding-top: var(--s-2); border-top: 1px solid var(--border); }
.sc-card-script { font-size: 1.1rem; margin: 0 0 0.5rem; }
.sc-card-line { font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.sc-card-sign { font-size: 1rem; margin-top: 0.35rem; }

/* ---- Platform grid ------------------------------------------------------- */

.sc-connect { background: var(--white); }

/* Eyebrow flanked by hairlines, per the mockup. */
.sc-connect-head {
  display: flex; align-items: center; gap: var(--s-3);
  margin: 0 0 var(--s-4);
  color: var(--ink-2);
}
.sc-connect-head::before,
.sc-connect-head::after { content: ""; flex: 1; height: 1px; background: var(--pink-soft); }

.sc-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
/* Four or fewer cards would stretch to fill the row and stop looking like a
   set of tiles, so the grid is capped at the count it actually has. */
.sc-grid--4 { max-width: 900px; margin-inline: auto; }
.sc-grid--3 { max-width: 700px; margin-inline: auto; }
.sc-grid--2 { max-width: 470px; margin-inline: auto; }

.sc-plat {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: var(--s-3) var(--s-2);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color var(--t-fast) ease-out, box-shadow var(--t-fast) ease-out;
}
.sc-plat:hover {
  border-color: var(--pink-soft);
  box-shadow: 0 10px 26px rgba(9, 9, 11, 0.07);
}

.sc-tile {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  color: #fff;
  margin-bottom: var(--s-2);
}
.sc-tile svg { width: 28px; height: 28px; }

.sc-tile--tiktok    { background: #010101; }
.sc-tile--instagram { background: linear-gradient(45deg, #F9CE34 0%, #EE2A7B 50%, #6228D7 100%); }
.sc-tile--facebook  { background: #1877F2; }
.sc-tile--snapchat  { background: #FFFC00; color: var(--fg); }
.sc-tile--youtube   { background: #FF0000; }
.sc-tile--pinterest { background: #E60023; }

.sc-plat-name {
  font-family: var(--f-ui);
  font-size: 0.98rem; font-weight: 700;
  margin: 0 0 0.2rem;
}
.sc-plat-handle {
  font-family: var(--f-ui);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 0.35rem;
}
.sc-plat-count {
  font-family: var(--f-ui);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 var(--s-2);
}
.sc-plat-count strong { color: var(--fg); font-weight: 700; }

.sc-plat-btn {
  margin-top: auto;
  /* Tall enough that a one-line and a two-line label occupy the same box.
     Two lines of the 0.68rem label measure 59px, so 56 was not quite enough. */
  min-height: 60px;
  justify-content: center;
  text-align: center;
  padding: 0.7rem 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  border-radius: 6px;
}

/* ---- Feed sections, one per platform -------------------------------------

   Four sections in a row need a rhythm or they read as one long column, so
   they alternate between the two page surfaces. Only TikTok and Facebook hold
   a real feed; Instagram and Snapchat hold .sc-panel instead, because neither
   allows itself to be framed. Same chrome either way — the heading, the
   "view all" link and the card frame are shared, which is what makes the run
   of sections read as one system rather than as a feed plus two apologies.
   -------------------------------------------------------------------------- */

.sc-feed { padding-block: var(--s-6); }
.sc-feed--alt { background: var(--bg); }
.sc-feed:not(.sc-feed--alt) { background: var(--white); }

.sc-feed-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.sc-feed-head h2 { margin: 0; }

/* embed.js injects an iframe with no intrinsic height; without this the whole
   block collapses to 0px and the section looks broken. Gated on :has(iframe)
   so an ad-blocked visitor gets a short section, not a screen of nothing. */
.sc-embed blockquote.tiktok-embed { max-width: 780px; margin: 0 auto; }
.sc-embed:has(iframe) { min-height: 740px; }
.sc-embed blockquote.tiktok-embed:has(iframe) { min-height: 740px; }
.sc-embed iframe { width: 100% !important; min-height: 740px; border: 0; }

/* Meta's Page Plugin is hard-capped at 500px wide and reports its own height,
   so it is centred rather than stretched and overrides the TikTok sizing. */
.sc-embed--fb { display: flex; justify-content: center; }
.sc-embed--fb:has(iframe) { min-height: 0; }
.sc-embed--fb iframe {
  width: 500px !important;
  max-width: 100%;
  min-height: 700px;
  overflow: hidden;
}

.sc-embed-fallback { text-align: center; margin: var(--s-2) 0 0; }

/* ---- Profile panel (Instagram, Snapchat) ---------------------------------

   For the platforms that cannot be embedded. Deliberately built like a card
   rather than like a notice: it is the same frame as the feeds around it, so
   the section reads as a front door rather than as something that failed.
   -------------------------------------------------------------------------- */

.sc-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 780px;
  margin-inline: auto;
}
.sc-feed:not(.sc-feed--alt) .sc-panel { background: var(--bg); }

/* The Snapcode is a third child; without this it wraps onto its own row and
   leaves the panel top-heavy. */
.sc-panel:has(.sc-snapcode) { grid-template-columns: auto 1fr auto; }

.sc-panel-avatar {
  display: block;
  width: 132px; height: 132px;
  border-radius: 50%;
  overflow: hidden;
  /* The ring picks up the platform, which is the only colour on the panel. */
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--pink-soft);
}
.sc-panel-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sc-panel-avatar--instagram { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px #EE2A7B; }
.sc-panel-avatar--snapchat  { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px #F7D000; }

.sc-panel-copy { min-width: 0; }

.sc-panel-badge {
  width: 40px; height: 40px;
  border-radius: 11px;
  margin-bottom: var(--s-1);
}
.sc-panel-badge svg { width: 20px; height: 20px; }

.sc-panel-handle {
  font-family: var(--f-ui);
  font-size: 1.12rem; font-weight: 700;
  color: var(--fg);
  margin: 0 0 0.2rem;
}
.sc-panel-count {
  font-family: var(--f-ui);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}
.sc-panel-count strong { color: var(--fg); font-weight: 700; }

.sc-panel-line { font-size: 0.94rem; color: var(--ink-soft); margin: 0 0 var(--s-3); max-width: 46ch; }

.sc-panel-btn { border-radius: 999px; }

.sc-snapcode { margin: 0; text-align: center; }
.sc-snapcode img { width: 116px; height: 116px; border-radius: 14px; }
.sc-snapcode figcaption {
  font-family: var(--f-ui);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* ---- Closing band -------------------------------------------------------- */

.sc-band-wrap { padding-bottom: var(--s-6); }

.sc-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--ink);
  border-radius: 20px;
}

.sc-band-icon {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--pink);
}
.sc-band-icon svg { width: 26px; height: 26px; }

.sc-band-copy h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 0.35rem; }
.sc-band-copy p { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; margin: 0; max-width: 46ch; }

.sc-band-cta { text-align: center; }
.sc-band-cta .btn { border-radius: 999px; }
.sc-band-note {
  font-family: var(--f-ui);
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0.7rem 0 0;
}

/* ---- Sign-off ------------------------------------------------------------ */

.sc-signoff {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  margin: 0 0 var(--s-6);
}
.sc-signoff .script { font-size: 1.5rem; }
.sc-signoff-heart { width: 15px; height: 15px; color: var(--pink); }
.sc-signoff::before,
.sc-signoff::after {
  content: "";
  width: clamp(60px, 18vw, 220px);
  height: 1px;
  background: var(--pink-soft);
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
  .sc-card { width: min(230px, 46%); padding: var(--s-2); }
  .sc-card-avatar { width: 58px; height: 58px; }
  .sc-band { grid-template-columns: auto 1fr; }
  .sc-band-cta { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 860px) {
  .sc-hero { grid-template-columns: 1fr; }
  .sc-hero-copy { padding: var(--s-6) 1.25rem var(--s-4); }
  .sc-hero-media { display: block; align-self: start; min-height: 0; height: auto; }
  .sc-hero-media > img { height: auto; max-height: 70vh; }

  /* Stacked, the card stops overlapping the photo and simply follows it —
     an overlay on a short viewport covers the face it is sitting on. */
  .sc-card {
    position: static;
    transform: none;
    width: min(100% - 2.5rem, 420px);
    margin: calc(-1 * var(--s-5)) auto var(--s-4);
  }
  .sc-card-stats { display: flex; gap: var(--s-4); }
  .sc-card-stats li + li { margin-top: 0; }

  .sc-embed:has(iframe),
  .sc-embed blockquote.tiktok-embed:has(iframe),
  .sc-embed iframe { min-height: 640px; }

  /* Meta's Page Plugin renders at whatever width the URL asked for and ignores
     adapt_container_width unless you also load their JS SDK — which this site
     deliberately does not. At 500px it is wider than a phone, so it scrolls
     inside its own container. Clipping it with scrolling="no" would cut the
     right edge off every post image, which is what it did before this. */
  .sc-embed--fb {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sc-embed--fb:has(iframe) { min-height: 0; }
  .sc-embed--fb iframe { width: 500px !important; max-width: none; min-height: 700px; }

  .sc-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--s-3); }
  .sc-panel-badge { margin-inline: auto; }
  .sc-panel-line { max-width: none; }
  .sc-panel-avatar { width: 104px; height: 104px; }
  .sc-band { grid-template-columns: 1fr; text-align: left; }
  .sc-signoff::before, .sc-signoff::after { width: clamp(30px, 12vw, 90px); }
}

/* Four platform links in the header (there used to be none) push the icon row
   past the wrap on a narrow phone. Shrinking the targets would take them under
   the 44px minimum, so the row is dropped instead — the nav still carries
   "Launa's Socials", which is the page these icons point at anyway. */
@media (max-width: 520px) {
  .site-header .social { display: none; }
}

/* ==========================================================================
   20. POST REACTIONS — the heart-up / heart-down vote

   Sits between the article and the conversation, inside the 720px measure, so
   the whole tail of a post reads as one column.

   The "no" heart is the same heart turned upside down rather than a broken
   heart or a thumbs-down: on a personal essay a shattered heart reads as an
   insult aimed at her, not as feedback on the piece. It is also the same SVG,
   so the two controls stay a matched pair.
   ========================================================================== */

.react {
  margin-top: var(--s-6);
  padding-block: var(--s-4);
  border-top: 1px solid var(--border);
  text-align: center;
}

.react-ask {
  font-family: var(--f-ui);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: var(--s-2);
}

.react-btns {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: var(--s-2);
}

.react-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px;                     /* touch target */
  padding: 0.7rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--t-fast) ease-out,
              background var(--t-fast) ease-out,
              color var(--t-fast) ease-out;
}

.react-ico { display: inline-flex; color: var(--ink-faint); transition: color var(--t-fast) ease-out; }
.react-ico svg { width: 17px; height: 17px; display: block; }
.react-ico--flip svg { transform: rotate(180deg); }

.react-count {
  min-width: 1.6em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--muted);
  font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transition: background var(--t-fast) ease-out, color var(--t-fast) ease-out;
}

.react-btn:hover { border-color: var(--pink-soft); }
.react-btn:hover .react-ico { color: var(--pink-cta); }

/* Chosen. The two states are deliberately different colours, not the same
   colour mirrored: "loved it" is the brand pink, "not for me" stays ink. A
   pink downvote would read as another kind of enthusiasm at a glance. */
.react-btn.is-on { border-color: var(--pink-soft); background: var(--pink-wash); color: var(--pink-deep); }
.react-btn.is-on .react-ico { color: var(--pink-cta); }
.react-btn.is-on .react-count { background: var(--pink-soft); color: var(--pink-deep); }

.react-btn--down.is-on { border-color: var(--ink-faint); background: var(--muted); color: var(--ink); }
.react-btn--down.is-on .react-ico { color: var(--ink-2); }
.react-btn--down.is-on .react-count { background: #D6DCE3; color: var(--ink); }

.react-note {
  min-height: 1.2em;                     /* reserved, so a reply never shifts the page */
  margin-top: var(--s-2);
  font-family: var(--f-ui);
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .react-btn:active { transform: scale(0.97); }
}

/* ==========================================================================
   21. COMMENTS — threaded conversation

   No Gravatar anywhere: a monogram is drawn in CSS instead. That is a privacy
   decision (gravatar.com would see every reader's IP, and the privacy policy
   names exactly three third parties today) — see inc/comments.php.
   ========================================================================== */

.cmt {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}

.cmt-title {
  font-size: 1.5rem;
  margin-bottom: var(--s-4);
}

.cmt-list { list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.cmt-list .children { list-style: none; margin: var(--s-3) 0 0; padding: 0 0 0 var(--s-3); }

/* The hairline is what makes a reply read as a reply. It is on the nested list
   rather than the item so a run of replies shares one continuous line. */
.cmt-list .children { border-left: 1px solid var(--border); }

.cmt-item + .cmt-item { margin-top: var(--s-3); }
.cmt-list > .cmt-item + .cmt-item { margin-top: var(--s-4); }

.cmt-body {
  padding: var(--s-3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.cmt-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: var(--s-2); }

.cmt-mono {
  display: grid; place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pink-wash);
  color: var(--pink-deep);
  font-family: var(--f-ui);
  font-size: 0.9rem; font-weight: 700;
  line-height: 1;
}

.cmt-author {
  font-family: var(--f-ui);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin: 0;
}

.cmt-date { margin: 0; font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.cmt-date a { color: var(--ink-soft); text-decoration: none; }
.cmt-date a:hover { color: var(--pink-deep); }

.cmt-text { color: var(--ink); }
.cmt-text > * + * { margin-top: var(--s-2); }

.cmt-pending {
  margin-bottom: var(--s-2);
  padding: 0.5rem 0.8rem;
  background: var(--pink-wash);
  border-radius: 8px;
  font-family: var(--f-ui);
  font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--pink-deep);
}

.cmt-actions { margin-top: var(--s-2); }
.cmt-actions .comment-reply-link {
  font-family: var(--f-ui);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink-deep); text-decoration: none;
}
.cmt-actions .comment-reply-link:hover { color: var(--fg); }

.cmt-closed, .cmt-note {
  font-family: var(--f-ui);
  font-size: 0.75rem; letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* ---- The form ------------------------------------------------------------ */

.cmt-form-title { font-size: 1.3rem; margin-bottom: var(--s-2); }
.cmt-cancel { font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.cmt-cancel a { color: var(--pink-deep); text-decoration: none; }

.cmt-form { display: grid; gap: var(--s-2); grid-template-columns: 1fr 1fr; }
.cmt-form .cmt-note,
.cmt-form-title,
.cmt-field--full,
.cmt-field--check,
.cmt-form .form-submit { grid-column: 1 / -1; }

.cmt-field { margin: 0; }
.cmt-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--f-ui);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.cmt-req { color: var(--pink-deep); }

.cmt-field input[type="text"],
.cmt-field input[type="email"],
.cmt-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color var(--t-fast) ease-out;
}
.cmt-field textarea { resize: vertical; min-height: 150px; }
.cmt-field input:focus, .cmt-field textarea:focus { border-color: var(--pink-soft); }

.cmt-field--check {
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.cmt-field--check input { margin-top: 0.15rem; flex: none; width: 16px; height: 16px; accent-color: var(--pink-cta); }
.cmt-field--check label {
  margin: 0;
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.01em; text-transform: none;
  color: var(--ink-soft);
  line-height: 1.5;
}

.cmt-form .form-submit { margin: 0; }

@media (max-width: 620px) {
  .cmt-form { grid-template-columns: 1fr; }
  .cmt-body { padding: var(--s-2); }
  .cmt-list .children { padding-left: var(--s-2); }
  .react-btn { padding: 0.7rem 1rem; font-size: 0.68rem; }
}

/* ---- Owning your own comment: edit / delete ------------------------------ */

.cmt-own {
  padding: 0;
  background: none; border: 0;
  font-family: var(--f-ui);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color var(--t-fast) ease-out;
}
.cmt-own:hover { color: var(--fg); }
.cmt-own--danger:hover { color: var(--pink-deep); }
.cmt-own[hidden] { display: none; }

/* The reply link and the owner controls share one row, separated by a hairline
   dot so "Reply" (everyone) reads as a different kind of thing from "Edit /
   Delete" (only yours). */
.cmt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }

/* The separator must skip hidden controls. `hidden` elements are still
   siblings, so a plain `* + *` put a leading "· " in front of Reply on every
   comment that is not yours — which is most of them. Requiring BOTH sides to be
   visible gets all four states right: no controls, delete only (edit window
   closed), both, and the removed shell where they are not rendered at all. */
.cmt-actions > *:not([hidden]) + *:not([hidden])::before {
  content: "·";
  margin-right: 0.9rem;
  color: var(--ink-faint);
}

.cmt-edited {
  margin-left: 0.4rem;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
}

.cmt-hint {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--f-ui);
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.01em; text-transform: none;
  color: var(--ink-soft);
  line-height: 1.5;
}

.cmt-editor { margin-top: var(--s-2); }
.cmt-editor textarea {
  width: 100%;
  min-height: 130px;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--pink-soft);
  border-radius: 8px;
  font-family: var(--f-body); font-size: 0.95rem;
  color: var(--ink);
  resize: vertical;
}
.cmt-editor-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  margin-top: var(--s-2);
}
.cmt-editor-actions .btn { min-height: 40px; padding: 0.6rem 1.3rem; font-size: 0.7rem; }

.cmt-msg {
  margin-bottom: var(--s-2);
  font-family: var(--f-ui);
  font-size: 0.72rem; letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.cmt-msg.is-error { color: var(--pink-deep); }

/* A comment emptied by its author. It keeps its place so the replies under it
   still read as replies to something — but it should look like an absence,
   not like a comment. */
.cmt-item.is-removed > .cmt-body { background: transparent; border-style: dashed; }
.cmt-item.is-removed .cmt-text { color: var(--ink-faint); font-style: italic; }
.cmt-item.is-removed .cmt-mono { background: var(--muted); color: var(--ink-faint); }
.cmt-item.is-removed .cmt-author { color: var(--ink-faint); }

/* ---- Hearting a comment -------------------------------------------------- */

.cmt-heart {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0; margin: 0;
  background: none; border: 0;
  font-family: var(--f-ui);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: color var(--t-fast) ease-out;
}
.cmt-heart svg { width: 14px; height: 14px; color: var(--ink-faint); transition: color var(--t-fast) ease-out, transform var(--t-fast) var(--e-out); }
.cmt-heart:hover svg { color: var(--pink-cta); }
.cmt-heart.is-on svg { color: var(--pink-cta); }
.cmt-heart.is-on { color: var(--pink-deep); }

/* The count is empty at zero rather than showing "0" — a wall of zeroes under
   every comment reads as a room nobody is in. The heart alone is the invite. */
.cmt-heart-n:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .cmt-heart:active svg { transform: scale(0.85); }
}
