:root{
    --navy:#0D1B2E; --gold:#C9A84C; --gold-soft:#BFA35A;
    --ivory:#F1ECE7; --ivory-warm:#FDFAF4; --burgundy:#603241;
    --ink:#20303f; --ink-soft:#5c6470; --line:rgba(13,27,46,.12);
    --serif:'Cormorant Garamond',Georgia,serif;
    --sans:'Jost',system-ui,sans-serif;
  }
  *{box-sizing:border-box}
  html{scroll-behavior:smooth}
  body{
    margin:0;background:var(--ivory-warm);color:var(--ink);
    font-family:var(--serif);font-size:21px;line-height:1.75;
    -webkit-font-smoothing:antialiased;
  }
  .wrap{max-width:820px;margin:0 auto;padding:0 28px}

  /* ---- masthead ---- */
  .top{padding:54px 0 0;text-align:left}
  .kicker{
    font-family:var(--sans);font-size:.66rem;letter-spacing:.34em;text-transform:uppercase;
    color:var(--gold-soft);font-weight:500;display:flex;align-items:center;gap:14px;
  }
  .kicker::after{content:"";height:1px;flex:0 0 46px;background:var(--gold-soft);opacity:.6}
  .room-title{
    font-family:var(--serif);font-weight:500;font-size:3.8rem;line-height:1.02;
    color:var(--navy);margin:18px 0 0;letter-spacing:-.01em;
  }
  .room-sub{font-style:italic;color:var(--ink-soft);font-size:1.15rem;margin:10px 0 0}

  /* ---- section headers (the emotional sequence) ---- */
  .movement{margin:74px 0 0}
  .movement-tag{
    font-family:var(--sans);font-size:.7rem;letter-spacing:.28em;text-transform:uppercase;
    color:var(--gold-soft);font-weight:500;margin:0 0 26px;
    display:flex;align-items:center;gap:12px;
  }
  .movement-tag .dot{width:5px;height:5px;border-radius:50%;background:var(--gold);flex:0 0 auto}

  /* ---- spoken paragraphs ---- */
  p.line{margin:0 0 22px}
  p.line.tight{margin-bottom:10px}
  .em{font-style:italic}
  .quiet{color:var(--ink-soft)}

  /* the single-word / short beats she leaves alone */
  p.beat{font-size:1.5rem;color:var(--navy);margin:26px 0;font-weight:500}

  /* the intentional pause after "let's just sit here a second" */
  .pause{height:0;margin:0}
  .pause.sit{height:88px;position:relative}
  .pause.sit::before{
    content:"";position:absolute;left:0;top:50%;width:34px;height:1px;background:var(--gold);opacity:.5;
  }

  /* ---- check-for-understanding branch ---- */
  .check{
    margin:30px 0 26px;padding:0;border:0;
  }
  .check-q{
    font-family:var(--serif);font-style:italic;font-size:1.2rem;color:var(--navy);
    margin:0 0 16px;
  }
  .choices{display:flex;flex-direction:column;gap:10px;max-width:100%}
  .choice{
    font-family:var(--sans);font-size:.86rem;font-weight:400;letter-spacing:.01em;
    text-align:left;cursor:pointer;
    background:transparent;color:var(--ink);
    border:1px solid var(--line);border-radius:2px;
    padding:14px 18px;transition:all .25s ease;
    display:flex;align-items:center;gap:12px;
  }
  .choice .mark{
    width:15px;height:15px;border-radius:50%;border:1.5px solid var(--gold-soft);
    flex:0 0 auto;position:relative;transition:all .25s ease;
  }
  .choice:hover{border-color:var(--gold-soft);background:rgba(201,168,76,.05)}
  .choice[aria-expanded="true"]{border-color:var(--gold-soft);background:rgba(201,168,76,.07)}
  .choice[aria-expanded="true"] .mark{background:var(--gold);border-color:var(--gold)}
  .choice[aria-expanded="true"] .mark::after{
    content:"";position:absolute;inset:3px;border-radius:50%;background:var(--ivory-warm);
  }
  .choice.affirm[aria-pressed="true"]{border-color:var(--gold-soft);color:var(--navy)}
  .choice.affirm[aria-pressed="true"] .mark{background:var(--gold);border-color:var(--gold)}

  /* the expandable "let me try another way" */
  .another{
    overflow:hidden;max-height:0;opacity:0;
    transition:max-height .5s ease,opacity .4s ease,margin .4s ease;
    margin:0;
  }
  .another.open{max-height:1200px;opacity:1;margin:8px 0 4px}
  .another-inner{
    border-left:2px solid var(--gold);
    padding:4px 0 4px 24px;margin:6px 0 0;
  }
  .another-lead{
    font-family:var(--serif);font-style:italic;color:var(--gold-soft);font-size:1.05rem;margin:0 0 14px;
  }
  .another p{margin:0 0 16px;color:var(--ink)}
  .another p:last-child{margin-bottom:0}

  footer{margin:96px 0 70px;padding-top:26px;border-top:1px solid var(--line)}
  .foot-note{font-family:var(--sans);font-size:.72rem;letter-spacing:.04em;color:var(--ink-soft);line-height:1.7}

  /* below the column's full width, ease the masthead down as it starts hugging the viewport */
  @media(max-width:820px){
    body{font-size:20px}
    .room-title{font-size:3.2rem}
  }
  @media(max-width:560px){
    body{font-size:18px;line-height:1.72}
    .room-title{font-size:2.7rem}
    .wrap{padding:0 22px}
  }
  @media(prefers-reduced-motion:reduce){
    *{transition:none!important;scroll-behavior:auto!important}
  }

  /* thief self-check */
  .thief-grid{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 4px}
  .thief{
    font-family:var(--sans);font-size:.8rem;color:var(--ink);
    background:transparent;border:1px solid var(--line);border-radius:2px;
    padding:9px 13px;cursor:pointer;transition:all .2s ease;text-align:left;
  }
  .thief:hover{border-color:var(--gold-soft)}
  .thief[aria-pressed="true"]{background:var(--navy);color:var(--ivory-warm);border-color:var(--navy)}
  .thief-result{font-family:var(--serif);font-style:italic;color:var(--navy);margin:16px 0 0;min-height:1px}

  /* ask list */
  .ask-list{margin:4px 0 0;padding:0 0 0 20px}
  .ask-list li{margin:0 0 12px;color:var(--ink)}

  /* go deeper */
  .deeper{display:flex;flex-direction:column;gap:1px;margin-top:8px;background:var(--line)}
  .deep-link{
    display:block;background:var(--ivory-warm);padding:18px 20px;text-decoration:none;color:var(--navy);
    font-family:var(--serif);font-size:1.05rem;transition:background .2s ease;
  }
  .deep-link:hover{background:#fff}
  /* a "Take with you" download row reads the same as a deep-link but signals a file */
  a.deep-link[download]::after{
    content:"↓";float:right;color:var(--gold-soft);font-family:var(--sans);font-size:.9rem;
    margin-left:12px;opacity:.8;
  }
  /* non-clickable rows: rooms not yet built, or videos not yet made */
  .deep-static{
    display:block;background:var(--ivory-warm);padding:18px 20px;color:var(--ink-soft);
    font-family:var(--serif);font-size:1.05rem;cursor:default;
  }
  .deep-soon{
    float:right;font-family:var(--sans);font-size:.6rem;letter-spacing:.22em;text-transform:uppercase;
    color:var(--gold-soft);border:1px solid var(--line);border-radius:2px;padding:3px 9px;
    margin-left:12px;position:relative;top:2px;
  }
  .deep-k{
    display:block;font-family:var(--sans);font-size:.62rem;letter-spacing:.24em;text-transform:uppercase;
    color:var(--gold-soft);margin-bottom:5px;font-weight:500;
  }
  /* grouped "Take with you": one heading, several downloads beneath it */
  .deep-group{background:var(--ivory-warm);padding:18px 20px}
  .deep-dl{
    display:block;text-decoration:none;color:var(--navy);
    font-family:var(--serif);font-size:1.05rem;
    padding:9px 0;transition:color .2s ease;
  }
  .deep-group .deep-dl{margin-top:16px}
  .deep-dl + .deep-dl{border-top:1px solid var(--line)}
  .deep-dl::before{
    content:"↓";color:var(--gold-soft);font-family:var(--sans);font-size:.9rem;
    margin-right:12px;opacity:.85;
  }
  .deep-dl:hover{color:var(--gold-soft)}

/* ---- "Create my page" action (Your Blueprint + footer Take With You) ---- */
.make-page{
  font-family:var(--sans);font-size:.82rem;letter-spacing:.06em;
  background:var(--navy);color:var(--ivory-warm);border:1px solid var(--navy);border-radius:3px;
  padding:12px 22px;margin:16px 0 0;cursor:pointer;transition:all .2s ease;
}
.make-page:hover{background:var(--gold);border-color:var(--gold);color:var(--navy)}
.make-hint{font-family:var(--sans);font-size:.76rem;color:var(--ink-soft);margin:12px 0 0;line-height:1.6}
.deep-take{font-family:var(--serif);font-size:1.05rem;color:var(--navy);margin:0}

/* ================================================================
   COMPANION ROOM — static-footer rooms (e.g. Why Does Sex Hurt Now?)
   Additive only. Nothing above this line is modified, so rooms with a
   JS-rendered footer (Sleep) are completely unaffected.

   These rules style elements the Sleep Room does not use:
   byline · lead line · pull-quotes · static room footer.
   ================================================================ */

/* ---- byline (header + footer credit) ---- */
.byline{
  font-family:var(--sans);font-size:.74rem;line-height:1.85;letter-spacing:.04em;
  color:var(--ink-soft);margin:22px 0 0;font-weight:400;
}
.byline .byname{
  font-family:var(--serif);font-size:1.02rem;letter-spacing:0;
  color:var(--navy);font-weight:500;
}

/* ---- the opening line of a movement ---- */
p.line.lead{
  font-size:1.5rem;color:var(--navy);font-weight:500;margin:0 0 22px;
}

/* ---- pull-quote: a pencil underline in a favorite book ---- */
blockquote.pull{
  margin:34px 0;padding:2px 0 2px 24px;
  border-left:2px solid var(--gold-soft);
}
blockquote.pull p{
  font-family:var(--serif);font-style:italic;font-size:1.32rem;line-height:1.5;
  color:var(--navy);margin:0 0 6px;
}
blockquote.pull p:last-child{margin-bottom:0}

/* ---- static Companion footer ---- */
.room-foot{
  margin:96px 0 70px;padding-top:30px;border-top:1px solid var(--line);
}
.room-foot .foot-cred{
  font-family:var(--sans);font-size:.72rem;letter-spacing:.05em;line-height:1.8;
  color:var(--ink-soft);margin:0 0 26px;
}
.room-foot .foot-nav{
  display:flex;flex-wrap:wrap;gap:10px 28px;margin:0 0 30px;
}
.room-foot .foot-nav a{
  font-family:var(--sans);font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--navy);text-decoration:none;font-weight:500;
  padding-bottom:3px;border-bottom:1px solid rgba(201,168,76,.4);
  transition:color .2s ease,border-color .2s ease;
}
.room-foot .foot-nav a:hover,
.room-foot .foot-nav a:focus-visible{
  color:var(--gold-soft);border-bottom-color:var(--gold);outline:none;
}
.room-foot .foot-disclaimer{
  font-family:var(--sans);font-size:.7rem;line-height:1.75;color:var(--ink-soft);
  margin:0 0 26px;max-width:60ch;opacity:.9;
}
.room-foot .foot-mark{
  font-family:var(--sans);font-size:.64rem;letter-spacing:.24em;text-transform:uppercase;
  color:var(--ink-soft);margin:0;
}
.room-foot .foot-mark .house{color:var(--gold-soft);font-weight:500}

@media(max-width:560px){
  p.line.lead{font-size:1.3rem}
  blockquote.pull p{font-size:1.16rem}
  blockquote.pull{padding-left:18px;margin:28px 0}
  .room-foot .foot-nav{gap:10px 20px}
}

/* Secondary takeaway: the quiet paper alternative beneath the generator.
   Subordinate to "Create My Sleep Page" by design — a smaller, muted line,
   not a competing button. Some women want the personalized page; others
   want paper, a pen, and something to carry into an appointment. */
.make-alt{
  font-family:var(--sans);font-size:.78rem;line-height:1.6;
  color:var(--ink-soft);margin:14px 0 0;
}
.make-alt a{
  color:var(--navy);text-decoration:none;
  border-bottom:1px solid rgba(201,168,76,.45);
  padding-bottom:1px;transition:color .2s ease,border-color .2s ease;
}
.make-alt a:hover,
.make-alt a:focus-visible{
  color:var(--gold-soft);border-bottom-color:var(--gold);outline:none;
}
