/* MFM Clips page — layout on top of /assets/doodle/doodle.css. Notion callout colors → tinted papers. */
:root {
  --t-pink: #f4d2d2; --t-orange: #f5dcc0; --t-green: #d5ead8; --t-yellow: #f6e7a1;
  --t-blue: #d6e3f1; --t-red: #f1c6bf; --t-purple: #e2d5ee;
}
.dark {
  --t-pink: #3d2629; --t-orange: #3b2c1f; --t-green: #213328; --t-yellow: #383220;
  --t-blue: #212c3a; --t-red: #3f2321; --t-purple: #2e2638;
}
.tint-pink { background: var(--t-pink) !important; } .tint-orange { background: var(--t-orange) !important; }
.tint-red { background: var(--t-red) !important; } .tint-purple { background: var(--t-purple) !important; }

body.dd { font-size: 17px; }
.dd b { font-weight: 700; }
.wrap { margin: 0 auto; padding: 0 24px; position: relative; }
.wrap.narrow { max-width: 760px; } .wrap.mid { max-width: 860px; } .wrap.wide { max-width: 1240px; }
main { padding-bottom: 40px; }

/* ---------- nav ---------- */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-variation-settings: "wdth" 75; font-weight: 750; letter-spacing: .08em; font-size: 15px; }
.brand img { border-radius: 6px; }
.top-r { display: flex; align-items: center; gap: 18px; }
.theme { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: var(--ink); cursor: pointer; }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun, .dark .theme .moon { display: none; } .dark .theme .sun { display: block; }

/* ---------- title ---------- */
.hero { position: relative; text-align: center; padding: 70px 24px 56px; max-width: 900px; margin: 0 auto; }
.title { margin: 0; font-variation-settings: "wdth" 62; font-weight: 760; text-transform: uppercase; letter-spacing: -.015em;
  font-size: clamp(84px, 15vw, 190px); line-height: .82; }
.title .ul { color: var(--acc); display: inline-block; }
.hero-doodle { position: absolute; pointer-events: none; }
.title-wrap { position: relative; display: inline-block; }
.d-gold { width: 110px; height: 110px; left: -128px; top: 18%; transform: rotate(-10deg); }
.d-spark { width: 64px; height: 64px; right: -70px; top: -34px; transform: rotate(8deg); }

/* ---------- notes ---------- */
.loom-note, .idea-note { padding: 34px 32px 30px; }
.vframe { position: relative; }
.vframe video, .vframe .ratio { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0e0d0c; border-radius: 3px; }
.ratio { position: relative; overflow: hidden; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loom-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; padding: 0;
  background: var(--paper3) url(media/loom-poster.jpg) center / cover no-repeat; display: grid; place-items: center; }
