/**
 * Landing-page design system.
 *
 * Loaded ONLY on requests routed through Sereneyuto_LP (post meta
 * `_sereneyuto_lp`). On those URLs the theme stylesheet, theme.json global
 * styles and the core block CSS are all dequeued, so this file is the whole
 * cascade — there is nothing underneath it to inherit from and nothing above
 * it to override. Everything a landing page needs must be here.
 *
 * Type scale
 * ----------
 * Seven sizes, shared with the rest of the site. They are the same seven the
 * theme emits from theme.json; this file mirrors them literally because a
 * landing page has no theme stylesheet to inherit them from. See the --sy-fs-*
 * block below, and the matching alias block in the theme's style.css.
 *
 * Every rule in this file sizes text through a role token (--fs-*), and every
 * role token resolves to one of the seven. Adding an eighth value is how the
 * landing page drifted away from the homepage the first time.
 *
 * @package Sereneyuto\Core
 */

:root{
  --ink:#16201B;
  --ink-soft:#3D4A42;
  --paper:#F3F5F1;
  --paper-2:#E6EAE2;
  --rule:#CBD3C6;
  --oak:#A9743F;
  --oak-deep:#8A5C2F;
  --moss:#3F6249;

  --display:"Newsreader",Georgia,serif;
  --body:"Manrope",system-ui,-apple-system,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,monospace;

  --measure:680px;
  --step:clamp(1.5rem,4vw,2.25rem);
  --gutter:1.25rem;

  /* Type scale — MIRROR of the site-wide scale.
   *
   * Landing pages dequeue the theme stylesheet and theme.json global styles, so
   * --sy-fs-* cannot be inherited here; the seven values below are copied
   * verbatim from what the global-styles engine emits for theme.json's
   * fontSizes presets. The clamp() expressions are WordPress's own fluid output,
   * not hand-written equivalents — kept literal so a heading renders at exactly
   * the same px on a landing page as on the homepage at every viewport width.
   *
   * Source of truth: wp-content/themes/sereneyuto/theme.json settings.typography.
   * Editing a size there without editing it here silently re-splits the scale.
   *
   * 12 / 14 / 16 / 18-20 / 20-24 / 24-32 / 34-52 px.
   */
  --sy-fs-xs:0.75rem;
  --sy-fs-sm:0.875rem;
  --sy-fs-base:1rem;
  --sy-fs-lg:clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.227), 1.25rem);
  --sy-fs-xl:clamp(1.25rem, 1.25rem + ((1vw - 0.2rem) * 0.455), 1.5rem);
  --sy-fs-2xl:clamp(1.5rem, 1.5rem + ((1vw - 0.2rem) * 0.909), 2rem);
  --sy-fs-display:clamp(2.1rem, 2.1rem + ((1vw - 0.2rem) * 2.091), 3.25rem);

  /* Role names used by the rules below. Each one resolves to a tier above —
   * nothing on this page sets a size that is not on the shared scale.
   *
   * Four roles moved when the scale was unified on 2026-08-28:
   *   --fs-h3   17px  -> xl   (an <h3> is now the same size everywhere)
   *   --fs-ps   18px  -> lg   (was a lone off-scale value)
   *   --fs-micro 11px -> xs   (an eighth tier that existed only on this page)
   *   --fs-lede xl    -> base (see below)
   *
   * --fs-lede resolves to base, so the opening paragraph is the same size as
   * every other paragraph. It was xl, which put a paragraph at 75% of an <h2>
   * and read as one page carrying two body sizes - loudest on /facial-massage/,
   * whose lede runs six lines. The lede is still marked, just not by size: it
   * keeps the display serif while body copy is set in --body. Site owner chose
   * this over shrinking it one tier, 2026-08-28.
   */
  --fs-h1:var(--sy-fs-display);
  --fs-h2:var(--sy-fs-2xl);
  --fs-lede:var(--sy-fs-base);
  --fs-h3:var(--sy-fs-xl);
  --fs-ps:var(--sy-fs-lg);
  --fs-body:var(--sy-fs-base);
  --fs-sm:var(--sy-fs-sm);
  --fs-xs:var(--sy-fs-xs);
  --fs-label:var(--sy-fs-xs);
  --fs-micro:var(--sy-fs-xs);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:var(--fs-body);
  line-height:1.6;   /* was 1.68; NSH sets 1.6 on body */
  letter-spacing:-0.005em;
}
img{max-width:100%;display:block}
a{color:var(--moss);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
a:focus-visible,button:focus-visible,.cta:focus-visible{outline:2px solid var(--moss);outline-offset:3px}

.wrap{max-width:var(--measure);margin:0 auto;padding:0 var(--gutter)}

/* ── Type scale ───────────────────────────── */
h1,h2,h3{font-family:var(--display);font-weight:500;letter-spacing:-0.02em;line-height:1.14;margin:0}
h1{font-size:var(--fs-h1)}
h2{font-size:var(--fs-h2);margin-top:var(--step);margin-bottom:.6rem}
h3{font-size:var(--fs-h3);font-family:var(--body);font-weight:700;letter-spacing:-0.01em;margin-bottom:.25rem}
p{margin:0 0 1.05rem}
.lede{font-family:var(--display);font-size:var(--fs-lede);line-height:1.6;color:var(--ink-soft)}
.eyebrow{
  font-family:var(--mono);font-size:var(--fs-label);text-transform:uppercase;
  letter-spacing:.16em;color:var(--oak-deep);margin:0 0 .9rem
}
.kicker{
  font-family:var(--mono);font-size:var(--fs-label);text-transform:uppercase;
  letter-spacing:.15em;color:var(--ink-soft)
}
em{font-family:var(--display);font-style:italic}

/* ── Header ───────────────────────────────── */
.masthead{border-bottom:1px solid var(--rule);background:var(--paper)}
.masthead .wrap{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding-top:.9rem;padding-bottom:.9rem}
.logo{font-family:var(--display);font-size:var(--fs-ps);letter-spacing:-0.01em;text-decoration:none;color:var(--ink)}
.logo span{color:var(--oak-deep)}

/* ── Hero ─────────────────────────────────── */
/* padding-top ONLY. The hero element carries both .hero and .wrap, and a
   `padding` shorthand here wipes out .wrap's horizontal gutter — same
   specificity, later rule wins — which left hero copy flush against both
   screen edges on mobile while every other section kept its 20px. Never use
   the shorthand in this rule. */
.hero{padding-top:clamp(2.5rem,7vw,4.5rem)}
.hero h1{margin-bottom:1rem;max-width:20ch}
.hero .lede{margin-bottom:1.5rem;max-width:46ch}
.byline{
  font-family:var(--mono);font-size:var(--fs-label);letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink-soft);border-top:1px solid var(--rule);padding-top:.7rem;margin-bottom:1.75rem
}

