/* Rebecca Forshaw · links. V2 look (style-guide.md): oat, plum, plaster, mulberry; DM Sans with Playfair italic accents. */
:root {
  /* V2 "Contemporary Midlife Lifestyle" (style-guide.md, approved 14 to 15 Nov 2026) */
  --oat: #F4EDE4; --plum: #2B1830; --soft: #6A5570; --mulberry: #743653; --plaster: #EBD3CB;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif; /* italic accents only */
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
}
* { box-sizing: border-box; }
html { background: var(--oat); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--plum); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--mulberry); outline-offset: 3px; border-radius: 6px; }
em { font-style: italic; }
h1, h2, .name, .lede, .pitch { text-wrap: balance; }

.site { max-width: 560px; margin: 0 auto; padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }

/* ---------- Intro: portrait beside her name, so the first screen is her AND the offer ---------- */
.intro { display: grid; grid-template-columns: 118px 1fr; grid-template-areas: "photo who" "lede lede";
  column-gap: 18px; row-gap: 14px; align-items: end; margin-bottom: 18px; }
.portrait { grid-area: photo; margin: 0; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--plaster); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.who { grid-area: who; padding-bottom: 4px; }
.brand { margin: 0 0 8px; font: 700 11px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mulberry); }
h1 { margin: 0; font: 700 clamp(32px, 9.4vw, 44px)/1 var(--sans); letter-spacing: -0.035em; }
.lede { grid-area: lede; margin: 0; font-size: 16px; line-height: 1.45; color: var(--soft); }

/* ---------- Featured offer: the one plum block (the main ask) ---------- */
.featured { background: var(--plum); color: var(--oat); border-radius: 16px; padding: 22px 22px 20px; }
.featured a:focus-visible { outline-color: var(--plaster); }
.kicker { margin: 0 0 10px; font: 700 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--plaster); }
.featured h2 { margin: 0 0 8px; font: 700 clamp(27px, 8vw, 36px)/1.05 var(--sans); letter-spacing: -0.035em; }
.featured h2 em { font: italic 600 1.08em/1 var(--serif); letter-spacing: -0.01em; color: var(--plaster); }
.pitch { margin: 0; font-size: 16px; color: var(--oat); opacity: .88; }

/* launch stages: only the one named in data-stage shows */
.stage { display: none; margin-top: 18px; }
.featured[data-stage="soon"] .stage-soon,
.featured[data-stage="open"] .stage-open,
.featured[data-stage="closed"] .stage-closed { display: block; }

/* information, not a button: a thin rule and the date set like a magazine dateline */
.opens { margin: 0; padding-top: 14px; border-top: 1px solid rgba(244, 237, 228, .22);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.opens-label { font: 700 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--plaster); }
.opens-date { font: italic 600 22px/1.15 var(--serif); letter-spacing: -0.01em; color: var(--oat); }

.cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; border-radius: 8px;
  background: var(--plaster); color: var(--plum); text-decoration: none; font: 700 19px/1 var(--sans);
  transition: transform .45s var(--ease), background-color .2s; }
.cta::after { content: "→"; transition: transform .45s var(--ease); }
.cta:hover { background: #fff; }
.cta:hover::after { transform: translateX(4px); }
.cta:active { transform: scale(.97); }
.deadline { margin: 10px 0 0; font-size: 13px; text-align: center; color: var(--oat); opacity: .8; }

/* ---------- Groups ---------- */
.group { margin-top: 30px; }
.label { margin: 0 0 12px; font: 700 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.free { display: grid; gap: 12px; }

.resource, .programme { position: relative; display: grid; gap: 4px; text-decoration: none; border-radius: 16px;
  padding: 20px 20px 18px; transition: transform .45s var(--ease), background-color .25s; }
.resource { background: var(--plaster); }
.resource .tag { justify-self: start; margin-bottom: 8px; font: 700 10.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: var(--mulberry); padding: 6px 9px 5px; border-radius: 4px; }
.name { font: 700 21px/1.15 var(--sans); letter-spacing: -0.02em; }
.what { font-size: 15px; color: var(--plum); }
.go { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--sans); min-height: 24px; }
.go::after { content: "→"; transition: transform .45s var(--ease); }
.resource:hover, .programme:hover { transform: translateY(-2px); }
.resource:hover .go::after, .programme:hover .go::after { transform: translateX(4px); }
.resource:active, .programme:active { transform: scale(.98); }

.programme { border: 1.5px solid var(--plum); }
.programme .aside { margin-bottom: 6px; font: italic 600 15px/1.3 var(--serif); color: var(--mulberry); }
.programme .what { color: var(--soft); }
.programme:hover { background: #fff; }

/* ---------- Footer ---------- */
.foot { margin-top: 36px; text-align: center; }
.social { display: flex; justify-content: center; gap: 6px; margin: 0 0 6px; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--plum); transition: background-color .2s; }
.social a:hover { background: var(--plaster); }
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social .fill { fill: currentColor; stroke: none; }
.small { margin: 0; font-size: 13px; color: var(--soft); }
.small a { text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 12px 2px; color: var(--plum); }

/* ---------- Gentle arrival (only with scripts on, never with reduce motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .intro, .js .featured, .js .group { animation: rise .9s var(--ease) both; }
  .js .featured { animation-delay: .08s; }
  .js .group { animation-delay: .16s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* ---------- Small iPhones (SE, mini) ---------- */
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .intro { grid-template-columns: 100px 1fr; column-gap: 14px; }
  .featured { padding: 20px 18px 18px; }
}

/* ---------- Tablet: free cards side by side ---------- */
@media (min-width: 600px) {
  .free { grid-template-columns: 1fr 1fr; }
  .site { padding-top: 40px; }
}

/* ---------- Laptop: a framed portrait beside the page, not a half-screen photo ---------- */
@media (min-width: 1000px) {
  .site { max-width: 1060px; padding: 72px 48px 56px; display: grid; grid-template-columns: 380px minmax(0, 1fr);
    grid-template-areas: "intro content"; column-gap: 72px; align-items: start; }
  .intro { grid-area: intro; position: sticky; top: 56px; display: block; margin: 0; }
  .portrait { border-radius: 14px; margin-bottom: 26px; }
  .brand { margin-bottom: 10px; }
  h1 { font-size: 48px; }
  .lede { margin-top: 14px; font-size: 17px; }
  .content { grid-area: content; max-width: 560px; }
  .featured { padding: 30px 30px 26px; }
}

/* ---------- Her count-up dots: one per day, the first mulberry, the rest plaster ---------- */
.days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; margin-top: 18px; max-width: 360px; }
.days i { aspect-ratio: 1; border-radius: 50%; background: var(--plaster); }
.days i:first-child { background: var(--mulberry); }
@media (prefers-reduced-motion: no-preference) {
  .js .days i { animation: pop .5s var(--ease) both; animation-delay: calc(.35s + var(--n) * 30ms); }
}
@keyframes pop { from { transform: scale(0); } }
.featured.second { margin-top: 14px; }

/* ---------- The second panel (Feel Better next round): calm oat card, plum hairline, mulberry accents ---------- */
.featured.light { background: transparent; color: var(--plum); border: 1.5px solid var(--plum); }
.featured.light a:focus-visible { outline-color: var(--mulberry); }
.featured.light .kicker { color: var(--mulberry); }
.featured.light h2 em { color: var(--mulberry); }
.featured.light .pitch { color: var(--plum); opacity: 1; }
.featured.light .cta { background: var(--mulberry); color: #fff; }
.featured.light .cta:hover { background: var(--plum); }
.featured.light .deadline { color: var(--soft); opacity: 1; }
