/* The day's moments on the home page (19 Nov 2026), with moments/moments.html and js/moments.js. One section per moment on the night, each lit by
   its own picture; a 9:16 frame like the player (title at the top, glass bar at the bottom) that opens the real expie. Newsreader + Jost,
   white on the night, glass (the app is glass). Typography as the Book's. */
.mt{position:relative;z-index:1;color:#fff;overflow:hidden;overflow:clip;background:#05060d;--ink:#fff;--ink2:rgba(255,255,255,.78);--ink3:rgba(var(--tint),1);
 padding:clamp(72px,11vh,128px) clamp(20px,4vw,64px)}
.mt+.mt{padding-top:clamp(40px,6vh,72px)}
#hmWrap>#morning{display:flex;flex-direction:column;justify-content:center}
#hmWrap>#morning>.mt-in{width:100%}
.mt-bg{display:none}
/* 19 Nov (Arthur: "what happened with our gradient? we open on the morning and get to night as before"): one sky down the page, as on the
   live site: Morning opens on the morning sky (the wave reveals it), then late morning, day, sunset, dusk, and the night of the Book and the
   footer. Each section paints its stretch; the colour at every join is the same on both sides, so the sky is one gradient. */
#morning{background:linear-gradient(180deg,#86a8d4 0%,#a7bedb 22%,#d6d1dc 50%,#f0d5c4 78%,#f6dcc4 100%)}
#commute{background:linear-gradient(180deg,#f6dcc4 0%,#eadfd6 45%,#cfdcea 100%)}
#work{background:linear-gradient(180deg,#cfdcea 0%,#a9c7e6 50%,#c9c4d6 100%)}
#way-home{background:linear-gradient(180deg,#c9c4d6 0%,#e7a98c 45%,#c9768a 75%,#7d5583 100%)}
#evening{background:linear-gradient(180deg,#7d5583 0%,#3d3163 35%,#171633 70%,#05060d 100%)}
/* the light skies take dark words */
#morning,#commute,#work,#way-home{--ink:#12141d;--ink2:rgba(18,20,29,.74);--ink3:rgba(18,20,29,.6);color:var(--ink)}
#evening{--ink3:rgba(230,205,235,.85)}
.mt-in{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr);gap:36px;max-width:1080px;margin:0 auto;align-items:center}
@media (min-width:960px){.mt-in{grid-template-columns:minmax(0,1fr) auto;gap:72px}}
.mt-when{margin:0 0 14px;font:500 16px/1.2 Jost,system-ui,sans-serif;color:var(--ink3)}
.mt-copy h2{margin:0;font:350 clamp(34px,4.2vw,58px)/1.02 Newsreader,Georgia,serif;letter-spacing:-.022em;text-wrap:balance}
.mt-copy p:not(.mt-when){margin:20px 0 0;max-width:30rem;font:400 clamp(17px,1.4vw,19px)/1.5 Jost,system-ui,sans-serif;color:var(--ink2);text-wrap:pretty}

/* the frames: the player's shape (9:16, its corner, its title and bar), silent */
.mt-frames{display:flex;gap:20px;align-items:flex-end;justify-content:center}
.mt-f{--h:min(72vh,640px);position:relative;display:block;flex:none;height:var(--h);aspect-ratio:9/16;padding:0;border:0;border-radius:var(--r-frame,28px);overflow:hidden;
 background:#120e18;color:#fff;font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;
 box-shadow:0 40px 90px -30px rgba(0,0,0,.75),inset 0 0 0 1px rgba(255,255,255,.14);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.mt-f.mt-sm{--h:min(52vh,460px)}
.mt-f img,.mt-f video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.mt-f::after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
 background:linear-gradient(180deg,rgba(0,0,0,.45) 0,rgba(0,0,0,0) 24%,rgba(0,0,0,0) 70%,rgba(0,0,0,.4) 100%)}