/* ── Product image slot ───────────────────── */
.shot{
  background:var(--paper-2);border:1px solid var(--rule);
  aspect-ratio:4/3;display:grid;place-content:center;text-align:center;
  padding:1.5rem;margin:1.75rem 0 .5rem
}
.shot .kicker{display:block;margin-bottom:.4rem}
.shot p{font-size:var(--fs-sm);color:var(--ink-soft);margin:0;max-width:36ch}
.caption{font-size:var(--fs-sm);color:var(--ink-soft);margin:.55rem 0 0;line-height:1.5}

/* ── CTA ──────────────────────────────────── */
.cta{
  display:block;width:100%;text-align:center;
  background:var(--ink);color:var(--paper);
  font-family:var(--body);font-weight:700;font-size:var(--fs-body);letter-spacing:-0.005em;
  padding:1.05rem 1.5rem;border:1px solid var(--ink);border-radius:2px;
  text-decoration:none;transition:background .18s ease,transform .18s ease
}
.cta:hover{background:var(--moss);border-color:var(--moss)}
.cta:active{transform:translateY(1px)}
.cta--oak{background:var(--oak-deep);border-color:var(--oak-deep)}
.cta--oak:hover{background:var(--ink);border-color:var(--ink)}
.cta-note{
  font-family:var(--mono);font-size:var(--fs-label);line-height:1.6;color:var(--ink-soft);
  text-align:center;margin:.7rem auto 0;max-width:44ch
}
.cta-block{margin:1.75rem 0}

/* ── Disclosure ───────────────────────────── */
.disclosure{
  background:var(--paper-2);border-left:2px solid var(--oak);
  padding:.85rem 1rem;font-size:var(--fs-sm);line-height:1.55;color:var(--ink-soft);
  margin:1.75rem 0
}
.disclosure strong{color:var(--ink)}

/* ── Sections ─────────────────────────────── */
section{padding:var(--step) 0}
.section--tint{background:var(--paper-2);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}

