/* minimassif.com: the Follow flow's shared styles (SITE-FOLLOW-2). Same tokens as /site.css (load it first); kept in their own file
   (addendum 5) so the homepage's first visit carries none of them: /privacy and the Worker's confirm / done / unsubscribe pages
   link it, and the Follow box's popup (/follow-privacy.js) adds it when it opens. */

/* ---- SITE-FOLLOW-2 (2026-11-26; conformance pass of addendum 3, founder: "stick to established patterns and designs"): the
   Follow flow's pieces. Each one is an existing pattern of this site with its exact values, named below; no new colour,
   radius, shadow or type size. ---------------------------------------------------------------------------------------- */

/* reading text (/privacy and the popup): the /inside article's heading values (inside/index.html .part h2, h3, the paragraph
   spacing) and the old /privacy list values, at a reading width of about 68 characters (founder 11-26: the 34em measure of
   the old page was "too narrow"). .mm-lede: the homepage lede size (index.html .opening p.lede), in the quiet colour. */
.mm-prose { max-width: 68ch; }
.mm-prose p + p, .mm-prose p + ul, .mm-prose ul + p { margin-top: 1em; }
.mm-prose h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); margin: 2em 0 22px; }
.mm-prose > section:first-child h2 { margin-top: 0; }
.mm-prose h3 { font-size: var(--t-body); font-weight: 500; margin: 2em 0 0.4em; }
.mm-prose ul { margin: 0; padding-left: 1.1em; }
.mm-prose li + li { margin-top: 0.4em; }
.mm-lede { font-size: 1.15rem; color: var(--quiet); text-wrap: pretty; }

/* the popup ("How we use your email", /follow.js): the confidentiality dialog's values (.mm-conf-dialog: paper, 1 px rule
   border, var(--radius), its shadow and backdrop; h2 1.25rem) and the trailer popup's close button (.mm-iconbutton).
   Needed: the founder asked for a popup instead of a page change. Desktop: about 880 px wide, two columns, so the whole text
   fits a 1280 x 720 window without scrolling (founder: "fit in one window... scrollbar as last resort"). Where it cannot fit
   (phones, very short windows) only the text scrolls: the title and the footer line stay, the scrollbar is shown, and a fade at
   the bottom edge says there is more. Phones: a sheet from the bottom, sliding in like the toy band's How it works sheet
   (.mm-band-sheet, 0.3 s ease). */
.mm-sheet { width: calc(100vw - 32px); max-width: 55rem; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22); overflow: hidden; }
.mm-sheet[open] { display: flex; flex-direction: column; }
.mm-sheet::backdrop { background: rgba(var(--shade), 0.45); }
.mm-sheet-head { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 14px 12px 24px; border-bottom: 1px solid var(--rule); }
.mm-sheet-head h2 { font-size: 1.25rem; line-height: 1.2; }
.mm-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 20px; font-size: var(--t-small); line-height: 1.55;
  scrollbar-width: thin; scrollbar-color: var(--quiet) transparent; }
.mm-sheet-body::-webkit-scrollbar { width: 6px; }
.mm-sheet-body::-webkit-scrollbar-thumb { background: var(--quiet); border-radius: 3px; }
.mm-sheet-body .mm-prose { max-width: none; }
.mm-sheet-body .mm-prose h3 { margin-top: 1.4em; }
.mm-sheet-body .mm-prose h3:first-child { margin-top: 0; }
.mm-sheet-cols { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .mm-sheet-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; } .mm-sheet-cols > * > h3:first-child { margin-top: 0; } }
@media (max-width: 899px) { .mm-sheet-body .mm-sheet-cols > * + * > h3:first-child { margin-top: 1.4em; } }
.mm-sheet-fade { flex: none; position: relative; height: 0; }
.mm-sheet-fade::before { content: ""; position: absolute; left: 0; right: 10px; bottom: 0; height: 44px; background: linear-gradient(180deg, transparent, var(--paper)); pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }
.mm-sheet[data-more] .mm-sheet-fade::before { opacity: 1; }
.mm-sheet-track { display: none; position: absolute; right: 3px; width: 4px; pointer-events: none; }
.mm-sheet[data-track] .mm-sheet-track { display: block; }
.mm-sheet-track i { position: absolute; left: 0; top: 0; width: 4px; border-radius: 2px; background: var(--quiet); opacity: 0.7; }
.mm-sheet-foot { flex: none; padding: 12px 24px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); font-size: var(--t-small); color: var(--quiet); }
@media (max-width: 600px) {
  .mm-sheet { width: 100%; max-width: 100%; max-height: 88svh; margin: auto 0 0; border-width: 1px 0 0; border-radius: var(--radius) var(--radius) 0 0; }
  .mm-sheet[open] { animation: mm-sheet-up 0.3s ease; }
}
@keyframes mm-sheet-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .mm-sheet[open], .mm-sheet-fade::before { animation: none; transition: none; } }


/* the Worker's confirm / done / unsubscribe pages = the homepage hero (index.html .opening, same values): the world still full
   bleed, the same scrim, white type with the same shadows, buttons as on the hero (.mm-on-photo); the site's standard footer
   under it (.mm-footer = the footer rule every page carries). */
.mm-scene { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; background: rgb(var(--shade)); }
.mm-scene > picture { position: absolute; inset: 0; }
.mm-scene > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mm-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 12, 16, 0.52) 0%, rgba(8, 12, 16, 0.5) 6%, rgba(8, 12, 16, 0.6) 30%, rgba(8, 12, 16, 0.7) 60%, rgba(8, 12, 16, 0.84) 100%); }
@media (min-width: 900px) {
  .mm-scene::after { background: linear-gradient(180deg, rgba(8, 12, 16, 0.42) 0%, rgba(8, 12, 16, 0) 16%),
    linear-gradient(90deg, rgba(8, 12, 16, 0.72) 0%, rgba(8, 12, 16, 0.6) 45%, rgba(8, 12, 16, 0) 80%),
    linear-gradient(180deg, rgba(8, 12, 16, 0) 34%, rgba(8, 12, 16, 0.55) 100%); }
}
.mm-scene > .mm-scene-top, .mm-scene > .mm-scene-copy { position: relative; z-index: 1; }
.mm-scene-top { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
.mm-scene-copy { display: flex; flex-direction: column; gap: 18px; padding-bottom: calc(clamp(60px, 10vh, 96px) + env(safe-area-inset-bottom, 0px)); }
.mm-scene h1 { font-size: var(--t-head); max-width: 40rem; text-shadow: 0 1px 28px rgba(0, 0, 0, 0.25); }
.mm-scene p { max-width: 40rem; font-size: 1.15rem; color: rgba(255, 255, 255, 0.94); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); text-wrap: pretty; }
.mm-scene a:not(.mm-button) { color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.mm-scene a:not(.mm-button):hover { color: #fff; }
.mm-scene .mm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.mm-scene .mm-actions form { display: contents; }
.mm-footer { border-top: 1px solid var(--rule); padding-block: 26px calc(36px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 8px; font-size: var(--t-small); color: var(--quiet); }
.mm-footer .mm-logo img { height: 18px; }

