/* Home: direction 2 ("Her words") with the light circle, the Oct 11 menu and the Oct 11 sections. Builds on ../system/platform.css. */

/* Bar: name only, Oct 11 menu; on phones the menu opens from a button */
.coach { font-size: 1.375rem; }
.menu-toggle { display: none; }

/* Opening: Romee's line crossing a light circle */
.open { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; min-height: max(560px, 76svh); padding: 0 var(--gutter); overflow-x: clip; }
/* The light circle hangs on Romee's line itself: it starts at 62% of the line's width and takes its size from the line's height,
   so it stays round and is always crossed, whatever the line's length; never smaller than 4.5 times the line's size, so a short line
   does not turn it into a highlight; it only bleeds off the right edge. */
/* margin-bottom reserves the part of the circle that hangs below the line, plus 48px, so it never touches what follows. */
.moment-wrap { position: relative; width: fit-content; max-width: min(100%, 10em); margin: 24px 0 calc(1.3em + 48px); font-size: var(--text-moment); }
.moment-wrap::before { content: ""; position: absolute; z-index: -1; left: 62%; top: 50%; height: min(680px, max(180%, 4.5em)); aspect-ratio: 1; border-radius: 50%; background: var(--field); transform: translateY(-50%); }
.words { grid-column: 1 / 11; align-self: center; padding: 64px 0; }
.greet { display: grid; justify-items: start; gap: 12px; }
.first { font-family: var(--display); font-weight: 300; font-size: var(--text-moment); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.session { display: grid; justify-items: start; gap: 16px; }
/* From 1320px wide the circle sits right of the session line, even with the longest date ("Wednesday 30 September"), so the line only needs its 48px. */
@media (min-width: 1320px) { .moment-wrap:has(+ .session) { margin-bottom: 48px; } }
.session p { font-size: var(--text-body); }
.session strong { font-weight: 500; }

/* First visit: the rest of the letter, then what to expect */
.rest, .expect { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 0 var(--gutter); }
.rest { padding-top: clamp(32px, 4vw, 64px); padding-bottom: clamp(96px, 10vw, 128px); }
.rest > *, .expect > * { grid-column: 1 / span 7; }
.sign { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; font-size: var(--text-label); font-weight: 500; }
.expect { padding-bottom: clamp(96px, 10vw, 160px); }
.expect .letter { margin-top: 24px; }

/* After a session: This week, Listen, We meet again (Oct 11 sections, each in its own form) */
.week { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: clamp(32px, 4vw, 64px) var(--gutter) clamp(64px, 7vw, 96px); }
.week .h2 { grid-column: 1 / -1; }
.week .letter { grid-column: 1 / span 7; margin-top: 24px; }
.week .link { grid-column: 1 / -1; margin-top: 16px; justify-self: start; }

.listen { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: 0 var(--gutter) clamp(96px, 10vw, 128px); }
.listen .rule { grid-column: 1 / -1; border-top: 1px solid var(--divider); margin-bottom: 48px; }
.listen .what { grid-column: 1 / span 7; }
.listen .h3 { margin-top: 8px; }
.listen .small { margin-top: 4px; }
.listen .link { margin-top: 8px; }

.meet { margin: clamp(32px, 4vw, 64px) var(--gutter) clamp(64px, 7vw, 96px); padding: clamp(32px, 4vw, 48px); background: var(--field); border-radius: var(--radius); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; }
@media (prefers-color-scheme: dark) { .meet { background: transparent; border: 1px solid var(--divider); } }
.meet .portrait { width: 96px; height: 96px; }
.meet .when { margin-top: 8px; font-size: var(--text-body); }

@media (max-width: 900px) {
  .words { grid-column: 1 / -1; }
  .rest > *, .expect > *, .week .letter { grid-column: 1 / -1; }
  .listen .what { grid-column: 1 / -1; }
  .meet { grid-template-columns: minmax(0, 1fr); }
  .meet .portrait { width: 72px; height: 72px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: 500 var(--text-label)/1.4 var(--sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; cursor: pointer; }
  .menu-toggle:focus-visible { outline: var(--ring); outline-offset: var(--ring-offset); border-radius: 2px; }
  .bar .menu { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: 8px; }
  .bar .menu.is-open { display: flex; }
  .open { min-height: 0; padding-top: 48px; }
}
