/* ==========================================================================
   Sweet Moments — "6 Last-Minute Halloween Dessert Ideas"
   Draft only. Scoped to this article: every class starts with .ha- so nothing
   here can reach another page. Colours, type and radii are the site's own
   tokens (base.css) — no new palette.
   ========================================================================== */

.ha-page { background: var(--cream); }

/* ---------- hero -------------------------------------------------------- */

.ha-hero {
  position: relative;
  background: var(--cream);
}
/* two columns, 60 / 40; the words sit centred beside the photograph */
.ha-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(18px, 2.4vw, 30px) 24px;
}

.ha-hero-copy {
  min-width: 0;
  /* one compact block: title, opening line and contents kept together and set
     a little above the photograph's mid-line, rather than pinned to its
     top and bottom edges */
  padding-bottom: clamp(20px, 4vw, 56px);
}

.ha-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--brown);
}
/* each line set whole, so a title line never wraps mid-phrase */
.ha-title > span { display: block; white-space: nowrap; }
.ha-title .tail { color: var(--pink); }

.ha-lede {
  margin: clamp(16px, 2vw, 26px) 0 0;
  max-width: 38ch;
  font-family: var(--sans);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.75;
  color: #5E4534;
}

/* her photograph, whole: the frame takes its own proportions, so nothing at
   the bottom of the picture is ever cut off and no veil sits over it */
.ha-hero-media {
  min-width: 0;
  border-radius: clamp(18px, 2.2vw, 26px);
  overflow: hidden;
}
.ha-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- the opening line + contents --------------------------------- */

/* The contents live in the hero's copy column now, directly under the title
   and opening line, so they use the space beside the photograph instead of a
   full band across the page. Same list, tighter, and the whole article starts
   one screen sooner. */
.ha-hero-copy .ha-toc {
  max-width: none;
  margin: clamp(14px, 1.6vw, 20px) 0 0;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.ha-hero-copy .ha-toc-label { margin-bottom: 6px; }
.ha-hero-copy .ha-toc-list { gap: 0 22px; }
.ha-hero-copy .ha-toc-list a {
  gap: 8px;
  padding: 3px 0;
  font-size: 13px;
  line-height: 1.5;
}
.ha-hero-copy .ha-toc-num { min-width: 15px; font-size: 10.5px; }

.ha-toc {
  max-width: 720px;
  margin: clamp(14px, 1.8vw, 22px) auto 0;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ha-toc-label {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.ha-toc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ha-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 4px 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--brown);
  text-decoration: none;
  transition: color 0.18s ease;
}
.ha-toc-list a:hover,
.ha-toc-list a:focus-visible { color: var(--pink-deep); }
.ha-toc-num {
  flex: none;
  min-width: 17px;
  font-family: var(--display);
  font-size: 11.5px;
  color: var(--pink);
}

/* ---------- a treat: words one side, her video the other ----------------
   The sides alternate down the page — .ha-treat--flip puts the video on the
   left. The words stay first in the document, so a phone and a screen reader
   always get the description before the video. */

.ha-treat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 64px);
  max-width: 1020px;
  margin: 0 auto;
  padding: clamp(28px, 3.4vw, 46px) 24px 0;
}
.ha-treat--flip { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr); }
.ha-treat--flip .ha-treat-media { order: -1; }

.ha-treat-copy { min-width: 0; }
.ha-treat-media { min-width: 0; }

.ha-treat h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--brown);
}
.ha-treat p {
  margin: 0 0 12px;
  max-width: 46ch;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.8;
  color: #5E4534;
}
.ha-treat p:last-of-type { margin-bottom: 0; }
.ha-treat-list {
  margin: 0 0 12px;
  padding: 0 0 0 20px;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.8;
  color: #5E4534;
}
.ha-treat-list li { margin: 0 0 2px; }

/* her footage, whole: width follows the column, height follows the video,
   so nothing is ever cropped or stretched */
.ha-video-wrap { position: relative; }
.ha-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--pink-band);
}

/* before it is played the cover stays clean: one small play mark, no bar
   across the artwork. The bar arrives with the first press. */
.ha-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(119, 78, 55, 0.18);
  transition: transform 0.18s ease, background 0.18s ease;
}
.ha-video-play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--pink-deep);
}
.ha-video-play:hover { transform: scale(1.06); background: #ffffff; }
.ha-video-play:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 3px; }
.ha-video-wrap.is-playing .ha-video-play { display: none; }

/* 1 · the mice cover: centred, the play mark lands on the face of the mouse
   being held up. On this clip only it drops below the mouse, into the gap
   between it and the row on the tray. */
.ha-video-wrap--play-low .ha-video-play {
  top: calc(63% - 31px); /* 31px = half the 62px mark, so its centre sits at 63% */
  bottom: auto;
}

@media (prefers-reduced-motion: reduce) {
  .ha-video-play { transition: none; }
  .ha-video-play:hover { transform: none; }
}

/* the slot waiting for her file — quietly drawn, obviously empty */
.ha-vslot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 18px 16px;
  border: 1px dashed rgba(221, 155, 181, 0.55);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--pink-band);
  text-align: center;
}
.ha-slot-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-soft);
}
.ha-slot-note {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* the play mark: small, quiet, the only ornament in the article */
.ha-play {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--pink);
  background: rgba(255, 255, 255, 0.5);
}
.ha-play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--pink);
}

/* the platter closing section now uses the shared .ha-treat two-column grid
   (words left, video right), so it needs no layout rules of its own. The bold
   lead sentence keeps the weight the old .ha-platter rule gave it. */
.ha-treat p b { color: var(--brown); font-weight: 500; }

/* ---------- the way out — one quiet line, no panel, no button ----------- */

.ha-discover {
  max-width: 1020px;
  margin: clamp(38px, 5vw, 58px) auto 0;
  padding: 0 24px;
  text-align: center;
}
.ha-discover a {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--brown);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--pink);
  transition: color 0.18s ease;
}
.ha-discover a:hover,
.ha-discover a:focus-visible { color: var(--pink-deep); }

/* ---------- phone ------------------------------------------------------- */

@media (max-width: 860px) {
  /* The photograph comes first in the reading order's second half, so every
     pixel taken by the opening block is a pixel of picture pushed off the
     first screen. Tighter gaps and a two-column contents list get it up. */
  .ha-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px 20px 0;
  }
  .ha-hero-copy { order: 1; padding-bottom: 0; }
  .ha-hero-media { order: 2; border-radius: 20px; }
  .ha-title { font-size: clamp(29px, 8.1vw, 50px); }
  /* On a phone the title goes straight into the contents: no standfirst, so
     the article starts within the first screen. */
  .ha-lede { display: none; }
  .ha-hero-copy .ha-toc { margin-top: 18px; padding-top: 12px; }

  /* Two columns of three numbered treats. */
  .ha-toc-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 14px;
  }
}

@media (max-width: 760px) {
  /* one column everywhere: the words, then the video underneath */
  .ha-treat {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
  .ha-treat--flip .ha-treat-media { order: 0; }
  .ha-treat-media { max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .ha-toc-list a { transition: none; }
}