/* ── Signature: spec plate ────────────────── */
.plate{border:1px solid var(--ink);background:var(--paper);margin:1.5rem 0}
.plate__head{
  background:var(--ink);color:var(--paper);
  padding:.6rem 1rem;display:flex;justify-content:space-between;align-items:center;gap:.75rem;
  font-family:var(--mono);font-size:var(--fs-label);letter-spacing:.14em;text-transform:uppercase
}
.plate__head span:last-child{color:var(--oak);flex-shrink:0}
.plate__row{
  display:grid;grid-template-columns:9.5rem 1fr;gap:.5rem 1rem;
  padding:.7rem 1rem;border-bottom:1px solid var(--rule);
  font-size:var(--fs-body);align-items:baseline
}
.plate__row:last-child{border-bottom:0}
.plate__row dt{font-family:var(--mono);font-size:var(--fs-label);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-soft);margin:0}
.plate__row dd{margin:0}
@media (max-width:420px){
  .plate__row{grid-template-columns:1fr;gap:.15rem}
}

/* ── Reality check ────────────────────────── */
.reality{
  border:1px solid var(--ink);border-left-width:6px;
  background:var(--paper);padding:1.15rem 1.25rem;margin:1.5rem 0
}
.reality .kicker{display:block;margin-bottom:.55rem;color:var(--oak-deep)}
.reality dl{margin:0}
.reality dt{
  font-weight:700;font-size:var(--fs-body);margin-top:.85rem
}
.reality dt:first-of-type{margin-top:0}
.reality dd{margin:.1rem 0 0;font-size:var(--fs-body);color:var(--ink-soft)}

/* ── Routine ladder ───────────────────────── */
.ladder{list-style:none;padding:0;margin:1.5rem 0 0;border-left:1px solid var(--rule)}
.ladder li{position:relative;padding:0 0 1.4rem 1.6rem}
.ladder li:last-child{padding-bottom:0}
.ladder li::before{
  content:attr(data-n);position:absolute;left:-.55rem;top:.15rem;
  width:1.1rem;height:1.1rem;border-radius:50%;
  background:var(--ink);color:var(--paper);
  font-family:var(--mono);font-size:var(--fs-micro);
  display:grid;place-content:center
}
.ladder h3{margin-bottom:.15rem}
.ladder p{font-size:var(--fs-body);margin:0;color:var(--ink-soft)}

/* ── Cards ────────────────────────────────── */
.cols{display:grid;gap:1.25rem;margin-top:1.25rem}
@media (min-width:620px){.cols{grid-template-columns:1fr 1fr;gap:1.75rem}}
.card{background:var(--paper);border:1px solid var(--rule);padding:1.1rem 1.15rem}
.card .kicker{display:block;margin-bottom:.6rem}
.card ul{margin:0;padding-left:1.1rem}
.card li{margin-bottom:.45rem;font-size:var(--fs-body);line-height:1.55}
.card li:last-child{margin-bottom:0}
.card--warn{border-color:var(--oak);border-left-width:2px}

/* ── Author note ──────────────────────────── */
.author{
  border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);
  padding:1.15rem 0;margin:1.5rem 0;display:grid;gap:.9rem
}
@media (min-width:560px){.author{grid-template-columns:6.5rem 1fr;gap:1.25rem;align-items:start}}
.author .kicker{display:block}
.author p{margin:0;font-size:var(--fs-body);color:var(--ink-soft)}
.author p+p{margin-top:.7rem}

/* ── Q&A ──────────────────────────────────── */
.qa{border-top:1px solid var(--rule);margin-top:1.25rem}
.qa details{border-bottom:1px solid var(--rule)}
.qa summary{
  /* --fs-ps, not --fs-h3: a question row is a control, not a section heading,
     and the theme sizes its FAQ questions a tier below its h3 too. */
  cursor:pointer;padding:.95rem 0;font-weight:700;font-size:var(--fs-ps);
  list-style:none;display:flex;justify-content:space-between;gap:1rem;align-items:center
}
.qa summary::-webkit-details-marker{display:none}
.qa summary::after{content:"+";font-family:var(--mono);color:var(--oak-deep);font-size:var(--fs-ps);flex-shrink:0}
.qa details[open] summary::after{content:"−"}
.qa details p{padding:0 0 1rem;margin:0;font-size:var(--fs-body);color:var(--ink-soft);max-width:58ch}

/* ── Trust ────────────────────────────────── */
.trust{font-size:var(--fs-body)}
.trust ul{margin:.75rem 0 0;padding-left:1.1rem}
.trust li{margin-bottom:.4rem;color:var(--ink-soft)}

/* ── P.S. ─────────────────────────────────── */
.ps{
  font-family:var(--display);font-size:var(--fs-ps);line-height:1.55;
  border-top:1px solid var(--rule);padding-top:1.25rem;margin-top:var(--step)
}
.ps .kicker{display:block;margin-bottom:.5rem;font-family:var(--mono)}

