/* =====================================================================
   La Dama Erudita — theme styles v0.1.0
   The mockup's design system (lde-home-mockup-v3.html) translated to
   WordPress. Typography, palette, spacing and layout come from
   theme.json presets; this file carries the moods, the glass, the
   Lady's formation machinery and the experience choreography.

   GLASS, honestly: surfaces use real backdrop-filter blur where the
   browser supports it (all evergreens). The @supports fallback FAKES
   the glass with a near-opaque cream/ink fill — legible, just not
   translucent. Documented here so nobody chases a "broken blur".
   ================================================================== */

:root {
  --lde-cream: var(--wp--preset--color--base, #F7F3EC);
  --lde-ink: var(--wp--preset--color--contrast, #1C1916);
  --lde-lip: var(--wp--preset--color--accent, #8C3130);
  --lde-cream-dark: var(--wp--preset--color--cream-on-dark, #F4EFE6);
  --lde-serif: var(--wp--preset--font-family--playfair, Georgia, serif);
  --lde-body: var(--wp--preset--font-family--lora, Georgia, serif);
  --lde-sans: var(--wp--preset--font-family--inter, Arial, sans-serif);
  --lde-fg: var(--lde-ink);
  --lde-glass-bg: linear-gradient(180deg,
      rgba(250, 246, 238, .22) 0%, rgba(250, 246, 238, .34) 100%);
  --lde-glass-border: rgba(255, 255, 255, .62);
  --lde-glass-shadow: 0 18px 40px rgba(28, 25, 22, .15),
      inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.lde-dark {
  --lde-fg: var(--lde-cream-dark);
  --lde-glass-bg: linear-gradient(180deg,
      rgba(26, 18, 22, .3) 0%, rgba(26, 18, 22, .46) 100%);
  --lde-glass-border: rgba(255, 255, 255, .16);
  --lde-glass-shadow: 0 18px 40px rgba(0, 0, 0, .3),
      inset 0 1px 0 rgba(255, 255, 255, .12);
}
body { color: var(--lde-fg); }

/* ------------------------------------------------------- mood layers
   One fixed gradient field per mood, painted on body::before so it
   sits under everything and costs one layer. Archives get the full
   mood; singles get the pale tint of their primary pillar. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background: linear-gradient(162deg, #FAF6EF 0%, #F7F3EC 46%, #EFE7D9 100%);
}
body.lde-mood-home::before { background:
  radial-gradient(60% 50% at 12% 14%, rgba(140,49,48,.055), transparent 65%),
  radial-gradient(55% 46% at 80% 26%, rgba(255,252,244,.85), transparent 68%),
  radial-gradient(70% 60% at 88% 92%, rgba(169,118,31,.085), transparent 60%),
  linear-gradient(162deg, #FAF6EF 0%, #F7F3EC 46%, #EFE7D9 100%); }
body.lde-mood-bienestar::before { background:
  radial-gradient(55% 44% at 72% 20%, rgba(255,253,242,.9), transparent 66%),
  radial-gradient(70% 58% at 12% 82%, rgba(74,106,74,.30), transparent 64%),
  radial-gradient(46% 40% at 92% 66%, rgba(122,150,116,.20), transparent 60%),
  linear-gradient(163deg, #F4F3E7 0%, #E8EDDF 52%, #D5DFCE 100%); }
body.lde-mood-salud::before { background:
  radial-gradient(52% 42% at 74% 22%, rgba(216,230,242,.26), transparent 66%),
  radial-gradient(64% 56% at 8% 88%, rgba(10,23,36,.65), transparent 70%),
  radial-gradient(40% 34% at 92% 74%, rgba(111,147,176,.24), transparent 60%),
  linear-gradient(161deg, #33557B 0%, #274C71 48%, #152A40 100%); }
body.lde-mood-belleza::before { background:
  radial-gradient(46% 40% at 72% 24%, rgba(216,178,198,.14), transparent 66%),
  radial-gradient(62% 56% at 10% 88%, rgba(10,5,9,.66), transparent 70%),
  radial-gradient(38% 32% at 90% 70%, rgba(140,49,48,.14), transparent 60%),
  linear-gradient(161deg, #44273A 0%, #33202E 50%, #190E16 100%); }
body.lde-mood-cocina::before { background:
  radial-gradient(50% 42% at 70% 22%, rgba(255,246,220,.9), transparent 66%),
  radial-gradient(64% 56% at 10% 86%, rgba(169,118,31,.32), transparent 66%),
  radial-gradient(40% 36% at 92% 72%, rgba(200,145,61,.22), transparent 58%),
  linear-gradient(161deg, #F5EAD2 0%, #EEDDBB 52%, #DFC28A 100%); }
body.lde-mood-moda::before { background:
  radial-gradient(48% 40% at 72% 22%, rgba(242,208,192,.18), transparent 66%),
  radial-gradient(62% 56% at 10% 88%, rgba(28,6,6,.66), transparent 70%),
  radial-gradient(38% 34% at 92% 72%, rgba(196,110,100,.16), transparent 58%),
  linear-gradient(161deg, #6E2827 0%, #7C2B2A 42%, #421515 100%); }
/* the two list pages: Lo último = neutral cream with a soft espresso
   mood; Imprescindibles = burgundy-tinted room */
body.lde-mood-ultimo::before { background:
  radial-gradient(55% 46% at 78% 18%, rgba(255, 252, 244, .9), transparent 66%),
  radial-gradient(64% 54% at 8% 90%, rgba(28, 25, 22, .12), transparent 64%),
  linear-gradient(162deg, #F9F5EE 0%, #F1EBDF 52%, #E3DACA 100%); }
body.lde-mood-imprescindibles::before { background:
  radial-gradient(55% 46% at 76% 18%, rgba(255, 250, 244, .9), transparent 66%),
  radial-gradient(66% 56% at 8% 88%, rgba(140, 49, 48, .2), transparent 64%),
  radial-gradient(42% 36% at 92% 70%, rgba(140, 49, 48, .1), transparent 58%),
  linear-gradient(162deg, #F8F1EB 0%, #F1E1DA 52%, #E6CCC3 100%); }
/* single-post tints: the pillar as a pale wash under a cream page */
body.lde-tint-bienestar::before { background:
  radial-gradient(70% 55% at 10% 0%, rgba(74,106,74,.14), transparent 60%),
  linear-gradient(162deg, #FAF6EF 0%, #F4F3E7 50%, #EBEFE2 100%); }
body.lde-tint-salud::before { background:
  radial-gradient(70% 55% at 10% 0%, rgba(43,82,120,.12), transparent 60%),
  linear-gradient(162deg, #FAF6EF 0%, #F1F2F0 50%, #E3E9EE 100%); }
body.lde-tint-belleza::before { background:
  radial-gradient(70% 55% at 10% 0%, rgba(58,34,51,.12), transparent 60%),
  linear-gradient(162deg, #FAF6EF 0%, #F4EFF1 50%, #ECE2E8 100%); }
body.lde-tint-cocina::before { background:
  radial-gradient(70% 55% at 10% 0%, rgba(169,118,31,.13), transparent 60%),
  linear-gradient(162deg, #FAF6EF 0%, #F6EEDC 50%, #F0E3C6 100%); }
body.lde-tint-moda::before { background:
  radial-gradient(70% 55% at 10% 0%, rgba(140,49,48,.12), transparent 60%),
  linear-gradient(162deg, #FAF6EF 0%, #F5EBE7 50%, #EEDDD7 100%); }

/* ---------------------------------------------------------- skip link */
.lde-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 20px; background: var(--lde-ink); color: var(--lde-cream);
  font: 600 13px var(--lde-sans); text-decoration: none;
}
.lde-skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------ the wordmark */
.lde-homemark {
  position: absolute; top: 22px; left: clamp(20px, 4.5vw, 64px);
  z-index: 12; padding: 4px 0; text-decoration: none;
  font-family: var(--lde-serif); font-size: 14px; letter-spacing: .44em;
  text-transform: uppercase; font-weight: 500; color: var(--lde-fg);
}

/* ------------------------------------- the two quick buttons (glass)
   «Lo último» + «Imprescindibles»: standalone top-right on the home
   threshold; the RIGHT END of the pill header everywhere else — the
   cards fly up to JOIN them. */
.lde-qbtn {
  border-radius: 99px; padding: 9px 18px; text-decoration: none;
  border: 1px solid var(--lde-glass-border);
  background: var(--lde-glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 8px 22px rgba(28, 25, 22, .1);
  color: var(--lde-fg); font: 600 10.5px var(--lde-sans);
  letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.lde-qbtn:hover, .lde-qbtn:focus-visible {
  color: var(--lde-fg); border-color: rgba(140, 49, 48, .5);
}
.lde-qbtn.is-active {
  border-color: rgba(140, 49, 48, .5);
  background: rgba(140, 49, 48, .08);
}
body.lde-dark .lde-qbtn.is-active {
  border-color: rgba(221, 164, 155, .55);
  background: rgba(221, 164, 155, .1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lde-qbtn { background: rgba(250, 246, 238, .94); }
  body.lde-dark .lde-qbtn { background: rgba(24, 16, 20, .94); }
}
.lde-quicknav {
  position: absolute; top: 18px; right: clamp(20px, 4.5vw, 64px);
  z-index: 12; display: flex; gap: 10px;
}
.lde-pill-sep {
  width: 1px; align-self: stretch; margin: 4px 6px;
  background: rgba(28, 25, 22, .14);
}
body.lde-dark .lde-pill-sep { background: rgba(247, 243, 236, .18); }

/* --------------------------------------------------- the glass header */
header.lde-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 243, 236, .5);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  border-bottom: 1px solid rgba(28, 25, 22, .08);
}
body.lde-dark header.lde-header {
  background: rgba(20, 14, 18, .52);
  border-bottom-color: rgba(247, 243, 236, .14);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* faked glass: near-opaque fill, no blur */
  header.lde-header { background: rgba(247, 243, 236, .96); }
  body.lde-dark header.lde-header { background: rgba(20, 14, 18, .96); }
}
.lde-header-in {
  max-width: 1560px; margin: 0 auto;
  padding: 9px clamp(16px, 3.5vw, 48px);
}
.lde-brandmark {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--lde-fg);
}
.lde-logo svg { display: block; height: 34px; width: 34px; }
.lde-logo svg path { fill: var(--lde-fg); }
.lde-logo svg path[fill="#8C3130"] { fill: var(--lde-lip); }
/* once-per-page: on category archives the room figure is the Lady's
   appearance — the header logo yields (wordmark stays). */
body.lde-mood-bienestar .lde-logo, body.lde-mood-salud .lde-logo,
body.lde-mood-belleza .lde-logo, body.lde-mood-cocina .lde-logo,
body.lde-mood-moda .lde-logo { display: none; }
.lde-wordmark {
  font-family: var(--lde-serif); font-size: 13px; letter-spacing: .34em;
  text-transform: uppercase; font-weight: 500; white-space: nowrap;
}
.lde-pills { display: flex; gap: 8px; }
.lde-pill {
  border-radius: 99px; padding: 9px 18px; text-decoration: none;
  border: 1px solid transparent; color: var(--lde-fg);
  font: 600 10.5px var(--lde-sans); letter-spacing: .2em;
  text-transform: uppercase; opacity: .82; white-space: nowrap;
  transition: opacity .18s, border-color .25s, background .25s;
}
.lde-pill:hover, .lde-pill:focus-visible { opacity: 1; color: var(--lde-fg); }
.lde-pill.is-active {
  opacity: 1;
  border-color: rgba(140, 49, 48, .5);
  background: rgba(140, 49, 48, .08);
}
body.lde-dark .lde-pill.is-active {
  border-color: rgba(221, 164, 155, .55);
  background: rgba(221, 164, 155, .1);
}

/* -------------------------------------------------------- glass cards */
.lde-glass {
  border-radius: 14px; padding: 24px 28px;
  background: var(--lde-glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--lde-glass-border);
  box-shadow: var(--lde-glass-shadow);
}
.lde-glass-soft {
  border-radius: 14px; padding: 24px 26px 20px;
  background: rgba(250, 246, 238, .6);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 14px 34px rgba(28, 25, 22, .1);
}
body.lde-dark .lde-glass-soft {
  background: rgba(24, 16, 20, .5);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lde-glass, .lde-glass-soft { background: rgba(250, 246, 238, .94); }
  body.lde-dark .lde-glass, body.lde-dark .lde-glass-soft {
    background: rgba(24, 16, 20, .94); }
}

/* ------------------------------------------- the Lady: stage + strokes
   Formation machinery (mockup v3 law): each stroke is a filled path
   revealed by a mask whose centerline stroke draws itself
   (stroke-dashoffset). Timings per stroke live as custom props in the
   generated partials (parts/svg/*). No JS => strokes stand revealed. */
.lde-stage { position: absolute; pointer-events: none; z-index: 1; }
.lde-stage svg.lde-pose {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
}
.lde-aura {
  position: absolute; inset: -20% -42%; pointer-events: none;
  background: radial-gradient(50% 46% at 50% 42%,
    rgba(249, 245, 237, .85) 0%, rgba(249, 245, 237, .6) 32%,
    rgba(249, 245, 237, .32) 55%, rgba(249, 245, 237, .12) 72%,
    rgba(249, 245, 237, 0) 88%);
  animation: lde-breathe 9s ease-in-out infinite alternate;
}
body.lde-dark .lde-aura { opacity: .8; }
@keyframes lde-breathe { from { transform: scale(1) } to { transform: scale(1.05) } }
.lde-pose .rv {
  fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len); stroke-dashoffset: 0;
}
/* JS present: start hidden, draw on .on (delay/duration per stroke) */
html.lde-js .lde-pose .rv { stroke-dashoffset: var(--len); }
html.lde-js .lde-pose.on .rv {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset calc(var(--ddur) * var(--k, 1))
    cubic-bezier(.55, .06, .35, .96) calc(var(--dd) * var(--k, 1));
}
.lde-first { --k: 1.9; }
/* painterly washes + artefact blooms (hero partial) */
.lde-pose .fwash, .lde-pose .fbloom { opacity: 1; }
html.lde-js .lde-pose .fwash { opacity: 0; transition: opacity .22s ease; }
html.lde-js .lde-pose .fbloom {
  opacity: 0; transform: scale(.55);
  transform-box: fill-box; transform-origin: center;
  transition: opacity .2s ease, transform .2s ease;
}
html.lde-js .lde-pose.on .fwash {
  opacity: 1;
  transition: opacity .7s ease-out calc(var(--wash, 400ms) * var(--k, 1));
}
html.lde-js .lde-pose.on .fbloom {
  opacity: 1; transform: scale(1);
  transition: opacity .34s cubic-bezier(.2, .7, .4, 1.2) calc(var(--bd, 0ms) * var(--k, 1)),
    transform .34s cubic-bezier(.2, .7, .4, 1.2) calc(var(--bd, 0ms) * var(--k, 1));
}
/* artefact depth drift (three planes, generated into the partials) */
.lde-drift-a { animation: lde-driftA 120s ease-in-out infinite alternate; }
.lde-drift-b { animation: lde-driftB 90s ease-in-out infinite alternate; }
.lde-drift-c { animation: lde-driftC 70s ease-in-out infinite alternate; }
@keyframes lde-driftA { from { transform: translate(0, 0) } to { transform: translate(26px, -18px) } }
@keyframes lde-driftB { from { transform: translate(0, 0) } to { transform: translate(-16px, 12px) } }
@keyframes lde-driftC { from { transform: translate(0, 0) } to { transform: translate(8px, -7px) } }

/* --------------------------------------------------------- front hero */
.lde-hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column;
  padding: clamp(64px, 9vh, 110px) clamp(20px, 4.5vw, 64px) 30px;
  max-width: 1560px; margin: 0 auto;
}
.lde-stage-hero {
  left: 2.5%; top: 6vh; height: 58vh; aspect-ratio: 400 / 396;
}
.lde-hero-copy {
  position: relative; z-index: 2; margin-left: auto;
  width: min(600px, 47%);
}
.lde-eyebrow {
  font: 600 11px var(--lde-sans); letter-spacing: .34em;
  text-transform: uppercase; color: var(--lde-fg); opacity: .62;
  margin: 0 0 18px;
}
.lde-hero-title {
  margin: 0 0 14px; letter-spacing: .005em; line-height: 1.06;
}
.lde-hero-title em { font-style: italic; font-weight: 400; }
.lde-tagline {
  font-family: var(--lde-serif); font-style: italic;
  font-size: clamp(16px, 1.35vw, 19px); margin: 0 0 22px;
  color: var(--lde-fg); opacity: .8;
}
.lde-intro { max-width: 520px; }
.lde-intro p { font-size: 14.5px; line-height: 1.6; margin: 0 0 12px; }
.lde-cta a {
  display: inline-block; font: 600 11.5px var(--lde-sans);
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--lde-lip); text-decoration: none;
  border-bottom: 1px solid rgba(140, 49, 48, .4); padding-bottom: 3px;
  transition: border-color .3s;
}
.lde-cta a:hover { border-color: var(--lde-lip); }
body.lde-dark .lde-cta a { color: #DDA49B; border-bottom-color: rgba(221, 164, 155, .4); }

/* -------------------------------------------------------- portal cards */
.lde-portal-row {
  position: relative; z-index: 3; margin-top: auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.4vw, 18px); scroll-margin-top: 110px;
}
.lde-portal {
  position: relative; border-radius: 18px; padding: 22px 22px 16px;
  overflow: hidden; isolation: isolate; text-decoration: none;
  display: flex; flex-direction: column; min-height: 238px;
  border: 1px solid var(--lde-glass-border);
  background: var(--lde-glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: var(--lde-glass-shadow);
  transition: transform .45s cubic-bezier(.2, .8, .25, 1), box-shadow .45s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lde-portal { background: rgba(250, 246, 238, .94); }
}
.lde-portal:hover, .lde-portal:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(28, 25, 22, .2),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}
.lde-portal-mood { position: absolute; inset: 0; z-index: -1; }
/* ------------------------------------------- featured-image card body
   The pillar's DEEP colour holds the top of the frame and bleeds down
   over the featured image to ~5% at the foot — colour presence across
   the whole card, image visible through it. A state without an image
   (the current majority) falls back to the pure mood-gradient card:
   its .lde-pimg-none layer is simply transparent. */
.lde-p-bienestar { --lde-pc: 62, 92, 62; }
.lde-p-salud { --lde-pc: 43, 82, 120; }
.lde-p-belleza { --lde-pc: 58, 34, 51; }
.lde-p-cocina { --lde-pc: 124, 85, 18; }
.lde-p-moda { --lde-pc: 140, 49, 48; }
.lde-portal-imgs { position: absolute; inset: 0; z-index: -1; }
.lde-pimg {
  position: absolute; inset: 0; opacity: 0; transition: opacity .95s ease;
}
.lde-pimg.is-on { opacity: 1; }
.lde-pimg img {
  position: absolute; left: 0; right: 0; bottom: 0; top: 38%;
  width: 100%; height: 62%; object-fit: cover;
}
.lde-pimg:not(.lde-pimg-none)::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgb(var(--lde-pc)) 0%, rgba(var(--lde-pc), .88) 30%,
    rgba(var(--lde-pc), .38) 62%, rgba(var(--lde-pc), .05) 100%);
}
/* text over the colour-held frame: cream registers (AA on all five
   deep pillar colours), a whisper of shadow where the title crosses
   into the image zone */
.lde-pstate.has-img .lde-plabel { color: rgba(247, 243, 236, .92); }
.lde-pstate.has-img .lde-ptitle {
  color: #F7F3EC; text-shadow: 0 1px 14px rgba(0, 0, 0, .3);
}
.lde-pstate.has-img .lde-pstand {
  color: rgba(247, 243, 236, .88); text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.lde-portal-name, .lde-portal-count { transition: color .45s ease; }
.lde-portal.lde-has-img .lde-portal-name { color: #F7F3EC; }
.lde-portal.lde-has-img .lde-portal-count { color: rgba(247, 243, 236, .72); }
.lde-p-bienestar .lde-portal-mood { background: linear-gradient(178deg,
  rgba(74, 106, 74, .42) 0%, rgba(74, 106, 74, .1) 38%, transparent 64%); }
.lde-p-salud .lde-portal-mood { background: linear-gradient(178deg,
  rgba(43, 82, 120, .46) 0%, rgba(43, 82, 120, .11) 38%, transparent 64%); }
.lde-p-belleza .lde-portal-mood { background: linear-gradient(178deg,
  rgba(58, 34, 51, .5) 0%, rgba(58, 34, 51, .12) 38%, transparent 64%); }
.lde-p-cocina .lde-portal-mood { background: linear-gradient(178deg,
  rgba(169, 118, 31, .4) 0%, rgba(169, 118, 31, .1) 38%, transparent 64%); }
.lde-p-moda .lde-portal-mood { background: linear-gradient(178deg,
  rgba(140, 49, 48, .42) 0%, rgba(140, 49, 48, .1) 38%, transparent 64%); }
.lde-portal-name {
  font-family: var(--lde-serif); font-size: 20px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--lde-ink);
}
.lde-portal-states { position: relative; flex: 1; margin: 14px 0 12px; min-height: 112px; }
.lde-pstate {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  gap: 7px; opacity: 0; transition: opacity .95s ease;
}
.lde-pstate.is-on { opacity: 1; }
.lde-plabel {
  font: 700 9.5px var(--lde-sans); letter-spacing: .26em;
  text-transform: uppercase; color: var(--lde-lip);
}
.lde-ptitle {
  font-family: var(--lde-serif); font-weight: 500; font-size: 16.5px;
  line-height: 1.3; color: var(--lde-ink);
}
.lde-pstand {
  font-family: var(--lde-serif); font-style: italic; font-size: 12.5px;
  line-height: 1.45; color: rgba(28, 25, 22, .75);
}
.lde-portal-count {
  margin-top: auto; font: 600 10px var(--lde-sans); letter-spacing: .24em;
  text-transform: uppercase; color: rgba(28, 25, 22, .5);
}

/* ------------------------------------------------------- article bands */
.lde-band { padding: clamp(28px, 4vh, 52px) clamp(20px, 4.5vw, 64px); }
.lde-bandsub {
  font-family: var(--lde-serif); font-style: italic; font-size: 15px;
  color: var(--lde-fg); opacity: .6; margin: 0 0 26px;
}
.lde-cards .wp-block-post-template { gap: clamp(14px, 1.8vw, 24px); }
.lde-card-tag, .lde-card-tag a {
  font: 700 10.5px var(--lde-sans); letter-spacing: .26em;
  text-transform: uppercase; color: var(--lde-lip); text-decoration: none;
}
body.lde-dark .lde-card-tag, body.lde-dark .lde-card-tag a { color: #DDA49B; }
.lde-card .wp-block-post-title {
  font-size: 20px; line-height: 1.28; margin: 10px 0;
}
.lde-card .wp-block-post-title a {
  color: var(--lde-ink); text-decoration: none;
}
body.lde-dark .lde-card .wp-block-post-title a { color: var(--lde-cream-dark); }
.lde-card .wp-block-post-title a:hover { color: var(--lde-lip); }
.lde-card .wp-block-post-excerpt {
  font-size: 13.5px; line-height: 1.6; color: rgba(28, 25, 22, .8);
}
body.lde-dark .lde-card .wp-block-post-excerpt { color: rgba(244, 239, 230, .8); }
.lde-card-meta, .lde-card .wp-block-post-date {
  font: 600 10.5px var(--lde-sans); letter-spacing: .18em;
  text-transform: uppercase; color: rgba(28, 25, 22, .5);
}
body.lde-dark .lde-card .wp-block-post-date { color: rgba(244, 239, 230, .5); }

/* --------------------------------------------------------- the rooms */
.lde-room-hero {
  position: relative; min-height: 72vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vh, 90px) clamp(20px, 4.5vw, 64px) 30px;
  max-width: 1560px; margin: 0 auto;
}
.lde-stage-room { left: 6%; top: 8vh; height: 66vh; aspect-ratio: 2 / 5; }
.lde-room-copy { position: relative; z-index: 2; margin-left: auto; width: min(600px, 47%); }
.lde-room-title, .wp-block-query-title {
  font-family: var(--lde-serif); font-weight: 400;
  font-size: var(--wp--preset--font-size--xx-large); margin: 0 0 14px;
  color: var(--lde-fg);
}
.lde-room-copy .wp-block-term-description {
  font-family: var(--lde-serif); font-style: italic;
  font-size: clamp(16px, 1.35vw, 19px); color: var(--lde-fg); opacity: .85;
}

/* ---------------------------------------------------- single / reading */
.lde-single { padding: clamp(28px, 5vh, 64px) clamp(16px, 4vw, 48px); }
.lde-reading {
  max-width: 780px; margin: 0 auto;
  padding: clamp(28px, 4vw, 56px);
}
.lde-reading .wp-block-post-title { margin: 10px 0 14px; }
.lde-post-meta, .lde-post-meta .wp-block-post-date,
.lde-post-meta .wp-block-post-author-name {
  font: 500 12px var(--lde-sans); letter-spacing: .1em;
  text-transform: uppercase; color: rgba(28, 25, 22, .6);
}
.lde-post-cover img { border-radius: 10px; }
.lde-post-tags { margin-top: 28px; font-size: 13px; opacity: .75; }

/* --------------------------------------------------------------- 404 */
.lde-404 { min-height: 80vh; padding: clamp(80px, 14vh, 140px) 20px 60px; text-align: center; }
.lde-404-lady { margin: 0 auto 8px; max-width: 420px; }
.lde-404-lady svg { width: 100%; height: auto; display: block; }
.lde-404-title { margin: 0 0 10px; }
.lde-404 .lde-search { max-width: 420px; margin: 28px auto 0; }

/* ------------------------------------------------------------- footer */
footer.lde-footer {
  margin-top: clamp(40px, 6vh, 72px);
  border-top: 1px solid rgba(28, 25, 22, .12);
  background: rgba(247, 243, 236, .5);
}
body.lde-dark footer.lde-footer {
  border-top-color: rgba(247, 243, 236, .2);
  background: rgba(22, 16, 20, .4);
}
.lde-footer-in {
  max-width: 1560px; margin: 0 auto;
  padding: 26px clamp(20px, 4.5vw, 64px) 30px;
}
.lde-foot-brand {
  font-family: var(--lde-serif); font-size: 13px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--lde-fg);
}
.lde-foot-tag {
  font-family: var(--lde-serif); font-style: italic; font-size: 13px;
  color: var(--lde-fg); opacity: .6;
}
.lde-foot-legal { display: flex; gap: 18px; }
.lde-foot-legal a {
  font: 500 11px var(--lde-sans); letter-spacing: .06em;
  color: var(--lde-fg); opacity: .6; text-decoration: none;
}
.lde-foot-legal a:hover { opacity: 1; }

/* --------------------------------------------- travelling line (JS) */
#lde-travel {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 45; pointer-events: none;
}
#lde-tline {
  fill: none; stroke: var(--lde-ink); stroke-width: 4;
  stroke-linecap: round; opacity: 0;
  transition: stroke-dashoffset .52s cubic-bezier(.55, .08, .32, 1);
}
/* departure fliers (FLIP morph, created by JS) */
.lde-flier {
  position: fixed; z-index: 60; pointer-events: none; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--lde-glass-border);
  background: var(--lde-glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: 0 14px 30px rgba(28, 25, 22, .14);
}
.lde-flier .fl-name {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font: 600 10.5px var(--lde-sans);
  letter-spacing: .2em; text-transform: uppercase; color: var(--lde-ink);
}
body.lde-leaving main, body.lde-leaving .lde-homemark { transition: opacity .4s ease; opacity: 0; }
/* invisible facsimile of the destination header's pill row: the FLIP
   morph measures its rects so cards land where the real pills will be */
.lde-flip-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1;
  display: flex; justify-content: flex-end; align-items: center;
  gap: 8px; padding: 9px clamp(16px, 3.5vw, 48px);
  visibility: hidden; pointer-events: none;
}

/* --------------------------------------- cross-document view transitions
   Progressive: browsers that support cross-document view transitions
   get a gentle crossfade between pages; the header persists. */
@supports (view-transition-name: none) {
  @view-transition { navigation: auto; }
  header.lde-header { view-transition-name: lde-header; }
  ::view-transition-old(root), ::view-transition-new(root) {
    animation-duration: .45s;
  }
}

/* ----------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html.lde-js .lde-pose .rv { transition: none !important; stroke-dashoffset: 0 !important; }
  html.lde-js .lde-pose .fwash, html.lde-js .lde-pose .fbloom {
    transition: none !important; opacity: 1; transform: none;
  }
  .lde-aura, .lde-drift-a, .lde-drift-b, .lde-drift-c { animation: none !important; }
  .lde-pstate { transition: none !important; }
  .lde-portal { transition: none; }
  #lde-travel { display: none; }
  @supports (view-transition-name: none) {
    ::view-transition-group(*), ::view-transition-old(*),
    ::view-transition-new(*) { animation: none !important; }
  }
}

/* ------------------------------------------------------------- mobile */
@media (max-width: 900px) {
  .lde-homemark { top: 16px; font-size: 12px; letter-spacing: .34em; }
  .lde-header-in { padding: 8px 14px; gap: 10px; }
  .lde-wordmark { font-size: 11px; letter-spacing: .24em; }
  .lde-pills { overflow-x: auto; gap: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .lde-pills::-webkit-scrollbar { display: none; }
  .lde-pill { padding: 8px 13px; font-size: 10px; letter-spacing: .14em; }
  .lde-hero { padding-top: 64px; min-height: 100vh; }
  .lde-hero-copy { width: 100%; margin-left: 0; margin-top: 36vh; }
  .lde-stage-hero { left: 4%; top: 8vh; height: 30vh; }
  .lde-portal-row {
    display: flex; overflow-x: auto; gap: 12px;
    scroll-snap-type: x mandatory; padding-bottom: 10px; margin-top: 26px;
    -webkit-overflow-scrolling: touch;
  }
  .lde-portal { flex: 0 0 72%; scroll-snap-align: start; min-height: 224px; }
  .lde-room-hero { min-height: 60vh; }
  .lde-stage-room { left: 2%; top: 4vh; height: 52vh; }
  .lde-room-copy { width: 100%; margin-left: 0; }
}
