/* Hello Flow Life — brand skin for the guide articles.
   Loaded after each page's own <style>, so it only adjusts the look:
   the brand thread, the cream-to-lilac hero with its glow and lotus,
   the warmer ink from the homepage, and the soft lilac accents.
   Nothing here changes the words or the structure of a page. */

:root{
  /* the homepage uses a warmer aubergine than these pages did */
  --ink:#2E1F2D;
  --muted:#6B5A68;
  --ivory:#FBF6F3;
  --paper:#FFFDF9;
  --line:#E8DCE6;
  --orchid:#C795C3;
  --orchid-d:#8F5B8A;
  --night:#5B3E76;
}

body{background:var(--ivory);color:var(--ink);overflow-x:hidden}

/* the brand thread, the same one that runs across the homepage */
body::before{
  content:"";position:fixed;left:0;right:0;top:0;height:4px;z-index:50;
  background:linear-gradient(90deg,#F4B6C8,#D9B8EC,#B9D3F0,#BFE0CF,#F3DDB5);
}

/* ---- the header becomes a soft hero, like the app's home screen ---- */
.top{
  position:relative;isolation:isolate;overflow:hidden;
  padding:clamp(46px,9vw,74px) max(20px,env(safe-area-inset-left,0px)) clamp(30px,6vw,46px);
  /* lilac at the top fading into the page's own cream, so there is no
     hard edge where the band ends */
  background:linear-gradient(180deg,#F2E2F0 0%,#F7EBF2 48%,#FBF6F3 100%);
}
/* the drifting glow */
.top::before{
  content:"";position:absolute;z-index:-2;
  left:50%;top:-30%;width:120vw;height:150%;transform:translateX(-50%);
  background:
    radial-gradient(42vw 34vw at 18% 28%,rgba(243,211,230,.72),transparent 68%),
    radial-gradient(44vw 36vw at 82% 22%,rgba(245,217,228,.66),transparent 70%),
    radial-gradient(52vw 40vw at 50% 96%,rgba(220,198,238,.68),transparent 72%);
  filter:blur(36px);
  animation:artDrift 20s ease-in-out infinite alternate;
}
@keyframes artDrift{to{transform:translateX(-50%) translateY(-2.5%) scale(1.07)}}

/* the lotus, sitting above the wordmark */
.top::after{
  content:"";display:block;width:54px;height:34px;margin:0 auto 16px;order:-1;
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 38' fill='none' stroke='%238F5B8A' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 3c5 6 6 14 0 22-6-8-5-16 0-22z'/%3E%3Cpath d='M30 25c-6-3-12-9-12-17 6 1 11 5 12 12'/%3E%3Cpath d='M30 25c6-3 12-9 12-17-6 1-11 5-12 12'/%3E%3Cpath d='M28 26C20 26 9 22 3 13c8-1 16 2 21 8'/%3E%3Cpath d='M32 26c8 0 19-4 25-13-8-1-16 2-21 8'/%3E%3C/svg%3E");
  opacity:.9;
}
.top{display:flex;flex-direction:column;align-items:center}
.top a{position:relative;z-index:1}
.top span{font-size:1.3rem;font-weight:300}

/* ---- the article itself ---- */
main{position:relative}
.eyebrow{letter-spacing:.24em;margin-top:clamp(30px,6vw,46px)}

/* headings centred, the way the app centres everything.
   Paragraphs stay left so long passages are still easy to read. */
h1,h2,h3,.standfirst,.updated{text-align:center}
h2{margin-top:clamp(42px,7vw,58px)}
h3{font-weight:500;letter-spacing:.01em;color:var(--night)}

/* lists sit centred as a block, with the text itself left for reading */
ol,ul{max-width:34em;margin-left:auto;margin-right:auto;padding-left:1.3rem}
ol li::marker{color:var(--orchid-d)}
ul li::marker{color:var(--orchid)}

p{max-width:34em;margin-left:auto;margin-right:auto}

/* a softer pull-quote, no hard left bar */
blockquote{
  max-width:34em;margin-left:auto;margin-right:auto;
  border-left:0;border-radius:18px;text-align:center;
  background:linear-gradient(160deg,#FFFFFF,#F7EDF5);
  box-shadow:0 10px 26px rgba(123,74,120,.10);
  padding:26px 28px;
}

/* tables, where a page has one */
table{max-width:100%;border-collapse:collapse}
th{color:var(--night);font-weight:500}
th,td{border-color:var(--line)}

/* ---- footer ---- */
footer{
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,#F7ECF4,#EFE1F1);
  text-align:center;color:var(--muted);
}
footer a{color:var(--orchid-d);text-decoration:none}

@media(prefers-reduced-motion:reduce){
  .top::before{animation:none}
}