.loom-poster .play { width: 104px; height: 104px; overflow: visible; filter: url(#dd-wob) drop-shadow(4px 4px 0 var(--ink)); transition: transform .3s var(--ease); }
.loom-poster .play .pc { fill: var(--acc); stroke: #1c1b18; stroke-width: 3.2; }
.loom-poster .play .pt { fill: #fbf7ef; stroke: #1c1b18; stroke-width: 2.6; stroke-linejoin: round; }
.loom-poster:hover .play { transform: scale(1.08) rotate(-4deg); }
.loom-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 22px; margin-top: 26px; }
.pagelink { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; color: var(--ink);
  font-family: var(--cond); font-variation-settings: "wdth" 85; font-weight: 650; font-size: 17px; padding: 10px 16px 10px 12px; --rf-stroke: var(--soft);
  transition: transform .25s var(--ease); }
.pagelink:hover { transform: translate(-1px, -2px) rotate(-.6deg); --rf-stroke: var(--ink); }
.pagelink .pl-ic { width: 30px; height: 30px; flex: none; }
.pagelink span:last-child { text-decoration: underline; text-decoration-color: var(--acc-mid); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pagelink.ps { margin-top: 16px; }
.arrow-down { width: 74px; height: 74px; margin: 18px auto 8px; transform: translateX(-120px) rotate(-6deg); }
.idea-note .lead { margin: 0 0 18px; font-size: 21px; font-variation-settings: "wdth" 80; }

/* ---------- toggles ---------- */
.tog { margin-top: 20px; }
.tog > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; font-variation-settings: "wdth" 85; font-size: 16.5px; line-height: 1.35; user-select: none; }
.tog > summary::-webkit-details-marker { display: none; }
.tri { flex: none; width: 0; height: 0; margin-top: 4px; border-left: 11px solid var(--acc); border-top: 7px solid transparent; border-bottom: 7px solid transparent; transition: transform .3s var(--ease); filter: url(#dd-wob); }
.tog[open] > summary .tri { transform: rotate(90deg); }
.tog > summary:hover b { text-decoration: underline; text-decoration-color: var(--acc-mid); text-underline-offset: 4px; }
.tog-body { padding: 6px 4px 0 24px; }
.tog-body p { margin: 0 0 14px; line-height: 1.6; }
.tog-body .punch { margin-top: 22px; font-size: 18.5px; }
.tog-body .thanks { color: var(--faint); font-family: var(--hand); font-size: 26px; margin: -4px 0 18px; }
.rule { border: 0; height: 10px; margin: 12px 0 18px; --rf-stroke: var(--faint); }
.sec-rule { border: 0; height: 14px; max-width: 1100px; margin: 80px auto; --rf-stroke: var(--faint); }

/* ---------- clips ---------- */
.sec-doodle { position: absolute; width: 64px; height: 64px; right: 30px; top: -60px; transform: rotate(14deg); }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
.clip-card { padding: 22px 20px 22px; }
.clip-title { margin: 0 0 16px; font-variation-settings: "wdth" 72; font-weight: 700; font-size: 21px; line-height: 1.12; min-height: 2.24em; }
.clip .tog { margin: 22px 6px 0; }
.desc { margin-top: 16px; padding: 22px 20px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.desc p { margin: 0 0 12px; }
.desc a, .inl { color: var(--acc); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.desc .tilde { font-family: var(--hand); font-size: 26px; line-height: .8; color: var(--soft); margin: 4px 0 10px; }
.ts { list-style: none; margin: 16px 0; padding: 0; }
.ts li { display: flex; gap: 10px; padding: 3px 0; }
.ts li span { flex: none; font-variant-numeric: tabular-nums; color: var(--acc); font-weight: 650; min-width: 3.1em; }
.desc .hash { color: var(--acc); font-weight: 600; }
.desc h4 { margin: 18px 0 6px; font-variation-settings: "wdth" 70; font-weight: 760; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.desc .tags { color: var(--soft); }

/* ---------- headings ---------- */
.h { display: flex; align-items: flex-end; gap: 16px; margin: 0 0 44px; font-variation-settings: "wdth" 66; font-weight: 740; text-transform: uppercase;
  font-size: clamp(32px, 4.6vw, 54px); line-height: .95; letter-spacing: -.005em; }
.h > span:first-child { display: inline-block; }
.h u { text-decoration: none; }
.h b { font-weight: inherit; }
.h-ic { width: 64px; height: 64px; flex: none; transform: rotate(-8deg) translateY(6px); }

/* ---------- title test ---------- */
.titles { display: grid; grid-template-columns: 29.17fr 33.33fr 37.5fr; gap: 34px; align-items: stretch; }
.tt { padding: 30px 24px 26px; font-variation-settings: "wdth" 78; font-size: 22px; line-height: 1.2; }
.tt .abc { position: absolute; left: -14px; top: -22px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--acc); color: var(--on-acc); font-family: var(--hand); font-weight: 700; font-size: 32px; line-height: 1; transform: rotate(-8deg);
  box-shadow: 3px 3px 0 var(--ink); }

/* ---------- thumbnails ---------- */
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.thumb { margin: 0; padding: 16px; position: relative; transform: rotate(var(--r, 0deg)); box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 22px 36px -22px rgba(0,0,0,.5); }
.thumb::before { content: ""; position: absolute; top: -13px; left: 50%; width: 120px; height: 28px; transform: translateX(-50%) rotate(2deg); background: var(--tape); border: 1px solid rgba(0,0,0,.05); z-index: 1; }
.thumb img { width: 100%; height: auto; border-radius: 2px; }
.thumb.rv { transform: translateY(22px) rotate(var(--r, 0deg)); }
.thumb.rv.in { transform: rotate(var(--r, 0deg)); }

/* ---------- CTAs ---------- */
.ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1100px; }
.cta-lb { margin: 0 0 16px; font-variation-settings: "wdth" 80; font-size: 19px; }
.cta-card { padding: 18px; }
.obs { margin-top: 36px; }
.obs p { margin: 0 0 6px; }
.obs .gray { color: var(--faint); font-family: var(--hand); font-size: 25px; line-height: 1.15; }

/* ---------- misc list + close ---------- */
.misc { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.misc li { display: flex; gap: 20px; align-items: flex-start; padding: 16px 0; font-size: 20px; line-height: 1.45; font-variation-settings: "wdth" 88; }
.misc .num { flex: none; font-family: var(--hand); font-weight: 700; font-size: 54px; line-height: .8; color: var(--acc); width: 34px; text-align: center; }
.close { margin: 64px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.close-lb { margin: 0; font-size: 22px; font-variation-settings: "wdth" 80; }
.close p { margin: 0; }
.mail { font-family: var(--hand); font-weight: 700; font-size: 30px; color: var(--ink); display: inline-block; margin-top: 6px; }

.foot { display: flex; justify-content: center; padding: 50px 24px 60px; opacity: .8; }

/* ---------- sub-page sheets ---------- */
.sheet { border: 0; padding: 0; background: transparent; max-width: min(760px, calc(100vw - 28px)); width: 100%; max-height: calc(100vh - 40px); overflow: visible; color: var(--ink); }
.sheet::backdrop { background: rgba(20, 18, 15, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .45s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(26px) rotate(1deg); } to { opacity: 1; transform: none; } }
.sheet-paper { position: relative; background: var(--paper2); padding: 46px 44px 40px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); font-size: 16.5px; line-height: 1.6; }
.sheet-paper.wide { max-width: 980px; }
.sheet:has(.wide) { max-width: min(980px, calc(100vw - 28px)); }
.sheet-paper p { margin: 0 0 14px; }
.sheet-h { display: flex; align-items: center; gap: 12px; margin: 0 40px 6px 0; font-variation-settings: "wdth" 66; font-weight: 750; text-transform: uppercase; font-size: 34px; line-height: 1; }
.sheet-ic { width: 44px; height: 44px; flex: none; }
.sheet .sub { margin-top: 22px; font-size: 18px; }
.dots { margin: 0 0 14px; padding-left: 4px; list-style: none; }
.dots li { position: relative; padding-left: 26px; margin: 8px 0; }
.dots li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 10px; height: 10px; border-radius: 50%; border: 2.3px solid var(--acc); }
.x { position: absolute; top: 12px; right: 16px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--ink);
  font-family: var(--hand); font-weight: 700; font-size: 42px; line-height: 1; }
.x:hover { color: var(--acc); transform: rotate(8deg); }
.transcript p { text-indent: 0; }
.ig-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: 18px; align-items: start; }
.ig { display: block; padding: 14px 16px; font-size: 14px; color: var(--acc); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .clips { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .titles { grid-template-columns: 1fr; max-width: 620px; gap: 40px; }
  .clip-title { min-height: 0; }
}
@media (max-width: 720px) {
  body.dd { font-size: 16px; }
  .top { padding: 10px 14px; }
  .nav-cta { display: none !important; }
  .hero { padding: 46px 18px 40px; }
  .d-gold { width: 54px; height: 54px; left: -40px; top: -40px; }
  .d-spark { width: 40px; height: 40px; right: -14px; top: -38px; }
  .wrap { padding: 0 16px; }
  .loom-note, .idea-note { padding: 28px 18px 24px; }
  .loom-row { flex-direction: column; align-items: flex-start; }
  .arrow-down { transform: translateX(-40px) rotate(-6deg); width: 56px; height: 56px; }
  .tog-body { padding-left: 8px; }
  .sec-rule { margin: 56px 16px; }
  .sec-doodle { display: none; }
  .thumbs, .ctas, .ig-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .h { gap: 10px; }
  .h-ic { width: 44px; height: 44px; }
  .misc li { font-size: 18px; }
  .close .dd-btn.lg { font-size: 17px; padding: 15px 22px 14px; }
  .sheet-paper { padding: 40px 20px 28px; }
  .sheet-h { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet[open] { animation: none; }
  .thumb.rv { transform: rotate(var(--r, 0deg)) !important; opacity: 1 !important; }
}