@media (hover:hover){button.mt-f:hover{transform:translateY(-4px)}}
button.mt-f:active{transform:scale(.985)}
.mt-f:focus-visible{outline:var(--focus-w,2px) solid #fff;outline-offset:4px}
.mt-top{position:absolute;z-index:1;left:18px;right:18px;top:18px;display:flex;flex-direction:column;gap:3px}
.mt-top b{font:500 20px/1.15 Newsreader,Georgia,serif;letter-spacing:-.01em}
.mt-top i{font:400 13px/1.3 Jost,system-ui,sans-serif;font-style:normal;color:rgba(255,255,255,.75)}
.mt-sm .mt-top b{font-size:17px}
.mt-bar{position:absolute;z-index:1;left:12px;right:12px;bottom:12px;display:flex;align-items:center;gap:12px;padding:10px 16px 10px 10px;border-radius:999px;
 background:var(--glass-dark,rgba(14,14,14,.55));-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.mt-play{flex:none;width:44px;height:44px;border-radius:50%;background:#fff;position:relative}
.mt-play::before{content:'';position:absolute;left:17px;top:14px;border-style:solid;border-width:8px 0 8px 13px;border-color:transparent transparent transparent #111}
.mt-lb{display:flex;flex-direction:column;gap:2px;min-width:0;font:500 15px/1.2 Jost,system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mt-lb i{font-style:normal;font-weight:400;font-size:12.5px;color:rgba(255,255,255,.7)}
.mt-soon{cursor:default}
/* a frame whose expie is not ready: its silent loop (which carries its own drawn labels) and one small glass label */
.mt-soon::after{background:none}
.mt-chip{position:absolute;z-index:1;right:14px;top:14px;padding:8px 14px;border-radius:999px;font:500 13px/1 Jost,system-ui,sans-serif;color:#fff;
 background:var(--glass-dark,rgba(14,14,14,.55));-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}

/* phones: the copy, then the frames under it; two frames sit side by side and shrink to fit */
@media (max-width:959px){
 .mt-copy{max-width:34rem}
 .mt-f{--h:min(68vh,560px)}
 .mt-frames{justify-content:flex-start}
 .mt-frames:has(.mt-sm) .mt-f{--h:auto;height:auto;width:calc((100% - 14px) * .58)}
 .mt-frames:has(.mt-sm) .mt-f.mt-sm{width:calc((100% - 14px) * .42)}
 .mt-frames:has(.mt-sm){gap:14px}
 .mt-frames:has(.mt-sm) .mt-top{left:12px;right:12px;top:12px}
 .mt-frames:has(.mt-sm) .mt-top b{font-size:15px}
 .mt-frames:has(.mt-sm) .mt-bar{left:8px;right:8px;bottom:8px;padding:6px 10px 6px 6px;gap:8px}
 .mt-frames:has(.mt-sm) .mt-play{width:32px;height:32px}
 .mt-frames:has(.mt-sm) .mt-play::before{left:12px;top:10px;border-width:6px 0 6px 10px}
 .mt-frames:has(.mt-sm) .mt-lb{font-size:13px}
 .mt-frames:has(.mt-sm) .mt-lb i{display:none}
}
@media (max-width:959px) and (min-width:600px){.mt-frames:not(:has(.mt-sm)){justify-content:center}}

/* the moments' own pages: loaded quietly near their section (hidden), and the open one over the page. The frame is clear: only the player
   shows, so it grows out of the home card and closes back into it */
.mt-xp{position:fixed;inset:0;z-index:300;pointer-events:none}
.mt-xp iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:transparent;color-scheme:normal;visibility:hidden;pointer-events:none}
.mt-xp iframe.on{visibility:visible;pointer-events:auto}
html.mt-lock{overflow:hidden}   /* only the page itself: hiding the body overflow too made it a scroll box and unpinned Morning */
@media (prefers-reduced-motion:reduce){.mt-f{transition:none}}
/* the line above the moments: who makes them */
.mt-head{position:relative;z-index:1;background:#05060d;color:#fff;padding:clamp(80px,13vh,150px) clamp(20px,4vw,64px) 0;max-width:1080px;margin:0 auto;box-sizing:content-box}
.mt-head h2{margin:0;font:350 clamp(38px,5vw,68px)/1.02 Newsreader,Georgia,serif;letter-spacing:-.022em;text-wrap:balance}
.mt-head p{margin:20px 0 0;max-width:36rem;font:400 clamp(17px,1.4vw,19px)/1.5 Jost,system-ui,sans-serif;color:var(--ink2);text-wrap:pretty}
.mt-head+.mt{padding-top:clamp(40px,6vh,72px)}

/* 19 Nov, round 2 (Arthur: card size "ok"; "desktop alternating preview left and right? larger fonts?"): one card size for every moment,
   about 78% of the window's height up to 720 px on a desktop and 82% of the width on a phone; the card swaps sides from one moment to the
   next; larger headlines; the time of day beside the moment's name */
.mt-f,.mt-f.mt-sm{--h:min(78vh,720px)}
.mt-in{max-width:1180px}
.mt-copy h2{font-size:clamp(40px,5.6vw,80px);line-height:1;letter-spacing:-.028em}
.mt-copy p:not(.mt-when){font-size:clamp(18px,1.5vw,21px);max-width:31rem}
.mt-when{font-size:17px}
.mt-when time{margin-left:.5em;font-variant-numeric:tabular-nums;opacity:.75}
@media (min-width:960px){
 .mt-in{gap:clamp(56px,7vw,112px)}
 .mt:nth-of-type(even) .mt-in{grid-template-columns:auto minmax(0,1fr)}
 .mt:nth-of-type(even) .mt-frames{order:-1}
}
@media (max-width:959px){
 .mt-f,.mt-f.mt-sm{--h:auto;height:auto;width:min(82vw,420px)}
 .mt-frames{justify-content:center}
}
/* phones: the words centred, as in the hero (Arthur 19 Nov: "perhaps center the sections texts like in the hero and it will be ok for now") */
@media (max-width:959px){
 .mt-copy{text-align:center;margin:0 auto}
 .mt-copy p:not(.mt-when){margin-left:auto;margin-right:auto}
}
/* 19 Nov (Arthur: "shadows under previews are not correct"): the heavy black shadow looked dirty on the light skies. A card now sits on its
   sky like a glass object: a soft wide shadow tinted with the sky's own blue-grey plus a short close one, and a fine light edge */
.mt-f{box-shadow:0 1px 2px rgba(20,28,52,.18),0 12px 28px -10px rgba(24,32,64,.28),0 36px 80px -36px rgba(24,32,64,.34),inset 0 0 0 1px rgba(255,255,255,.22)}
#way-home .mt-f{box-shadow:0 1px 2px rgba(60,24,48,.2),0 12px 28px -10px rgba(70,30,60,.3),0 36px 80px -36px rgba(70,30,60,.36),inset 0 0 0 1px rgba(255,255,255,.22)}
#evening .mt-f{box-shadow:0 1px 2px rgba(0,0,0,.3),0 14px 32px -12px rgba(0,0,0,.45),0 40px 90px -36px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.16)}
/* 19 Nov (Arthur: "is this our actual expie UI?"): a card that plays its expie's recording shows the expie's own UI (its title, its controls,
   its player), so the card's own title, bar and shade give way */
.mt-f:has(>video) .mt-top,.mt-f:has(>video) .mt-bar{display:none}
.mt-f:has(>video)::after{background:none}

/* 20 Nov: the star's avatar before their name in a section's label; pressing it opens their profile card (stars/stars.html, js/stars.js) */
.mt-who{display:inline;margin:0;padding:4px 10px 4px 4px;-webkit-box-decoration-break:clone;box-decoration-break:clone;border:0;border-radius:999px;background:transparent;color:inherit;font:inherit;font-weight:600;cursor:pointer;vertical-align:baseline;-webkit-tap-highlight-color:transparent;transition:background .2s ease}
.mt-who .av{display:inline-block;width:34px;height:34px;margin:-5px 8px -5px 0;vertical-align:middle;border-radius:50%;object-fit:cover;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.2)}
/* two stars who present together: two discs, the second over the first's edge, each with a rim in the sky's own colour */
.mt-who .av2{display:inline-flex;margin:-5px 8px -5px 0;vertical-align:middle}
.mt-who .av2 .av{margin:0;box-shadow:0 0 0 2px var(--av-rim,#eadfd6),0 1px 2px rgba(0,0,0,.2)}
.mt-who .av2 .av+.av{margin-left:-10px}
@media (hover:hover){.mt-who:hover{background:rgba(255,255,255,.22)}#evening .mt-who:hover{background:rgba(255,255,255,.1)}}
.mt-who:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.mt-when{line-height:34px}
/* 20 Nov (UI check): the label is a 44 px target (it was 42), and a name never breaks inside itself: on a narrow phone the two presenters'
   names (no-break spaces in moments.html) wrap between the names, in balanced lines */
.mt-who{padding:5px 10px 5px 5px;text-wrap:balance}