/* ── Footer ───────────────────────────────── */
footer{
  border-top:1px solid var(--rule);margin-top:var(--step);
  padding:1.75rem 0 6rem;font-size:var(--fs-xs);line-height:1.6;color:var(--ink-soft)
}
footer p{margin-bottom:.7rem}
/* Site navigation, footer only. Kept above the legal block and separated by a
   rule so it reads as a way out rather than more fine print. */
footer .footer-nav{
  color:var(--ink);font-size:var(--fs-sm);
  border-bottom:1px solid var(--rule);padding-bottom:1.1rem;margin-bottom:1.1rem
}

/* ── Sticky CTA ───────────────────────────── */
.dock{
  position:fixed;left:0;right:0;bottom:0;z-index:50;
  background:var(--paper);border-top:1px solid var(--ink);
  padding:.7rem 1rem;
  transform:translateY(110%);transition:transform .28s ease;
  box-shadow:0 -8px 24px rgba(22,32,27,.08)
}
.dock.is-visible{transform:translateY(0)}
.dock__inner{max-width:var(--measure);margin:0 auto;display:flex;align-items:center;gap:.85rem}
.dock__label{flex:1;min-width:0}
.dock__label .kicker{display:block;font-size:var(--fs-micro);margin-bottom:.1rem}
.dock__label strong{font-size:var(--fs-sm);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dock .cta{width:auto;flex-shrink:0;padding:.7rem 1.1rem;font-size:var(--fs-sm)}
@media (min-width:900px){.dock{display:none}}

/* ── Back to top ──────────────────────────── */
/* Lives in shell.php, so every landing page gets one with no per-page work.
   A real <button>, not an anchor: it performs an action rather than
   navigating, and it must not push #top into the address bar. */
.to-top{
  position:fixed;right:var(--gutter);bottom:var(--gutter);z-index:60;
  width:2.75rem;height:2.75rem;               /* 44px — minimum touch target */
  display:grid;place-content:center;
  background:var(--paper);color:var(--ink);
  border:1px solid var(--ink);border-radius:50%;
  cursor:pointer;padding:0;
  box-shadow:0 2px 10px rgba(22,32,27,.12);
  opacity:0;visibility:hidden;transform:translateY(.5rem);
  transition:opacity .22s ease,transform .22s ease,visibility .22s ease,background .18s ease
}
.to-top.is-visible{opacity:1;visibility:visible;transform:none}
.to-top:hover{background:var(--ink);color:var(--paper)}
.to-top svg{width:1rem;height:1rem;display:block;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}

/* Clear the sticky CTA when it is on screen, so the two never stack. Keyed on
   the dock's own state class, so a landing page without a dock is unaffected
   and this needs no JavaScript of its own. */
body:has(.dock.is-visible) .to-top{bottom:calc(var(--gutter) + 4.25rem)}
@supports not selector(:has(*)){
  @media (max-width:899px){.to-top{bottom:calc(var(--gutter) + 4.25rem)}}
}

/* ── Motion ───────────────────────────────── */
.reveal{opacity:0;transform:translateY(10px);transition:opacity .5s ease,transform .5s ease}
.reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
  .reveal{opacity:1;transform:none}
  .dock{transform:translateY(0)}
  .to-top{transform:none}
}

/* ── Admin bar ────────────────────────────── */
/* wp_footer() still emits the admin bar for logged-in users. Without the core
   stylesheet the bar is unstyled, but it must not sit on top of the page. */
body.admin-bar-lp{padding-top:32px}

/* ── Figures ──────────────────────────────────
   Added 2026-08-26 with the first landing-page images. Width and height come
   from wp_get_attachment_image() so the box is reserved before the file lands;
   the aspect ratio is never forced, because cropping a labelled diagram cuts
   the labels off. See STATE.md trap #3. */
.lp-figure{margin:0 0 1.05rem}
.lp-figure img{width:100%;height:auto;border-radius:3px}
.lp-figure figcaption{font-size:var(--fs-sm);color:var(--ink-soft);margin:.55rem 0 0;line-height:1.5}
/* Note about the picture, sitting above the caption about its subject. One
   step down the scale so it reads as image credit, not as body copy. Still
   --ink-soft on --paper, so shrinking it does not cost contrast. */
.lp-figure__note{display:block;font-size:var(--fs-xs);line-height:1.45;margin:0 0 .3rem}
.lp-figure__caption{display:block}
.hero .lp-figure{margin-top:1.5rem}
